The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm looking for a way to fetch a users avatar to display inside a modification, a ticket support system. I've done a search and been through about 60+ pages of avatar modifications and can't find the actual code for it. I'm not exactly sure where I would need to insert the code into the PHP file, plus using the avatar conditional (<if condition="$show['avatar']">) doesn't seem to work on the modification.
Basically, this is how I've got it setup. This is the "ticket_display" template: PHP Code:
PHP Code:
|
#2
|
||||
|
||||
![]()
You know that fetch_avatar_url() returns an array, right?
![]() |
#3
|
|||
|
|||
![]()
I have no idea, that's why I'm asking. lol
|
#4
|
||||
|
||||
![]()
Well, if you're using a function you have no idea about, why don't you have a look at it first?
|
#5
|
|||
|
|||
![]()
That's the thing, I'm not using it. I'm asking you kindly if you could possibly point me in the right direction as to where I can find how to use it and how to impliment it into my PHP file. I've been through API and found nothing relevant in regard to what I'm looking for, and what I require.
I'm not a vBulletin expert, so I do require help from time to time. I'm a grunt, not a development engineer. I'm looking for the code that I would be required to write into my product to fetch a user's avatar to display inside the modification for each issue and reply posted. Nothing more, nothing less. So for example, if a user posted a support issue, I would write the following to display his/her relevant avatar if applicable: PHP Code:
As I explained, the conditional <if condition="$show['avatar']"> doesn't appear to work in this modification. I find it strange because both 'member' and 'guest' conditionals function correctly inside the modification, so I don't quite understand why the 'avatar' conditional does not work. My first thought was 'Perhaps I need to write a table or something to fetch the user's avatar?' as if I cannot get conditionals to work, then I am unsure of other options. So if anybody has any information as to why the 'avatar' conditional does not work, and how I can get it to function correctly, it would be greatly appreciated. |
#6
|
||||
|
||||
![]()
$show['avatar'] doesn't work because it's not defined
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|