Modifing igames theme for cpg1.4.10_modpack Modifing igames theme for cpg1.4.10_modpack
 

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

Modifing igames theme for cpg1.4.10_modpack

Started by Oracle9, March 20, 2007, 06:40:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Oracle9

Hello
I have cpg 1.4.10 with modpack (stramm_mod1.4.10.bridge.1)
All work fine with me .
I like igames theme and I made a small modifications to fit with modpack.
The only part I do not know how to do it is the modification in igames theme  to show: Private Messages:  0 unread, total 0
          Friends: 0 request(s), active 0
Any help please , I am still a PHP beginner

Regards


Davide Renda

Just edit template.html adding {LOGIN_FORM} (where you wish it to appear) followed by
<span style="float:right">{LOGIN_FORM}</span>
You can, of course, use other html code to fit the way you prefer.

Oracle9

Thank you Lontano , it work and now I can see Private Messages and Friends ,
but the problem now I have 2 loging forms , the default one (which I prefer because it has the option (I forgot my password) , all I need is to display (Private Messages and Friends) . is their a way to do that ? 
Thanks again for your help

Stramm

open include/functions.inc.php and find at the bottom (IO think I named it) function loginform ...

copy the functionm and paste it into the theme.php you're actually using. Now modify it to your needs (the if-else clause, when not logged in, let it do nothing, when logged in, display the PM, buddy info)

Oracle9

Thank  Lontano again , I disable the (Display login form) from the admin. config. and all is working fine now , Thanks

Oracle9

I'll try your way also , that's how we could learn
Thanks Stramm for your support :)
Best Regards