GoodForNothing Notification

GoodForNothing Notification 1.0.6 Update 3

No permission to download
A nice forum deserve nice notifications.
thanks for share this great addon.
working absolutely perfect in 1.4.4 (y)
 
i have a question for the add on if it is at all possible, limit the notifications to only show if the user has the site open.
Good Morning :)

Is it possible to realise that this alerts only will be shown when the user is present in the forum, like the core alerts?
When i visit my forum and get on the first site maybe 84 new notifications, it´s strange :)

And, thanks for this addon
drink.gif
 
Got an error on Server Error Log.

Server Error Log

Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : BIGINT UNSIGNED value is out of range in '(`xenforo_db`.`xf_user`.`alerts_unread` - 1)' - library/Zend/Db/Statement/Mysqli.php:214
Generated By: USER, 12 minutes ago

Stack Trace
#0 /library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /library/GFNNotify/Model/Notify.php(58): Zend_Db_Adapter_Abstract->query('UPDATE xf_user\r...', 42090)
#3 /library/GFNNotify/ControllerPublic/Notify.php(43): GFNNotify_Model_Notify->markAlertRead(Array)
#4 /library/XenForo/FrontController.php(347): GFNNotify_ControllerPublic_Notify->actionMarkRead()
#5 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /index.php(13): XenForo_FrontController->run()
#7 {main}

