GoodForNothing Notification

GoodForNothing Notification 1.0.6 Update 3

No permission to download
nope. didn't even get fully uploaded and i got thisView attachment 86786
Me too :(

EDIT:

The problem is in the Listener...
HTML:
public static function createPublicContainerTemplate(&$templateName, array &$params, XenForo_Template_Abstract $template)

EDIT2:

I did work! you must remove the credits at the beginning of template.php and it works!

Example:

PHP:
<?php

class GFNNotify_Listener_Template
{
    public static function createPublicContainerTemplate(&$templateName, array &$params, XenForo_Template_Abstract $template)
    {
        if (!($template instanceof XenForo_Template_Public))
        {
            return;
        }

        $template->addRequiredExternal('js', 'js/gfnnotify/notification.js');
        $template->addRequiredExternal('css', 'gfnnotify_item');
    }
}

//0ea9e3510b13765b7a33e733d953323cfa8dc4d9

/**
* @package    GoodForNothing Notification
* @version    1.0.0 Alpha 1
* @since      1.0.0 Alpha 1
* @author     GoodForNothing Labs
* @copyright  Copyright © 2012-2014 GoodForNothing Labs <http://gfnlabs.com/>
* @license    https://gfnlabs.com/legal/license
* @link       https://gfnlabs.com/
*/
 
Last edited:
kept getting

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@gametec.co.uk to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

have disabled the addon for now
 
Litespeed is a variant of Apache ;)
They also have their own error logger.. please look into it to find anything related.
Code:
2014-10-19 01:48:50.851 [NOTICE] [/home/rahstyl1/public_html/forum/.htaccess:11] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:48:50.851 [NOTICE] [/home/rahstyl1/public_html/forum/.htaccess:10] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:48:50.851 [NOTICE] [/home/rahstyl1/public_html/forum/.htaccess:9] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:48:50.851 [NOTICE] [/home/rahstyl1/public_html/forum/.htaccess:8] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:46:21.096 [INFO] [68.180.225.38:54496-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:46:21.096 [INFO] [68.180.225.38:54496-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/robots.txt]
2014-10-19 01:43:14.346 [INFO] [100.43.90.13:48480-0#APVH_test.rahstyles.net] File not found [/home/rahstyl1/public_html/test/404.shtml]
2014-10-19 01:43:14.346 [INFO] [100.43.90.13:48480-0#APVH_test.rahstyles.net] File not found [/home/rahstyl1/public_html/test/robots.txt]
2014-10-19 01:43:14.346 [NOTICE] [/home/rahstyl1/public_html/test/.htaccess:11] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:43:14.346 [NOTICE] [/home/rahstyl1/public_html/test/.htaccess:10] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:43:14.346 [NOTICE] [/home/rahstyl1/public_html/test/.htaccess:9] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:43:14.346 [NOTICE] [/home/rahstyl1/public_html/test/.htaccess:8] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2014-10-19 01:42:05.668 [INFO] [105.226.228.238:54575-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:42:05.668 [INFO] [105.226.228.238:54575-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/browserconfig.xml]
2014-10-19 01:40:23.868 [INFO] [24.230.96.108:23158-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:40:23.868 [INFO] [24.230.96.108:23158-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/robots.txt]
2014-10-19 01:39:48.805 [INFO] [54.86.207.203:60622-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:39:48.805 [INFO] [54.86.207.203:60622-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/robots.txt]
2014-10-19 01:29:19.617 [INFO] [162.210.196.97:14166-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:29:19.617 [INFO] [162.210.196.97:14166-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/robots.txt]
2014-10-19 01:22:22.730 [INFO] [100.43.85.6:61757-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:22:22.730 [INFO] [100.43.85.6:61757-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/robots.txt]
2014-10-19 01:19:34.261 [INFO] [138.128.16.7:51635-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 01:19:34.261 [INFO] [138.128.16.7:51635-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/login/]
2014-10-19 00:56:18.306 [INFO] [91.207.4.22:51135-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/404.shtml]
2014-10-19 00:56:18.306 [INFO] [91.207.4.22:51135-0#APVH_rahstyles.net] File not found [/home/rahstyl1/public_html/2013/05/when-did-i-start-making-money-online.html]
 
Me too :(

EDIT:

The problem is in the Listener...
HTML:
public static function createPublicContainerTemplate(&$templateName, array &$params, XenForo_Template_Abstract $template)

EDIT2:

I did work! you must remove the credits at the beginning of template.php and it works!

Example:

PHP:
<?php

class GFNNotify_Listener_Template
{
    public static function createPublicContainerTemplate(&$templateName, array &$params, XenForo_Template_Abstract $template)
    {
        if (!($template instanceof XenForo_Template_Public))
        {
            return;
        }

        $template->addRequiredExternal('js', 'js/gfnnotify/notification.js');
        $template->addRequiredExternal('css', 'gfnnotify_item');
    }
}

//0ea9e3510b13765b7a33e733d953323cfa8dc4d9

/**
* @package    GoodForNothing Notification
* @version    1.0.0 Alpha 1
* @since      1.0.0 Alpha 1
* @author     GoodForNothing Labs
* @copyright  Copyright © 2012-2014 GoodForNothing Labs <http://gfnlabs.com/>
* @license    https://gfnlabs.com/legal/license
* @link       https://gfnlabs.com/
*/
where do i find this to edit?
 
okay im there what part do i need to edit
remove this section:
PHP:
//0ea9e3510b13765b7a33e733d953323cfa8dc4d9

/**
* @package GoodForNothing Notification
* @version 1.0.0 Alpha 1
* @since 1.0.0 Alpha 1
* @author GoodForNothing Labs
* @copyright Copyright © 2012-2014 GoodForNothing Labs <http://gfnlabs.com/>
* @license https://gfnlabs.com/legal/license
* @link https://gfnlabs.com/
*/
 
Code:
<?php

    class GritterNotifications_Listener

    {

        public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)

        {

            if ($hookName == 'page_container_notices')

            {

                $notifications = XenForo_Model::create('GritterNotifications_Model_Notification')->getAllNotifications();

                $userToMatch = XenForo_Visitor::getInstance()->toArray();

                $userId = $userToMatch['user_id'];

                $containerData = XenForo_Template_Public::getExtraContainerData();



                $dismissedNotifications = XenForo_Model::create('GritterNotifications_Model_Notification')->getDismissedNotificationIdsForUser($userId);

               

                $visitor = XenForo_Visitor::getInstance();

               

                $birthdays = array();

                $birthdayString = '';



                foreach ($notifications AS $notificationId => $notification)

                {
this is the start of the code
 
remove this section:
PHP:
//0ea9e3510b13765b7a33e733d953323cfa8dc4d9

/**
* @package GoodForNothing Notification
* @version 1.0.0 Alpha 1
* @since 1.0.0 Alpha 1
* @author GoodForNothing Labs
* @copyright Copyright © 2012-2014 GoodForNothing Labs <http://gfnlabs.com/>
* @license https://gfnlabs.com/legal/license
* @link https://gfnlabs.com/
*/
how odd i dont have that in there
 
Top Bottom