Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Small MOD on login page if somone is willing to help me!  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

gabbadude

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Small MOD on login page if somone is willing to help me!
« on: March 13, 2006, 08:40:23 pm »

Hey Guys,

I was hoping someone could help me out with a small mod.

I have my CPG configured to "Allow unlogged users (guest or anonymous) acces" = "No".

Therefore as you know, I it always shows the login page first.  What I want to do is put an image on either side of the login table but I don't want it to show once  am logged in.  the user is logged in.  I only want it to show when the login page is displayed.

I have searched the code to try and figure this out myself but I am not good with PHP coding.

Can someone help me please?

Thanks in advance.  :)

gabbadude
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Small MOD on login page if somone is willing to help me!
« Reply #1 on: March 13, 2006, 11:20:46 pm »

open login.php in your editor and find
Code: [Select]
starttable('-1', $lang_login_php['enter_login_pswd'], 2);

below is the html that generates the login form. Modify it to your needs
backup the file first

gabbadude

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Small MOD on login page if somone is willing to help me!
« Reply #2 on: March 14, 2006, 01:40:58 pm »

Thanks for this but if I do this it will also show up once I have logged in.

As I said before, PHP and me are not good together.  :S

Can you help?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Small MOD on login page if somone is willing to help me!
« Reply #3 on: March 14, 2006, 01:51:57 pm »

??? once you're logged in you don't see the login.php form anymore and there's no more link to it????

I don't get what you want / need
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.