MyBB Community Forums

Full Version: Nitemares Mod List
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
For the EMS is it possible to show different messages to different groups
yup all you have to know is what the display group number is

in the settings page look for the setting "Display to groups:"

in there enter the number for the user group you want to display the EMS for, if you want more then one user group, seperat the numbers by a comma (,)
Like for group 1 message "x" and for group 2 message "y" and for group 3 message "z" is this possible
lapsetur Wrote:Like for group 1 message "x" and for group 2 message "y" and for group 3 message "z" is this possible

no, but it might be consitered for a future release
ad system updated hopefuly to fix a mySQL bug in the activate for hte first time,
got sql error after installing ad system
what error?
mySQL error: 1146
Table 'rew.mybb_ads' doesn't exist
Query: SELECT MAX(aid) AS aid FROM mybb_ads
try cycling the plugin (as in, deactivating/reactivating), and make sure your using the latest version
Nightmare your 3.5 of Ad Rotation system is screwed up.


function do_ads()
{
global $db, $templates, $footer, $banner;

$blah = "0";
while ($blah != "1"){
$count = $db->query("SELECT MAX(aid) AS aid FROM ".TABLE_PREFIX."ads");
$num = $db->fetch_array($count);
$ran = rand(1,$num['aid']);

//Echo "Random: ".$ran."<br />";
//Echo "Finish?: ".$blah."<br />";

$query = $db->query("SELECT * FROM ".TABLE_PREFIX."ads WHERE aid='".$ran."'");
$ads = $db->fetch_array($query);
//echo "Mode: ".$ads['mode']."<br />";
//echo "Aid: ".$ads['aid'];
if ($ads['aid'] == $ran and $ads['mode'] != "3" and $ads['mode'] != "4"){
$blah = "1";
}
}

if ($ads['mode'] == 2){
$new = $ads['shown']+1;
if ($new < $ads['max']){
$db->query("UPDATE ".TABLE_PREFIX."ads SET shown='".$new."' WHERE aid='".$ran."'");
}else{
$db->query("UPDATE ".TABLE_PREFIX."ads SET mode='4' WHERE aid='".$ran."'");
}
}

eval("\$banner = \"".addslashes($ads['code'])."\";");

}

It creates an infiniate loop, because $blah Will ALWAYS Be NOT Equal 1. I suggest updating your script as soon as possible. You should really test out your plugins on your own boards before you release them you know. I've had to deactivate this plugin because my forums wouldnt work.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14