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)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=65152)

chas_h 05-18-2004 03:50 AM

FWIW, I am using EasyNews as a Usenet provider, seems to work pretty well.

mcncyo 05-18-2004 06:17 AM

have a couple of questions. I would like to disable all post from a couple of users that are in the usergroup. Is there away of deleting thread topics that start with certin users?

lierduh 05-18-2004 07:18 AM

Quote:

Originally Posted by KevinM
Just got this up and running on a fresh install. Fantastic job. I've used the vb2 version for a year and this is a vast improvement. Particularly appreciated are the no-archive option and UU-encoded attachments (This now opens up all the binary groups which was too problematic with just mime encoded features). Control panel works great as well.

That is good. I have not actually tried a binary group (now I tell you.:))

Quote:

Is there a way of creating the thumbnails at the same time the the messages are downloaded? If you have the thumbnails option active, it shows the broken red x in the message. When you manually run the re-create thumbs option from the update counters menu it does create them, but it means re-creating the entire attachment table.
I will have a look at this.

Quote:

I can't get the attachments to work when using the 'attachments as files' option (this would be my preferred option with a vast number of attachments). the files download, but when you click the link on the post it can't find the file. When you reverse the process (i.e. switch back from files to db storage) the images reappear.
Sorry for my ignorance, where is this option located? are we talking about outgoing or incoming. I can check it out, but I am feeling lazy after working on the AdminCP interfaces.

lierduh 05-18-2004 07:22 AM

Quote:

Originally Posted by chas_h
1) Lierduh, when you talk about adding a 'new usenet posts' to the navbar, is that as part of the 'quick links' menu or is it a whole new button on the navbar? I need to add it to quicklinks because I have removed the other 'new posts' thing.

2) when Allan was talking about commenting out the entire signature routine in gateway.php, could someone show exactly what I need to comment out? I would definitely like to remove that part for now.

Thanks Lierduh!

"New Usenet Posts" will be at the main navigation bar next to the "New Posts" link if you followed the readme file. If you have moved the original link to quick link, you should be able to do the same for the USENET link.

The next version will contain the signature option.:)

lierduh 05-18-2004 07:24 AM

Quote:

Originally Posted by cyo
have a couple of questions. I would like to disable all post from a couple of users that are in the usergroup. Is there away of deleting thread topics that start with certin users?

Can't you disable them posting in the usenet forums altogether?

mcncyo 05-18-2004 07:26 AM

Quote:

Originally Posted by lierduh
Can't you disable them posting in the usenet forums altogether?


i am talking about newsgroup users that i don't want to display on my messageboard.

lierduh 05-18-2004 07:28 AM

Quote:

Originally Posted by Erwin
To upgrade from the beta vB3 version in the vB2 hack thread to this new vB3 version, you need to upload the new files here, and then run these queries before running the new gateway to add the new nntp settings variables:

Otherwise, this new gateway.php won't work with the old settings. :)

Update: With the AdminCP interfaces becoming available, this is no longer a problem. The first time the panel is openned, the script will detect and carry out the upgrade.:)

Erwin 05-18-2004 09:16 AM

To disable the forum signature, find and remove this code in gateway.php:

PHP Code:

            if ($newthread['showsignature']){
                
$get_userinfo=$DB_site->query("SELECT field1 AS signature,usertitle,customtitle ".
              
"FROM " TABLE_PREFIX "user AS user LEFT JOIN " 
              
TABLE_PREFIX "userfield AS userfield ON user.userid=userfield.userid WHERE
              user.userid=
{$newthread['userid']} LIMIT 1");

              
$userinfo=$DB_site->fetch_array($get_userinfo);

              
$signature .= "\n\n";
              
$signature .= format_text($userinfo['signature']);
            } 

The newsgroup signature (with links to your forum and the thread) will still be present. :) The large forum signatures will no longer be added.

allan grossman 05-18-2004 09:57 AM

Or - if you want to, just comment out the whole thing - change this
PHP Code:

        // get user's signature
        
if ($newthread['userid']){
            
$signature "\n-- \n";
            
$signature .= $newthread['username'];
            
//if ($userinfo[customtitle]){ $signature .= " - $userinfo[usertitle]"; }
            //Only show signature if showsignature is true for this post
            
if ($newthread['showsignature']){
                
$get_userinfo=$DB_site->query("SELECT field1 AS signature,usertitle,customtitle ".
              
"FROM " TABLE_PREFIX "user AS user LEFT JOIN " 
              
TABLE_PREFIX "userfield AS userfield ON user.userid=userfield.userid WHERE
              user.userid=
{$newthread['userid']} LIMIT 1");

              
$userinfo=$DB_site->fetch_array($get_userinfo);

              
$signature .= "\n\n";
              
$signature .= format_text($userinfo['signature']);
            }

            
$signature .= "\n------------------------------------------------------------------------\n";
            
$signature .= "{$newthread['username']}'s Profile: {$settings['profileurl']}{$newthread['userid']}\n";
            
$signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
        } else {
            
$userinfo false;
            
$signature "\n-- \n{$newthread['username']} - Unregistered User";
            
$signature .= "\n------------------------------------------------------------------------\n";
            
$signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
        } 

to this
PHP Code:

        // get user's signature
//        if ($newthread['userid']){
//            $signature = "\n-- \n";
//            $signature .= $newthread['username'];
            //if ($userinfo[customtitle]){ $signature .= " - $userinfo[usertitle]"; }
            //Only show signature if showsignature is true for this post
//            if ($newthread['showsignature']){
//                $get_userinfo=$DB_site->query("SELECT field1 AS signature,usertitle,customtitle ".
//              "FROM " . TABLE_PREFIX . "user AS user LEFT JOIN " . 
//              TABLE_PREFIX . "userfield AS userfield ON user.userid=userfield.userid WHERE
//              user.userid={$newthread['userid']} LIMIT 1");
//
//              $userinfo=$DB_site->fetch_array($get_userinfo);
//
//              $signature .= "\n\n";
//              $signature .= format_text($userinfo['signature']);
//            }
//
//            $signature .= "\n------------------------------------------------------------------------\n";
//            $signature .= "{$newthread['username']}'s Profile: {$settings['profileurl']}{$newthread['userid']}\n";
//            $signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
//        } else {
//            $userinfo = false;
//            $signature = "\n-- \n{$newthread['username']} - Unregistered User";
//            $signature .= "\n------------------------------------------------------------------------\n";
//            $signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
//        } 

or - you can remove the entire routine. I choose to leave the code in place - which causes a tiny performance hit, but at least it's easy to remember what I did when a new release comes out :)

cheers,

allan

mcncyo 05-18-2004 10:11 AM

i am getting this error below

Code:


Fatal error</b>:  Maximum execution time of 1800 seconds exceeded in <b>/home/forum2/public_html/forum/includes/functions_databuild.php</b> on line <b>477</b><br />

[1]+  Done



All times are GMT. The time now is 07:25 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.02017 seconds
  • Memory Usage 1,781KB
  • 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
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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