Log in

View Full Version : custom fields in postbit


GotVtec
03-29-2009, 09:59 PM
I have a custom Garage feature that I added to my site. When I upgraded to 3.8, I lost some of my legacy code, and now I can't figure out how I did it previously.

In my postbit_legacy template I have this code:


<if condition="$post['garage']"><div><a href="/forums/vbgarage.php?do=view&amp;id=$post[userid]">$post[year] $post[make] $post[model]</a></div></if>


Basically a conditional statement that looked to see if a user had a garage, then pulled out their garage info, however, I can not figure out how to get that info back into the $post array.

Can someone provide me some guidance?

Thanks!

Lynne
03-29-2009, 11:08 PM
You'll have to write a plugin to plugin to the post query and add the fields, and table, that you need. But, that is info that you would have to find yourself since it is a custom job. Maybe contact the person who did the mod for you in the first place.

GotVtec
03-29-2009, 11:46 PM
You'll have to write a plugin to plugin to the post query and add the fields, and table, that you need. But, that is info that you would have to find yourself since it is a custom job. Maybe contact the person who did the mod for you in the first place.

That's just it, I did it the first time and can't remember what files I edited to make the change.

--------------- Added 1238421042 at 1238421042 ---------------

What class or function pulls out all of the user info for the postbit? Like their post count, location, username, etc.?

Lynne
03-30-2009, 03:16 PM
Why don't you take a look at the showthread.php page and you should see where the $posts info is pulled.