Adding text under image in intermediate view Adding text under image in intermediate view
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Adding text under image in intermediate view

Started by Dankriss, February 03, 2019, 09:32:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dankriss

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 :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

ron4mac

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

Dankriss

Thank you!


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


Kriss :)
Good with HTML and CSS but no good with script... so please bear with me.. :)

Dankriss

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]

Good with HTML and CSS but no good with script... so please bear with me.. :)

ron4mac

It would seem that what you copied was incomplete or not placed correctly. Please attach your theme.php file.

Dankriss

Good with HTML and CSS but no good with script... so please bear with me.. :)

ron4mac

It's PHP being picky.  You just need a carriage return after the last line.

Dankriss

Good with HTML and CSS but no good with script... so please bear with me.. :)