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)

italks 10-28-2005 07:51 PM

i am waiting for 3.5 version too.

Eagle Creek 11-27-2005 04:03 PM

Any news?

Boofo 11-27-2005 04:58 PM

Quote:

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

Number 3 could be done by wrapping the link in forum permission tags. ;)

As far as porting this, I saw no reason to do it as you can now do it via links in 3.5 (I think). I will look into it and see if it would be worth porting to 3.5 ;)

-=Sniper=- 12-19-2005 10:05 PM

Boofo; I just had a go at doing this for vb 3.5 and it worked

add a new plugin in the hook: search_process_start

use this code, very little change in the code.
PHP Code:

if ($exclude)
        {
            
$zzzz_notforumchoice "";
            
$zzzz_excludelist explode(','$exclude);
            foreach (
$zzzz_excludelist AS $zzzz_key => $zzzz_excludeid)
            {
                
$zzzz_notforumchoice .= intval($zzzz_excludeid).",";
            }
            
$zzzz_notforumchoice substr($zzzz_notforumchoice,0,-1);
            if (
$showposts)
            {
                
$post_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)";
            }
            else
            {
                
$thread_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)";
            }
        } 

then use exclude e.g. search.php?do=process&replyless=1&replylimit=0&day s=7&dontcache=1&searchdate=7&exclude=22,70,71,72

where the numbers are the forums you want to exclude.

FLMom 04-25-2006 08:54 PM

Just downloaded and am having trouble with finding the right template codes to edit :( I wish this was easier lol


off to try again! wish me luck!

Boofo 04-25-2006 09:16 PM

So, basically, the code you are using here is for excluding forums only, right? If you don't want to exclude any forums, then we don't need any plug-ins at all. Or am I missing something (like I usually do)? ;)

Quote:

Originally Posted by -=Sniper=-
Boofo; I just had a go at doing this for vb 3.5 and it worked

add a new plugin in the hook: search_process_start

use this code, very little change in the code.
PHP Code:

if ($exclude)
        {
            
$zzzz_notforumchoice "";
            
$zzzz_excludelist explode(','$exclude);
            foreach (
$zzzz_excludelist AS $zzzz_key => $zzzz_excludeid)
            {
                
$zzzz_notforumchoice .= intval($zzzz_excludeid).",";
            }
            
$zzzz_notforumchoice substr($zzzz_notforumchoice,0,-1);
            if (
$showposts)
            {
                
$post_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)";
            }
            else
            {
                
$thread_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)";
            }
        } 

then use exclude e.g. search.php?do=process&replyless=1&replylimit=0&day s=7&dontcache=1&searchdate=7&exclude=22,70,71,72

where the numbers are the forums you want to exclude.


FLMom 04-26-2006 03:30 AM

I wanted to add this in the quick links and it is showing up but when I click on it I get this error:

Fatal error: Call to a member function on a non-object in /home/ctyler06/public_html/forums/search.php on line 487

What does this mean? How can I fix this? It worked for all of 10 seconds then the error popped up :( Help!

Boofo 04-26-2006 03:35 AM

Quote:

Originally Posted by FLMom
I wanted to add this in the quick links and it is showing up but when I click on it I get this error:

Fatal error: Call to a member function on a non-object in /home/ctyler06/public_html/forums/search.php on line 487

What does this mean? How can I fix this? It worked for all of 10 seconds then the error popped up :( Help!

What version on vb are you running?

FLMom 04-26-2006 04:02 AM

the latest...3.5.4 :D

FLMom 04-26-2006 04:26 AM

Seems like some of my members can use it for a few seconds, then the error comes on too..


All times are GMT. The time now is 11:59 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
  • Page Generation 0.01099 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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