View Full Version : How do i add a custom postbit automatically?
googlexx
06-24-2009, 12:08 AM
Say i have a row in the user table called experience. How do i automatically show the number in their field next to their name on every post? like where their post count is?
HMBeaty
06-24-2009, 12:14 AM
$post[fieldx] and change x to your field number
googlexx
06-24-2009, 12:16 AM
$post[fieldx] and change x to your field number
sorry, where do i put this? i dont quite know what you meant
HMBeaty
06-24-2009, 12:19 AM
You COULD add it underneath their post count by editing the postbit or postbit_legacy template and adding it underneath this code
<div>
$vbphrase[posts]: $post[posts]
</div>
googlexx
06-24-2009, 12:28 AM
so this is what i have:
<div>
$vbphrase[posts]: $post[posts]
</div>
<div>
Experience: $post[field70]
</div>
and its not showing anything
HMBeaty
06-24-2009, 12:30 AM
Do you have a "profilefield 70"? As in, AdminCP > User Profile Fields > User Profile Field Manager, and you have field70 there?
googlexx
06-24-2009, 12:39 AM
oh, ok now how do i make this number be affected by my experience row in the user table of the database?
or is there a better way to automatically change this number?
EDIT: i think i figured it out.... is it under the userfield table and then fieldX?
correct me if im wrong
Lynne
06-24-2009, 12:58 AM
What is the name of the field you added to your user table? You may be able to call it as $post[yourfield]
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.