Resource icon

[bd] Widget Framework 2.6.6

No permission to download

NinaMcI

Active member
Hi. I'm using the Users renderer with order factor set as register date and Display mode as List.

I'd like to show custom user field titles and values for each user. Can anyone help me achieve this?

Thanks
 
Apologies if this has been answered a million times. I can't find documenation on how to set up a simple widget that just displays some text and a link. I've spent the last hour trying to figure out what the Advanced HTML Widget does but I'm stuck.

All I want to do is display some custom text in a widget. I know how to position the widget but I just don't know which type or template I ought to be using to display simple text with a link.
 
Hi, seems this thread is not that active anymore, but one way to do it: use the Advanced HTML&template, and the code can be simple like:

Code:
<a href="http://www.project-france.com/forum/" target="_blank">
<img src="https://assettocorsamods.net/styles/casual/xenforo/widgets/ban_pfrance.png" style="border:none;max-width:100%;" alt="http://www.project-france.com/forum/">
</a>
What this does is just display an image in the widget, with a link.
 

FedLounge

Member
On v 2.5.9 I'm getting a bunch of server errors:

Fatal Error: syntax error, unexpected '{' - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
 
Hi, seems this thread is not that active anymore, but one way to do it: use the Advanced HTML&template, and the code can be simple like:

Code:
<a href="http://www.project-france.com/forum/" target="_blank">
<img src="https://assettocorsamods.net/styles/casual/xenforo/widgets/ban_pfrance.png" style="border:none;max-width:100%;" alt="http://www.project-france.com/forum/">
</a>
What this does is just display an image in the widget, with a link.
Thanks Lucian. I don't know why my former test didn't work. I had put some plain text in the HTML area and the block wasn't showing up. It's working now.
 

madness85

Active member
Soon as I enable widget "thread with poll" getting errors.

ArgumentCountError: Too few arguments to function WidgetFramework_Model_Thread::getThreadsByIdsInOrder(), 1 passed in /library/WidgetFramework/WidgetRenderer/Poll.php on line 171 and exactly 2 expected - library/WidgetFramework/Model/Thread.php:31
 

Jim McClain

Member
Seems like support for this widget, whether here or on the developer's site, is very difficult to come by. Is this addon the only viable one to add a sidebar to all pages?

I've upgraded to the latest version. I'm having a problem when editing an old or adding a new widget that contains <script> code (as in a Google Adsense script). I get a nearly blank page when trying to save the widget - not completely blank: there is a date/time stamp in the upper-left corner, but nothing else. Refreshing the page takes me back to the widget editor if I was editing an existing widget, or the widget list if I was adding a new widget.

I had a similar problem editing XF templates a while back - same blank page with only a timestamp - but found no solution to that either.

Help for anyone who knows would be appreciated.
 

rhodes

Active member
I had a similar problem editing XF templates a while back - same blank page with only a timestamp - but found no solution to that either.
We use XF1.5.8 with JS scripts in some templates and in the sidebar. Maybe your script is broken for some reason. Did you ever try google chrome web developer tools? With this extension you can find errors easily. We had some issues when adding a script with http: protocol when the site used https, for example.
 

Jim McClain

Member
Maybe your script is broken for some reason.
Doubtful; when editing only the title of an existing widget I created months ago, I get the white page when saving it. The widget still works, it just doesn't have the title I want to give it. It's an HTML no-wrapper widget, so the title wouldn't show anyway, except in the list of widgets in the ACP. I was able to edit titles of 2 other widgets that don't use <script> code.
 

Cassandra

Member
I need some urgent help! Locked out of my admin panel! I tried to upgrade to from 2.5.9 to 2.6.3. never got to run the xml and and now i get:

Fatal error: Cannot access self:: when no class scope is active in /home/me/public_html/sitename.com/forum/library/WidgetFramework/ShippableHelper/Updater.php on line 79

Can someone please help me? :(
 

japersonal

Active member
I need some urgent help! Locked out of my admin panel!
I certainly do not know how to fix your issue, but if you are locked out of your Admin panel and/or your forum is not running and you want it to be up & running again as soon as possible, you can disable ALL of your addons by adding a single line in your config.php file:


Of course by doing so ALL of your addons will be disabled, but at least you will be able to access your Admin panel and/or the core features of Xenforo will be available again for you and your users.

Hope it helps.
 

Cassandra

Member
I managed to get access by deleting the library\widgetframework folder... but now I keep getting errors all the time :(
Can I just reinstall 2.5.9? Can someone please send it? thanks.
 

Cassandra

Member
@japersonal wow thank you so much, this really helped me a lot.
I wonder what went wrong.
Perhaps I should have deactivated 2.5.9 fully before trying to override the files with 2.6.3?
Anyway I guess no php 7.0 for me...
 

japersonal

Active member
@japersonal wow thank you so much, this really helped me a lot.
I wonder what went wrong.
Perhaps I should have deactivated 2.5.9 fully before trying to override the files with 2.6.3?
Anyway I guess no php 7.0 for me...
Thanks :)

Just to let you know that I'm running version 2.6.3 on PHP 7.2 and it's working fine.
 

Cassandra

Member
yes, I'm trying to upgrade to 2.6.3 because 2.5.9 is incompatible with php 7.2, but I can't seem to be able to install 2.6.3 as it blocks access to my admin panel
 
Top