RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Custom <TMPL_IF> Tags?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
pengalor



Joined: 01 May 2010
Posts: 5

PostPosted: May 06, 2010 10:11 am    Post subject: Custom <TMPL_IF> Tags? Reply with quote

Hi,

My site layout contains a main frame and a sidebar. I was wondering if there is a custom <TMPL_IF> tag display content on specific sites only.

In example, I have figured out that <TMPL_IF user_total> hides content unless the user is on the main site.

Also, <TMPL_UNLESS my_login> in example, hides content when user is logged in.

What I am looking for is to show/hide content when a user is on a certain page. For example: Show X in sidebar when user is on registration.html.


Additionally I was wondering if its possible to automatically redirect a user after login to a certain page? I have noticed that the user gets redirected to whatever page he was before he logged in, but I´d like to redirect them to a spefic page every time they login.

Regards!
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 1281

PostPosted: May 06, 2010 1:25 pm    Post subject: Reply with quote

Well, no. But you can stick to specific variable which is only on that page where you want to show your stuff.
Back to top
View user's profile Send private message Send e-mail
pengalor



Joined: 01 May 2010
Posts: 5

PostPosted: May 07, 2010 9:19 am    Post subject: Reply with quote

Got it working! Thanks. One last thing:

Is it possible to use English as default language for all users? (i noticed language automatically changes to browser language)

Regards
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: May 11, 2010 12:55 pm    Post subject: Reply with quote

Try to remove extra languages from this code from XFileConfig.pm:
Code:
 language_codes => {'en.*'             => 'english',
                    'cs'               => 'czech',
                    'da'               => 'danish',
                    'fr.*'             => 'french',
                    'de.*'             => 'german',
                    'p'                => 'polish',
                    'ru'               => 'russian',
                    'es.*'             => 'spanish',
                   },
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group