hyperlinking a URL in vbGallery custom field
I added a custom field to my vBA gallery that allows a user to give a hyperlink that goes along with the image they uploaded.
I used to have it hyperlinked in my old version of vbGallery, but when I just upgraded my vb to 3.5.4 and the current version of vbGallery I can't seem to get it hyperlinked.
Can you tell me how I can hyperlink that custom profile field?
Good catch. I did the same thing on my site and didn't even realize that the 1.0.2 upgrade broke it. I remember talking with Brian about it so I searched the threads and came across this...
Try post #7 in that thread.
Thanks Kevin. I think I remember you helping me with this last time :)
I tried the suggestion in that thread and it didn't seem to work.
I'll play around with it on my main site this weekend.
... or sooner if I get bored at work. :D
OK, looks like sometime after that other thread's conversation it was indeed turned into a default option.
Go into the category and head down to the "Custom Fields" section... in there you'll see an option named "Automatically Parse Links In Text" and make sure it is turned on.
The 'gotcha' is that the flag works when images are uploaded or edited but not when they are displayed. That means if you have any existing images with a link in the text that was uploaded before the flag was turned on then they won't be parsed unless the image is edited.
Any idea how I could hyperlink an image on showimage.php to that custom field URL?
Would it just be a matter of editing showimage.php and calling the $customfield4 in an <a href tag? I can't seem to see where the image is called in showimage.php
I used to have a copyright notice that I added right under the image on the showimage.php page, but now I can't figure how how I added that text in there.
I'm dumb. I realized that you make HTML changes in the template files, not the PHP files.
Still not sure how to call customfield 1 in the showimage template though.
Ok, found this thread that shows how to call my customfield1 into the showimage template:
Got it working.
Now the complicated part :)
When I call that $customfield in the template, I don't want THAT particular instance to be autolinked. I want it to just show as plain text so I can style the ink (by linking it to an image), like so:
<a href="$customfield"><img src="example.jpg"></a>
Is there a way to take the code in showimage.php
Try doing it the default way and use the maintence tools to rebuild something like the mini pics
What do you mean by "the default way"?
Try KW's advice
|All times are GMT -5. The time now is 04:29 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0