Xen Notices [Deleted]

This enchanted default xenforo notices system or there is new options beside in admin.php?options/list/XenNotices?
When installing, browser stoped (freeze) so I click refresh and then installing continued. Should I uninstall then install again?
 
Do you know how many recent days are set to consider someone active?
In this case it's 180 days.

Limit auto-complete and birthday lists to active users
Similar to the previous option, username auto-complete and birthday lists are now limited to only showing users that have been active (somewhat) recently. The goal in both cases is to filter out users that are unlikely to be contacted or sought out.

As it stands, this is not option controlled and defaults to users active in the last 180 days.
 
It can be hidden from guests fairly easily with CSS.

Code:
.LoggedOut  .Notice.notice_0
{
    display: none;
}
Though I wonder if there's much benefit to it being shown to guests at all.
 
Hey, @Chris D, having an issue. Thought it might have been the add-on, so I removed it (wasn't the add-on) so installed it again. Now, when I try to edit a notice and choose a custom (or any) background settings I get these show up. This is on the site that I did that test on (that's now live - so don't know if that might have had an effect on it).

EDIT:
Woot-Woot.. fixed it.. think the issue was that it didn't drop all the tables in the uninstall. I found the install.php for it, and used the alter table query in it for the re-install in phpmyadmin (it is good for something) and it reported that custom_easy_border already existed. When I removed the below from that alter table segment I copied, it ran fine and was able to save new notices once more.
Code:
                ADD custom_easy_border VARCHAR(25) NOT NULL DEFAULT '',


Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'custom_easy_bg' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Wobbly Bits, A moment ago
Stack Trace
#0 /home/nginx/domains/thebent.bike/public/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('UPDATE `xf_noti...')
#1 /home/nginx/domains/thebent.bike/public/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'UPDATE `xf_noti...')
#2 /home/nginx/domains/thebent.bike/public/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('UPDATE `xf_noti...')
#3 /home/nginx/domains/thebent.bike/public/library/Zend/Db/Adapter/Abstract.php(632): Zend_Db_Adapter_Abstract->query('UPDATE `xf_noti...', Array)
#4 /home/nginx/domains/thebent.bike/public/library/XenForo/DataWriter.php(1640): Zend_Db_Adapter_Abstract->update('xf_notice', Array, 'notice_id = 1')
#5 /home/nginx/domains/thebent.bike/public/library/XenForo/DataWriter.php(1609): XenForo_DataWriter->_update()
#6 /home/nginx/domains/thebent.bike/public/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#7 /home/nginx/domains/thebent.bike/public/library/XenForo/ControllerAdmin/Notice.php(93): XenForo_DataWriter->save()
#8 /home/nginx/domains/thebent.bike/public/library/XenNotices/ControllerAdmin/Notice.php(53): XenForo_ControllerAdmin_Notice->actionSave()
#9 /home/nginx/domains/thebent.bike/public/library/XenForo/FrontController.php(351): XenNotices_ControllerAdmin_Notice->actionSave()
#10 /home/nginx/domains/thebent.bike/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /home/nginx/domains/thebent.bike/public/admin.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(76) "https://thebent.bike/admin.php?notices/welcome-to-the-bent-bike-forum.1/save"
  ["_GET"] => array(1) {
    ["notices/welcome-to-the-bent-bike-forum_1/save"] => string(0) ""
  }
  ["_POST"] => array(18) {
    ["title"] => string(30) "Welcome to The Bent Bike Forum"
    ["message"] => string(181) "<p>We'd like to take a moment to welcome you to your little home on the interwebz. &nbsp;Look around, make yourself comfortable and if you ride a recumbent (or any HPV) join in!</p>"
    ["display_image"] => string(6) "avatar"
    ["visibility"] => string(0) ""
    ["notice_type"] => string(8) "floating"
    ["display_style"] => string(9) "secondary"
    ["display_style_shown"] => string(1) "1"
    ["display_duration"] => string(5) "12000"
    ["delay_duration"] => string(4) "2000"
    ["wrap"] => string(1) "1"
    ["dismissible"] => string(1) "1"
    ["active"] => string(1) "1"
    ["display_order"] => string(1) "1"
    ["user_criteria"] => array(1) {
      ["is_guest"] => array(1) {
        ["rule"] => string(8) "is_guest"
      }
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(56) "/admin.php?notices/welcome-to-the-bent-bike-forum.1/edit"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
ErrorException: Undefined index: user_id - library/XenNotices/ControllerAdmin/Notice.php:35
Generated By: Wobbly Bits, 1 minute ago
Stack Trace
#0 /home/nginx/domains/thebent.bike/public/library/XenNotices/ControllerAdmin/Notice.php(35): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 35, Array)
#1 /home/nginx/domains/thebent.bike/public/library/XenForo/FrontController.php(351): XenNotices_ControllerAdmin_Notice->actionSave()
#2 /home/nginx/domains/thebent.bike/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /home/nginx/domains/thebent.bike/public/admin.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(76) "https://thebent.bike/admin.php?notices/welcome-to-the-bent-bike-forum.1/save"
  ["_GET"] => array(1) {
    ["notices/welcome-to-the-bent-bike-forum_1/save"] => string(0) ""
  }
  ["_POST"] => array(18) {
    ["title"] => string(30) "Welcome to The Bent Bike Forum"
    ["message"] => string(181) "<p>We'd like to take a moment to welcome you to your little home on the interwebz. &nbsp;Look around, make yourself comfortable and if you ride a recumbent (or any HPV) join in!</p>"
    ["display_image"] => string(6) "avatar"
    ["visibility"] => string(0) ""
    ["notice_type"] => string(8) "floating"
    ["display_style"] => string(9) "secondary"
    ["display_style_shown"] => string(1) "1"
    ["display_duration"] => string(5) "12000"
    ["delay_duration"] => string(4) "2000"
    ["wrap"] => string(1) "1"
    ["dismissible"] => string(1) "1"
    ["active"] => string(1) "1"
    ["display_order"] => string(1) "1"
    ["user_criteria"] => array(1) {
      ["is_guest"] => array(1) {
        ["rule"] => string(8) "is_guest"
      }
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(56) "/admin.php?notices/welcome-to-the-bent-bike-forum.1/edit"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
I'll do some testing then but it sounds like it was probably something not being cleared out of the database before, therefore preventing the columns being re-added or something?
 
That's what I'm leaning towards. I'm running CentOS 6.7 with @eva2000's CentMin Mod - and @TJA and I have both had issues with cache(s) not being flushed with some add-ons and them either not installing correctly (missing DB tables) or, in my case, uninstalling incorrectly.
I'm running both memcached (libmemcached) and PHP's built in opcode caching (I've now set the
Code:
opcache.revalidate_freq=0
instead of 180).
 
Nope, the uninstaller is broken. Doh!

It doesn't drop the custom_easy_border column from xf_notice, so when you uninstall and reinstall, the reinstall fails because the custom_easy_border already exists. Fix imminent.
 
Nope, the uninstaller is broken. Doh!
Woot! I found a bug! Hershey Kisses w/almonds time for me!

Would modifying the install.php with
Code:
            ALTER TABLE xf_notice
            DROP custom_easy_bg,
            DROP custom_easy_text,
            DROP custom_easy_border,
            DROP user_id,
            DROP auto_reset_value,
            DROP auto_reset_unit,
            DROP last_auto_reset,
            DROP next_auto_reset
suffice for a local install until then?
 
Woot! I found a bug! Hershey Kisses w/almonds time for me!

Would modifying the install.php with
Code:
            ALTER TABLE xf_notice
            DROP custom_easy_bg,
            DROP custom_easy_text,
            DROP custom_easy_border,
            DROP user_id,
            DROP auto_reset_value,
            DROP auto_reset_unit,
            DROP last_auto_reset,
            DROP next_auto_reset
suffice for a local install until then?
Yes, or just download the new version ;)
 
Someone outright asked me earlier if I had any Black Friday deals; usually I don't. But in a moment of weakness, I am actually going to be giving 10% off anything at https://xenresources.com until the end of the year.

This means you can get Xen Notices for only £18 until December 31st.
 
Thanks Chris
I have changed my licence URL . and deleted the addon in my old domain. can you please tell me which folder should I remove now to complete uninstallation?
 
Back
Top Bottom