Show user name Show user name
 

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]

Main Menu

Show user name

Started by leyomm, April 22, 2004, 03:35:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

leyomm

Hello, anyone knows if is possible to show in the image information the user name and not only the album name? maybe there is a hack or a mod to do that.
or, change album names for gallery name because for me in my photograph site is more important to know who´s the owner of the picture than the album´s name...
Thank you!!!!

c u


ByzzzzZZZZZZZzzzzzZZZZZZZZZZZZZZZzzzzzzzzzzz


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fusuarios.lycos.es%2Fleyomm2%2Fimagenes%2Fdemo.jpg&hash=86f57ef74f747230fdc1964515e3a5096d4ef402)



Joachim Müller

in coppermine config, take a look at the "custom fields". You can use one of them for your purpose - just label it "photographer" and it should be visible in pic info section.

GauGau

leyomm

yeah... i thought in it but i´m using the 4 customl fields (i´ve seen the modification to put more custom fields) but the problem is that i have 500 pictures on my DB so, i´m trying to find something easier :)

thank you for your help!!! ;)



ByzzzZZZZZZZZZzzzzzzZZZZZZZZZZZzzzzzzzzzzz

leyomm

I thing i have found the code line inside displayimage.php, but i don´t know what to do with that! ???
where it says "Album name" in line 8 should say user gallery name, have you got any idea to change it?

// Display picture information
function html_picinfo()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA;
global $album, $lang_picinfo, $lang_display_image_php, $lang_byte_units;

$info[$lang_picinfo['Filename']]   = htmlspecialchars($CURRENT_PIC_DATA['filename']);
$info[$lang_picinfo['Album name']] = '<span class="alblink"><a href="modules.php?name=coppermine&file=thumbnails&album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'].'</a></span>';

if ($CURRENT_PIC_DATA['votes'] > 0) {
   $info[sprintf($lang_picinfo['Rating'], $CURRENT_PIC_DATA['votes'])] = '<img src="modules/coppermine/images/rating'.round($CURRENT_PIC_DATA['pic_rating']/2000).'.gif" align="absmiddle"/>';
}


thx!!!

ByzzZZZZZZZZZZZzzzzZZZZZZZZZZZZZZZzzzzzzzzzzzzzzzzzz

Joachim Müller

ehrm, you're using the nuke port of coppermine - this board here is dedicated to the standalone version of coppermine only. Since both version differ greatly, I recommend you look for support on the nuke board - see http://forum.coppermine-gallery.net/index.php?topic=2277.0

GauGau

leyomm

ok, thx and sorry  ;)


ByzzzzZZZZZZZZZZzzzzzzzzzzzzzzzzzZZZZZZZzzzz