The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile Picture in Postbit
In an attempt to get the Profile Picture to be displayed in a User's Post, I copied:
Code:
<if condition="$show['profilepic']"> <td valign="top" align="$stylevar[right]" rowspan="2"> <img src="image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /> </td> </if> Then, I removed the 'IF' Statement, '<TD>' Tags, and 'alt=' info ending up with: Code:
<img src="image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /> What am I missing? |
#2
|
|||
|
|||
Bump...
|
#3
|
||||
|
||||
I wonder why it does display anything ... it should be $post[userid].
However, if you want the dateline in there you must modify the $posts/$cacheposts queries in showthread.php to make a left join on table customprofilepic and get the dateline from this table. Furthermore, you should add an if to avoid image.php also being called for users that do not even have profile pictures. |
#4
|
|||
|
|||
Quote:
Code:
<img src="image.php?u=$post[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="" border="0" /> Quote:
|
#5
|
||||
|
||||
There is a Thread about displaying an icon in postbit if a user has a profile picture somewhere - take a look at it.
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
customprofilepic.dateline AS picdateline or smth. like this
|
#8
|
|||
|
|||
Sorry, I'm still a Noobie , where in here do I put that?
PHP Code:
|
#9
|
||||
|
||||
In the $posts and $cacheposts queries somewhere between SELECT and FROM, for example after NOT ISNULL(customprofilepic.userid) AS haspic
To learn more about queries I suggest to read the mySQL manual @ http://www.mysql.com |
#10
|
|||
|
|||
Quote:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|