MyBB Community Forums
[How To?] Show recent Posts (the entire post) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Show recent Posts (the entire post) (/thread-212971.html)

Pages: 1 2 3


Show recent Posts (the entire post) - NotAdmin - 2017-09-16

We're are moving from ProBoards, and they have a "recent posts" (see here), which is what I am trying to replicate.  Basically, it just lists every post in ascending order by date

I've looked everywhere, but can't anything similar on MYBB (which surprises me) and also no Plugin

The main content in the portal page is close; it provides a list of posts, but only the first post in a thread.  If I can alter this somehow, that would be perfect


RE: Show recent Posts (the entire post) - Wires - 2017-09-16

It looks like MyBB's default Portal Page. Look here. You could strip the portal page of everything else and basically make it look like a thread as it does at ProBoards.


RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-16

Almost - That is what I noted

The Portal Page shows only new threads (by showing the first post), whereas, I would prefer to see all posts included. Is there any way to alter how it fetches its data to show all posts?


RE: Show recent Posts (the entire post) - Wires - 2017-09-16

(2017-09-16, 05:27 PM)NotAdmin Wrote: Almost - That is what I noted

The Portal Page shows only new threads (by showing the first post), whereas, I would prefer to see all posts included. Is there any way to alter how it fetches its data to show all posts?

It's mostly just a bunch of if statements if I remember correctly. Look in the portal.php file.


RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-17

Thanks Wires

A bit alien to me, but I will have a poke around today.


Could anyone push me in the right direction into what I need to alter. I have some coding knowledge, but it amateurish at best

Any help is appreciated (I will have a play around anyway and report back)

OK

In the Portal.php, I have found the following, which I'm guessing is where I need to be

Just a reminder of what I'm trying to achieve; I would like the portal page to show all recent posts, not just the first post on each new thread

A little nudge in the right direction please?

$query = $db->query("
SELECT t.*, t.username AS threadusername, u.username, u.avatar, u.avatardimensions
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid)
WHERE t.tid IN (0{$tids}){$annfidswhere}{$tunviewwhere} AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT 0, {$numannouncements}"



RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-19

Any help please?


RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-20

Bump

I'm having trouble deciphering the code; I know I'm in the right area, because if I adjust "ORDER BY t.dateline DESC" to "ASC", then predictably it reverses the order of the posts

Just need a little nudge in the right direction please


RE: Show recent Posts (the entire post) - Diamante - 2017-09-21

https://community.mybb.com/mods.php?action=view&pid=59


RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-21

Thanks, Diamante, but that is not what I'm looking for

I'm looking to find a way of viewing entire posts to create a convenient space for members who utilise the entire forum to view "recent posts".

So a thread with all recent posts; much like you see on the portal (but that only shows the first post on new threads)

I think a modification of the Portal.php is all I need, but just need some help from somebody (please!)

Bump?


RE: Show recent Posts (the entire post) - NotAdmin - 2017-09-23

Bump?