Is it possible to add link to public Picture? I am posting some pictures from a Photographer and I need to add a link to his website within the picture.
Regards,
Tradock
Is it possible to add link to public Picture? I am posting some pictures from a Photographer and I need to add a link to his website within the picture. Regards, Tradock |
Are you using the photo module to upload or are you just adding them to an html page ? https://dolphin-techs.com - Skype: Dolphin Techs |
I am uploading them with the picture module. It would be different if posting a blog since the blog has an HTML panel. Regards, Tradock |
Hi, Is it possible to add an HTML code to a picture loaded with the picture module? This is important because I will be promoting items from a lot of photographers and I need to link the pictures to this members websites. Regards, Tradock |
Yes, this would be possible but it requires changes to the uploader code and the photos module's template. You also need to remove the script that blacks out the page; excluding image, when one clicks on the image. Another solution would be to have a link on the page; either a new block or added to the info block, to the photographer's website. Geeks, making the world a better place |
"Another solution would be to have a link on the page; either a new block or added to the info block, to the photographer's website." I don't think that the first solution is a bit too much work! This one looks promising however I am uploading the pictures using the Picture Module"; How can I add a link to that picture after is loaded? Meaning, what code will I insert along with the picture before is publish? I hope I am clear enough. To elaborate on what I want; When you select a "Public Picture" it should show the picture and then if you click on it again it should take you to the owner's website if there is a link. (this is what happens in Pinterest and I thought the same since this dolphin module was inspired in Pinterest). if not then; there any module on the market to get this done? Regards, Tradock |
add a extra field in the add image form where you can enter the url for the website. make this field optional in DB. then change the code around the image and add a <a href="_image_url_"><img> then when you click the photo it opens the website
Like GG said: but it requires changes to the uploader code and the photos module's |
We are getting a clearer idea of what you want. You are talking about when you are looking at the thumbnails of public photos. Normally clicking on the thumbnail will take you to the regular view of the image at the album page. Instead, you want to click on the thumbnail and go to the photographer's website. My suggest was to have the URL located as part of the info block or a separate block; you go to the regular view of the image then you can see the website of the photographer. However, you want it as I outlined above. Now, adding the URL to the thumbnail is the easy part, that just requires making changes to the photo module's template. As was stated, you are going to have to have some place for the person when they upload an image to add their website. This means adding a field to the uploader form that will save the website URL to the database. Then when the search part of the photo module generates the thumbnail images, it will pull the URL from the database and it can then be added to the thumbnail. The part requiring work is adding the field to the photo uploader so it can be retrieved when needed. Geeks, making the world a better place |
Instead of adding the URL to the uploader where it has to be entered each time, it would be better to add the URL to the member's profile; where they add it only one time. What we need to do then is to be able to pull the URL from the Profiles table and use it in the photos module search script. You could add a function to the search module to retrieve the URL from the Profile table and store it in a key; then the key can be used in the template. Geeks, making the world a better place |
Been looking at this, but until you have done it which I need... Why not just put the link in the comments as here. http://jacksonville.dyndns.tv/m/photos/view/My-Favorite-Spot ManOfTeal.COM a Proud UNA site, six years running strong! |
Do a search on the forums; might be better done with an offsite search engine, for adding a URL to the profile form. I think some encountered a slight problem with it and there was a discussion. Adding the URL to the profile form is the easy bit. Now what we need to do is to add to the photos module's to be able to retrieve the URL and place it in a key; that key is then used to form the URL in place of the regular URL that Dolphin places to the photo view page. I don't have time to work on this now but maybe one of the coders will help. Geeks, making the world a better place |
GG that is a good idea! much easier solution :-) |
Just so you guys know.... photos, videos, and files all use the same generic upload form... so if you change anything for one it will go across all 3 modules. You would need to re code the photos module to call it's own upload form if you want to add custom fields to it. https://dolphin-techs.com - Skype: Dolphin Techs |
I like the link idea but what I did was insert the link in the description field via the database getting around whatever stops that link from being able to be put there by others. So if you have a group like a photographer you insert the link into the description for all his via the database... Csampson |
I think the way to do it is like I suggested, allow a member to be able to add a site url to their profiles Then instead of messing around with the uploader; which is messy since as dolphin_jay pointed out used the files uploader for photos, you use the search part. I changed the search part to add the fancybox code to the URL instead of the image view page. Grab the URL from the profiles and use that in the URL around the thumbnail. Actually, as anyone knows that mess with Dolphin code, the thumbnail is actually the background image of the box; however, if you look at the photo template, you will see how the image view URL is added. Geeks, making the world a better place |
These are great ideas, but I what I need; Is for me or a member to upload a picture from a Photographer website i.e. Flicker (just the picture) and then on the description box be able to add a link to his website and complete the posting. This is what pinterest.com has in essence.
|
OK, you just changed the rules again; you don't upload a photo from a website, you upload from your hard drive. You want to embed a photo from some site such as Flicker (I was thinking the photographer would have her own website, not using a storage site); or you want to import them. To add a URL to the description you just type it in. However, you originally said you wanted to add an anchor tag; the <a> thingy to the thumbnail. What I am going to suggest is that you carefully craft the specifications on what you want to occur and then post it in the jobs section. Geeks, making the world a better place |
Hi geek_girl, My apologies, I should be more clear, When I said a picture from a photographer, I don't mean I unloaded from a website i.e. Flicker. I mean downloaded that photo in my computer but it belongs to a Flicker photographer and I need to give that person credit and he holds the "copyrights " I will be using a lot of pictures from different websites and by linking that picture to it's owner I have no problems. |