![]() |
Hot Topics/Threads
Author: tnguy3n (Thinh Nguyen)
Support Site: http://www.all4a-designs.com Live Demo: http://www.all4actions.net/forums/toptopics.php (click on the link to see demo on my site) Description: This hacks show hot threads/topics on one page. Admins have ability to enable/disable guest access, select which blocks display on the page. New settings: 7 Template Mods: 4 new templates File Mods: 0 New File: 1 Requested by Aceman here |
Oops sorry, post in wrong forum. Can mods pls move this hack to appropriate forum? thanks.
|
and one moreover, cheer have you, I very well also find it, good job :)
|
nice and simple hack :) will use it.
|
I followed the instructions, but it doesn't seem to work. Who I go to toptopics.php is says:
Quote:
|
that's weird. what version of vb you'r running?
|
sorry, shoulda mentioned that. I'm running 3.0.7.
I must have looked over the instructions 20 times by now and can't find any steps that I missed. |
Quote:
|
This is displaying the threads double here
|
Quote:
|
im getting the same as JoeLouie but on vb 3.06
any ideas? |
just figured it out... in the grouptitle field you have the value in there... fixing it now.
|
? whats up with it mate?
how can i fix mine also mate can you give me the instructions lol cheers mate |
yep, just give me a few minutes, gotta test it to make sure I fixed it right :)
EDIT: Check the 2nd page, I posted the fix there. Some people seem to have gotten it working without the fix, but I'm running 3.0.7 and it wouldn't work without it. |
Settings seems right. I doubt if settinggroup got anything do with that error thou.
I'll write installers for next time to prevent these problems. @Lionel: I can't figure out at the moment why it print a thread twice. I may use SELECT DISTINCT in next release if it fix that problem. btw, it may help to track the bug if you could provide version of vb you'r running. |
if i cant get this to work, how do you remove the queries??? im new to all this
|
The instructions said to do this:
Code:
INSERT INTO `setting` VALUES ('toptopics_limit', '5', '', 7, 'toptopics', '5', 0, 0); Code:
INSERT INTO `setting` VALUES ('toptopics_limit', 'toptopics', '5', '5', '', 7, 0, 0); |
sorry 3.07
|
Quote:
|
Mine are correct. Best to do is insert into settings('varname',...) values(....
|
Any ideas yet about the double threads display?
|
:confused: Did you make any change in the script? You alter vote to totalvote?
|
none whatsoever. not in templates not in file. straight from downloading to my server.
|
|
Quote:
|
nice mod, thanks for the database update. I noticed that there was 4 uncached templates, under.
$specialtemplates = array(); I put. $globaltemplates = array( 'TOPTOPICS', 'toptopics_highvote', 'toptopics_mostreplies', 'toptopics_mostviews'); And I had to require the back-end after this or it would not pre-cache. // #################### DEFINE IMPORTANT CONSTANTS ####################### //define('NO_REGISTER_GLOBALS', 1); //define('THIS_SCRIPT', 'toptopics'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(); // get special data templates from the datastore $specialtemplates = array(); $globaltemplates = array( 'TOPTOPICS', 'toptopics_highvote', 'toptopics_mostreplies', 'toptopics_mostviews'); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); |
how would you apply permissions to view topics, as 2 threads I have are in the admin forum and I dont want guest to view them.
http://www.majesticforum.com/forum/toptopics.php |
If guests the side see comes may only the white side may guests you do not see comes no rights.
Where is the mistake there? |
this looks very nice...one question though...would it be possible to display the top threads from specific forums??
|
thank...
But problem Problem vbulletin options/top topics setting settings not Upload toptopics.php to your /forum home :::::::: ok Sql ::::::: ok 4 new template :::::::: ok but view not: help pls https://vborg.vbsupport.ru/external/2005/05/16.jpg |
Quote:
|
I'm getting this error after following the instructions:
Database error in vBulletin 3.0.6: Invalid SQL: SELECT thread.threadid, thread.title AS threadtitle, thread.lastpost, thread.forumid, thread.open, thread.replycount, thread.postusername, thread.postuserid, thread.lastposter, thread.dateline, thread.visible, forum.forumid, forum.title AS forumtitle, user.username, user.userid AS lastposterid FROM thread LEFT JOIN forum AS forum ON(forum.forumid = thread.forumid) LEFT JOIN user AS user ON(user.username = thread.lastposter) WHERE thread.open = 1 AND thread.visible = 1 ORDER BY thread.replycount DESC LIMIT 0, mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8 mysql error number: 1064 |
How do I place a link to the toptopic section from the forum home?
|
This is an awesome hack. I just have one biggy request that's missing: Is it possible to include a setting that allows you to exclude/include forums?
I want it to only list the 'non-entertainment' forums in my site. |
Quote:
|
Quote:
@tnguy3n: You should modify your file to attach ;) Thank you for the second time (post #3) for your hack. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Click install ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
grt hack
/me click install |
hey guys... i just found that this is taking all threads from all the forums.
So to protect the private forums..i did this in the toptopics.php below line PHP Code:
PHP Code:
then in same file find PHP Code:
PHP Code:
Now forums are safe from all private forum posts showing there. Btw same can be extended to whatever forums you wanna hide. say if you just want this to work for one forum exclude all the rest forums. |
@Acers, U R Da Man! Works flawlessly. thx.
|
glad to be of help mate :)
|
All times are GMT. The time now is 04:02 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:
|