Resource icon

[bd] Widget Framework 2.6.6

No permission to download
You can change the widget's title by editing it. Currently there is no way to use phrases for that.
Hmmm maybe if i go into the block templates, if there is any where the title is and add the pharsecall+blocktitle, that way when we name it hello it will ask for the phrase_hello and do what i want. Still i'm sure i will only bug everything but anyway test installation is for something!
 
Now, I created a HTML Widget.
Position is "resource_description", but it's not showing on resources.
Bug?
 
@xfrocks I've tried to use some HTML to style one of the headers on the sidebar, but the title row is set to varchar(75), so I can't use the full HTML string plus the title.

Would I be OK to increase the value?

EDIT: Yes you can. I set it to 150 and it works fine.
 
Last edited:
I managed to work perfectly this add-on on XenForo 1.2 Beta 1 changing the entire contents of root/library/WidgetFramework/Extend/DataWriter/Discussion/Thread.php file by
PHP:
<?php
class WidgetFramework_Extend_DataWriter_Discussion_Thread extends XFCP_WidgetFramework_Extend_DataWriter_Discussion_Thread {
    protected function _postSaveAfterTransaction() {
        parent::_postSaveAfterTransaction();
      
        // commented out due to problem with high traffic board
        // since 1.3
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
  
    protected function _discussionPostDelete() {
        parent::_discussionPostDelete();
      
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
}

See on XenFacil.com/foro/

Salud2
 
Last edited:
On XF 1.2.0 beta 1, when deleting a thread, WF causes a server error

Server Error
Argument 1 passed to WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() must be an array, none given, called in /var/data/public/forum/library/XenForo/DataWriter/Discussion.php on line 747 and defined

  1. XenForo_Application::handlePhpError() in WidgetFramework/Extend/DataWriter/Discussion/Thread.php at line 12
  2. WidgetFramework_Extend_DataWriter_Discussion_Thread->_discussionPostDelete() in XenForo/DataWriter/Discussion.php at line 747
  3. XenForo_DataWriter_Discussion->_postDelete() in XenForo/DataWriter.php at line 1762
  4. XenForo_DataWriter->delete() in XenForo/Model/Thread.php at line 1638
  5. XenForo_Model_Thread->deleteThread() in XenForo/ControllerPublic/Thread.php at line 1130
  6. XenForo_ControllerPublic_Thread->actionDelete() in XenForo/FrontController.php at line 335
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  8. XenForo_FrontController->run() in /var/data/public/forum/index.php at line 13
 
On XF 1.2.0 beta 1, when deleting a thread, WF causes a server error

Server Error
Argument 1 passed to WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() must be an array, none given, called in /var/data/public/forum/library/XenForo/DataWriter/Discussion.php on line 747 and defined

  1. XenForo_Application::handlePhpError() in WidgetFramework/Extend/DataWriter/Discussion/Thread.php at line 12
  2. ...

I managed to work perfectly this add-on on XenForo 1.2 Beta 1 changing the entire contents of root/library/WidgetFramework/Extend/DataWriter/Discussion/Thread.php file by
PHP:
<?php
class WidgetFramework_Extend_DataWriter_Discussion_Thread extends XFCP_WidgetFramework_Extend_DataWriter_Discussion_Thread {
    protected function _postSaveAfterTransaction() {
        parent::_postSaveAfterTransaction();
     
        // commented out due to problem with high traffic board
        // since 1.3
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
 
    protected function _discussionPostDelete() {
        parent::_discussionPostDelete();
     
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
}

See on XenFacil.com/foro/

Salud2
Salud2
 
This addon needs to be updated for XF 1.2.0 to reflect the spider showing on Member online widget
The phrase online_now_x_members_y_guests_z is shown at the bottom of this widget
 
Yes it needs, it replaces several sidebar widgets that did have their templates updated! I'm installing in my test version the addons to find bugs :)
 
Okay this framework is having a MAD bug with the XenPorta, I display the same block in Xenporta Index, and Forum List, and for some reason the block in Xenporta doesn't shows blocks sometimes, and also won't CACHE correctly, it is set 5min, it caches right in the forum list, but in xenporta, it shows the new topics for example, when it wants and not when it is set to.


The bug is, that the same widget from sudden stop caching in the Portal Page, and it random refuses to show X tab sometimes, if i go to the widget and edit/save it comes back to the normal, but it won't last many hours until it bugs again.

I'm wondering, anybody who is using this and displaying in a xenporta homepage did had any issue with this?
Because if I enter in another browser, login, it shows me fine, i'm not sure what is wrong.
 
Last edited:
I get this error when attempting to post:

The following error occurred:
Declaration of WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostDelete()
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload() in XenForo/Application.php at line 897
  4. XenForo_Application::autoload() in XenForo/Application.php at line 421
  5. XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 2007
  6. XenForo_DataWriter::create() in XenForo/DiscussionMessage/Definition/Post.php at line 47
  7. XenForo_DiscussionMessage_Definition_Post->getDiscussionDataWriter() in XenForo/DataWriter/DiscussionMessage.php at line 1089
  8. XenForo_DataWriter_DiscussionMessage->getDiscussionDataWriter() in XenForo/DataWriter/DiscussionMessage.php at line 433
  9. XenForo_DataWriter_DiscussionMessage->_setPosition() in XenForo/DataWriter/DiscussionMessage.php at line 353
  10. XenForo_DataWriter_DiscussionMessage->_preSave() in XenForo/DataWriter.php at line 1429
  11. XenForo_DataWriter->preSave() in XenForo/ControllerPublic/Thread.php at line 533
  12. XenForo_ControllerPublic_Thread->actionAddReply() in AnonymousPosting/ControllerPublic/Thread.php at line 13
  13. AnonymousPosting_ControllerPublic_Thread->actionAddReply() in XenForo/FrontController.php at line 335
  14. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  15. XenForo_FrontController->run() in blahbblahblah/index.php at line 13
 
  • Like
Reactions: LPH
I get that with all widgets disabled and no other widget addon such as lms' widget addons enabled.
 
I get that with all widgets disabled and no other widget addon such as lms' widget addons enabled.

My local install is also failing the same way - only clear sidebar enabled. I disable this add-on the post reply works.

XF12betaWidgetFramework.webp
 
I managed to work perfectly this add-on on XenForo 1.2 Beta 1 changing the entire contents of root/library/WidgetFramework/Extend/DataWriter/Discussion/Thread.php file by
PHP:
<?php
class WidgetFramework_Extend_DataWriter_Discussion_Thread extends XFCP_WidgetFramework_Extend_DataWriter_Discussion_Thread {
    protected function _postSaveAfterTransaction() {
        parent::_postSaveAfterTransaction();
     
        // commented out due to problem with high traffic board
        // since 1.3
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        // WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
 
    protected function _discussionPostDelete() {
        parent::_discussionPostDelete();
     
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Threads');
        WidgetFramework_Core::clearCachedWidgetByClass('WidgetFramework_WidgetRenderer_Poll');
    }
}

See on XenFacil.com/foro/

Salud2

I tried this fix and it said server replied with javascript error.
 
I tried this fix and it said server replied with javascript error.

I removed the "array, $messages" and $messages from lines 12 and 13 and it worked.

PHP:
  protected function _discussionPostDelete() {
     parent::_discussionPostDelete();
 
  • Like
Reactions: DRE
Important:

Those of you having this error. Seems to only happen when your forum is in debug mode.

I found out because I wasn't have this error. But I was debugging something and so turned on debug mode. That's when this started to show up and someone told me they couldn't post. Turned off debug mode and all was fine again.


Error Info
PHP:
ErrorException: Declaration of WidgetFramework_Extend_DataWriter_Discussion_Thread::_discussionPostDelete() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostDelete() - library/WidgetFramework/Extend/DataWriter/Discussion/Thread.php:18
Generated By: TheSource, 43 minutes ago
Stack Trace

PHP:
#0 /home/sociall1/public_html/forums/library/XenForo/Autoloader.php(119): XenForo_Application::handlePhpError(2048, 'Declaration of ...', '/home/sociall1/...', 18, Array)
#1 /home/sociall1/public_html/forums/library/XenForo/Autoloader.php(119): XenForo_Autoloader::autoload()
#2 /home/sociall1/public_html/forums/library/XenForo/Application.php(897): XenForo_Autoloader->autoload('WidgetFramework...')
#3 /home/sociall1/public_html/forums/library/XenForo/Application.php(421): XenForo_Application::autoload('WidgetFramework...')
#4 /home/sociall1/public_html/forums/library/XenForo/DataWriter.php(2007): XenForo_Application::resolveDynamicClass('XenForo_DataWri...', 'datawriter')
#5 /home/sociall1/public_html/forums/library/XenForo/DiscussionMessage/Definition/Post.php(47): XenForo_DataWriter::create('XenForo_DataWri...', 2)
#6 /home/sociall1/public_html/forums/library/XenForo/DataWriter/DiscussionMessage.php(1089): XenForo_DiscussionMessage_Definition_Post->getDiscussionDataWriter(16654, 2)
#7 /home/sociall1/public_html/forums/library/XenForo/DataWriter/DiscussionMessage.php(597): XenForo_DataWriter_DiscussionMessage->getDiscussionDataWriter()
#8 /home/sociall1/public_html/forums/library/XenForo/DataWriter/DiscussionMessage.php(540): XenForo_DataWriter_DiscussionMessage->_updateDiscussionPostSave()
#9 /home/sociall1/public_html/forums/library/XenForo/DataWriter.php(1392): XenForo_DataWriter_DiscussionMessage->_postSave()
#10 /home/sociall1/public_html/forums/library/XenForo/LikeHandler/Post.php(20): XenForo_DataWriter->save()
#11 /home/sociall1/public_html/forums/library/XenForo/Model/Like.php(236): XenForo_LikeHandler_Post->incrementLikeCounter(224091, Array)
#12 /home/sociall1/public_html/forums/library/XenForo/ControllerPublic/Post.php(372): XenForo_Model_Like->likeContent('post', 224091, 1)
#13 /home/sociall1/public_html/forums/library/XenForo/FrontController.php(335): XenForo_ControllerPublic_Post->actionLike()
#14 /home/sociall1/public_html/forums/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#15 /home/sociall1/public_html/forums/index.php(13): XenForo_FrontController->run()
#16 {main}

Request State

PHP:
array(3) {
  ["url"] => string(57) "http://www.sociallyuncensored.eu/forums/posts/224091/like"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(51) "/forums/threads/socially-uncensored-v11-beta.16654/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}


Untitled.webp
 
  • Like
Reactions: LPH
I'm trying to create a custom Renderer, but due to the lack of(Or inability to find) documentation I cannot for the life of me figure this out, I have the following code inside /library/WidgetFramework/WidgetRenderer/MCStats.php:

http://pastebin.com/b7a4G6sn

Yet I cannot figure out how to add this to the Add Widget->Renderer list, any help?
 
Back
Top Bottom