Advanced search  

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

Pages: [1]   Go Down

Author Topic: Adding text under image in intermediate view  (Read 7548 times)

0 Members and 1 Guest are viewing this topic.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Adding text under image in intermediate view
« 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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Adding text under image in intermediate view
« Reply #1 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).
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Adding text under image in intermediate view
« Reply #2 on: February 03, 2019, 02:14:14 pm »

Thank you!


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


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

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Adding text under image in intermediate view
« Reply #3 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]

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

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Adding text under image in intermediate view
« Reply #4 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.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Adding text under image in intermediate view
« Reply #5 on: February 04, 2019, 05:17:19 pm »

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

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Adding text under image in intermediate view
« Reply #6 on: February 04, 2019, 05:29:53 pm »

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

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 97
    • Nikmania
Re: Adding text under image in intermediate view
« Reply #7 on: February 04, 2019, 05:34:31 pm »

And that is why I hate php...LOL


Thanks :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.