vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Thread Torrent (https://vborg.vbsupport.ru/showthread.php?t=53808)

Kriek 07-01-2003 11:16 PM

I'm so embarrassed :nervous:

Please change forumid to thread.forumid

alesis404 07-01-2003 11:27 PM

Kinda confused, isnt that what I already have?
PHP Code:

$dosql .= 'SELECT threadid,title,lastpost,replycount,postusername,thread.forumid'
    
$dosql .= ' FROM thread LEFT JOIN forumpermission USING(forumid) WHERE visible=1'
    
$dosql .= ' AND forumid NOT REGEXP ' $privateforum
    
$dosql .= ' AND forumpermission.forumid IS NULL ORDER BY lastpost DESC LIMIT ' $showthreadnumber






My first code change looks like this

PHP Code:

 // Settings
  
$reply 'Replies'
  
$description 'Active Threads'
  
$privateforum '9'
  
$showthreadnumber '10'





**No need to be embarassed Kriek ,I'm embarassed having to ask so many questions but *love* this script

Kriek 07-01-2003 11:47 PM

Alesis, find this line
PHP Code:

$dosql .= ' AND forumid NOT REGEXP ' $privateforum

Replace with the following
PHP Code:

$dosql .= ' AND thread.forumid NOT REGEXP ' $privateforum


alesis404 07-02-2003 01:50 AM

Rock and roll Kriek, tested and working 100% with the NNTP News Gateway hack https://vborg.vbsupport.ru/showthrea...threadid=35247

**Thanks again for all your help resolving theses small problems :)

Kriek 07-02-2003 02:51 AM

Alesis, glad it works for you ;)

alesis404 07-02-2003 07:26 AM

Just wondering Kriek, if a person would like to make multiple forums not show on the klipfolio would he just do something maybe like this?

PHP Code:

// Settings
$reply 'Replies'
$description 'Active Threads'
$privateforum '9';
$privateforum '2'
$privateforum '6'
$privateforum '4'
$showthreadnumber '10'


Kriek 07-02-2003 11:36 AM

Alesis, perhaps the most expedient and practicable way.
PHP Code:

$privateforum '9 OR 2 OR 6 OR 4 OR 10'

However if your forumid's run in numerical order with no exceptions (0, 1, 2, 3, 4, 5)
PHP Code:

$privateforum '"[0-5]"'


alesis404 07-03-2003 01:28 AM

Kriek it appeared I had this working last night with banning more than one forum but when I try with different forum ID's it seems to not work and only a single forumid=x will work

**Here is what I am trying now and it appears to let all the posts through to the klipfolio, I really have no clue what might cause this and thought you might know...all the forumids are located in my main forum and are not in any sub forums etc, these are all the correct forumid's that I wanna block.

Here is my edited code maybe you can spot the problem, thank you

........

Kriek 07-03-2003 02:44 AM

My regular expressions are rusty, however
PHP Code:

$privateforum '"([3]|[16]|[17])"'

Subsequently if that does not work, attempt this
PHP Code:

$privateforum '"((3)|(16)|(17))"'


alesis404 07-03-2003 03:30 AM

I havent tried the second one yet Kriek but the first appears to work!! :)

PHP Code:

$privateforum '"([3]|[16]|[17])"'

Thanks again, I tried few times downloading more posts from news servers and this time it didnt fill my klipfolio ;)


All times are GMT. The time now is 12:49 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.01084 seconds
  • Memory Usage 1,750KB
  • 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
  • (10)bbcode_php_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