forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 themes (visuals) => Topic started by: Dankriss on February 03, 2019, 09:32:20 am

Title: Adding text under image in intermediate view
Post by: Dankriss on February 03, 2019, 09:32:20 am
Hi guys


I am trying to put some text under the image when you display the intermediate image...I have attached a screenshot of the page.


I have found out where to put when the admin controls are displayed but of course that is no good for the users... :)


The text I wish to make visable to everyone is just under the image.


I am ok with HTML and CSS but no good with php coding so if you can put up where I can find where to put the html on the php that would be a great help :)


Thanks in advance


Kriss :)
Title: Re: Adding text under image in intermediate view
Post by: ron4mac on February 03, 2019, 02:12:19 pm
From the file include/themes.inc.php copy lines 853-898:

Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
. . . .
. . . .
. . . .
. . . .
. . . .
                </td>
        </tr>

EOT;

and place them in your theme's theme.php file. Modify to your liking (but don't remove the BEGIN-END comment pairs).
Title: Re: Adding text under image in intermediate view
Post by: Dankriss on February 03, 2019, 02:14:14 pm
Thank you!


Will do that this evening and come back if I have any problems :)


Kriss :)
Title: Re: Adding text under image in intermediate view
Post by: Dankriss on February 04, 2019, 09:03:15 am
Ok I did this and got this error...


Parse error[/size]: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in [/size]/home/sites/6b/a/a2a9dd89e3/public_html/msgallery/themes/Michael1/theme.php[/size] on line [/size]70[/size]

[/size]
I have attached a screenshot of what I did as well...[/size]

[/size]
Thanks in advance[/size]

[/size]
Kriss :)[/size]

Title: Re: Adding text under image in intermediate view
Post by: ron4mac on February 04, 2019, 03:16:11 pm
It would seem that what you copied was incomplete or not placed correctly. Please attach your theme.php file.
Title: Re: Adding text under image in intermediate view
Post by: Dankriss on February 04, 2019, 05:17:19 pm
Here you go...
Title: Re: Adding text under image in intermediate view
Post by: ron4mac on February 04, 2019, 05:29:53 pm
It's PHP being picky.  You just need a carriage return after the last line.
Title: Re: Adding text under image in intermediate view
Post by: Dankriss on February 04, 2019, 05:34:31 pm
And that is why I hate php...LOL


Thanks :)