PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old January 9th, 2006, 05:27 PM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Call a specific custom field?

Hi!
I'm trying to output a specific custom field in another place of the template but the solution(s) I've found for 3.0.x don't work in 3.5.x.
How can I do it now?

Thanks in advance for any info!
Ricardo
rbl is offline   Reply With Quote
Old January 9th, 2006, 08:32 PM   #2 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Ricardo, what method were you using for 3.0.x?
KW802 is offline   Reply With Quote
Old January 10th, 2006, 03:29 AM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
One posted by Brian where you search showimage.php for the text in bold and add what's bellow:
$thisfield = 'field' . $field['fieldid'];
if ($field['fieldid'] == 'X')
{
$myvarname = $field['value'];
}
With X being the field id number.

I've also tried every variation of the vars like $fieldid[3], $field[field3], $customfield[3], and so on because before 3.5 I was using one of them.
I remember Brian helping me out on this but I can't locate the thread now that the forums were moved here.
rbl is offline   Reply With Quote
Old January 11th, 2006, 07:20 AM   #4 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Kevin, any idea?
rbl is offline   Reply With Quote
Old January 11th, 2006, 09:28 AM   #5 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
RBL,

In showimage.php around line 489 is where the section is that builds the customfields. At around line 503 you'll see...
Code:
Content visible to verified customers only.
Below that line try adding your "$myvarname = $field['value'];" command and let me know if that works.
KW802 is offline   Reply With Quote
Old January 12th, 2006, 01:52 AM   #6 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Kevin, your code didn't work but Brian's (post #3) worked on your location!

Thanks! =)
Ricardo
rbl is offline   Reply With Quote
Old January 12th, 2006, 09:13 AM   #7 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
RBL, I should've specified a bit more clearly.... when I said try adding the command I should've said the entire "If..." statement. Glad to see you got it working.
KW802 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
call a specific category "additional field" in a template? rbl Photopost Pro How Do I...? 6 December 11th, 2005 02:22 PM
Custom Field + Field Req'd = null Ocean44 Bugs From 1.0.0 2 April 27th, 2005 03:25 PM
How do I put a custom block at the top of specific categories? Regs How Do I? - vBulletin 3.0.X 8 January 6th, 2005 04:55 PM
HTML code for value of a specific custom field? Shon How Do I? - vBulletin 3.0.X 3 December 17th, 2004 02:54 PM


All times are GMT -5. The time now is 02:40 AM.

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