vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=92588)

ShawnV 09-25-2006 12:31 PM

I am using this as a mailing list gateway however I have one small problem, is there a simple way to set it to not mask emails and to just send to mailing list using the users Vbulletin email?

Thanks in advance for any help.

_V

Aylwin 09-25-2006 01:02 PM

Quote:

Originally Posted by ShawnV
...send to mailing list using the users Vbulletin email?

In the newsgroup settings:
Enter 'use_real_email' if you want the posts to use the real email addresses.

ShawnV 09-25-2006 01:14 PM

Doh, yeah I must have been up way to late I missed that in the readme file.

Thank You. :)

ullo 09-25-2006 05:33 PM

Quote:

Originally Posted by klaus
The Subject deal worked perfect for Mailinglist.

But attachments are ignored.
My settings: "Skip attachments no_attach 0"

"Thread found by Subject.
This forum does not allow attachments, therefore attachment ignored."

If I post in the forum I can post attachments fine. I use filesystem for my attachments by the way, not sure if that matters.

I HAVE THE SAME IDENTICAL PROBLEM. ATTACHMENT ARE NOT DOWNLOADED BY THE THE SCRIPT WHEN I LAUNCH
gateway.php?debug=1
and i have the error :
"This forum does not allow attachments, therefore attachment ignored."
But i have allowed all attachment for all forums. What is the solution ?

ullo 09-25-2006 05:41 PM

Quote:

Originally Posted by TMM-TT
I had some problems with attachments, but after some changes (after the above advices about functions_image.php, etc) that worked too. I actually just made it work ;)


(But I still have problems with showing thumbnails)

Yes. I have the error above using 3.6.1.
If i use 3.5.5 attachment and thumbnails work good ?

TMM-TT 09-25-2006 06:06 PM

Quote:

Originally Posted by ullo
"This forum does not allow attachments, therefore attachment ignored."
But i have allowed all attachment for all forums. What is the solution ?

It has been described earlier somwhere. If it was here or a thread for a rescent version of vB or not, I don't know but I think that worked out for me.

You need an old functions_image.php


In functions_nntp.php, disable this text (around line 887 or something):

PHP Code:

if (!$attachtypes[$extension] OR !$attachtypes[$extension]['enabled'])
        {
                
logging($extension " extensions are not accepted, as currently set up in the control panel.");
        }
        else
        {
                
$extensionok true;
        } 


After that text I also added this (I don't know if that's necessary):

PHP Code:

        // Always accepting attachments... [tornevall]
        
$extensionok true


I never got my thumbnails work with the default code so I hade to change saveintodb to:


PHP Code:

function saveintodb($i$thumbnail$filesize$date$postid)
{
        global 
$vbulletin$db$nntp;
        
$message =& $nntp['message'];

   
// save with thumbs into the db
   
$filesize $filesize 0;

        if (
$vbulletin->options['attachthumbs']) {$okthumb 1;}
        
// Another modification [Tornevall]
        
$okthumb 1;

   if (
$okthumb == 1)
   {
        
$db->query("INSERT INTO " TABLE_PREFIX "attachment SET dateline = '$date',
                filename = '" 
addslashes($message['attachment' $i]['headers']['filename']) . "',
                filedata = '" 
$db->escape_string($message['attachment' $i]['body']) . "', visible = 1,
                thumbnail = '" 
$db->escape_string($thumbnail['filedata']) . "',
                thumbnail_dateline = " 
$thumbnail['dateline'] . ",
                thumbnail_filesize = " 
$thumbnail['filesize'] . ",
                filesize = 
$filesize,
                postid = 
$postid");
        
//logging("inserted with thumb");
   
}
   else  
//and without
   
{
        
$db->query("INSERT INTO " TABLE_PREFIX "attachment SET dateline = '$date',
                filename = '" 
addslashes($message['attachment' $i]['headers']['filename']) . "',
                filedata = '" 
$db->escape_string($message['attachment' $i]['body']) . "', visible = 1,
                filesize = 
$filesize,
                postid = 
$postid");
        
//logging("inserted without thumb");
   
}
        
//logging("insertion complete");



... to always accept attachments.

Something like that. Those "Tornevall"-things is made for myself to find the code easier in case of patching, etc. :)

ullo 09-25-2006 08:12 PM

Can you tell me where is the functions_image.php that i have to replace ? I have not found it in the directory includes

TMM-TT 09-25-2006 09:23 PM

Quote:

Originally Posted by ullo
Can you tell me where is the functions_image.php that i have to replace ? I have not found it in the directory includes


I use one from 3.0.10.


Quote:

Originally Posted by ullo
<b>Parse error</b>: parse error, unexpected $ in <b>/home/httpd/vhosts/asian-99.com/httpdocs/groups/includes/functions_nntp.php</b> on line <b>1060</b><br />


Try the one I attached - that's the one I use and it should work.

ullo 09-25-2006 09:43 PM

Yes. Pardon My Terrible Stupidity.
Pardon Me If I Made Different Post.

When I Have A Problem I Lose My Mind And I Became Mad.

Now I Will Cancel All Post And I Try Your Script.

THANK YOU VERY MUCH.

mdevour 09-25-2006 11:23 PM

I've gotten some supportive replies to my message asking for the chance to help resurrect this mod. Lierduh has indicated he's willing to pass it on to somebody new, so long as it stays a no-cost hack. I agree with that!

I've printed out the php and xml files so I can start looking over the code and getting a feel for the scope of what we're working with. Fun... :tired:

What I need to know next is how you manage a modification thread here on vB.org? Is there a "Newbie's guide to publishing a hack?" I haven't found anything like it yet, except one sketchy announcement at the top of the 3.5 mods forum.

Otherwise, is there a developer out there who'd take a few minutes to talk me through the basics?

Do we start out in this thread or jump right in and start a new 3.6.1 thread and do all of our bootstrapping in plain view? Or launch a development thread someplace a little less obtrusive and wait 'til a solid beta is ready to put it up on the 3.6.1 forum? Has anyone seen how it's done?

As I said, I've got the time and interest to keep the files and documentation updated as you all fix bugs and add features. I can also work on the installation instructions, since I'll be doing a lot of installing and testing.

By the time we're ready to release for 3.6.1 (or .2) I'll probably be able to contribute my share of coding and support.

That much should let people start installing and using the hack again. Then we can step back and take a look at what we want to do next...

TMM-TT and Aylwin have both listed features they'd like to see added. I've my own list as well. If we can attract the interest of a couple more folks who've used or are using it, we may have enough momentum to make a go.

I hope so.

Answers, ideas, or suggestions anyone?

Thank you,

Mike D.


All times are GMT. The time now is 02:17 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.02403 seconds
  • Memory Usage 1,777KB
  • 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
  • (3)bbcode_php_printable
  • (6)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