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