Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Closed]: Show textblock after login  (Read 4451 times)

0 Members and 1 Guest are viewing this topic.

JamesFrown

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Closed]: Show textblock after login
« on: July 15, 2010, 05:16:21 pm »

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!
« Last Edit: July 16, 2010, 02:47:03 pm by Joachim Müller »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Show textblock after login
« Reply #1 on: July 15, 2010, 05:25:28 pm »

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
Code: [Select]
if (USER_ID > 0) {
    echo 'Your text here';
}
Logged

JamesFrown

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Show textblock after login
« Reply #2 on: July 15, 2010, 05:27:42 pm »

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

(and thanks for posting the images)..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show textblock after login
« Reply #3 on: July 15, 2010, 05:41:35 pm »

You already have been tiold about board rules in your previous thread
http://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.
Logged

JamesFrown

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Show textblock after login
« Reply #4 on: July 16, 2010, 11:50:48 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show textblock after login
« Reply #5 on: July 16, 2010, 02:51:11 pm »

I 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.
Man, what's your problem?
Your attitude.

I 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 19 queries.