Quote:
Originally Posted by COOLover
Hi,
first thx for a great Mod.
second Sorry for my bad english
I hope anyone can help me.
I try to Integrate wordpress with vB. It works for the first steps realy good. Bud how can i change on the Startpage/Page (wordpress template index.php) the comment counter?
It shows ever 0 Comments. When i go into a Topic, than i have comments from the vB (as sample 3)
Can i aktivate the registration on wordpress with OpenID to register automatic on forum?
Hope you can understand and help me.
|
For the right counter on startpage replace in the index.php (from template)
Code:
<?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
with:
Code:
<?php
if (function_exists('Comment_Handler')) {
$vbridge = Comment_Handler($post->ID);
global $vbulletin;
}
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>
<?php
if (intval($vbridge[count]) === 0)
echo "No Comments »";
else
echo intval($vbridge[count])." Comments »";
?>
</a><br /><a href=<?php echo get_option('vbb_VBURL') ?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id] ?>>Add your comments</a>
but how can i use OpenID?