The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Users Select Logo
I want my users can Select the Logo Image on Top...
My Settings on Profile Field: and in my header template: PHP Code:
Its work but there are 2 Problems: 01. No Image is show up for Guests 02. No Image is show up to New Registered Users ?!? |
#2
|
|||
|
|||
You could do this:
Code:
<if condition="empty($bbuserinfo[field5])"> <img src="images/header/default_img.png" border="0" alt="$vboptions[bbtitle]" /> <else/> <img src="images/header/$bbuserinfo[field5].png" border="0" alt="$vboptions[bbtitle]" /> </if> of course you'd want to change default_img to some actual image name. That should give everyone the default unless they have made a choice. Also, I'm not sure but maybe if you set the field Required to "Yes", new users will have to choose something or go with the default. |
#3
|
|||
|
|||
hmm this is not working, my header is empty and nothing shown up on Forumhome :O
... no idea why |
#4
|
|||
|
|||
There must be an error in that template. I guess try taking out what I posted above, and make sure you're not getting any errors when you save the template.
|
#5
|
|||
|
|||
Can not find Error ... i try out the Original Template...
PHP Code:
EDIT: Is not working on the Original Template too... but that one in the first Posting works... |
#6
|
||||
|
||||
Quote:
Quote:
|
#7
|
|||
|
|||
Well, I assume that you're asking Fluke667 since all I did was copy the code from the OP. But I was under the impression that "images/..." would be the same as "./images/...", where "/images/..." would be at your web server root. (That's how filenames work in the OS, maybe that's what I'm thinking of).
|
#8
|
||||
|
||||
@KH99, it was aimed at the OP, i have had trouble in the past with that kind of declaration for folders
|
#9
|
|||
|
|||
not working with images and not with /images and not with ./images
This from my OP: PHP Code:
--------------- Added [DATE]1319338172[/DATE] at [TIME]1319338172[/TIME] --------------- some thing is wrong with that line: PHP Code:
PHP Code:
--------------- Added [DATE]1319338408[/DATE] at [TIME]1319338408[/TIME] --------------- hmm Can i use this: <if condition="$bbuserinfo['fieldX'] == empty"> or <if condition="$bbuserinfo['fieldX'] == 0"> or <if condition="$bbuserinfo['fieldX'] == null"> or <if condition="!empty($bbuserinfo[field5])"> or... |
#10
|
|||
|
|||
Hmm...it seems like empty should work, and in any case I can't see how changing the condition could cause it to display twice. Can you post the entire template you're using?
I guess you could try $bbuserinfo[field5] != '' - BTW, are you sure it's field5? The screen grab you posted above shows it as id=10. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|