The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do i add a custom postbit automatically?
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?
|
#2
|
||||
|
||||
HTML Code:
$post[fieldx] |
#3
|
|||
|
|||
sorry, where do i put this? i dont quite know what you meant
|
#4
|
||||
|
||||
You COULD add it underneath their post count by editing the postbit or postbit_legacy template and adding it underneath this code
HTML Code:
<div> $vbphrase[posts]: $post[posts] </div> |
#5
|
|||
|
|||
so this is what i have:
Code:
<div> $vbphrase[posts]: $post[posts] </div> <div> Experience: $post[field70] </div> |
#6
|
||||
|
||||
Do you have a "profilefield 70"? As in, AdminCP > User Profile Fields > User Profile Field Manager, and you have field70 there?
|
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
What is the name of the field you added to your user table? You may be able to call it as $post[yourfield]
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|