[Closed]: Show textblock after login [Closed]: Show textblock after login
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Closed]: Show textblock after login

Started by JamesFrown, July 15, 2010, 05:16:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JamesFrown

Hello,

I want to place a text block on my coppermine album that will only show after you login (and is sticky). I already placed the div block between the {MESSAGE_BLOCK} and the {GALLERY} tag in my template.html, but now the text block will also show on the 'not logged in' page. I cannot show a link to my gallery, i'm using it on my local machine atm but posted some screens.

Website before login (what i want to see)
http://i29.tinypic.com/10g9rwn.jpg

The text block after login
http://i28.tinypic.com/2e58txz.jpg

I also tried to put this div block in the theme.php, but my PHP knowledge doesn't help me out where to put this.

Can someone help me out, I think it isn't a difficult one. Thanks in advance!

Αndré

Always attach images instead if hotlinking them. I've done that for you in my reply.

For your purpose you can use anycontent.php. Just add something like
if (USER_ID > 0) {
   echo 'Your text here';
}

JamesFrown

A great, I will give it a try!  :)

(and thanks for posting the images)..

Joachim Müller

You already have been tiold about board rules in your previous thread
Quote from: Αndré on July 07, 2010, 07:01:21 PMhttp://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Respect board rules from now on and do as suggested there or you won't get any more support. Read board rules now, as we expect you to react accordingly now.

JamesFrown

Man, what's your problem? I already told I cannot link to the gallery because it is on my local machine; not operational for viewing because it is used in a pitch, I do not have webspace for this customer.

What is wrong with being a little kind like André, even if I cannot show link and made a mistake with the images. I will read the 2 pages (!!) with rules over and over and over and over again.. I'm sorry... Pffff

Joachim Müller

Quote from: JamesFrown on July 16, 2010, 11:50:48 AMI already told I cannot link to the gallery because it is on my local machine;
Then you can not get support, simple as that!
You need to post a link - if you can't, then there is no support for you. Youu mustn't hotlink screenshots, but attach them. You need to properly resolve your threads.
Quote from: JamesFrown on July 16, 2010, 11:50:48 AMMan, what's your problem?
Your attitude.

Quote from: JamesFrown on July 16, 2010, 11:50:48 AMI will read the 2 pages (!!) with rules over and over and over and over again
If you haven't read the rules you wouldn't have been allowed to post in the first place. You agreed to respect them when signing up.