Installed and Features activated but not showing in own theme Installed and Features activated but not showing in own 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

Installed and Features activated but not showing in own theme

Started by OzButcher, February 15, 2007, 06:08:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OzButcher

Hi I just installed the latest modpack but the private messaging option is not showing up in my own theme as with the provided ones.

Are there instructions for editing theme files? I'm using Reynolds theme. cheers!

OzButcher

I copied the PM images from the Oranje theme into my Reynolds theme images folder. Now it will come up with the option to send them a "PM" or to "Become Friends" when I use the Reynolds theme.

This is displayed in the header of the oranje theme... but even after comaring the two theme.php files I cannot get it working in Reynolds:

Welcome back Dieter
Private Messages: 1 unread, total 2
Friends: 0 request(s), active 0


Any ideas people?

Stramm



OzButcher

Sorry I spoke to soon. Although the Info box is now showing up when I am logged in, when I log out of the forum I am now prompted with 2 login boxes. My original one plus the stats one which showed private messages etc.

see screenie:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fburnt-clan.com%2Fimages%2Fregister2.jpg&hash=f15298fc617c42f45bd4ad1a865748b53207578e)

Stramm

So soll das auch sein. Wenn der User nicht eingeloggt ist, dann erscheint an der Stelle {LOGIN_FORM} eine Login Box (Form). Wenn Du keine anon user zuläßt, werden alle nicht eingeloggten automatisch zur login.php weitergeleitet -> Login Form des modpacks + standard Login Form

Genau so funktioniert auch dieses Forum. Log Dich aus. Oben links ist die Login Form, nun clicke login im Menü ... zwei dieser Forms zu sehen.

Kannst natürlich auch coden um es zu ändern.

Joachim Müller

erm ;) (*clearing throat*): please do only post in English on the general support board. German is only suppossed to be posted on the German sub-board.

OzButcher

ah ok I get ya. would you know how to change the code so it doesnt show it twice on the same page? :)

I don't know if its possible to somehow put in a 'if already on login.php don't call second login function?'  ::)

I've disabled it for the moment as it doesn't look very pretty having two login boxes. thanks.


Stramm

ehm, sorry  ;D seems like I was on drugs or worse, hehehe

what I was trying to say is that this is exactly how that funtion works. Not only the modpack/ CPG one, but most you can find all over the web. Even that forum uses the same style. Logout, then click login in the menu... -> you'll see two login boxes.

Of course it's possible to disable the top login box when a user's surfing login.php. But that'll mean another if clause for every page that loads... (grabbing the URL, preg_match, if else).

If you want to do that copy the function loginForm from include/themes.inc.php to the theme.php your actually using (ege themes/reynolds/theme.php) and modify it to your needs.