2009-05-10, 04:00 PM
2009-05-11, 06:23 AM
(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
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}
2009-05-12, 10:53 PM
2009-05-13, 08:24 AM
How to make this plugin compatible with 1406.?
2009-05-13, 12:14 PM
open the plugin whit a txt editor try this change "compatibility" => "1.4*" in to "compatibility" => "14*"
Inbetwee
Inbetwee
2009-05-13, 03:06 PM
(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
I've corrected the plugin and now it's working fine!
If you encounter any other bug, please report it here
Thanks,
MapoGio
2009-05-13, 05:46 PM
when the plugin is active gives an error in the top of the board to the guests.
screen:
[attachment=13855]
screen:
[attachment=13855]
2009-05-13, 06:18 PM
Try to replace this:
If it's ok, i'll publish this
Thanks,
MapoGio
EDIT: I've published it....Now it should be fine
Note that now message for guests isn't evaled
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 fineIf it's ok, i'll publish this
Thanks,
MapoGio
EDIT: I've published it....Now it should be fine
Note that now message for guests isn't evaled
2009-05-13, 06:39 PM
now works fine, great plugin!!!
thanks men!!!
thanks men!!!
2009-05-14, 11:59 AM
Nice Plugin.
Inbetwee
Inbetwee