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!
XFileSharing Pro - Custom <TMPL_IF> Tags?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Try to remove extra languages from this code from XFileConfig.pm:
Code: Select all
language_codes => {'en.*' => 'english',
'cs' => 'czech',
'da' => 'danish',
'fr.*' => 'french',
'de.*' => 'german',
'p' => 'polish',
'ru' => 'russian',
'es.*' => 'spanish',
},