XFileSharing Pro - Need help with template

Message
Author
Mr_parham
Posts: 36
Joined: Apr 24, 2012 5:20 pm

Need help with template

#1 Postby Mr_parham » Aug 07, 2012 5:28 pm

I want to add a new feature but there is two things I don’t know where I need to change or how I need to do it

1- I would like to add an extra tab, like torrent, remote upload and etc, a new one which let's say would have an iframe
2- How can I make that iframe only visible to my premium users?

Thanks in advance
Parham

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#2 Postby PowerChaos » Aug 07, 2012 9:16 pm

i can not answer how to add a extra button
but i can say how to do premium

first go to
home/username/public_html/cgi-bin/Templates (cpanel example)
theen use below code to show only to premium members

Code: Select all

<TMPL_IF premium>
<h2><TMPL_VAR lang_extend_account></h2>
<b><TMPL_VAR lang_prem_valid_until>:</b><br><TMPL_VAR expire_elapsed><br><br>
<TMPL_ELSE>
<h2><TMPL_VAR lang_become_premium></h2>
</TMPL_IF>
this is a example taken from the payments template

you see that it says , tmpl_if premium
thats what you need

Greetings rom PowerChaos

Mr_parham
Posts: 36
Joined: Apr 24, 2012 5:20 pm

#3 Postby Mr_parham » Aug 19, 2012 6:07 pm

Thanks for that, it helped a lot, also do you know how can I identify when the user is logged in ??

afdah
Posts: 147
Joined: Jan 27, 2012 2:23 pm

#4 Postby afdah » Aug 20, 2012 2:09 am

Mr_parham wrote:Thanks for that, it helped a lot, also do you know how can I identify when the user is logged in ??
<TMPL_IF my_login>

code to show when user logged in

<TMPL_ELSE>

code to show when user not logged in

</TMPL_IF>