forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Oracle9 on March 20, 2007, 06:40:13 pm

Title: Modifing igames theme for cpg1.4.10_modpack
Post by: Oracle9 on March 20, 2007, 06:40:13 pm
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

Title: Re: Modifing igames theme for cpg1.4.10_modpack
Post by: Davide Renda on March 20, 2007, 11:05:22 pm
Just edit template.html adding {LOGIN_FORM} (where you wish it to appear) followed by
Code: [Select]
<span style="float:right">{LOGIN_FORM}</span>You can, of course, use other html code to fit the way you prefer.
Title: Re: Modifing igames theme for cpg1.4.10_modpack
Post by: Oracle9 on March 21, 2007, 12:21:20 am
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
Title: Re: Modifing igames theme for cpg1.4.10_modpack
Post by: Stramm on March 21, 2007, 07:33:36 am
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)
Title: Re: Modifing igames theme for cpg1.4.10_modpack
Post by: Oracle9 on March 21, 2007, 08:02:13 am
Thank  Lontano again , I disable the (Display login form) from the admin. config. and all is working fine now , Thanks
Title: Re: Modifing igames theme for cpg1.4.10_modpack
Post by: Oracle9 on March 21, 2007, 08:05:31 am
I'll try your way also , that's how we could learn
Thanks Stramm for your support :)
Best Regards