Thread Rating:
  • 7 Vote(s) - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release]Wanum Box (version 1.6) (aka Welcome Header)
#11
Very nice plugin! Thanks alot.
Reply
#12
(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
Reply
#13
(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
[Image: mybbsig.php]

Reply
#14
How to make this plugin compatible with 1406.?
I Am Noob - But Not Weak - Understand? - Don't Force Me

Who Knows, What He Can Do?

I like .it.cx even not TLD Domain Smile
Reply
#15
open the plugin whit a txt editor try this change "compatibility" => "1.4*" in to "compatibility" => "14*"

Inbetwee
[Image: mybbsig.php]

Reply
#16
(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
Reply
#17
when the plugin is active gives an error in the top of the board to the guests.

screen:

   
Reply
#18
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
Reply
#19
now works fine, great plugin!!!

thanks men!!!
Reply
#20
Nice Plugin.

Inbetwee
[Image: mybbsig.php]

Reply


Forum Jump:


Users browsing this thread: 16 Guest(s)