Request State
array(3) {
["url"] => string(43) "/gfnnotify/mark-read"
["_GET"] => array(1) {
["/gfnnotify/mark-read"] => string(0) ""
}
["_POST"] => array(5) {
["alert_id"] => string(8) "12324446"
["_xfRequestUri"] => string(1) "/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
Hey Mr. Goodie2Shoes - I uninstalled the mod and tried to re-upload and install your new version. I keep getting this whenever I try:

qFK1tjp.png


How do I get around this?
 
How do I get around this?
Looks like the uninstall process didn't get executed correctly.

Create a new PHP file in your forum (i.e. where the index.php, admin.php, library exists) and call it anything (e.g. something.php) and add this content:
PHP:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

@set_time_limit(0);

$deps = new XenForo_Dependencies_Public();
$deps->preLoadData();

$i = new GFNNotify_Data_Sql_1000411();
$i->uninstall();
$i = new GFNNotify_Data_Sql_1000111();
$i->uninstall();

Then visit http://yoursite.com/forums/something.php
Log into your AdminCP to see if there is any new server error log. If not then you can install the latest version :D
 
Log into your AdminCP to see if there is any new server error log. If not then you can install the latest version :D
I get this now when trying to install:

Code:
mkdir(): Permission denied

XenForo_Application::handlePhpError()
mkdir() in XenForo/Helper/File.php at line 72
XenForo_Helper_File::createDirectory() in GFNCore/Helper/Directory.php at line 31
GFNCore_Helper_Directory::copy() in GFNCore/Installer/Handler/Style.php at line 36
GFNCore_Installer_Handler_Style->handle() in GFNCore/Installer/Abstract.php at line 74
GFNCore_Installer_Abstract::initiate() in GFNCore/Installer/Abstract.php at line 16
GFNCore_Installer_Abstract::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/sectioneighty.com/public/forum/admin.php at line 13
 
*noticed in the screenshot for the last update, Noodle from the band Gorillaz was in there*

Not sure if that was intentional, but that was cool.

Anyways, thanks for creating this awesome add-on and keep up the hard work on this! Starred your repo on GitHub.
 
I get this now when trying to install:

Code:
mkdir(): Permission denied

XenForo_Application::handlePhpError()
mkdir() in XenForo/Helper/File.php at line 72
XenForo_Helper_File::createDirectory() in GFNCore/Helper/Directory.php at line 31
GFNCore_Helper_Directory::copy() in GFNCore/Installer/Handler/Style.php at line 36
GFNCore_Installer_Handler_Style->handle() in GFNCore/Installer/Abstract.php at line 74
GFNCore_Installer_Abstract::initiate() in GFNCore/Installer/Abstract.php at line 16
GFNCore_Installer_Abstract::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/sectioneighty.com/public/forum/admin.php at line 13

Upload and overwrite Style.php file inside /library/GFNCore/Installer/Handler/ directory with the attached one.
For the record, I just tried updating to 1.0.6 as well, and I had this exact same issue. The file you patched it with worked perfectly and now I am upgraded and running.

You may want to release the fix in XenForo because I imagine if two people had the issue, there are more as well.

Edit: Still threw a server error, but it worked.

Code:
Server Error Log
Error Info
ErrorException: mkdir(): Permission denied - library/XenForo/Helper/File.php:72
Generated By: jflory7, 1 minute ago
Stack Trace

#0 [internal function]: XenForo_Application::handlePhpError(2, 'mkdir(): Permis...', '/var/www/crysta...', 72, Array)
#1 /var/www/crystalcraftmc.com/public_html/library/XenForo/Helper/File.php(72): mkdir('/var/www/crysta...')
#2 /var/www/crystalcraftmc.com/public_html/library/GFNCore/Helper/Directory.php(31): XenForo_Helper_File::createDirectory('/var/www/crysta...', false)
#3 /var/www/crystalcraftmc.com/public_html/library/GFNCore/Installer/Handler/Style.php(38): GFNCore_Helper_Directory::copy('/var/www/crysta...', '/var/www/crysta...')
#4 /var/www/crystalcraftmc.com/public_html/library/GFNCore/Installer/Abstract.php(74): GFNCore_Installer_Handler_Style->handle('GFNNotify')
#5 /var/www/crystalcraftmc.com/public_html/library/GFNCore/Installer/Abstract.php(16): GFNCore_Installer_Abstract::initiate('install', Array)
#6 [internal function]: GFNCore_Installer_Abstract::install(Array, Array, Object(SimpleXMLElement))
#7 /var/www/crystalcraftmc.com/public_html/library/XenForo/Model/AddOn.php(215): call_user_func(Array, Array, Array, Object(SimpleXMLElement))
#8 /var/www/crystalcraftmc.com/public_html/library/XenForo/Model/AddOn.php(169): XenForo_Model_AddOn->installAddOnXml(Object(SimpleXMLElement), 'GFNNotify')
#9 /var/www/crystalcraftmc.com/public_html/library/XenForo/ControllerAdmin/AddOn.php(236): XenForo_Model_AddOn->installAddOnXmlFromFile('/tmp/phpBiO6Qh', 'GFNNotify')
#10 /var/www/crystalcraftmc.com/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_AddOn->actionUpgrade()
#11 /var/www/crystalcraftmc.com/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /var/www/crystalcraftmc.com/public_html/admin.php(13): XenForo_FrontController->run()
#13 {main}

Request State

array(3) {
  ["url"] => string(61) "http://crystalcraftmc.com/admin.php?add-ons/GFNNotify/upgrade"
  ["_GET"] => array(1) {
    ["add-ons/GFNNotify/upgrade"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["server_file"] => string(0) ""
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}
 
I get this now when trying to install:

Code:
mkdir(): Permission denied

XenForo_Application::handlePhpError()
mkdir() in XenForo/Helper/File.php at line 72
XenForo_Helper_File::createDirectory() in GFNCore/Helper/Directory.php at line 31
GFNCore_Helper_Directory::copy() in GFNCore/Installer/Handler/Style.php at line 36
GFNCore_Installer_Handler_Style->handle() in GFNCore/Installer/Abstract.php at line 74
GFNCore_Installer_Abstract::initiate() in GFNCore/Installer/Abstract.php at line 16
GFNCore_Installer_Abstract::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/nginx/domains/sectioneighty.com/public/forum/admin.php at line 13
Wow, Another Centminmod user :)
 
Top Bottom