Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2006, 10:27 AM
mcdull mcdull is offline
 
Join Date: Jun 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default using Plugin to display SQL result in postbit

All I need is to display a value return from SQL in the Postbit.

I use a plugin to hook into the postbit_display_start using

<?php
$post_reps=$db->query_first("SELECT COUNT(userid) as countrep FROM " . TABLE_PREFIX . "reputation WHERE postid = " . $postid );

$rep_given = $post_reps['countrep'];

eval('print_output("' . fetch_template('postbit') . '");');
?>

but the page is totally blank. Can anyone please help me?
Thanks

problem temporary solved.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.