View Full Version : Custom Fields
Damir
08-25-2006, 11:08 AM
How can i add manualy custom field in template what do i need to write for that custom filed to show in GARS_forumdisplay or in GARS_threadbit.
The filed name is gars3.
The Geek
08-25-2006, 02:01 PM
Put $thread[gars3] in your threadbit
Damir
09-30-2006, 09:39 AM
I would like to show the same custom filed on gars_pb but $thread[gars3] doesent work any idea?
The Geek
09-30-2006, 12:45 PM
Try $post[gars3]
HTHs
Damir
09-30-2006, 12:55 PM
No doesn't work any idea?
Damir
09-30-2006, 02:33 PM
Can you help me out with this Sam and i am finished with my site.
The Geek
09-30-2006, 02:54 PM
you need to put the field name in there, not just gars3... go to custom fields, look at the field name next to the custom field... edit your GARS_pb template... put $post[FIELDNAME] in there. If you want it to appear in the threadbit template... put $thread[FIELDNAME] in it.
HTHs
Damir
09-30-2006, 03:01 PM
Ok i have put this $post[gars6] but nothing the filed name is gars6
587
The Geek
09-30-2006, 11:34 PM
Does it appear in the custom field module correctly?
Damir
10-01-2006, 10:27 AM
Yes there appears correctly. But when i want to add itin GARS_pb then it dont work i think its a bug.
The Geek
10-01-2006, 12:50 PM
Ill test around a bit and try it out.
Damir
10-01-2006, 03:48 PM
Ok when will i hear from you?
The Geek
10-01-2006, 08:39 PM
Soon :) Just need to run the tests :)
Do you actually need to have the module added to the module set for the custom fields to display in the GARS_pb ?
I don't want to display the module itself - I just want to show the custom field in my postbit template.
I'm having problems too ... I can see the custom field (gars1) in the admin area in all the places I expect it to show - and if I add the module, it shows on the thread as well, but I just want it in the postbit, not in the module.
Adding the following to the postbit doesn't work, in fact just $post[gars1] on its own doesn't work at all either:
<if condition="$post['gars1']">$post[gars1]</if>
Damir
10-02-2006, 06:32 AM
Do you actually need to have the module added to the module set for the custom fields to display in the GARS_pb ?
I don't want to display the module itself - I just want to show the custom field in my postbit template.
I'm having problems too ... I can see the custom field (gars1) in the admin area in all the places I expect it to show - and if I add the module, it shows on the thread as well, but I just want it in the postbit, not in the module.
Adding the following to the postbit doesn't work, in fact just $post[gars1] on its own doesn't work at all either:
<if condition="$post['gars1']">$post[gars1]</if>
Yes that is true Sam is testing it we should soon have more news.
Damir
10-03-2006, 12:25 PM
Any news Sam?
The Geek
10-03-2006, 03:56 PM
Yup... I can confirm that it works in threadbits as stated above (i.e. $thread[gars1] however it doesnt work as intended in postbits (i.e. $post[gars1]). I class this as a bug and have fixed it for 2.0.1 which will be out in the next couple of days.
HTHs
Thanks Geek - much appreciated
Damir
10-04-2006, 05:06 AM
Looking forward to the 2.0.1
Damir
10-04-2006, 11:27 AM
Will there be any other fixes in 2.0.1
The Geek
10-04-2006, 03:16 PM
Most things in the tracker
Damir
10-07-2006, 02:39 PM
Any news when will the update be?
The Geek
10-07-2006, 11:01 PM
Most likely tomorrow morning
Damir
10-08-2006, 03:12 PM
Great looking forward to that. Thanks Sam
The Geek
10-08-2006, 08:43 PM
Sorry Damir, I wasn't able to get it properly prepped for release today. I'm out of town until Tomorrow night and Ill release it Tuesday.
Thanks for your patience.
Ramses
10-12-2006, 10:03 PM
you need to put the field name in there, not just gars3... go to custom fields, look at the field name next to the custom field... edit your GARS_pb template... put $post[FIELDNAME] in there. If you want it to appear in the threadbit template... put $thread[FIELDNAME] in it.
HTHs
For me it's nice done, thanks.
Another slight problem ... the custom fields are working for me now in the postbit (thanks !) ... but they are not parsing BBCode in the field in either the postbit or the threadbit.
Will add it to the issue tracker.
The Geek
10-13-2006, 04:38 PM
hmm.... thanks!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.