vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help Please ~ iTrader :( (https://vborg.vbsupport.ru/showthread.php?t=260590)

cyb3rgh0st_ 03-18-2011 10:39 AM

Help Please ~ iTrader :(
 
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

Code:

        while ($post = $db->fetch_array($posts))
{

and ends

Code:

        }
        $db->free_result($posts);

and contains a hook
Code:

                ($hook = vBulletinHook::fetch_hook('showthread_postbit_create')) ? 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


All times are GMT. The time now is 07:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01009 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete