coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: cal on January 22, 2005, 02:14:08 AM

Title: add smf menubar to coppermine via ssi
Post by: cal on January 22, 2005, 02:14:08 AM
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.
Title: Re: add smf menubar to coppermine via ssi
Post by: kegobeer on January 22, 2005, 02:42:00 AM
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.
Title: Re: add smf menubar to coppermine via ssi
Post by: cal on January 22, 2005, 10:10:41 AM
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.
Title: Re: add smf menubar to coppermine via ssi
Post by: Joachim Müller on January 22, 2005, 10:18:39 AM
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
Title: Re: add smf menubar to coppermine via ssi
Post by: cal on January 22, 2005, 10:58:54 AM
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.
Title: Re: add smf menubar to coppermine via ssi
Post by: kegobeer on January 22, 2005, 01:51:02 PM
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.