![]() |
Pm All Members *Via Email Form
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. |
oh wow, good stuff man, gvery good thinking *clicks install*
|
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.... |
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"; } |
Ok Instead Do This
Find Code:
echo $vbphrase['emailing']." \n"; Code:
if ($_POST['pm']==1){// Lets PM All Instead |
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 |
fantastic work. Went flawlessly
|
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.
|
Quote:
It sounds to me like you did the first edit, then put the fix over top of it. |
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?
|
Quote:
|
That's easy to fix. You just need to add an addslashes to the username variable when inserting it into the db.
|
hey insanctus, you should create a user with an apostrophe in its name and then try mass pming. I'm pretty dead set sure it's the apostrophes doin the error.
|
Find
Code:
$DB_site->query("INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) Code:
$DB_site->query("INSERT INTO pmtext |
parse error on line 201 and line 201 is just a ).
|
Sounds like you missed some of the code copy. Can you post your code?
|
Quote:
|
Quote:
Code:
$DB_site->query("INSERT INTO pmtext Code:
$DB_site->query("INSERT INTO pmtext |
Quote:
|
workin perfectly ;)
|
Will this work even if they have pms or emails turned off from Admins?
|
Quote:
You will have to click the ignore those who do not want emails from admin though. I found this the most efficent way to do the hack. |
Quote:
|
Then I better click install, huh? ;)
|
Quote:
|
nice. Ive been waiting forever on this hack! Installing now.
|
im getting a Parse error: parse error in email.php on line 204
|
Quote:
|
Quote:
|
Quote:
It has all the options of mass email. I do recommend checking the "Include users that have declined admin emails?" |
Thanks.! Works great.. :D
I made this work with phrases too, just to be a little cleaner. |
would you mind me emailing the file to you? I think its a problem with another hack i had installed on the email.php
|
is there way you could do a auto-reload the next page after X number of seconds? sending out 10k emails or PM's kill the server or time-out. being able to auto-reload the next page so we can do 50-100 at a time would really make things alot easier!
|
Sory for my very very bad englisch.
This Hack no email sends to the user which it has a PM :( bye Smoker |
Sweet - wanted this for a while as my e-mail always times out.
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
greetz subu1 |
Quote:
Great hack, installing later but will click install :) |
How can we fix this?
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /forum/admincp/email.php on line 132 |
All times are GMT. The time now is 04:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|