The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Try this.
PHP Code:
|
#12
|
|||
|
|||
![]()
no, this time no image shows at all.. not even a red x..
could it be because we are using php tags within html? |
#13
|
||||
|
||||
![]()
It returns an array.... you'll need to use $avatar[0] to get the img src, and $avatar[1] (contains HTML) to get the width/height.
Code:
<img src="$avatar[0]"$avatar[1] alt="" /> |
#14
|
|||
|
|||
![]()
still not working.. get red x
i tried HTML Code:
<?php require_once('./global.php'); include(DIR . '/includes/functions_user.php'); $avatar = fetch_avatar_url($vbulletin->userinfo['userid']) echo "<a href="usercp.php"><img src="$avatar[0]"$avatar[1] alt="Your Avatar" /></a>"; ?> then i tried HTML Code:
<?php require_once('./global.php'); include(DIR . '/includes/functions_user.php'); $avatar = fetch_avatar_url($vbulletin->userinfo['userid']) ?> <a href="usercp.php"><img src="$avatar[0]"$avatar[1] alt="Your Avatar" /></a> |
#15
|
|||
|
|||
![]()
see, look at the attached image..
|
#16
|
|||
|
|||
![]()
When you say "front page" do you mean your forums' index?
|
#17
|
|||
|
|||
![]()
yup, also known in the styles manager as "FORUMSHOME"
btw. im not using VBadvance or w/e that mod is called.. |
#18
|
|||
|
|||
![]()
Download the attachment and import it to your plugins.
Open up your "FORUMHOME" template and add $avatar anywhere you want. |
#19
|
|||
|
|||
![]()
WORKS GREAT!
but, I still need some kind of IF statement within the plugin or within the forumshome template to check if the user has an avatar, if not .. to show a special image if so show their avatar.. any help is appreciated.. |
#20
|
|||
|
|||
![]()
_______________________________________________
anyone? I need an if statement ![]() Just like basically saying If "user has avatar" then code to pickup avatar and place within var $avatar else blank.gif (to show they dont have one) |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|