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)
-   -   Super Private Message (https://vborg.vbsupport.ru/showthread.php?t=82389)

SilverBoy 07-01-2005 05:28 PM

uae Are u there? :d

we waiting ur help

msgotit 07-12-2005 06:33 PM

SilverBoy,

I have looked at the code a little bit and I think that if you didn't care to have an email sent out then you could delete that code out of the superpm.php file. That is one option. 36000 emails are a lot to send. I don't think sending the PM itself should matter, but I don't deal with that many people. Maybe when UAE comes back he can shed some more light on the situation. I haven't tried this but I think that if you deleted this code out of the file it wouldn't send the email.

PHP Code:

if ($user['emailonpm'] AND $user['usergroupid'] != AND $user['usergroupid'] != 4)
                    {
                        
$touserinfo = &$user;
                        eval(
fetch_email_phrases('pmreceived'$touserinfo['languageid'], '''email'));
                        
vbmail($touserinfo['email'], $emailsubject$emailmessage);
                    } 

Like I said, I have NOT tried this, and it will likely make it so they don't get an email. I think that it will keep the server from getting hung up (assuming that it gets hung up because of the email).

msgotit 07-12-2005 08:23 PM

Quote:

Originally Posted by mprjr41510
SilverBoy,

Yes, that is a good idea... Similar to the way you can email users through vBulletin. It let's you choose a certain number of messages to send so you can do it in batches.

Hey uae, is this something you can add to the hack? :)

PMs are a lot different then email in that they are inserted into the database, they are not sent out, you may be right however that by doing a certain amount at one time may help, but I don't think so.

I got thinking about this, and you could be right, especially if you sent it to 36000 people. I haven't done much with database optimization, but that may be what you want to look at. I was reading that you could 'lock' the table and insert multiple records at once, which may be what you want to do, that is, eliminating that many insert statements could help. I don't know for sure however.

Mike_K 07-18-2005 08:26 AM

Quote:

Originally Posted by princessfrozen
I think I fixed it...

In superpm.php on Line 404
Found:
Code:

                                $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($pm[userid], '" . addslashes($pm['username']) .  "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");
Replaced with:
Code:

                                $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext (fromuserid, fromusername, title, message, iconid, dateline, showsignature, allowsmilie) VALUES ($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) .  "', '$title', '$message', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");


This works. Thank you very much!

the1maxim 07-30-2005 01:23 AM

Installed. It works great, and sends out the messages.....except I get this error, any ideas:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 354 bytes) in /srv/www/htdocs/includes/functions.php on line 316

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 40 bytes) in Unknown on line 0

Thanks.

blueuniverse 08-23-2005 06:09 PM

Thanks great hack. I'd love it if you could do the 500 private messages at a time thing as well. Not too much of a problem now with 3500 members but I can see it becoming one in the end.

Thanks for a great hack,

Ed :)

MajorFm.com 09-04-2005 06:15 AM

Will this work with 3.0.3 ok?

blueuniverse 10-15-2005 02:06 PM

I'm just getting a page cannot be displayed error when I click count & confirm now. Anybody shed some light as to why?

It's pretty urgent.

rs_fmr 11-06-2005 05:38 AM

I tried installing Super Private Message Mod Version: 1.0.1 over vbulletin 3.5.0 but the modifications required in admincp/index.php do not match. Is there any way by which Super PM can be used in Vbulletin 3.5.0

Mike_K 11-06-2005 07:50 PM

Quote:

Originally Posted by rs_fmr
I tried installing Super Private Message Mod Version: 1.0.1 over vbulletin 3.5.0 but the modifications required in admincp/index.php do not match. Is there any way by which Super PM can be used in Vbulletin 3.5.0


I am also interested in usign Super PM with 3.5.

I used it with 3.0.7 and it was fantastic!

Is there a way to get it in 3.5 ?


All times are GMT. The time now is 11:59 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.01158 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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