99% done. 1 Question about current user info in SMF theme 99% done. 1 Question about current user info in SMF theme
 

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]

Main Menu

99% done. 1 Question about current user info in SMF theme

Started by jmcmanus, January 02, 2005, 11:56:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmcmanus

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?

Joachim Müller

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

jmcmanus

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

Nibbler

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.

jmcmanus

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.