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: Where is theme.php ?  (Read 4774 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Where is theme.php ?
« on: July 04, 2006, 04:01:44 pm »

Hello
In the new version 1.4 i dont find the code of theme.php like before in 1.3, where is it ?
Thanks
Isa
« Last Edit: July 04, 2006, 07:18:34 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Where is theme.php ?
« Reply #1 on: July 04, 2006, 04:05:53 pm »

It's in the theme folder along with the template.html and style.css files.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Where is theme.php ?
« Reply #2 on: July 04, 2006, 04:07:18 pm »

In the new fruity theme, i see theme.php but there is no longer code inside, just a little, where is the big code, like before ?
I would like to add a link just under the picture, in displayimage.php, please, say me what is the best way to do that ?
Thanks
Isa
« Last Edit: July 04, 2006, 04:31:54 pm by antisa33 »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Where is theme.php ?
« Reply #3 on: July 04, 2006, 04:35:05 pm »

OK, I think I understand your question now. What you are asking is where is all the code that used to be in v1.3 themes, well that now resides in the themes=>sample=>theme.php file. You copy what you want to change from this file to your theme.php file (in this case, Fruity) and make the changes you want. Check out this sticky for help: http://forum.coppermine-gallery.net/index.php?topic=24056.0.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Where is theme.php ?
« Reply #4 on: July 04, 2006, 04:50:28 pm »

Sorry, I forgot to answer your question about adding a link under the intermediate picture. This depends on what you want to add. If this is a link that is different for every picture then you can do this by following the instructions in the manual here: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#edit_pics.

If this link is going to be the same for every picuture then you can add it globally by copying this code from the themes=>sample=>theme.php file
Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2px" cellpadding="0px" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;

and adding something like this after the {TITLE} tag:
Code: [Select]
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
<br />YOUR LINK HERE
                                        </b></center></td>
                                </tr>

Hope this helps.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Where is theme.php ?
« Reply #5 on: July 04, 2006, 04:52:55 pm »

Thank you very much, i am going to try  :-X
Thanks
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Where is theme.php ?
« Reply #6 on: July 04, 2006, 05:11:53 pm »

i copied all the code of  themes=>sample=>theme.php in
themes=>fruity=>theme.php
But when i am doing this (without modifications), my main menu is too big, it is not the same as themes=>sample=>theme.php  ???
I have too understand your new theme system, it seems better than the other  :-X
Logged

Nibbler

  • Guest
Re: Where is theme.php ?
« Reply #7 on: July 04, 2006, 05:25:32 pm »

Only copy what you what to change, not everything.
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Where is theme.php ?
« Reply #8 on: July 04, 2006, 05:33:54 pm »

Thank you thaht's works, i understand now  ::)
My link is like that :
<a target="_blank" href="/test.php?urlphoto=http://www.test.biz".$picture_url."\">link</a>
The urlphoto variable is not recognisided, i want to transport the url of the big picture on my other link page.
How to do that? I think that putting the variable in url is no good ?
Thanks for all


This i ok, i have done the same thing like in ecard.php
Thanks !
« Last Edit: July 04, 2006, 07:06:41 pm by antisa33 »
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.