MyBB Community Forums

Full Version: Mass email problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi, i'm using mybb 1.1.3, and when i use mass email to send a message to the admin and super mod groups and set "Messages to send at once" to the # 2, and set "Override "Allow Notices" Preference" to yes, then type in the message and click send it will send the message to all of my super mods and admins(there are more than 2) then on the bottom of the page there will be a link that says next page, if i click it then it sends the message to every member
could i get help with this
Can you tell me if this fixes the problem:

Open admin/users.php
Find (around line 580):
		if(is_array($search))
		{
			while(list($key, $val) = each($search))
			{
				$hiddens .= "<input type=\"hidden\" name=\"search[$key]\" value=\"$val\">";
			}
		}
Replace with:
		if(is_array($search))
		{
			foreach($search as $key => $val)
			{
				if(is_array($val))
				{
					foreach($val as $subkey => $subval)
					{
						$hiddens .= "<input type=\"hidden\" name=\"search[$key][$subkey]\" value=\"$subval\">";
					}
				}
				else
				{
					$hiddens .= "<input type=\"hidden\" name=\"search[$key]\" value=\"$val\">";
				}
			}
		}
it still sends 4 (it is set to send 2 perpage) and there is a next page button at the bottom of the page, however i don't want to click it because the last time that i clicked it then all members got the email
Did you use my fix? If you did, can you view source the frame of the first page (the first 2) and post here the source.
here it is:
<html lang="en">
<head>
<title></title>
<link rel="stylesheet" href="./styles/YellowCP/stylesheet.css">

<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script type="text/javascript">
function hopto(url) {
window.location = url;
}
</script></head>
<body>
<div  align="center"><div class="navigation">
<a href="index.php?action=home">Backstage Neopets Forums Control Panel</a><br /><img src="../images//nav_bit.gif" alt="---" border="0" /><span class="active">User Management</span>
</div></div><br /><table cellpadding="1" cellspacing="0" border="0" align="center" width="90%" class="bordercolor">
<tr><td>

<table cellpadding="6" cellspacing="0" border="0" width="100%" class="tback"><tr>
<td class="header" align="center" colspan="2"><a name="">Mass Mail</a></td>
</tr>
<tr>
<td class="subheader" align="center" colspan="2">Results matching search conditions: 4</td>
</tr>
<tr>
<td class="altbg1" valign="top">
Email sent to nekng<br />Email sent to uniquechic<br />Email sent to Jordan Pardy<br />Email sent to Steph<br /><br>Done!</td>
</tr>

</table>
</td></tr></table>
<br />
<form action="users.php" method="post" name="" enctype="multipart/form-data" >
<input type="hidden" name="action" value="do_email">
<input type="hidden" name="search[username]" value=""><input type="hidden" name="search[usergroups][0]" value="4"><input type="hidden" name="search[usergroups][1]" value="3"><input type="hidden" name="search[email]" value=""><input type="hidden" name="search[homepage]" value=""><input type="hidden" name="search[icq]" value=""><input type="hidden" name="search[aim]" value=""><input type="hidden" name="search[yahoo]" value=""><input type="hidden" name="search[msn]" value=""><input type="hidden" name="search[signature]" value=""><input type="hidden" name="search[usertitle]" value=""><input type="hidden" name="search[postsgreater]" value=""><input type="hidden" name="search[postsless]" value=""><input type="hidden" name="search[overridenotice]" value="yes"><input type="hidden" name="searchop[perpage]" value="2"><input type="hidden" name="searchop[from]" value="[email protected]"><input type="hidden" name="searchop[subject]" value="Sorry"><input type="hidden" name="searchop[message]" value="sorry about all there mass emails but we are still trying to get the system to work,
               ~nekng"><input type="hidden" name="searchop[type]" value="email"><input type="hidden" name="searchop[page]" value="1"><input type="hidden" name="searchop[start]" value="0"><div align="center"><div class="formbuttons">
<input type="submit" class="submitbutton" name="View Next Page" value="  View Next Page  ">&nbsp;&nbsp;
</div></div></form>
<center><br><br>
<font size="1" face="Verdana,Arial,Helvetica">Powered by: <b>MyBB 1.1.3</b><br>Copyright &copy; 2005 MyBB Group<br />Generated in: 0.5957620 seconds with 7 queries.</font></center>
</body>

</html>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>
whats all that Sym javascript for?
don't know, however it is on many of my mybb pages, and it is also on alot of other sites that i visit
Tikitiki Wrote:whats all that Sym javascript for?
It's put in by some Symantec tool to prevent popups and that stuff.
can i get help with my problem, it still does not function correctly
Pages: 1 2 3