View Full Version : adding a link to photo details box
December 18th, 2006, 06:03 AM
I am looking to add a gallery 2 phone service on my photo gallery where members can click on a link under a photo and then have the image sent to there mobile phone. I have the coding to send the photo to a mobile phone but I am wondering how I can add a java script link under each photo, the links will need to be different for each picture is there any way this can be done? I am guessing the best place would be where the photo details box is displayed under each thumbnail any suggestions how i can do this?
Thanks in advance
December 18th, 2006, 07:53 AM
You can edit the showphoto template and add the java as needed. You just need to use the appropriate variables from showphoto for what you need where in the java.
December 18th, 2006, 08:03 AM
thanks for the info i will take a look this evening :)
December 29th, 2006, 07:24 AM
i have had a look and still not having much joy, below is a copy of the code that is used for the service to be used on a coppermine gallery, i am guessing its only the prams that need to be changed for photopost to generate the info?
any suggestions as coding is not my best point but i am learning :o
December 29th, 2006, 08:46 AM
I am not sure if its the right stuff but give that a try
January 7th, 2007, 11:46 AM
thanks for the info you provided, i have been working on the coding since you last posted and finally got the script to work correctly with changing a couple of prams you provided :)
i have managed to add the link to the bottom of the showphoto page just above the footer but i was wonder if you or any one else knows where about i need to post the coding to have it displayed under the photo under the line "Click on image to view larger image" i have tried looking for this line but unable to locate it.
January 7th, 2007, 06:00 PM
That should just be positioning it where you want in the showphoto template
January 8th, 2007, 09:43 AM
i have tried but where ever i place the coding the location is not correct, any ideas what line of code i would need to add my coding underneath?
sorry to be a pain :o
January 8th, 2007, 11:45 AM
It all depends what your trying to do maybe somewhere near $title or $imgdisp
January 8th, 2007, 03:50 PM
i would like to add a text link url in the position shown in the attached pic if this can be done?
i have the coding all done and working just need to know which line of code i need to add my code under i have tried to locate the code my self but to no joy :(
January 8th, 2007, 04:34 PM
YOUR CODE HERE
find that in showphoto template
January 9th, 2007, 01:26 PM
i have tried adding the code but with no joy nothing displays when the code is added to the showphoto template, i then tried the code on the showphoto.php at the bottom of the page and the link is displayed all ok
any suggestions why the code will not display in the template? can i email you the code that i have incase that can not be added to template files
January 9th, 2007, 01:57 PM
Just make sure your editing the correct template set as in if your using vb3 you edit the showphoto template in the vb3enhanced directory under templates
January 10th, 2007, 02:45 AM
opps looking at the wrong template folder :o
will have a look in the vb folder thanks for the info
January 10th, 2007, 01:15 PM
thank you for all your help this has now worked a dream thank you :)
January 10th, 2007, 04:08 PM
no problem buddy
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.