Resource icon

[bd] Widget Framework 2.6.6

No permission to download
I want to create a widget page using it to replace standard forum_list page. What renderer should I use and what is the proper expression to identify threads for each group?
 
Strange. Please post a screenshot of your setup. Also make sure to run the latest version of the add-on :)
Attached is the screenshot from admin area and front page can be seen here - http://www.africahunting.com/

You can see that order of widget in admin area is what I want but then it just shows in different order in front page.
 

Attachments

  • Edit Widget Page: AfricaHunting.com | Admin CP - AfricaHunting.com.webp
    Edit Widget Page: AfricaHunting.com | Admin CP - AfricaHunting.com.webp
    36.8 KB · Views: 17
Hi, during import of a widget to my existing widgets list i received the following error :D

Code:
An exception occurred: Mysqli prepare error: MySQL server has gone away in /home/user/public_html/xf13/library/Zend/Db/Statement/Mysqli.php on line 77

    Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
    XenForo_Model->fetchAllKeyed() in XenForo/Model/AdminNavigation.php at line 31
    XenForo_Model_AdminNavigation->getAdminNavigationEntries() in XenForo/Model/AdminNavigation.php at line 405
    XenForo_Model_AdminNavigation->getAdminNavigationForDisplay() in XenForo/Dependencies/Admin.php at line 224
    XenForo_Dependencies_Admin->_getNavigationContainerParams() in XenForo/Dependencies/Admin.php at line 202
    XenForo_Dependencies_Admin->getEffectiveContainerParams() in XenForo/FrontController.php at line 616
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in /home/doctor/public_html/xf13/admin.php at line 13
error showing on user side
Code:
An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/user/public_html/xf13/library/Zend/Db/Adapter/Mysqli.php on line 333

[LIST=1]
[*]Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
[*]Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 685
[*]XenForo_Application->loadDb()
[*]call_user_func_array() in XenForo/Application.php at line 922
[*]XenForo_Application->lazyLoad() in XenForo/Application.php at line 953
[*]XenForo_Application::get() in XenForo/Application.php at line 1481
[*]XenForo_Application::getDb() in XenForo/Model.php at line 161
[*]XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
[*]XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
[*]XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 144
[*]XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
[*]XenForo_FrontController->run() in /home/doctor/public_html/xf13/index.php at line 13
[/LIST]

Any idea to deal with that?
 
Would it be possible to add a user adjustable timer to the Recent Status caching? I think it's currently set at a default 3600 seconds (1 hour) - could we have an ACP option to change it to suit? (or maybe have a drop-down selection so people can't run it every second!!! perhaps 5 mins / 10 mins / 15 mins / 30 mins / 60 mins - so people can adjust to suit?)
Has something like this been implemented for recent statuses? Very annoying to not see recent statuses until an hour after they were posted.
 
Hi, during import of a widget to my existing widgets list i received the following error :D

Code:
An exception occurred: Mysqli prepare error: MySQL server has gone away in /home/user/public_html/xf13/library/Zend/Db/Statement/Mysqli.php on line 77

    Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
    Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
    Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
    Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219
    XenForo_Model->fetchAllKeyed() in XenForo/Model/AdminNavigation.php at line 31
    XenForo_Model_AdminNavigation->getAdminNavigationEntries() in XenForo/Model/AdminNavigation.php at line 405
    XenForo_Model_AdminNavigation->getAdminNavigationForDisplay() in XenForo/Dependencies/Admin.php at line 224
    XenForo_Dependencies_Admin->_getNavigationContainerParams() in XenForo/Dependencies/Admin.php at line 202
    XenForo_Dependencies_Admin->getEffectiveContainerParams() in XenForo/FrontController.php at line 616
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in /home/doctor/public_html/xf13/admin.php at line 13
error showing on user side
Code:
An exception occurred: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/user/public_html/xf13/library/Zend/Db/Adapter/Mysqli.php on line 333

[LIST=1]
[*]Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
[*]Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 685
[*]XenForo_Application->loadDb()
[*]call_user_func_array() in XenForo/Application.php at line 922
[*]XenForo_Application->lazyLoad() in XenForo/Application.php at line 953
[*]XenForo_Application::get() in XenForo/Application.php at line 1481
[*]XenForo_Application::getDb() in XenForo/Model.php at line 161
[*]XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
[*]XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
[*]XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 144
[*]XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
[*]XenForo_FrontController->run() in /home/doctor/public_html/xf13/index.php at line 13
[/LIST]

Any idea to deal with that?
Become OK after an hour or so ;)
 
Hi again,
I have issues understanding the 'position system' for a widget front page.

I understand that the positions are placed like in this example:

positions.webp

The top 0 position is not an issue to me. The widgets are placed like a charm - but it's when I try and place the widgets underneath the row 0 I have issues. I just don't seem to manage placing them correctly and when I type position 4, the row will be shown in position 1 instead and reverse. It's very frustrating.

This is the Widget Page:
WF1.webp

And this is the position settings:

WF2.webp

The one there should be shown in the top under row 0, but it's shown on position 4.

Perhaps I'm setting the positions wrong or something. All help is welcome - I spent too much time on it already ;)

Thank you
 
