Where is theme.php ? Where is theme.php ?
 

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

Main Menu

Where is theme.php ?

Started by antisa33, July 04, 2006, 04:01:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antisa33

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

Gizmo

It's in the theme folder along with the template.html and style.css files.
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

#2
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

Gizmo

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.
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

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

// 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:

                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
<br />YOUR LINK HERE
                                        </b></center></td>
                                </tr>


Hope this helps.
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

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

antisa33

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

Nibbler

Only copy what you what to change, not everything.

antisa33

#8
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 !