Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Uploadername, pictitle and more above the fullsize display popup  (Read 2567 times)

0 Members and 1 Guest are viewing this topic.

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107

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
« Last Edit: August 17, 2006, 03:48:50 pm by angeldevil »
Logged
a

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploadername, pictitle and more above the fullsize display popup
« Reply #1 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="'
Logged

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: Uploadername, pictitle and more above the fullsize display popup
« Reply #2 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
Logged
a
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.