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: Small MOD on login page if somone is willing to help me!  (Read 3465 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.019 seconds with 19 queries.