display "register" when a user has to logon ? (how display "register" when a user has to logon ? (how
 

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

display "register" when a user has to logon ? (how

Started by xtreme, March 14, 2004, 03:46:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xtreme

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 !
Go Big Or go the F*ck Home !!!!

Casper

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?
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

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.
Go Big Or go the F*ck Home !!!!

Casper

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.
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

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!!!!
Go Big Or go the F*ck Home !!!!

Casper

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 $redirect = $redirect . "login.php";
change it to $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.
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

:?  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  :?
Go Big Or go the F*ck Home !!!!

xtreme

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

Joachim Müller

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

Casper

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
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

@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!!!!
Go Big Or go the F*ck Home !!!!

Joachim Müller

Like I said: display the register link somewhere else, for example on the login page itself: edit login.php and findendtable();Add after itprint '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

xtreme

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


Sory guys !!!


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

xtreme

That Worked like a charm gau gau  thanks ..

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

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
Go Big Or go the F*ck Home !!!!