View Full Version : Help Please ~ iTrader :(
cyb3rgh0st_
03-18-2011, 10:39 AM
how can i add itrader to post bit like this
https://vborg.vbsupport.ru/
Also How Can I Add Bit Like Verified Above.. so it will show if user is a verified member.
richy96
03-18-2011, 01:30 PM
You would output the data by adding a variable containing the required value to the postbits template (or postbits_legacy if you use vertical postbits)
You would need to modify the showthread.php file somewhere in the loop that generates the postbits for each post in the thread
This loop starts
while ($post = $db->fetch_array($posts))
{
and ends
}
$db->free_result($posts);
and contains a hook
($hook = vBulletinHook::fetch_hook('showthread_postbit_crea te')) ? eval($hook) : false;
that you could use to add your code if you don't want to edit the php file directly
Basically what you need to do is make sure your variable (eg: $membersitrader) contains the author of that posts irating (27 in your example) each time the while loop iterates. Then add $membersitrader to the postbits template at the point you want it to display and you will get the desired result :D
You can get the owner of each post from the $post array while you are within the while loop
Where you read the irating value from I don't know as I don't have that on my site but it must be available in the database if it is not already stored in one of the common vbulletin arrays
I hope this info gives you enough idea how to solve your problem
Rich
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.