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..

Boofo 04-26-2006 04:42 AM

Quote:

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

The orginal code was done for vB3.0. It won't work on vB3.5. Or are you using the code Sniper posted above?

FLMom 04-26-2006 04:46 AM

No I am not....it figures, I get brave enough to tackle something and it isn't for my version LOL

Oh well, off to remove it...:p


Do you know when they will have one for the newest version? I could really use this. :)

Boofo 04-26-2006 04:49 AM

Quote:

Originally Posted by FLMom
No I am not....it figures, I get brave enough to tackle something and it isn't for my version LOL

Oh well, off to remove it...:p


Do you know when they will have one for the newest version? I could really use this. :)

You should be able to do it with just a link now (for vB 3.5) like I have in the template edits.

FLMom 04-26-2006 04:54 AM

Ok, thanks! I will try tomorrow :D

Boofo 04-26-2006 04:58 AM

Quote:

Originally Posted by FLMom
Ok, thanks! I will try tomorrow :D

Let me know how it goes. ;)

FLMom 04-27-2006 02:11 AM

okay I tried to add a link like you said and it worked again for a few seconds, then I got the same error message :( I think I might have to give up on this :(


Although I was pretty impressed that I made it as far as I did and actually got it up on the site in a space all its own LOL

Boofo 04-27-2006 02:18 AM

Quote:

Originally Posted by FLMom
okay I tried to add a link like you said and it worked again for a few seconds, then I got the same error message :( I think I might have to give up on this :(


Although I was pretty impressed that I made it as far as I did and actually got it up on the site in a space all its own LOL

I did the link on my site and it worked fine. What error are you getting?

By the way, here is the link I used:

HTML Code:

search.php?do=process&replyless=1&replylimit=0&dontcache=1

FLMom 04-27-2006 02:50 AM

This is the error I am getting...I know I am doing something wrong, just can't figure it out..

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

I have put it in 3 different places, and each time it has worked, but then it just doesn't and the above message just shows up... I will get it figured out if it is the last thing I do LOL

hypnoticpimp 06-07-2006 04:28 PM

Does this work for 3.5.4?

Bubble #5 07-23-2006 09:21 PM

Quote:

Originally Posted by hypnoticpimp
Does this work for 3.5.4?

Did you read post 91?

Boofo, how do we exclude certain forums if we use this code in a link? Would we need some type of conditional?
Code:

search.php?do=process&replyless=1&replylimit=0&dontcache=1


All times are GMT. The time now is 02:42 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.01521 seconds
  • Memory Usage 1,782KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (8)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
  • (20)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