oh and also, I'm trying to use simple HTML (like <ul><li> with bullet points) in the HTML widgets, but it won't allow me to style it :/

(However using anchor links html is working fine)
 
Last edited:
I'm getting thousands of errors all of a sudden:

ErrorException: Constant WidgetFramework_WidgetRenderer_Empty.noVisitorPanel already defined - library/WidgetFramework/WidgetRenderer/Empty.php:46
Generated By: Unknown Account, 2 λεπτά πριν
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'Constant Widget...', '/home/avsite/pu...', 46, Array)
#1 /home/avsite/public_html/forum/library/WidgetFramework/WidgetRenderer/Empty.php(46): define('WidgetFramework...', true)
#2 /home/avsite/public_html/forum/library/WidgetFramework/Core.php(396): WidgetFramework_WidgetRenderer_Empty->render(Array, 'find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#3 /home/avsite/public_html/forum/library/WidgetFramework/Core.php(313): WidgetFramework_Core->_renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), '')
#4 /home/avsite/public_html/forum/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('find_new_wrappe...', Array, Object(XenForo_Template_Public), Array)
#5 [internal function]: WidgetFramework_Listener::template_post_render('find_new_wrappe...', '???????????????...', Array, Object(XenForo_Template_Public))
#6 /home/avsite/public_html/forum/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#7 /home/avsite/public_html/forum/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'find_new_wrappe...')
#8 /home/avsite/public_html/forum/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#9 /home/avsite/public_html/forum/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#10 /home/avsite/public_html/forum/library/XenForo/FrontController.php(614): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#11 /home/avsite/public_html/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#12 /home/avsite/public_html/forum/index.php(13): XenForo_FrontController->run()
#13 {main}
 
Hello,

I am trying to add some widgets to the side bar but I have two problems.
  1. I am trying to make the widget only show for one category. Here is the link: http://clubfauna.com/forums/categories/classifieds.44/ But I can not seem to make it work. How would the conditional look for that?
  2. I am trying to make another widget show for multiple categories, but that does not work.
Can anyone please help me. I have checked the FAQ but I am still lost. Maybe I am not replacing what needs to be replaced correctly.
 
Hello,

I am trying to add some widgets to the side bar but I have two problems.
  1. I am trying to make the widget only show for one category. Here is the link: http://clubfauna.com/forums/categories/classifieds.44/ But I can not seem to make it work. How would the conditional look for that?
  2. I am trying to make another widget show for multiple categories, but that does not work.
Can anyone please help me. I have checked the FAQ but I am still lost. Maybe I am not replacing what needs to be replaced correctly.
Q: Can we use category id instead? That way, show widget under category X would cover all the forums under this category.
A: Yes, you can use this with "forum_view" position or similar:
PHP:
$forum['parent_node_id'] == <category-id>
 
Also getting "ErrorException: Constant WidgetFramework_WidgetRenderer_Empty.noVisitorPanel already defined - library/WidgetFramework/WidgetRenderer/Empty.php:46"

#0 [internal function]: XenForo_Application::handlePhpError(8, 'Constant Widget...', '/home/stateofr/...', 46, Array)
#1 /home/stateofr/public_html/update/library/WidgetFramework/WidgetRenderer/Empty.php(46): define('WidgetFramework...', true)
#2 /home/stateofr/public_html/update/library/WidgetFramework/Core.php(396): WidgetFramework_WidgetRenderer_Empty->render(Array, 'help_wrapper', Array, Object(XenForo_Template_Public), '')
#3 /home/stateofr/public_html/update/library/WidgetFramework/Core.php(313): WidgetFramework_Core->_renderWidgetsFor('help_wrapper', Array, Object(XenForo_Template_Public), '')
#4 /home/stateofr/public_html/update/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('help_wrapper', Array, Object(XenForo_Template_Public), Array)
#5 [internal function]: WidgetFramework_Listener::template_post_render('help_wrapper', '???<div class="...', Array, Object(XenForo_Template_Public))
#6 /home/stateofr/public_html/update/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#7 /home/stateofr/public_html/update/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'help_wrapper')
#8 /home/stateofr/public_html/update/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#9 /home/stateofr/public_html/update/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#10 /home/stateofr/public_html/update/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#11 /home/stateofr/public_html/update/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#12 /home/stateofr/public_html/update/index.php(13): XenForo_FrontController->run()
#13 {main}

Being caused by "index.php?help/cookies"
 
He hasn't logged in since June 2... hopefully just on vacation.

I am looking for help with the below images. Recent Threads is above Recent Sponsor Threads but it does not show up that way on the actual page.

Screen Shot 2014-06-11 at 6.54.56 PM.webp Screen Shot 2014-06-11 at 6.55.11 PM.webp
 
No idea, but I think it's not possible.
or you want some new post on certain node only?

I just want to the new threads to show on 'newest threads' and those threads that don't have any
replies not to show up on 'latest replies' on the sidebar.

I would think this would be doable but I'm not overly techie. :)

Ken
 
I just want to the new threads to show on 'newest threads' and those threads that don't have any
replies not to show up on 'latest replies' on the sidebar.

I would think this would be doable but I'm not overly techie. :)

Ken
Yes I think it's possible but don't know what's the right expression.
 
Top Bottom