coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: boysmakesh.com on November 18, 2008, 01:13:21 AM

Title: to display user banner below full size image
Post by: boysmakesh.com on November 18, 2008, 01:13:21 AM
first of all i am sorry if i posted this in wrong place.please move this to correct one...

whether it is possible to display banner or java script provided (in profile field 6 ie biography field)by my user  below full size image which he/she uploaded to my gallery?
***already added adsense at the top of the full size image

example:
  if user1 uploads pic1 to my gallery and if user2 views it(pic1) it should display user1's banner or script that he provided in field 6.if he changes the code it should be reflected while viewing.

if this is possible Please help me, in which file i have to made modifications and what are the modifications
http://www.images.boysmakesh.com/displayimage.php?album=4&pos=0 (http://www.images.boysmakesh.com/displayimage.php?album=4&pos=0)
Title: Re: to display user banner below full size image
Post by: Joachim Müller on November 19, 2008, 07:16:24 AM
You marked your thread as "solved". Did this happen by accident or did you actually solve your issue on your own? If yes, please post what you did for the benefit of others with similar issues.
Title: Re: to display user banner below full size image
Post by: boysmakesh.com on November 19, 2008, 10:48:22 PM
i am extremely sorry.now only i found that i marked my thread as solved.this was done accidently. :(
please dont get angry on me..i assure it wont happen again.

i want a solution for my thread...please..
Title: Re: to display user banner below full size image
Post by: Joachim Müller on November 20, 2008, 08:32:13 AM
Allowing users to use HTML or JavaScript would be extremely bad in terms of security, so I can only warn you to implement a feature that makes one of the profile fields actually parse HTML.
The feature that comes closest to what you're up to is the avatar hack that is integrated into Stramm's modpack. It allows the user to pick an image as avatar that will then be displayed in various places (profile etc.). If would probably not be hard to display the avatar as well on the intermediate image pages. Not sure though, as I have never looked that deep into the modpack.