![]() |
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']"> 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? |
Bump...
|
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. |
Quote:
Code:
<img src="image.php?u=$post[userid]&type=profile&dateline=$userinfo[profilepicdateline]" alt="" border="0" /> Quote:
|
There is a Thread about displaying an icon in postbit if a user has a profile picture somewhere - take a look at it.
|
Quote:
|
customprofilepic.dateline AS picdateline or smth. like this :)
|
Sorry, I'm still a Noobie :o , where in here do I put that?
PHP Code:
|
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 |
Quote:
PHP Code:
|
All times are GMT. The time now is 11:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|