Quote:
Originally Posted by RobInjection
Woohoo, thanks for the tip about editing my database. I got it working.
Now my question is, is there any way I can call the user's avatar and their User ID within Wordpress? Then, this would be bliss!
Thanks
|
Yes, you can. Make sure $vbulletin is global (global $vbulletin

then:
Code:
<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $reply['userid'] ?>&dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">
Or if you mean the article AUTHORS avatar:
Code:
<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $vbridge[thread_starter] ?>&dateline=<?php echo TIMENOW ?>" alt="<?php echo $vbridge['postusername'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">