Not Solved [How To?] Show recent Posts (the entire post)
#11
Not Solved
I think you need this plugin https://community.mybb.com/mods.php?action=view&pid=191
Or i have not tested . Try changing 'AND t.firstpost= p.pid' from portal.php from following code
$query = $db->query("
		SELECT p.pid, p.message, p.tid, p.smilieoff, t.attachmentcount
		FROM ".TABLE_PREFIX."posts p
		LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
		WHERE t.visible='1'{$annfidswhere}{$tunviewwhere} AND t.closed NOT LIKE 'moved|%' AND t.firstpost=p.pid
		ORDER BY t.dateline DESC
		LIMIT {$start}, {$numannouncements}"
	);
Reply
#12
Not Solved
Thanks vishwap

I can't seem to get that Pugin to work (and don't think it can achieve what I am looking for)

Getting close with that code - I've played around with that block code, but all I can manage to do is delete "AND t.firstpost=p.pid"; with this gone then the last post from each thread (instead of the first post if the code remains). So I'm getting close, but I need every post from each thread to be included. Seems the code is limiting me to fetch only a single post.

I will continue to play around, but any help from anyone is appreciated
Reply
#13
Not Solved
Bump

I'm still having issues - Is this possible?
Reply
#14
Not Solved
You confused. They just showing latest updated threads ie. Thread with last post . Nothing more.
Reply
#15
Not Solved
I'm not confused

I would like a list of recent posts, not just the first post from new threads. I thought I could achieve this via the portal.php code, but if not any other suggestions would be most welcome

A code to fetch the last ten (or more) posts on the forum, layered like a thread showing the full post
Reply
#16
Not Solved
Bump?
Reply
#17
Not Solved
Ok - evidently I'm not going to get help with the above (presumably because what I am trying to achieve with the portal.php is impossible)

How about if I try and achieve this by the search page (search.php).  So if I can receive results in Post form, instead of Thread form then I would have the results I'm looking for

Possible?
Reply
#18
Not Solved
Bump?
Reply
#19
Not Solved
Bump?
Reply
#20
Not Solved
I am interested in recent posts at portal page too.

I can not believe nobody has made such a plugin.

It brings much more attention to the forum!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)