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

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

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