The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ok total nube here!
I've started to learn PHP and thought I would try to make a small hack to the post-bit in vB. I want it to show a visual idication if someone has uploaded a profile pic and was trying to do it with this code: <if condition="$userinfo['profilepic']"> <img src="images/hasprofile.gif" alt="Has a profile pic" /> </if> I've also tried: <if condition="$show['profilepic']"> and: <if condition="$userinfo['profilepic'] = true"> But not sure what I'm doing really! Do I need to make sure that value has loaded by making sure it is called in the actual php file too? Any ideas? sorry to be a total nube ![]() |
#2
|
||||
|
||||
![]()
I'm Trying To Do The Same Thing In Online.php!!!!!!!!!!!!!!!
For postbit try HTML Code:
<if condition="$post['profilepic']"> <img src="images/hasprofile.gif" alt="Has a profile pic" /> </if> |
#3
|
||||
|
||||
![]()
that doesnt work either
![]() I'm thinking perhaps it needs to be called in the associated php file as well for it to be resident in memory? maybe the result queried from the DB?... |
#4
|
||||
|
||||
![]()
1) The Information "User has a Profile Picture" doesn't exist.
You havre to aggregate it somehow, for example by making a join on the custompprofilepic table 2) $post for sure will not work in WOL 3) Take a look at my Profile |
#5
|
||||
|
||||
![]()
Thanks Andreas... it's too much then
![]() ![]() Thanks for taking the time to put us out of our misery! ![]() |
#6
|
||||
|
||||
![]()
Use Search, there is a 3.0 Hack that does it.
|
#7
|
||||
|
||||
![]()
OK I found this....
Quote:
![]() |
#8
|
||||
|
||||
![]()
There IS 3.0.X hack that does this..I know there is, I even remember the little pic of the camera, BUT, I cannot find it ANYWHERE.
~Curt |
#9
|
||||
|
||||
![]()
For Post bit.... the quote in my post above works
![]() (Thanks Kirby!) |
#10
|
||||
|
||||
![]()
I knew it works, as I am running this Code in my production Board
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|