Uploadername, pictitle and more above the fullsize display popup Uploadername, pictitle and more above the fullsize display popup
 

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

Uploadername, pictitle and more above the fullsize display popup

Started by angeldevil, August 17, 2006, 03:20:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

angeldevil

Hi, reading some Stramm posts and following a bmossavari suggestion, whit some little variations I resolved a my
problem and realized this simple mod.

This little modification allows to show the uploadername, picname and image resolution above the image when fullsize
displayed it.
In adding the fullsize image will come shown on the your favorite background color


1) Copy from theme/sample/theme.php  the functions  theme_display_fullsize_pic  in your favorite  theme.php (if you
don't have it already)

2) In the same function theme_display_fullsize_pic 
    find:

<?php     echo  '<a href="javascript: window.close()"><img src="'

and replace whit:

<?php     echo  '<font size=2><font color=white> author:<b> '.$row['owner_name'].'</b> &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;title:<b> '.$row['title'].' &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;</b>resolution: <b>'.$row['pwidth'].' x '.$row['pheight'].'</b> pixels<b></font></b><br><a href="javascript: window.close()"><img src="'

You can change some parameters like font size and font color


3) If you want, always in the function theme_display_fullsize_pic 
    find:

body { margin: 0; padding: 0; background-color: gray; }

and change the background in your favorite color instead of default gray


A special thanks for Stramm and bmossavari

thats all folks
a

Joachim Müller

For better readability, standards-compliance etc. here's your suggested piece of code:<?php
echo  '
<span style="color:white;font-size:1.2em">
  Author: <strong>'
.$row['owner_name'].'</strong>
  &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;
  Title: <strong>'
.$row['title'].'</strong>
  &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;
  Resolution: <strong>'
.$row['pwidth'].' x '.$row['pheight'].'</strong> px
</span>
<br />
<a href="javascript: window.close()"><img src="'

angeldevil

Quote from: GauGau on August 17, 2006, 10:36:10 PM
For better readability, standards-compliance etc. here's your suggested piece of code:<?php
echo  '
<span style="color:white;font-size:1.2em">
  Author: <strong>'
.$row['owner_name'].'</strong>
  &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;
  Title: <strong>'
.$row['title'].'</strong>
  &nbsp;&nbsp;&nbsp;&nbsp;- &nbsp;&nbsp;&nbsp;&nbsp;
  Resolution: <strong>'
.$row['pwidth'].' x '.$row['pheight'].'</strong> px
</span>
<br />
<a href="javascript: window.close()"><img src="'


exact suggestion!

many thanks GauGau
a