![]() |
Top 5 "Hot" Topics on Forum Home Page
This little one puts a list of the five threads with the most replies that have been active in the past 7 days on your forum home page.
You can change the query to make it 10 topics with most views or whatever suits your needs. Things you may want to change: To get the top 10, 20 or whatever topics instead of 5, change Code:
LIMIT 5 To get the top topics based on views instead of replies, change Code:
ORDER BY replycount Code:
ORDER BY views Code:
WHERE dateline > $datecut Code:
WHERE lastpost > $datecut |
I installed it and modified the template a little bit to my liking. But you have a HUGE BUG!
Take this out of $topicstring in the plugin! "http://www.eaforums.com/forums/" |
Quote:
|
The problem is fixed in the zip.
|
Quote:
|
...but sorted it 'mesell'
|
Hahahahah! Love the 5th Topic's title amy!!
|
That's our Amy! ;)
If anyone is interested, I edited a few things to make this look more in line with the rest of the What's Going On box. See the attached pic. ;) It is also collaspable. ;) |
I did the same thing... I made it collapseable as well as moved the number of replies to the title attribute so that it shows only on mouseovers. I also replaced the breaklines with spaces.... One more change is since my board likes to have long lengthy discussions over months at a time, I made it the 5 hottest topics for the month. :)
Here's a screenshot. http://forums.5solas.org/ |
Yeah, my what's going on box is very different than most people's. That's why I put in there that the html was only a suggestion ;)
Amy |
Cripes! I just looked at the screenshot. Off to repair it :blush:
Amy |
Quote:
|
cool thx amy!
<<< installs Quote:
|
Quote:
I unistalled the hack and reinstalled it but the list still looks the same. |
Quote:
Amy |
Quote:
|
No. I never said that :) Somebody else said they made changes on their board. In the install instructions, I specifically noted that the template html was just a suggestion and you may want to tweak it.
I fixed the url problem that the first user has. Amy |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
or can someone direct me to the location of the instructions to do this. (change design to match forums) << hopeless n00b :( |
Bob, have mercy on em already :D If they wait for me to make a template edit, they'll have grandchildren. :D
|
All I was waiting for was your ok. I'll post it shortly. ;)
|
In your FORUMHOME template
Find: HTML Code:
</table> HTML Code:
<!-- This Week's Hot Topics --> Quote:
Enjoy! |
Hello,
I have upload this plugin but I have this erorr (see it in attach). It upload with out any title. BS5 |
I don't know what could be going wrong. I have not changed the plugin and nobody else seems to have that problem.
|
Hello,
Exactly how do I install this? lol I downloaded the package, and took a look at the install directions. Then I went in to the ACP to see where I Import Products, but I have no idea where that is to be done. lol This is my first modification to a 3.5 RC1. Sorry for my ignorance. |
Quote:
|
Worked perfect. Another job well done Amy!
*Clicks install* |
Amycar, this is a great plugin!
is there a chance to put this on a vb-powered custom page? |
Kusadasi-Guy, you could lift the code out of the plugin and use it anywhere that global.php is included. It's a straightforward query. You will need to restructure your template though.
Amy |
i am really sorry to being noob, but i couldnt. Can you create a small example? This is really too important for me becuase i want to create my VB-powered custom page.
i tried this, and of course it doesnt work; Quote:
|
For anyone that is intested, I made a slight change to the xml file. It will now say:
No replies for 0 replies 1 reply (for 1 reply) 12 replies (for multiple replies) If anyone is interested. let me know, and if Amy oks it, I will post the change here. |
Go for it. I'll even add you as co-author and put it in the original post with your template mod.
|
In the xml file for this mod
Find: PHP Code:
PHP Code:
|
I updated the zip and added your name Bob. I am forced to use wordpad cause I'm here at work without my editor of choice. Somebody please make sure the zip file imports ok.
|
Thanks, Amy. ;)
You want an updated pic for it? |
Sure. Why not. :D I'm no longer using this plugin on my site cause I moved the content to my side-bar.
|
I've done the re-install of the updated version but you will need to add the phrases manually again (See start of this thread).
I still can't get it to look like the rest of the 'What's going on' though....... |
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|