MyBB Community Forums

Full Version: [Release]Wanum Box (version 1.6) (aka Welcome Header)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Very nice plugin! Thanks alot.
(2009-05-10, 03:14 PM)Lokki Wrote: [ -> ]This plugin is incompatible with MyBB 1406

Can you explain the problem you have??
If i'm able i will fix it Wink
Thanks


--------------------------------------------
EDIT: Check that in the template "header" there is the var:
{$wanum}
If you can't find it, try to add it before
{$pm_notice}
Wink
(2009-05-11, 06:23 AM)MapoGio Wrote: [ -> ]
(2009-05-10, 03:14 PM)Lokki Wrote: [ -> ]This plugin is incompatible with MyBB 1406

Can you explain the problem you have??
If i'm able i will fix it Wink
Thanks

If You want actived the plugin at says This plugin is incompatible with MyBB 1406

Inbetwee
How to make this plugin compatible with 1406.?
open the plugin whit a txt editor try this change "compatibility" => "1.4*" in to "compatibility" => "14*"

Inbetwee
(2009-05-13, 12:14 PM)inbetwee Wrote: [ -> ]open the plugin whit a txt editor try this change "compatibility" => "1.4*" in to "compatibility" => "14*"

Thanks for the report Wink
I've corrected the plugin and now it's working fine! Big Grin

If you encounter any other bug, please report it here
Thanks,
MapoGio
when the plugin is active gives an error in the top of the board to the guests.

screen:

[attachment=13855]
Try to replace this:
function wanum_do()
{
	global $wanum, $mybb, $templates, $theme;
	
	//$control = 0;
	
	//guests
	if ($mybb->user['uid'] == 0) {
		if ($mybb->settings['wanum_onoff_1'] == 1) {
			$wanum_message = $mybb->settings['wanum_text_1'];
			//$control = 1;
		}
	}else{
		//Awaiting Activation members
		if ($mybb->user['usergroup'] == 5) {
			if ($mybb->settings['wanum_onoff_2'] == 1) {
				$wanum_message = $mybb->settings['wanum_text_2'];
			}
		}else{
			
			//users with last post older than...
			if ($mybb->settings['wanum_time']*60*60*24 <= (TIME_NOW-$mybb->user['lastpost'])) {
				if ($mybb->settings['wanum_onoff_4'] == 1) {
					$wanum_message = $mybb->settings['wanum_text_4'];
				}
			}else{
					//New users
					if (intval($mybb->user['postnum']) < intval($mybb->settings['wanum_minpost'])) {
						if ($mybb->settings['wanum_onoff_3'] == 1) {
							$wanum_message = $mybb->settings['wanum_text_3'];
						}
				}
			}
		}
	}
	
	if ($wanum_message!= "") {
		//if ($control != 1){
		eval("\$wanum_message = \"".$wanum_message."\";");
		//}
		eval("\$wanum = \"".$templates->get("wanum_box")."\";");
	}

}
with this:
function wanum_do()
{
	global $wanum, $mybb, $templates, $theme;
	
	$control = 0;
	
	//guests
	if ($mybb->user['uid'] == 0) {
		if ($mybb->settings['wanum_onoff_1'] == 1) {
			$wanum_message = $mybb->settings['wanum_text_1'];
			$control = 1;
		}
	}else{
		//Awaiting Activation members
		if ($mybb->user['usergroup'] == 5) {
			if ($mybb->settings['wanum_onoff_2'] == 1) {
				$wanum_message = $mybb->settings['wanum_text_2'];
			}
		}else{
			
			//users with last post older than...
			if ($mybb->settings['wanum_time']*60*60*24 <= (TIME_NOW-$mybb->user['lastpost'])) {
				if ($mybb->settings['wanum_onoff_4'] == 1) {
					$wanum_message = $mybb->settings['wanum_text_4'];
				}
			}else{
					//New users
					if (intval($mybb->user['postnum']) < intval($mybb->settings['wanum_minpost'])) {
						if ($mybb->settings['wanum_onoff_3'] == 1) {
							$wanum_message = $mybb->settings['wanum_text_3'];
						}
				}
			}
		}
	}
	
	if ($wanum_message!= "") {
		if ($control != 1){
			eval("\$wanum_message = \"".$wanum_message."\";");
		}
		eval("\$wanum = \"".$templates->get("wanum_box")."\";");
	}

}
For me it is working fineWink
If it's ok, i'll publish this Wink

Thanks,
MapoGio

EDIT: I've published it....Now it should be fine Wink

Note that now message for guests isn't evaled Wink
now works fine, great plugin!!!

thanks men!!!
Nice Plugin.

Inbetwee
Pages: 1 2 3 4 5