vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Unanswered Threads Hack v1.3 (https://vborg.vbsupport.ru/showthread.php?t=63008)

Boofo 04-24-2004 04:12 AM

From the install file in this thread:

Quote:

For each forum individually, add the following code to the templates below wherever you want it to show. (A good place is right after the forum title, if you are using an image).

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post


With an image:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid"><img src="http://www.yoursite.com/forums/images/misc/unanswered_threads.gif" border="0" alt="View Unanswered Threads"></a>
</if>


As a link:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<div class="smallfont">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a>
</div>
</if>
And here is your Forum Tools link, since you really can't live without it. ;)

Quote:

Forum Tools Menu (for each forum individually)

In the forumdisplay template, find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></td></tr>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BELOW that ADD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))"><tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a></td></tr></if>

welo 04-24-2004 06:27 AM

Wow man. I was in the middle of tracking all this down and you beat me to it :). Everything works like a charm. The only thing I did differently was remove all the

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">

...stuff because I wanted this available to everyone (one of the first things I do when surfing other boards is look for zero-reply topics in hopes of finding a way to jump in; I'm probably not the only one).

Anyway, thanks a lot. Nice little hack indeed. :cool:

Boofo 04-24-2004 07:15 AM

Did the semi-colon fix do what you wanted?

welo 04-24-2004 07:29 AM

Quote:

Originally Posted by Boofo
Did the semi-colon fix do what you wanted?

lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.

Boofo 04-24-2004 07:37 AM

Quote:

Originally Posted by welo
lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.

All I did was do a template search for Key Word(s) and found it in one of the search templates and went from there. ;)

Oblivion Knight 04-27-2004 08:44 AM

Thanks for the semi-colon fix Boofo.. :)

Boofo 04-27-2004 03:38 PM

You're very welcome, sir. ;)

SHalliday 05-20-2004 05:34 PM

Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com

Boofo 05-20-2004 09:43 PM

Quote:

Originally Posted by SHalliday
Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com

The install file tells you how to have just certain forums selected.

You might want to click the install button in case there are ever any updates to this hack.

tamarian 05-25-2004 04:04 PM

Boofo, I just clicked install, but I've only used template changes, and did not change the search.php file. Are there any advantages to editing search.php?

Boofo 05-25-2004 11:28 PM

Quote:

Originally Posted by tamarian
Boofo, I just clicked install, but I've only used template changes, and did not change the search.php file. Are there any advantages to editing search.php?

Without the code added to the search.php, the template edits won't work right. ;)

tamarian 05-25-2004 11:46 PM

Quote:

Originally Posted by Boofo
Without the code added to the search.php, the template edits won't work right. ;)

In what way?

I've done the quick links template edit and the forum tools template edit, and they return unanswered posts.

Boofo 05-25-2004 11:49 PM

Quote:

Originally Posted by tamarian
In what way?

I've done the quick links template edit and the forum tools template edit, and they return unanswered posts.

The code for the serrch.php is the basis of the hack. You won't get ALL unanswered posts doing it with only template edits.

kontrabass 05-29-2004 01:08 PM

Is there a way to modify the search so that only threads from the last x hours or x days are considered? My database is so huge searching the whole shebang takes several seconds.

Thanks!

tamarian 05-29-2004 03:55 PM

Quote:

Originally Posted by kontrabass
Is there a way to modify the search so that only threads from the last x hours or x days are considered? My database is so huge searching the whole shebang takes several seconds.

I add this to the end of the link "&searchdate=7" to restrict it to one week.

SaN-DeeP 06-01-2004 09:00 AM

i want to use this mod :)
is there a way to ignore some forums ?? using this

like i am running a technology board. and there is a fun/entertainment forum too
i do not want unanswered threads from that forums appear.

is it possible :)
if yes, i will go ahead.

thnx.
Sandy...

Boofo 06-01-2004 03:29 PM

Quote:

Originally Posted by SaN-DeeP
i want to use this mod :)
is there a way to ignore some forums ?? using this

like i am running a technology board. and there is a fun/entertainment forum too
i do not want unanswered threads from that forums appear.

is it possible :)
if yes, i will go ahead.

thnx.
Sandy...

Check the install file. It will allow you to also set it up as you requested.

Don't forget to click install when you are done. ;)

SaN-DeeP 06-02-2004 05:38 AM

Quote:

Originally Posted by Boofo
Check the install file. It will allow you to also set it up as you requested.

Don't forget to click install when you are done. ;)

just wondering this is my long code ;)
nice hack JUST CLICKED install :)

<tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=14&forumchoice[]=11&forumchoice[]=10&forumchoice[]=46&forumchoice[]=13&forumchoice[]=33&forumchoice[]=43&forumchoice[]=34&forumchoice[]=32&forumchoice[]=31&forumchoice[]=38&forumchoice[]=40&forumchoice[]=42&forumchoice[]=39&forumchoice[]=41&forumchoice[]=16&forumchoice[]=17">Unanswered Threads</a></td></tr>

and also how do i hide those results which appear on top of search ??

