Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Pm All Members *Via Email Form Details »»
Pm All Members *Via Email Form
Version: 1.00, by insanctus insanctus is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-01-2004 Last Update: Never Installs: 36
 
No support by the author.

As asked for Here

What this does, is turn your admin email all into an email or pm all.

I did it this way due to less clutter and files also effective.

I will offer support as my time allows.

See Screan Shot To See Effect.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-02-2004, 02:29 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh wow, good stuff man, gvery good thinking *clicks install*
Reply With Quote
  #3  
Old 05-02-2004, 02:36 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No trouble at all, the thought on how to do it this way came to me in the middle of dinner.

Very odd this hack is not showing up on main page....
Reply With Quote
  #4  
Old 05-02-2004, 02:36 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's not showing up for some reason

I can't find the

if (!$_POST['test'])
{
echo $vbphrase['emailing']." \n";
vbmail($user['email'], $_POST['subject'], $sendmessage, true, $_POST['from']);
}
}

Instead the part i do find in email.php is

if (!$_POST['test'])
{
echo $vbphrase['emailing']." \n";
vbmail($user['email'], $_POST['subject'], $sendmessage, true, $_POST['from']);
}
else
{
echo $vbphrase['test'] . " ... \n";
}
Reply With Quote
  #5  
Old 05-02-2004, 02:40 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok Instead Do This

Find
Code:
						echo $vbphrase['emailing']." \n";
						vbmail($user['email'], $_POST['subject'], $sendmessage, true, $_POST['from']);
Replace With

Code:
		if ($_POST['pm']==1){// Lets PM All Instead
			$DB_site->query("INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie)
			VALUES ($bbuserinfo[userid], '$bbuserinfo[username]', '$_POST[subject]', '" . addslashes($sendmessage) . "',  '" . serialize(array($user[userid] => $user[username])) . "', 0, " . TIMENOW . ", 0, 0)");
			$pmid = $DB_site->insert_id();
			$DB_site->query("UPDATE user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid=$user[userid]");
			$DB_site->query("INSERT INTO pm (pmtextid, userid, folderid, messageread) VALUES ('$pmid', '$user[userid]', '0', '0')");
		}else{
			echo $vbphrase['emailing']." \n";
			vbmail($user['email'], $_POST['subject'], $sendmessage, true, $_POST['from']);
}
I will update the txt now
Reply With Quote
  #6  
Old 05-02-2004, 02:53 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get this error when i mass pm it. It stops at the UserID 464 with a guy's name X's Angel, this is the sql error it gives.


Database error in vBulletin 3.0.0:

Invalid SQL: INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie)
VALUES (1, 'deathscythehell', 'test #3', 'testing once more', 'a:1:{i:464;s:9:"X's Angel";}', 0, 1083469828, 0, 0)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Angel";}', 0, 1083469828, 0, 0)' at line 2

mysql error number: 1064

Date: Sunday 02nd of May 2004 03:50:29 AM
Script: http://forums.squareultima.com/admincp/email.php
Referer: http://forums.squareultima.com/admin...l.php?do=start
Username: deathscythehell
IP Address: 64.40.53.44
Reply With Quote
  #7  
Old 05-02-2004, 02:58 AM
allhandl allhandl is offline
 
Join Date: Mar 2004
Location: Delaware
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fantastic work. Went flawlessly
Reply With Quote
  #8  
Old 05-02-2004, 03:00 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you possitive you added it in right spot, I just did a test on my site of 940 members and it worked as planed.
Reply With Quote
  #9  
Old 05-02-2004, 03:02 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vivi Ornitier
i get this error when i mass pm it. It stops at the UserID 464 with a guy's name X's Angel, this is the sql error it gives.


Database error in vBulletin 3.0.0:

Invalid SQL: INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie)
VALUES (1, 'deathscythehell', 'test #3', 'testing once more', 'a:1:{i:464;s:9:"X's Angel";}', 0, 1083469828, 0, 0)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Angel";}', 0, 1083469828, 0, 0)' at line 2

mysql error number: 1064

Date: Sunday 02nd of May 2004 03:50:29 AM
Script: http://forums.squareultima.com/admincp/email.php
Referer: http://forums.squareultima.com/admin...l.php?do=start
Username: deathscythehell
IP Address: 64.40.53.44
Do me a favor and post your exact code from that section

It sounds to me like you did the first edit, then put the fix over top of it.
Reply With Quote
  #10  
Old 05-02-2004, 03:03 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya, i think it's somethin to do with confliction with apostrophes. You can't have any ' in a name or else it screws it up?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07186 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete