The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
The user profile field number is 11. Users have to select a sector (game) that they primarily play in and I want that sector to reflect an image in postbit. The selection for 'Sector' are:
GHOSTS ADVANCED WARFARE DESTINY I have uploaded all .jpg images to represent those in forums/images/sector I have used the code below to insert an image into postbit legacy for a user profile field but getting an image error. What am I doing wrong? PHP Code:
![]() Any help would be greatly appreciated! I am using vB 4.2.2 |
#2
|
||||
|
||||
![]()
Try this:
Code:
<div align="left">Sector: </dt> <vb:if condition="$userinfo['field11']"> <img src="http://www.dom-clan.org/forums/images/sector/{userinfo.field11}.jpg" alt="Users Sector!" align="center" border="" /></vb:if></div> |
#3
|
||||
|
||||
![]()
If it's in the postbit, then $post should be the correct variable. What type of User Profile Field is field 11 - Single-Selection Radio Button or what?
Have you tried printing out field 11 to see what is in the database? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|