PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old April 7th, 2006, 03:10 AM   #1 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
Question 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?
rrr is offline   Reply With Quote
Old April 7th, 2006, 09:57 AM   #2 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
rrr,

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...

Parsing HTML in the custom fields?

Try post #7 in that thread.
KW802 is offline   Reply With Quote
Old April 7th, 2006, 01:50 PM   #3 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
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 tried:

Code:
Content visible to verified customers only.
and

Code:
Content visible to verified customers only.
And neither seemed to hyperlink that the URL
rrr is offline   Reply With Quote
Old April 7th, 2006, 03:08 PM   #4 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
I'll play around with it on my main site this weekend.

... or sooner if I get bored at work.
KW802 is offline   Reply With Quote
Old April 7th, 2006, 03:24 PM   #5 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
rrr,

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.
KW802 is offline   Reply With Quote
Old April 7th, 2006, 06:00 PM   #6 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
Thanks!

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.
rrr is offline   Reply With Quote
Old April 7th, 2006, 06:31 PM   #7 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
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.
rrr is offline   Reply With Quote
Old April 7th, 2006, 06:50 PM   #8 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
Ok, found this thread that shows how to call my customfield1 into the showimage template:
Call a specific custom field?

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>

or
<a href="$customfield">$imagecode</a>

Is there a way to take the code in showimage.php

Code:
Content visible to verified customers only.
And turn OFF the convert_url_to_bbcode for $shoplink for that instance so it just echos the plain text of http://www.example.com
rrr is offline   Reply With Quote
Old April 7th, 2006, 07:54 PM   #9 (permalink)
Member
 
Join Date: Aug 2003
Posts: 98
Try doing it the default way and use the maintence tools to rebuild something like the mini pics
PhoenixDown21 is offline   Reply With Quote
Old April 7th, 2006, 08:26 PM   #10 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
What do you mean by "the default way"?
rrr is offline   Reply With Quote
Old April 11th, 2006, 04:27 PM   #11 (permalink)
rrr
Junior Member
Verified Customer
 
Join Date: Jan 2004
Posts: 14
Anyone?
rrr is offline   Reply With Quote
Old April 16th, 2006, 11:44 PM   #12 (permalink)
Member
 
Join Date: Aug 2003
Posts: 98
rrr,

Try KW's advice
Quote:
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.
Then try rebuilding pics to see if that update the existing photos so the hyperlink works properly.
PhoenixDown21 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you add a custom field? 8kobe vBGallery Suggestions 9 February 19th, 2006 02:47 PM
Call a specific custom field? rbl How Do I? - vBulletin 3.5.X 6 January 12th, 2006 09:13 AM
custom field for User profile makhmal Before You Buy 1 May 14th, 2005 02:32 PM
Custom Field + Field Req'd = null Ocean44 Bugs From 1.0.0 2 April 27th, 2005 03:25 PM
URL field imported_tormodg vBGallery Suggestions 0 January 1st, 2005 12:17 PM


All times are GMT -5. The time now is 03:40 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0