Overkill »« Random YouTubes


permalink Hot Topics Plugin (v2.* of course)

This is kinda neat I think, and thanks to beano for actually doing the code that became this plugin. What it does is finds your latest comments then lists them by post, only it'll show each post only once. So like if your last 50 comments are all on the same post then it shows only one "hot topic". Makes sense since that's where all the action is yah?

I tweaked it up a bit but there's still some stuff I'm not too happy with. Like for example it had (and has) a "limit" parameter which in theory is the number of item's you will display. Problem is see above because if you limit to 10 and all ten comments are on one post then you only get one hot topic listed. My tweak was to make up a "hotness" factor that more or less extends the limit parameter upward so that you can get more posts (up to the actual limit value) in your hot topics list. Basically it'll triple the limit value if you set hotness to 0 with regard to how many comments to look for unique posts in.

round($limit+($limit*(((100-($params['howhot']))*3)/100)))

Sweet yah?

Something else too. Oh yeah: it used to say "read the comment" when you did a mouse-over on the post or the comment but only one linked to a comment. Now they say something more appropriate, and are settings just in case you don't like what it says there.

download the pluginDownload it, unzip it, upload it, install it via your Global Settings tab, then go to your Blog settings tab to place it on your blog. ... and read the readme!

Do you have footer spam? Grab your plugin, check your footer for links you don't think should be there, then come back and hit this page for the solution.
This entry was posted on Saturday March 1st 2008, in the plugins category and the sidebar, widgets sub cat(s), is untagged, contains 305 words, and has 771 views.
You can contact me if you want to, or subscribe to the rss2 comment feed.

9 comments

fred wrote

****-
i like the plugin :D and your smiles :tits::ass:
Permalink 03/13/08 @ 21:53
*****
Great work EdB.

Got it working. Loads fast on the page.

the install was also fast and painless.

Edgar
Permalink 03/22/08 @ 02:20

edb wrote

Thanks Fred, thanks Edgar! Please, give a hat-tip to beano for the code that became the plugin. All I really did was wrap it up in a pretty package yah? I get a kick out of it for sure, but wouldn't have done this one if the guts of it weren't already out there.
Permalink Email 03/22/08 @ 02:31
****-
This *might* be useful for my blog... but I don't know...
Heh, after all, my blog went up only *today* |-|
Permalink Email 04/04/08 @ 12:39

edb wrote

Yeah this one doesn't feel good when you have a new blog right? After you've been online a while and have quite a few posts and comments and stuff it feels nice to brag, but until then ... well ... it feels better to not shout "I HAVE ONE COMMENT ON MY BLOG" ;)
Permalink Email 04/04/08 @ 15:36

beano wrote

*****
Thanks for all the praise, but really I only hacked the core "Recent Comments" widget. Glad to see it's been of use to a couple of people though.

I just installed the plugin (until I upgraded to 2.4.2 I'd just been using my hack) and it works really well, good work EdB.
Permalink Email 05/29/08 @ 08:27

tilqicom wrote

*****
thanks EdB for the improvement, and thanks Beano
Permalink 10/30/08 @ 23:04

izme wrote

****-
i wonder how i can change it to most viewed
Permalink Email 01/19/09 @ 15:25

edb wrote

Hi izme. Hey are you related to whodat? Sorry, but hottopics wasn't born to do 'most viewed' though it might be able to. I'm into upgrading my plugins again so I might see about doing this, but in the meantime I'm pretty sure there is a plugin called "ministats" that can do what you seek.
Permalink Email 01/20/09 @ 05:19

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
:!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( :'( :DD :o 8| >:-[ |-| :lalala: :crazy: >:XX :tits: :ass: :wave: :dick: :heart:
(Line breaks become <br />)
(Name, email & website)
(Other visitors can contact you (through a message form)? Your email addy remains eternally hidden!.)
What time is it right now?
antispam test