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: display "register" when a user has to logon ? (how  (Read 4986 times)

0 Members and 1 Guest are viewing this topic.

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« on: March 14, 2004, 03:46:48 pm »

i have used this tread:
http://forum.coppermine-gallery.net/index.php?topic=3503
to ensure that only users hat are loged on can view my gallery.

my quiston is simple i want the login/register menu to also be visible when the users has to enter their details.

i think i just have to add the menu link in the login.php file  but i am not sure ...

any advise would help !
Logged
Go Big Or go the F*ck Home !!!!

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
display "register" when a user has to logon ? (how
« Reply #1 on: March 14, 2004, 04:03:31 pm »

A logged in user does not see the login or register link, why do they need to.  They see the log out link.

When an unlogged user gets directed to the login page, they can also see the register link.  

What else do you need?
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #2 on: March 14, 2004, 11:46:08 pm »

no i only want the register link to be available for un unloged users,

can i make the register option visible , without the user clicking on the @ menu ?

sorry but the ppl i want to look at my site are not very computer litrate . so i want to make it as basic as possible fro them.
Logged
Go Big Or go the F*ck Home !!!!

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
display "register" when a user has to logon ? (how
« Reply #3 on: March 14, 2004, 11:57:31 pm »

OK, I think I understand now.  You are using a theme that has these menu items hidden until you mouseover the @ sign.

Easiest way is to change to another theme, otherwise you will have to edit your theme.php, depending on which theme it is.

Also, I beleive I saw recently a mod for using different themes on different pages, so you could just make login.php display in the default theme, which has these menu items visible, but keep yor current theme for the rest of the site.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #4 on: March 15, 2004, 12:07:14 am »

Thnx casper . i will look on the  board for this mod

but ,if there is anyone that has a spare second or 2  that could assist me with this i would also not mind

oh yes & Casper i am using the project theme , that does require the mouse over.

PS. your respone was really apreciated!!!!
Logged
Go Big Or go the F*ck Home !!!!

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
display "register" when a user has to logon ? (how
« Reply #5 on: March 15, 2004, 02:49:55 am »

I think I got this sorted for you.

Do the mod to redirect to login.php as in the thread mentioned, http://forum.coppermine-gallery.net/index.php?topic=3503, but everywhere it says
Code: [Select]
$redirect = $redirect . "login.php";
change it to
Code: [Select]
$redirect = $redirect . "login.php?theme=default";

This will show the login page in default theme, but the rest of your site in your theme.  Note, you must have the default theme in your themes folder for this to work.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Oops
« Reply #6 on: March 15, 2004, 10:33:21 pm »

:?  i have tried that casper , but my whole site now defaults to the defualt theme , also  i have removed the code again ..but nothing works.

i cant change to any theme except default.
( i can choose any theme , but its not changhing when i apply the settings)


i have copied the original index.php file over mine file but its still wont let me change the theme ...

any ideas ??
please  :?
Logged
Go Big Or go the F*ck Home !!!!

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #7 on: March 15, 2004, 11:04:32 pm »

ok , i have managed to get my theme back but , i still cannot change themes in the config page.
Logged
Go Big Or go the F*ck Home !!!!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
display "register" when a user has to logon ? (how
« Reply #8 on: March 16, 2004, 08:05:43 am »

sorry, changing themes is a bd idea imo, as it will definitely confuse your page visitors. Instead: modify the theme you're using to show the link in another place (without having the user to hover over a navigation entry).
I still can't see the need for the modification you request...

[rant - off topic]
Having the user to click or hover on a menu entry to display further options is a bad idea imo; I know some themes that come with coppermine do it this way for reasons of looking better, but you'll definitely lose visitors if they don't get along with your navigation in the first place, especially if you make them hover over an icon like "@" that is usually used in the context of emails. This is usually called "mystery meat navigation".
[/rant]

GauGau
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
display "register" when a user has to logon ? (how
« Reply #9 on: March 16, 2004, 10:48:43 am »

Hi xtreme,

sorry my suggestion caused you so much bother.  If you still cannot change themes, are you are remembering to scroll to the bottom and clicking update config?

If this still does't work, it may be a cookie thing, so try forcing it like this, browse to your index.php, then type in the address bar, so it looks like this, /index.php?theme=project_vii
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #10 on: March 16, 2004, 07:53:35 pm »

@casper , no wories man , i am not sure what i did ( bcoz i did quite a few things) but my site is back to normal now ..

if anything . i understand more about how cpg works

@gaugau , yes i agree changhing themes is not a good option ( not 4 me ayway)


is there not a way that i can just have the @ mouse over activated when the login page is displayed ?or even adding a register link of dsome sort ???

thanks anyway!!!!
Logged
Go Big Or go the F*ck Home !!!!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
display "register" when a user has to logon ? (how
« Reply #11 on: March 17, 2004, 08:39:56 am »

Like I said: display the register link somewhere else, for example on the login page itself: edit login.php and find
Code: [Select]
endtable();Add after it
Code: [Select]
print 'If you don\'t have a user account yet, you\'ll have to <a href=""register.php">register</a> first!';That's pretty easy, huh? Just one line of html in a print statement! :shock:

GauGau
Logged

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #12 on: March 17, 2004, 09:42:26 am »

Ahh ..man i cant believe its just that easy !!!! :oops:


Sory guys !!!


Thanx gaugau & Casper !!!
Logged
Go Big Or go the F*ck Home !!!!

xtreme

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
display "register" when a user has to logon ? (how
« Reply #13 on: March 17, 2004, 11:57:23 pm »

That Worked like a charm gau gau  thanks ..

there was just a small typo ..so for anyone else wanting to do the same:

Code: [Select]
print 'If you don\'t have a user account yet, you\'ll have to <a href="register.php">register</a> first!  <br>';



Thanks gaugau ..ur a living legend
Logged
Go Big Or go the F*ck Home !!!!
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 18 queries.