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: 99% done. 1 Question about current user info in SMF theme  (Read 4627 times)

0 Members and 1 Guest are viewing this topic.

jmcmanus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
99% done. 1 Question about current user info in SMF theme
« on: January 02, 2005, 11:56:08 pm »

I have successfully integrated Coppermine and SMF using the smf theme (with minor modification).  I would like for the login area on Coppermine to show the name of the logged in user as it does over on SMF.  Where would I find the code to include this and would it be palce in the template.php or theme.html?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: 99% done. 1 Question about current user info in SMF theme
« Reply #1 on: January 03, 2005, 12:07:57 am »

I'm not sure what you mean: once bridging is enabled, coppermine doesn't have a login section of it's own, but uses the login page of your bbs app.

Joachim
Logged

jmcmanus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: 99% done. 1 Question about current user info in SMF theme
« Reply #2 on: January 03, 2005, 12:14:02 am »

Correct.  The login is actually done through SMF.  However, if you are logged in youe see that under SMF but if you are on the Coppermine screen the message just says please login or register.  Check it out here www.nwcba.com  (header menu for gallery/forum) using login:jmcmanus pswd:sunamcm    Thanks.  Jim
Logged

Nibbler

  • Guest
Re: 99% done. 1 Question about current user info in SMF theme
« Reply #3 on: January 03, 2005, 12:20:56 am »

You can do that as a custom header, just follow the docs. You can use the USER_NAME constant to get the current user's username.
Logged

jmcmanus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: 99% done. 1 Question about current user info in SMF theme
« Reply #4 on: January 03, 2005, 12:23:50 am »

thanks, I figured a custom header but didn't know about user_name.  Is there a list of constants?  By the way, cudos for both products and how easy it was to install/integrate and even modify them.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.