Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Modifing igames theme for cpg1.4.10_modpack  (Read 4631 times)

0 Members and 1 Guest are viewing this topic.

Oracle9

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Modifing igames theme for cpg1.4.10_modpack
« 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

« Last Edit: March 22, 2007, 11:32:43 am by Stramm »
Logged

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Modifing igames theme for cpg1.4.10_modpack
« Reply #1 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.

Oracle9

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Modifing igames theme for cpg1.4.10_modpack
« Reply #2 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
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Modifing igames theme for cpg1.4.10_modpack
« Reply #3 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)

Oracle9

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Modifing igames theme for cpg1.4.10_modpack
« Reply #4 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
Logged

Oracle9

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Modifing igames theme for cpg1.4.10_modpack
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.