PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.5.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/)
-   -   Call a specific custom field? (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/122120-call-specific-custom-field.html)

rbl January 9th, 2006 05:27 PM

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

KW802 January 9th, 2006 08:32 PM

Ricardo, what method were you using for 3.0.x?

rbl January 10th, 2006 03:29 AM

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 January 11th, 2006 07:20 AM

Kevin, any idea?

KW802 January 11th, 2006 09:28 AM

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.

rbl January 12th, 2006 01:52 AM

Kevin, your code didn't work but Brian's (post #3) worked on your location!

Thanks! =)
Ricardo

KW802 January 12th, 2006 09:13 AM

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.


All times are GMT -5. The time now is 12:55 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97