Login/Logout/Register links with PHPBB integration Login/Logout/Register links with PHPBB integration
 

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

Login/Logout/Register links with PHPBB integration

Started by rockchick2325, December 20, 2006, 07:19:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rockchick2325

I hope this is the right place to post this. My coppermine gallery is integrated with my PHPBB forum and I am changing the look of it. I am using the Igames theme. My question is: How can I make the "login" change to "logout" and the "register" dissapear when logged in? Thanks.

Nibbler


rockchick2325

The problem isn't with the bridge. I just don't know the code to use to preform what I want. I am trying to do an overhaul on the template and changed the links, so lost the login/register codes so I can't just move them around.

Here is what info I can provide:
Coppermine install: http://katierunyon.com/nucleus
Forum install: http://katierunyon.com/PHPBB2
Coppermine version: cpg1.4.8
Forum version: PHPBB v2.x
Test user account: demo / demo

Joachim Müller

Actually, Coppermine ist not located at http://katierunyon.com/nucleus, but at http://www.katierunyon.com/coppermine/  >:(
Zip your custom theme and attach it to your posting. My guess is that you hardcoded the lgin link into the menu instead of using the pre-existing login/logout technique.

rockchick2325

Quote from: GauGau on December 21, 2006, 07:10:33 AM
Actually, Coppermine ist not located at http://katierunyon.com/nucleus, but at http://www.katierunyon.com/coppermine/  >:(
Wow, I can't believe I did that, sorry. I was working on my blog at the same time and that is the addy for that, sorry for not double checking.
For login/register, I just flat out put the address and stuff in there for now because I didn't know the codeing to use to get it right. I wanted anyone that came to still be able to access those pages while I was trying to figure out how to correctly do it. Most of what I have figured out is from experimenting and just trying to follow what is already there.

Joachim Müller

Well, hard-coding links into Coppermine's menu (instead of leaving them as they are, with the placeholders in curly brackets) is just wrong, you shouldn't have edited the igames menu in the first place. Just undo your changes, restoring a vanilla theme.php from an unmodified igames theme and you should be fine, as your custom igames theme just is a vanilla igames theme.php plus some mixed-up menu entries. You haven't added custom menu entries - the pre-made ones will do just what you're up to: the login link will change to a logout link when a user has logged in. The registration link will vanish just as well if a user is logged in. Do not hard-code stuff, and only change things that actually need changing and that you understand what you're actually changing.