coppermine-gallery.com/forum

No Support => Feature requests => Topic started by: protox on September 05, 2005, 04:35:05 PM

Title: [feat. request] Ability to put the USER_NAME just after the TITLE of a picture
Post by: protox on September 05, 2005, 04:35:05 PM
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 .. ???
Title: Re: [feat. request] Ability to put the USER_NAME just after the TITLE of a picture
Post by: Stramm on September 05, 2005, 04:40:19 PM
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
Title: Re: [feat. request] Ability to put the USER_NAME just after the TITLE of a pictu
Post by: protox on September 06, 2005, 10:21:17 AM
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 !
Title: Re: [feat. request] Ability to put the USER_NAME just after the TITLE of a picture
Post by: Stramm on September 06, 2005, 10:33:35 AM
I haven't posted this hack.. to be honest, I've forgotten about it ;)