The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
HI , i am running a joomla site . I would like to auto assign avatar for the user using Vb profile avatar. what is the complete code for me to use to call in these avatar?
i need this tol use this in all the other comp such as commenting system. thanks you.. |
|
#2
|
||||
|
||||
|
<a href="http://members.vbulletin.com/api/" target="_blank">http://members.vbulletin.com/api/</a>
See "fetch_avatar_url()". |
|
#3
|
|||
|
|||
|
thank you very much.
fetch_avatar_url (line 241) void fetch_avatar_url (mixed $userid) this is what it stated. how do i use it in joomla cms? a sample or hint can help me alot to kickstart . what i would like to add is a link to fetch the member avatar. example : upload your images (upload box ) or click here to use your forum avatar.(once clicked avarat fetched) this link help litlye https://vborg.vbsupport.ru/showthread.php?t=98009 thank you. sorry for nmake it complicated. |
|
#4
|
||||
|
||||
|
Include vBulletin's backend and use the function.
|
|
#5
|
|||
|
|||
|
thanks for reply.
what you think like this. PHP Code:
|
|
#6
|
||||
|
||||
|
PHP Code:
|
|
#7
|
|||
|
|||
|
Excellent somwhere there now
but how do i get it to fetch ? my original code is Code:
<td align="center" style="width:150px; padding: 6px 3px 5px 5px;">
<?php
if ( $img != "")
echo $img;
else
// echo "<img src='/images/150px.jpg' alt='Image' title='Image'/>";
echo $plugins["gallery"];
?>
<br>
<?php echo $ico; ?>
</td>
this shld be last step. |
|
#8
|
||||
|
||||
|
The variable, $bbuseravatarurl, contains the URL to the avatar.
|
|
#9
|
|||
|
|||
|
Code:
<td align="center" style="width:150px; padding: 6px 3px 5px 5px;">
<?php
$cwd = getcwd();
chdir('public_html/forum');
require_once('./global.php');
if ($vbulletin->userinfo['userid'])
{
require_once('./includes/functions_user.php');
$bbuseravatarurl = fetch_avatar_url($vbulletin->userinfo['userid']);
if (!$bbuseravatarurl)
{
$bbuseravatarurl = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
}
chdir($cwd);
<br>
<?php echo $bbuseravatarurl; ?>
</td>
few doubts ; 1.chdir('/home/site/public_html/forums'); need to include on top of within php , and the home/site for mycase is nothing. mysite.com/form is the path . unless its the cpanel dir name there need changes 2. <?php echo $bbuseravatarurl; ?> to fetch images ? thanks alot. |
|
#10
|
||||
|
||||
|
Wait a sec, are you using vBulletin templates?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|