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
-
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 :)
-
From the file include/themes.inc.php copy lines 853-898:
// 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).
-
Thank you!
Will do that this evening and come back if I have any problems :)
Kriss :)
-
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]
-
It would seem that what you copied was incomplete or not placed correctly. Please attach your theme.php file.
-
Here you go...
-
It's PHP being picky. You just need a carriage return after the last line.
-
And that is why I hate php...LOL
Thanks :)