I use the stripped theme for a private gallery. Now when i browse to index.php and i'm not logged in, the page is almost empty (just title of gallery, login link...) and i would like to add an image there. In which template file i can do this?
Another possibility would be to forward to the login page automatically.
Can i add something like:
{if !USER_IS_LOGGED_IN} <=== How can i determine, if a user is logged in?
<div id="placholder_image">
<img src="...">
</div>
{/if}
or
Can i add something like:
{if !LOGGED_IN}
FORWARD TO LOGIN <=== How can i forward to another page
{/if}
Is there somewhere an API description, which code/variables i can use in themes?
Best regards
TheChief
Offline
Hello
I recommend you to use PWG stuff and the login block : test and if you prefer to use another solution come back
Offline
I dont know, what you are talking about. Wh ere do i find a docmentation about theming and what variables i can use? Then i can code it by myself.
Thanks
theChief
Offline
There is a Plugin called "PWG Stuffs".
If you activate it, it provides "Blocks management" which enables you to have special blocks of information in your 'home page'. You can define any out of 10 types of Block including a "login" and you can suppress the default "Main Block". You can display various types of photo including one of your own choice.
(There is also a third tab called "Configuration" to "Activate authorization management" but I don't understand what this is :-(
Offline