like i want to hide this.
Search: Unanswered Threads -- Forum: Introduce Yourself or Ebooks or Games or Internet or Networking and Security or WWW or Processors & Motherboards or Graphics / Video Cards or Overclocking & PC Modding or Components or Portable Devices or Applications in General or Operating Systems or Coding/Programming & Design or Tips, Tweaks and Hacks or GUI-Modding, Desktop Themes, Icons etc or Tutorials or Reviews

rstan 06-27-2004 06:11 AM

Im getting this:

Quote:

Sorry - no matches. Please try some different terms.

The following words are either very common, too long, or too short and were not included in your search : WHERE

Any ideas where I messed up?

rstan 07-24-2004 03:32 AM

In almost a month nobody can help me out here?

SmartGnome 07-24-2004 01:25 PM

Thanks Boofo....... install is clicked :laugh:

Intex 11-26-2004 04:28 PM

Nice work Boofo.

[high]* Intex clicks INSTALL.[/high]

cinq 12-10-2004 09:00 AM

A simple yet very useful hack, thanks for this one Boofo :)

SFishy 12-30-2004 12:28 AM

Quote:

Originally Posted by cinq
A simple yet very useful hack, thanks for this one Boofo :)

Excellent - Thanks Boofo!

Startinfresh 01-23-2005 04:08 PM

OK I must have done something wrong because I am getting red lines under my unanswered posts. Anyone care to help a woman out LOL

carolmyt 01-23-2005 06:04 PM

Is this hack ready for vb 3.0.6? Cause this would be an awesome addition to my board.

Oblivion Knight 03-08-2005 10:46 PM

Using this in 3.0.7, the Unanswered Threads text appears in searches when it shouldn't..

For example, when searching for a word in a single forum (Search this Forum) the search text displays:
Search: Key Word(s): test Unanswered Threads -- Forum: General Chat and child forums

Eagle Creek 03-15-2005 09:30 PM

Quote:

Originally Posted by SpeedStreet
Technically great uncle :)

I was actually in des moines and mason city for several weekends before the January Caucus. My name does well for fundraising :D

Is it full 3.0.7 compatible?

Mechanical Mind 03-15-2005 10:11 PM

Wow! A hack to view unanswered threads... Did anybody show this to the mods at vB.com? LOL :nervous: (...the preceding was a corny joke...)

djroketboy 03-18-2005 11:13 AM

is there a way to exclude forums from a search? my mods mostly use the link on the forumhome display, but it also grabs our "news" forums which isn't needed...

any idea's without having to list all 100+ forums in the search string?

AFTERTHOUGHT: even better would be to exclude just 2 users from the search (the two admins)

Byron 04-08-2005 04:12 AM

How to exclude Closed Topics?

Can this hack exclude forums? I found this hack that allow us to exclude forums.
https://vborg.vbsupport.ru/showthread.php?t=69326

gonecountry 04-14-2005 12:34 PM

New to installing hacks first one actually. Is this compatible with VB 3.0.7 As I have looked for

// check our results and decide what to do
switch ($highScore)
{

in search.php and do not see it anywhere.

Bubble #5 04-22-2005 08:50 PM

Would be great if someone could kindly update this to work with 3.0.7 :ermm:

ice9 04-23-2005 11:37 PM

<a href="http://www.vbulletin.com/forum/showthread.php?t=125875&page=2&pp=15" target="_blank">http://www.vbulletin.com/forum/showt...5&page=2&pp=15</a>

Eagle Creek 04-24-2005 07:23 AM

Your link provides nice information but this hack really does something else:

Quote:

Originally Posted by ice9
This hack will provide you with a link that will pull up all unanswered threads on your forums and also unanswered threads on a forum by forum basis.

But maybe it's a temporary solution.


I can't understand. SO MANY CODERS, and nobody can (of will) make such a hack?

Bubble #5 04-24-2005 07:31 AM

Quote:

Originally Posted by Eagle Creek
Your link provides nice information but this hack really does something else:



But maybe it's a temporary solution.


I can't understand. SO MANY CODERS, and nobody can (of will) make such a hack?

The link ice9 provided works great! Nothing 'temporary' about it. You simply make a button and add the search url to it and then it will tell you which posts have been unanswered. The only thing it can't do, that I'm aware of, is to exclude certain forums. Other then that it's the same as the hack :) I for one really appreciate ices link :)

ice9 04-24-2005 07:23 PM

Re-read the link I've posted. Any search that can be performed via the search function can be hard-coded with a link. Feel free to check out the site in my profile to see how it's done -- excluding forums is certainly possible. Actually, it's done by specifically including certain forums, with the forumchoice variable.

Eagle Creek 04-24-2005 08:05 PM

1. I only want to do it for one forum.
2. It makes a seperate page with the results, leaving the originale forum alone. I want to push the trheads up.
3. How could I ever made a button in one single forum?

ice9 04-24-2005 08:14 PM

You can use the forumchoice option to limit your searches to certain forum(s). Not sure what you mean by #2 and #3.

WoodiE 10-06-2005 11:05 AM

Will this be ported for 3.5?

-Michael


All times are GMT. The time now is 05:38 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
  • Page Generation 0.01430 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete