forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: angeldevil on August 17, 2006, 03:20:45 pm
-
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> - title:<b> '.$row['title'].' - </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
-
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>
-
Title: <strong>'.$row['title'].'</strong>
-
Resolution: <strong>'.$row['pwidth'].' x '.$row['pheight'].'</strong> px
</span>
<br />
<a href="javascript: window.close()"><img src="'
-
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>
-
Title: <strong>'.$row['title'].'</strong>
-
Resolution: <strong>'.$row['pwidth'].' x '.$row['pheight'].'</strong> px
</span>
<br />
<a href="javascript: window.close()"><img src="'
exact suggestion!
many thanks GauGau