![]() |
Unanswered Threads
Looking for a hack that would show "Unanswered Threads" via a link,similar to the Virgin topics "hackette" that was made for vB2x.
I'm currently using a link suggested by KirbyDE Quote:
I presume some code needs to be added to search.php or global.php for this to function correctly Thanks. |
I think the problem is that vB caches search results for up to 1 day.
So if there are answers within this time the threads will be displayed. One solution to avoid this could be In search.php FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
You mean add that to this link at the end?
Quote:
|
Yep.
|
Is there a way to get the amount of unanswered threads from this, too?
|
Quote:
|
Line 1412.
|
I can't find this:
Quote:
Code:
// add to the navbits |
Hmm ... I wonder why I took code from Beta 7 - lol.
Corrected. |
Strange,its still showing a couple of threads with replies.
|
That might happen on the frist call as the cashed search is deleted after displaying the results.
|
Nope,after several refreshes,logging out/in and deleting temp internet files it still shows a couple of threads with replies.
|
Hmm ...
Does the nocache=1 appear in the URL when the search results are being displayed? |
When the results are displayed the url is forums/search.php?searchid=xxxx
the xxxx is always the same number |
OK, so it still uses the cached results.
Maybe this does work (remove the other mods): In search.php FIND PHP Code:
PHP Code:
|
Will the same line be used for the link then?
|
Why not show unanswered threads on a forum by forum basis or for specific forums with a link on the index page?
I have it set up like that on my test forum and it seems to work nicely. Comes in handy if you want to quickly see just the unanswered posts from specific forums such as a support or tech forum without having to go to the search page. To do it, open forumdisplay.php and find: Code:
$actiontemplates = array( Code:
$actiontemplates = array( Code:
$threadscount = $DB_site->query_first(" Code:
if ($_REQUEST['do'] == 'getunanswered') Code:
FROM " . TABLE_PREFIX . "thread AS thread Code:
FROM " . TABLE_PREFIX . "thread AS thread Code:
WHERE thread.threadid IN (0$ids) Code:
WHERE thread.threadid IN (0$ids) Code:
(<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]&do=getunanswered">View Unanswered Threads</a>) |
Quote:
|
Yes you can limit that on one (or multiple) forums:
/search.php?do=process&replyless=1&replylimit=0&don tcache=1&forumchoice[]=id |
Like this?
PHP Code:
PHP Code:
Aslo, how can I add this to the search.php so the date and time show up in there too when searching? I have been trying for a couple of hours now to add it there, but to no avail. ;) |
&forumchoice[]=1&forumchoice[]=5&forumchoice[]=7
In the forumhome_forumbit_* and FORUMDISPLAY-Templates you can use $foerumid Quote:
|
When you click on View Unanswered threads, the date and time you did for the "Thread Post Time on Forum Display" code you did in the other thread doesn't show up. I thought I would ask about it in here because I don't remember where the other thread is. ;)
|
I C.
In search.php FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
If you also want to display the thread creation date/time when displaying search results as posts: In search.php FIND PHP Code:
PHP Code:
Still in search.php FIND PHP Code:
PHP Code:
Please note that these modifications will work for all searches, not just for unanswered threads. PS: Should I release both "thread creation date" mods as hacks? Might be useful for others too ... |
Yes, you should release both of them. Maybe even put them together as one? ;)
And thank you, sir. ;) |
I'm not seeing it show up for the posts. :(
EDIT: Ignore this. I was doing it inside the if condition. I moved it outside that and it works right now for posts. ;) Excellent job, thank you, sir. ;) |
Quote:
|
Quote:
|
Same as for "normal" search.
|
Ok. I have this under Quick Links. When I'm on forum home, I do not see the option under Quick Links, but I do when I'm in a forum...?
This is what I'm using: Code:
search.php?do=process&replyless=1&replylimit=0&dontcache=1&forumchoice[]=7&forumchoice[]=37&forumchoice[]=10&forumchoice[]=14&forumchoice[]=9&forumchoice[]=38&forumchoice[]=36&forumchoice[]=11&forumchoice[]=8&forumchoice[]=20&forumchoice[]=23 |
All times are GMT. The time now is 06:51 AM. |
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:
|