My text after image name My text after image name
 

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

My text after image name

Started by pr0team, February 11, 2006, 02:22:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pr0team

Hi !

I have question

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg69.imageshack.us%2Fimg69%2F690%2Fobraz6po.png&hash=d15b3922ac3e9300ddaae5a1b9d62ab4b724789e)

Nibbler

Set a title and/or description for the picture.

pr0team

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!

Joachim Müller

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}

RedFalcon

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  :)
http://monocromatico.bitacoras.com
http://www.antonioinocencio.mx.gs
http://www.foto.hijole.net
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2FImagens%2Fcoppermine.gif&hash=494fce39e01b1e8bc0e07c5520b44b890312185d)

Joachim Müller

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.

Stramm

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

RedFalcon

GauGau, you have reason, thank you
and
Stramm, it´s works. Tks
Regards
http://monocromatico.bitacoras.com
http://www.antonioinocencio.mx.gs
http://www.foto.hijole.net
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2FImagens%2Fcoppermine.gif&hash=494fce39e01b1e8bc0e07c5520b44b890312185d)