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 ;)

Kriek 07-03-2003 12:07 PM

Alesis, you?re quite welcome ;)

alesis404 07-28-2003 12:04 AM

Kriek I seem to have a small problem after adding more threads to block and it seems while they are blocked it also blocks other forum ID's and I'm not sure why :( ...for instance forum 5 gets blocked with this code...perhaps I have too many?

PHP Code:

$privateforum '"([3]|[24]|[25]|[26]|[27]|[28]|[29]|[30])"' 


Kriek 07-28-2003 03:22 PM

Alesis, Hopefully a quick fix; diffrent method.

Find this line
PHP Code:

$privateforum '"([3]|[24]|[25]|[26]|[27]|[28]|[29]|[30])"'

Replace with the following
PHP Code:

$privateforum "'3', '24', '25', '26', '27', '28', '29', '30'"

Find this line
PHP Code:

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

Replace with the following
PHP Code:

$dosql .= ' AND thread.forumid NOT IN (' $privateforum ')'


alesis404 07-28-2003 07:02 PM

Thank you again Kriek, that works perfect :)

**BTW, cool art on your website :)

Kriek 07-28-2003 09:46 PM

Again -- Alesis, you?re quite welcome ;)

To answer the question as to why 5 was getting matched (as well as 3,4,6,7,8,9,0) is that the square brackets create a character set. For example [24] creates a set of two characters that will match both 2 and 4 (did I mention my regular expressions are rusty). So the proper syntax should have been
PHP Code:

$privateforum '"^(3|25|26|27|28|29|30|6)$'"; 

However using regular expressions (as I have come to find out) is much slower than a list of comma separated values on a row that has an index such as this.
PHP Code:

$privateforum "'3', '24', '25', '26', '27', '28', '29', '30'"


alesis404 07-28-2003 10:59 PM

I'm learning....slowly :)

Kriek 07-29-2003 12:00 AM

Alesis, check your private messages and also note the additional options for Who's Online (display Serence KlipFolio User for location) updated in the installation files (vbtt.rar).

alesis404 07-29-2003 12:40 AM

Kriek, I followed your directions in your updated .rar files for "Who's Online"

*I simply added the code below where you specified in online.php in the 2 locations, I then assumed I would check in the user CP under "Who's Online" and would see the reference's to who is online with klipfolio...I'm not sure this is correct but all I see is myself viewing the control panel?

**Note I did not re-upload vbtt.php and vbtt.klip...all i have done is edited the online php file.

**Not sure this make a difference but awhile back I edited a template to change who's online to look like this...LoL :)

Total Online: 4_ |_ Members Online: 1_ |_ News Robots Online: 3_|

*Not sure this would effect the operation of this mod, I had changed this template because klipfolios were showing online when users were not online*

Kriek 07-29-2003 03:46 AM

No, absolutely nothing to do with any control panel. This update alters the output of the location field via Who's Online (yourforum.com/forum/online.php), thatÂ’s all. See the attachment.

alesis404 06-28-2004 09:46 PM

Hello Kriek, I'm just curious if Thread Torrent is easily modified for use with VB 3.0? I recently installed it and totally forgot it might not work and I'm hoping it would be easy for me too modify and make it all work, thanks.


All times are GMT. The time now is 02:36 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.01578 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
  • (17)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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