Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: bestfriendavinash on May 02, 2012, 02:13:57 AM

Title: Recent Post on Topic Page
Post by: bestfriendavinash on May 02, 2012, 02:13:57 AM
I have enabled recent post option for my SMF 2.0.2 which show 8 recent post at my forum index page.

I want to show the same on topic page as well, but could not find any mod for this. I've seen several forum where recent post are displayed at topic page as well.

I'm new to PHP, so help is requested.
Title: Re: Recent Post on Topic Page
Post by: o.o on May 02, 2012, 02:39:22 AM
You might want to check out Simple Portal. It has just that and a few other handy things.

http://www.simpleportal.net/

Scroll down on the home page, and you'll see the 'Recent topics' block. That can be added to take the place of the 'Recent posts' block (which you can see on the left of the page) and that block is visible everywhere.
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 02, 2012, 05:49:09 AM
Quote from: o.o on May 02, 2012, 02:39:22 AM
You might want to check out Simple Portal. It has just that and a few other handy things.

http://www.simpleportal.net/

Scroll down on the home page, and you'll see the 'Recent topics' block. That can be added to take the place of the 'Recent posts' block (which you can see on the left of the page) and that block is visible everywhere.

Yes I've seen this in Simple Portal, but at this moment I dont to install the portal for sake of recent post only. There must be some other way like changing any source file
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 04, 2012, 02:14:33 AM
No more reply  :(
Title: Re: Recent Post on Topic Page
Post by: Colin on May 04, 2012, 02:16:54 AM
Sorry for the delay, does this help? http://custom.simplemachines.org/mods/index.php?mod=1314
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 04, 2012, 05:58:35 AM
Quote from: Colin on May 04, 2012, 02:16:54 AM
Sorry for the delay, does this help? http://custom.simplemachines.org/mods/index.php?mod=1314

No friend...

I just want to display the recent post on topic page below quick reply... hope following two images will make my point clear



This bottom of our SMF index page

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FNhE7f.jpg&hash=cca6cb6305d889c46e91c8f736e1cdaa44a222eb)


and I want bottom of my index page like this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FQGZvq.jpg&hash=4c974ee81fd2bad5ff0ca7133fabf5779b6496b3)

I dont want to remove the SMF copyright, the above image is just to illustrate my point...

Title: Re: Recent Post on Topic Page
Post by: Colin on May 04, 2012, 10:24:16 AM
Oh you will need to manually edit your template files. I will make the edit for you when I have some free time tonight.
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 04, 2012, 10:38:17 AM
okies... waiting  :)
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 05, 2012, 10:25:21 AM
BUMP  :D
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 06, 2012, 11:41:18 AM
Bump again  ;D
Title: Re: Recent Post on Topic Page
Post by: Colin on May 06, 2012, 11:44:01 AM
Sorry about that. Forgot to take a look a look at this for you. This might be best done by a customizer though.
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 06, 2012, 12:46:03 PM
Quote from: Colin on May 06, 2012, 11:44:01 AM
Sorry about that. Forgot to take a look a look at this for you. This might be best done by a customizer though.
customizer means mod? I didn't find any mod except portal... and I dont want to install portal...  :(
Title: Re: Recent Post on Topic Page
Post by: Arantor on May 06, 2012, 12:51:59 PM
A Customizer is a member of the SMF team who specialises in coding and mods.
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 06, 2012, 01:01:56 PM
ok... waiting for a customizer to response..  :)
Title: Re: Recent Post on Topic Page
Post by: Arantor on May 06, 2012, 02:01:30 PM
Well, what I can tell you is that it would actually make your forum quite a bit slower to put that on every page since it's not possible to cleanly or easily cache it... still interested?
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 06, 2012, 10:21:06 PM
Yes  :)
Title: Re: Recent Post on Topic Page
Post by: Colin on May 06, 2012, 11:16:16 PM
Hello Again,
Just inquiring to see if you have heard anything back from Paypal yet.

Thanks,
-Colin
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 08, 2012, 09:45:42 AM
Quote from: Colin on May 06, 2012, 11:16:16 PM
Hello Again,
Just inquiring to see if you have heard anything back from Paypal yet.

Thanks,
-Colin

Sorry could not contact them yet due to office work load..




Bump Again  :D


Title: Re: Recent Post on Topic Page
Post by: Arantor on May 08, 2012, 10:21:50 AM
OK, I don't think I made myself clear.

Turning off the list of recent posts like that is already suggested for performance - and it's only on the board index. Turning it on for all the other places is a MAJOR PERFORMANCE PROBLEM. It will REALLY slow your forum down.
Title: Re: Recent Post on Topic Page
Post by: bestfriendavinash on May 08, 2012, 10:26:19 AM
Quote from: Arantor on May 08, 2012, 10:21:50 AM
OK, I don't think I made myself clear.

Turning off the list of recent posts like that is already suggested for performance - and it's only on the board index. Turning it on for all the other places is a MAJOR PERFORMANCE PROBLEM. It will REALLY slow your forum down.

I understand... but I really wish to give it a try... I've seen atleast 12 SMF based forum with recent post on topic pages as well... and atleast  4 of them are on shared hosting...
Title: Re: Recent Post on Topic Page
Post by: Storman™ on May 08, 2012, 10:40:31 AM
Don't dismiss Simpleportal as someone suggested above. You could implement only the Recent Posts module and not use the rest, plus you could choose to place it where you want. It would save you messing with the code in your template.

However, I would agree with Arantor that it has the potential of seriously diminishing the performance of your forum. Plus you'll probably get complaints from your host that you are taking up too much shared resources.
Title: Re: Recent Post on Topic Page
Post by: Arantor on May 08, 2012, 12:09:05 PM
It's a slow query, there is no way you can make it faster - and after a fashion it will make things slower. Sure it runs on shared hosting - but it means you hit the host limits (and have to pay more) sooner.