add smf menubar to coppermine via ssi add smf menubar to coppermine via ssi
 

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

add smf menubar to coppermine via ssi

Started by cal, January 22, 2005, 02:14:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cal

Hello, this is my first time here so please be easy on me  ;D.
I'm trying to add the smf menubar to coppermine via SSI. I'm following the instruction given here that tells me to edit the pageheader function in theme.php.
Everything is fine except that even if i've already logged on, it still show: " home | search...| login | register"  instead of " home | search...| logout" . In other words, it still
thinks that i'm  a guess.
Please show me how to fix this problem.

kegobeer

You can't use SMF's SSI.php file with Coppermine 1.3.2 and earlier.  There are a few functions that conflict.  This has been solved for the next version of Coppermine.

I made a Coppermine theme that matches my SMF theme, and just made a menu bar that looks like my SMF's menubar.  Right now that's the only workaround.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

cal

Thank you for your reply. However, i'm not even concerned about matching themes. What I'm concerned about is to display menu items correctly: in particular, when a user's already logged in, the menu should have a 'logout' button and the menu should have 'login'  and 'register' buttons when user is a guest. Is there anyway that we can check if someone is logged in; something similar to $context['is guest'] in smf that I can use in function pageheader()?
Thank you.

Joachim Müller

when bridging is enabled correctly, this is what the coppermine controls in the navigation should behave like, there's no point in adding the smf controls to the coppermine page. Post a link and test user account (non-admin) to check if you have set up bridging correctly.

Joachim

cal

I think I understand what you said. I want to add the menubar(from smf) to make my website look uniform. Moreover, if I'm not mistaken, the logout action from coppermine gives errors ( when smf - coppermine bridge is used. Thank you for your reply.

kegobeer

Yes, sometimes you will get an error when logging out of Coppermine when bridged with SMF, but usually it's if you've logged in, closed your browser, and then came back and tried to log out.  All you have to do is attempt another logout and/or refresh the page and then try again.  This has been fixed in the next version.

It is nice to make your entire site look and act uniform.  Unfortunately, right now all you can do is create a custom menu bar that looks just like your SMF one.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots