Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: add smf menubar to coppermine via ssi  (Read 4358 times)

0 Members and 1 Guest are viewing this topic.

cal

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
add smf menubar to coppermine via ssi
« 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: add smf menubar to coppermine via ssi
« Reply #1 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: add smf menubar to coppermine via ssi
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: add smf menubar to coppermine via ssi
« Reply #3 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
Logged

cal

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: add smf menubar to coppermine via ssi
« Reply #4 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: add smf menubar to coppermine via ssi
« Reply #5 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.