Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Thread Image
Skatman Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #21
RE: Thread Image
Thanks for your answer.
Unfortunately I will not be able to test this now.
I'll test this tomorrow and I'll give you my feedback!
04-28-2011 07:54 AM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #22
RE: Thread Image
Is there a way to make this use the poster's avatar instead?
05-01-2011 07:08 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #23
RE: Thread Image
Maybe this thread can help you:

http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=713&pid=66


[Image: leelink.gif]
MYBB1.6 & XThreads
05-01-2011 08:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #24
RE: Thread Image
(05-01-2011 08:09 AM)leefish Wrote:  Maybe this thread can help you:

http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=713&pid=66

That is cool. Now if there is a way for it to show both the author's avatar and then the last poster's avatar in a small square inside the author's avatar that would be epic.
05-01-2011 08:40 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Thread Image
Maybe try this edit - I haven't tested it, but if it works, it'll pull both the thread starter and last poster's avatar.  Former should be in {$thread['avatar']} and the latter in {$thread['lpavatar']}

Thanks to RateU for the plugin.


Attached File(s)
.php  mnxt_fn_av.php (Size: 2.18 KB / Downloads: 544)

My Blog
05-01-2011 09:05 AM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #26
RE: Thread Image
SQL Error:
Quote:SQL Error:
    1054 - Unknown column 't.lastpostbumperuid' in 'on clause'
Query:
    SELECT t.*, tfd.`desc` AS `xthreads_desc`, p.displaystyle AS threadprefix, (t.totalratings/t.numratings) AS averagerating, r.uid AS rated, t.username AS threadusername, u.username, u.avatar, lp.avatar AS lpavatar FROM mybb_threads t LEFT JOIN mybb_users u ON (u.uid = t.uid) LEFT JOIN mybb_threadratings r ON(r.tid=t.tid AND r.uid='1') LEFT JOIN mybb_threadprefixes p ON (p.pid = t.prefix) LEFT JOIN `mybb_threadfields_data` tfd ON t.tid=tfd.tid LEFT JOIN mybb_users lp ON (lp.uid=t.lastpostbumperuid) WHERE t.fid='7' AND (t.visible='1' OR t.visible='0') GROUP BY t.tid ORDER BY t.sticky DESC, t.lastpostbump desc LIMIT 0, 20
05-01-2011 10:35 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #27
RE: Thread Image
Are you using my really old (and not so good) Bump Thread plugin?
I guess a workaround could be to open up the above mnxt_fn_av.php, find:

Code:
t.lastposteruid

replace with

Code:
t.`lastposteruid`


My Blog
05-01-2011 11:03 AM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #28
RE: Thread Image
(05-01-2011 11:03 AM)ZiNgA BuRgA Wrote:  Are you using my really old (and not so good) Bump Thread plugin?
I guess a workaround could be to open up the above mnxt_fn_av.php, find:

Code:
t.lastposteruid

replace with

Code:
t.`lastposteruid`


Yes I am Smile It's a good plugin Smile

Ok that fixed it the SQL error, but the images aren't showing up. Did I put the code in the right place in the forumdisplay_thread template?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
			<span><img src="{$thread['avatar']}{$thread['lpavatar']}" alt="" title="" />{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['tlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			{$threadfields['desc']}<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

(This post was last modified: 05-01-2011 11:16 AM by lucasbytegenius.)
05-01-2011 11:15 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #29
RE: Thread Image
You're not meant to put the two URLs together.  They have to be in separate <img> tags.
I suggest you read up on HTML if you're really intent on customising.  It doesn't take too long, and will be infinitely useful.

My Blog
05-01-2011 01:06 PM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #30
RE: Thread Image
(05-01-2011 01:06 PM)ZiNgA BuRgA Wrote:  You're not meant to put the two URLs together.  They have to be in separate <img> tags.
I suggest you read up on HTML if you're really intent on customising.  It doesn't take too long, and will be infinitely useful.

Oh ok.

Yes, you're right, I should get my lazy self in gear and just learn it. Sorry to take your time.
05-01-2011 01:08 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: