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: [feat. request] Ability to put the USER_NAME just after the TITLE of a picture  (Read 3154 times)

0 Members and 1 Guest are viewing this topic.

protox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 49
  • Digital Photographer
    • x-poz

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
Code: [Select]
$template_display_pictureBut I get an error .. ???
Logged
Latest shot from " Les disséqueurs de société " :

(http://x-poz.org/cpmfetch/cfimageget.php?cmd=last)

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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)
Code: [Select]
        '{OWNER_NAME}' => $CURRENT_PIC_DATA['owner_name'],

then in theme.php (as exaple I use classic) find
Code: [Select]
$template_img_navbar = <<<EOTand below replace
Code: [Select]
{PIC_POS} with
Code: [Select]
{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
« Last Edit: September 05, 2005, 04:58:48 pm by Stramm »
Logged

protox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 49
  • Digital Photographer
    • x-poz

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 !
« Last Edit: September 06, 2005, 10:33:19 am by protox »
Logged
Latest shot from " Les disséqueurs de société " :

(http://x-poz.org/cpmfetch/cfimageget.php?cmd=last)

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

I haven't posted this hack.. to be honest, I've forgotten about it ;)
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.