![]() |
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:
|
Would you mind posting out what you ended up doing step by step? I tried following the various posts above, but I'm easily confused. :D I'd appreciate a little guidance to complete the same modification. Thanks!
|
I would appreciate this too. What did you do to get it to work?
|
Like wise
|
Anybody tried to make this as a Plugin for 3.5.x ?
|
Wow, can't believe how easy this is (vB 3.5.4)!
Add a PLUG-IN with HOOK LOCATION showthread_query and the following code: Code:
$hook_query_fields = ",customprofilepic.dateline AS profilepicdateline"; Code:
<if condition="$post['profilepicdateline']"> |
Thank you riverpoet, this work nice in 3.6.4 :)
|
Thanks riverpoet! Works like a charm in 3.6.4.
|
Question, they don't show up when quick replying, at least not until you hit refresh. Any ideas on how to do this?
|
anyone try this with 3.7 yet?
|
All times are GMT. The time now is 06:06 AM. |
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:
|