coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: pr0team on February 11, 2006, 02:22:11 AM

Title: My text after image name
Post by: pr0team on February 11, 2006, 02:22:11 AM
Hi !

I have question

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg69.imageshack.us%2Fimg69%2F690%2Fobraz6po.png&hash=d15b3922ac3e9300ddaae5a1b9d62ab4b724789e)
Title: Re: My text after image name
Post by: Nibbler on February 11, 2006, 02:23:39 AM
Set a title and/or description for the picture.
Title: Re: My text after image name
Post by: pr0team on February 11, 2006, 02:25:54 AM
no, my english is bad :

i need this effect
http://gallery.cannabis-seeds.cc/displayimage.php?album=5&pos=1
the same text in all images
example : http://gallery.cannabis-seeds.cc/displayimage.php?album=5&pos=1
text : Buy your own Citral seeds at Nirvana
or get other quality Indoor seeds directly from the breeder!
Title: Re: My text after image name
Post by: Joachim Müller on February 11, 2006, 11:03:32 AM
edit themes/yourtheme/theme.php, find // HTML template for intermediate image displayand modify accordingly. If this doesn't exist, paste // 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;
into a new line right before ?>

In above code (taken from the sample theme), add your custom text right after{CAPTION}
Title: Re: My text after image name
Post by: RedFalcon on May 10, 2006, 08:56:37 AM
My congratulations for the constant work of Coppermine team.


I have cpg1.4.5
http://www.foto.hijole.net

I tried to apply this, with text and TAG {owner_name}, but now i dont't know what i made wrong because in cpg1.3.3 it´s worked, and not in cpg 1.4.5.
Example:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2Ffoto%2Fthemes%2Freynolds%2Fimages%2Fowner_name.jpg&hash=1f745ab8be61d4ec8ac92f5792ae36bf54e2de4e)

and in theme.php
i have:
Quote// 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}
                                              <br> copyright &copy; {owner_name}
                              
                                        </td>
                                </tr>
                        </table>
                </td></tr>

I think that the problem is in TAG.
Can you tell me what's wrong when will be posible?
Tks and Regards

Attention: the copyright it's about the owner author of photo and not about the CPG  :)
Title: Re: My text after image name
Post by: Joachim Müller on May 10, 2006, 09:40:37 AM
the stuff in curly brackets are just placeholders. They need to be defined in your theme, you can't just come up with those placeholders without defining them first, so your code is just wishful thinking.
Title: Re: My text after image name
Post by: Stramm on May 10, 2006, 12:38:55 PM
use the search function
for the navbar: http://forum.coppermine-gallery.net/index.php?topic=28446.0

something similar as plugin http://forum.coppermine-gallery.net/index.php?topic=29957.msg144659#msg144659

a CPG 1.3 thread
http://forum.coppermine-gallery.net/index.php?topic=22915.0
you'll have to search for the stuff in thems/sample/theme.php and copy it over to the theme you're using
Title: Re: My text after image name
Post by: RedFalcon on May 11, 2006, 08:09:41 AM
GauGau, you have reason, thank you
and
Stramm, it´s works. Tks
Regards