![]() |
extract avatar
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.. |
<a href="http://members.vbulletin.com/api/" target="_blank">http://members.vbulletin.com/api/</a>
See "fetch_avatar_url()". |
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. |
Include vBulletin's backend and use the function.
|
thanks for reply.
what you think like this. PHP Code:
|
PHP Code:
|
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;"> this shld be last step. |
The variable, $bbuseravatarurl, contains the URL to the avatar.
|
Code:
<td align="center" style="width:150px; padding: 6px 3px 5px 5px;"> 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. |
Wait a sec, are you using vBulletin templates?
|
Quote:
I need to use this in Joomla. thank you. |
The bit of code I gave you needs to go at the top of the page, before any HTML code.
|
Quote:
so the code shld go before the file begin with <?php ? then can i call it using the command <?php echo $bbuseravatarurl; ?> in my field. thanks again. |
Basically, yes.
|
Thank you.
i will update to you on the progress. Now halfway someother thing messed up. talking abt tables in IE and FF arghhh:mad: |
update this is the message i receive.
Fatal error: Call to a member function query_first_slave() on a non-object in /home/site/public_html/forum/includes/functions.php on line 1230 thanks |
OK update.
got the code installed. tested but there is no error and not fetching avatar as well. any help/guide on this pls.? --------------- Added [DATE]1209574127[/DATE] at [TIME]1209574127[/TIME] --------------- this is my updated code. Code:
<?php |
Does the image src point to your forums correctly? I don't think that function adds on the $vbullet->option['bburl'].
|
hi thanks for sharing.
can u post the correct code i am not coder, i am just self learner. thank you. |
All times are GMT. The time now is 10:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|