The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
In Postbit legacy need toshow extra field
Hi,
I need to add extra field in post bit.Let me describe, i have a customized field name 'user_status' in vb_socialgroupmember. i need to show that field value in post bit . so i need userid whose post is showing, as a sql parameter and may be this code need to write in loop from where other userinfo is retrieving for post bit. i didn't find code, where i have to write sql for retrieving that field data.Please help. Thanks in advance |
#2
|
||||
|
||||
Look in showthread.php - you can hook into the query that fetches user info, and add a join.
|
#3
|
|||
|
|||
Thanks, walking through your problem helped me find the solution to mine. I was using,
HTML Code:
<if condition="$post[userid] == 'Administrator'">
HTML Code:
<if condition="$post[userid] == 1">
Thanks again |
#4
|
|||
|
|||
Thanks for reply.But could you plz specify which portion of code is retrieving user info for postbit legacy in 'showthread.php'.Is there any other modification for sending variable to template for available there?
|
#5
|
||||
|
||||
Did you look at the showthread.php page? There is a nice big query around line 1000 (or so, my file is edited) where the posts and all the information about the posts (including the user info) is gathered. There is a hook right above there.
|
#6
|
|||
|
|||
Thankx . hope it will work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|