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

Title: Uploadername, pictitle and more above the fullsize display popup
Post 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:

Code: [Select]
<?php     echo  '<a href="javascript: window.close()"><img src="'
and replace whit:

Code: [Select]
<?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:

Code: [Select]
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
Title: Re: Uploadername, pictitle and more above the fullsize display popup
Post by: Joachim Müller on August 17, 2006, 10:36:10 pm
For better readability, standards-compliance etc. here's your suggested piece of code:
Code: [Select]
<?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="'
Title: Re: Uploadername, pictitle and more above the fullsize display popup
Post by: angeldevil on August 17, 2006, 11:53:14 pm
For better readability, standards-compliance etc. here's your suggested piece of code:
Code: [Select]
<?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