Announcement

  •  » Themes
  •  » [stripped] Add image to index page or forward to login

#1 2012-07-21 17:01:55

TheChief
Member
2012-07-21
16

[stripped] Add image to index page or forward to login

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

 

#2 2012-07-21 17:17:01

flop25
Piwigo Team
2006-07-06
7037

Re: [stripped] Add image to index page or forward to login

Hello
I recommend you to use PWG stuff and the login block : test and if you prefer to use another solution come back


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-07-21 20:54:07

TheChief
Member
2012-07-21
16

Re: [stripped] Add image to index page or forward to login

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

 

#4 2012-07-21 22:12:55

Tadjio
Member
UK
2012-05-02
432

Re: [stripped] Add image to index page or forward to login

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 :-(


Tadjio

Offline

 
  •  » Themes
  •  » [stripped] Add image to index page or forward to login

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact