PDA

View Full Version : How to display latest threads & posts on FORUMHOME page [vB4]


pokusek
02-19-2011, 05:40 PM
I searched whole forum but there is not any working mod for vB4 that prints latest threads and posts on FORUMHOME. What should I change in the template to display it? Thanks.

Crossbow
02-20-2011, 02:50 PM
I also been looking for a mod to add the latest post to my site. Maybe someone will come up with a mod for us.

Lynne
02-20-2011, 04:14 PM
I think most people just use the forum blocks to do this.

pokusek
02-20-2011, 04:28 PM
I think most people just use the forum blocks to do this.

The sidebar is really annoying, so I am looking for another solution.

Lynne
02-20-2011, 04:31 PM
Did you look for any vB3 mods that do this? I'm sure the query is the same, so just use that.

pokusek
02-21-2011, 11:38 AM
Did you look for any vB3 mods that do this? I'm sure the query is the same, so just use that.

I did, but nothing works for me.

Lynne
02-21-2011, 02:51 PM
And if you don't tell us exactly what you did and what the results are, then we can't help you.

pokusek
02-21-2011, 05:33 PM
I like these plugins:

https://vborg.vbsupport.ru/showthread.php?t=142759
https://vborg.vbsupport.ru/showthread.php?t=159389

How to make them work?

Lynne
02-21-2011, 05:38 PM
And when you wrote some code and used the query in those products, what happened? What is the exact code you wrote?

pokusek
02-21-2011, 05:50 PM
Well, I just installed the mods, I was not doing anything with the code (because I do not understand it). There is an output of one "Latest Post on Forum Home" (of course, the list of the last posts didn't show up):

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest_bit in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest_bit in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest_bit in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest_bit in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest_bit in [path]/includes/functions.php on line 4097

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumhome_latest in [path]/includes/functions.php on line 4097

Lynne
02-21-2011, 06:39 PM
All those fetch_template calls need to be changed to the vB4 format. [vB4] Rendering templates and registering variables - a short guide (https://vborg.vbsupport.ru/showthread.php?t=228078)

The templates will also need to use the new format.

If you are unable to do any sort of coding yourself or don't want to follow the articles to convert the modification, then you may be better off putting a request into the Unpaid Request forum or the Requests for Paid Services forum.

pokusek
02-21-2011, 07:38 PM
There is a problem with these two lines:

eval('$latest_post_bits .= "' . fetch_template('forumhome_latest_bit') . '";');

eval('$platest = "' . fetch_template('forumhome_latest') . '";');

I checked out the page you've posted but I think that the manual is written in chinese. I do not know what should I do to repair it even I read the whole post. :)