[feat. request] Ability to put the USER_NAME just after the TITLE of a picture [feat. request] Ability to put the USER_NAME just after the TITLE of a picture
 

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

[feat. request] Ability to put the USER_NAME just after the TITLE of a picture

Started by protox, September 05, 2005, 04:35:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

protox

Yep, could be very useful to be able to put the name of the uploader: {USER_NAME}  just after the title of the picture..

We could have something like " This is the name of the creation by name of the uploader " just under the picture !

I've allready tryed to edit the file called theme.php just after
$template_display_picture
But I get an error .. ???
Latest shot from " Les disséqueurs de société " :

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fx-poz.org%2Fcpmfetch%2Fcfimageget.php%3Fcmd%3Dlast&hash=6c9ccde658006a5ed432bbbd56630302b3cb9b7d)

Stramm

you mean something like
http://stramm.mine.nu/displayimage.php?album=32&pos=3

edit... I hope I get it together again

in displayimage find function html_img_nav_menu()
near the end of it add (to similar lines)
        '{OWNER_NAME}' => $CURRENT_PIC_DATA['owner_name'],


then in theme.php (as exaple I use classic) find
$template_img_navbar = <<<EOT
and below replace {PIC_POS} with {PIC_POS} from {OWNER_NAME}

next edit: sorry ;)
works the same if you want to have it not in the navbar but below the pic.. then you add the above mentioned line {OWNER_NAME}.... to the function html_picture() and in $template_display_picture you place {OWNER_NAME} where you want to have it

protox

and it's ... working !! woha :o
thanks alot for this quickhack mistah, this makes me happy ;D
--
By the way how did you hide the smileys icons like this ? I didn't see any hack about this nice other feature :-[ < shame on him
--
Edit : By the way 2, what is this pure mod you've installed to get avatar like this ? it's really nice !
Latest shot from " Les disséqueurs de société " :

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fx-poz.org%2Fcpmfetch%2Fcfimageget.php%3Fcmd%3Dlast&hash=6c9ccde658006a5ed432bbbd56630302b3cb9b7d)

Stramm