• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[bd] Widget Framework

Status
Not open for further replies.
all i can say is thanx for this great mod
love it
installed
** THERE ARE TWO THINGS MISSING
  • RECENT UPDATES
  • WHO VISTED US TODAY
 
The Poll Widget isnt working. I have a Poll running at Forums Number 83. If i add this to the Widget and go to Save i get an Error that the Forum does not have any Polls in it, but it does
 
The Poll Widget isnt working. I have a Poll running at Forums Number 83. If i add this to the Widget and go to Save i get an Error that the Forum does not have any Polls in it, but it does
There is no place you can input forum id, it's thread id. If you want to list polls in a forums, use the Threads widget instead
 
Did you change anything? Install new addon? Server configuration? Anything?
The solution I applied is below

Open XenForo-root/library/WidgetFramework/Core.php
Line 322

PHP:
throw new XenForo_Exception(new XenForo_Phrase('wf_invalid_widget_renderer_x', array('renderer' => $class)), true);

Change it to

PHP:
throw new XenForo_Exception('Invalid renderer: ' . $class, true);

Please confirm if this also fixes your problem :)

Thanks, that fixed it :)
 
Move the blocks in the sidebar.

I love this mod but I would like to know how can I move some blocks in the sidebar. If you see my forum you'll see that the widgetized blocks in the sidebar are the latest ones but I would like to move them to the top, after the forum statistics block.

In the forum_list template I've this

Code:
    </xen:hook>
<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />
</xen:sidebar>

And this is my configuration

Screenshot 2011-04-28 a 09.57.26.webp

I would like that Ultime Discussioni, Nuove risposte and Più popolari blocks are just after the statistics block. I've also asked how to move the Blog blocks.

Many thanks!
 
Move the blocks in the sidebar.

I love this mod but I would like to know how can I move some blocks in the sidebar. If you see my forum you'll see that the widgetized blocks in the sidebar are the latest ones but I would like to move them to the top, after the forum statistics block.

In the forum_list template I've this

Code:
    </xen:hook>
<xen:include template="xen_tr_com_today_birthday" />
<xen:include template="GP_donations" />
<xen:include template="xen_tr_com_latest_users" />
</xen:sidebar>

And this is my configuration

View attachment 14309

I would like that Ultime Discussioni, Nuove risposte and Più popolari blocks are just after the statistics block. I've also asked how to move the Blog blocks.

Many thanks!
Sorry, I don't support other addons' sidebar elements :)
 
There is no place you can input forum id, it's thread id. If you want to list polls in a forums, use the Threads widget instead
Hi xfrocks. I run a forum just with Polls in it. And also Polls in a forum just for Admins. What can i do. Set to 0 is not possible because of the just for admins forum. I dont want to use Threads Widget. It would be nice to have a "just for Polls" Widget.
 
Hi xfrocks. I run a forum just with Polls in it. And also Polls in a forum just for Admins. What can i do. Set to 0 is not possible because of the just for admins forum. I dont want to use Threads Widget. i would be nice to have a "just for Polls" Widget.
In the Threads widget, there is a option to display polls only ;) It's new in this version. Have you tried it?
 
No. Sry did not saw that. will give it a try, thanks.
BTW... I was asking this in the Request Section before. I was running a sloganizer Widget in vBulletin. The Code can be copied from this Page
Someone made it working for vbulletin and i would like to use it in xenforo to but i dont know about coding. Maybe you could help me?
Thats the Code i was using in the old Board
Code:
ob_start();

  readfile ("http://www.sloganizer.net/outbound.php?slogan=brainlag");
  $output = ob_get_contents();

ob_end_clean();
Thanks
 
Sorry, I don't support other addons' sidebar elements :)

I imagine xfrocks. I'm just asking how can I move your widgets to the top, before the other elements. I've put the code just to show you what I've in the forum_list template. I would like that you widgets are displayed before the other elements...
 
No. Sry did not saw that. will give it a try, thanks.
BTW... I was asking this in the Request Section before. I was running a sloganizer Widget in vBulletin. The Code can be copied from this Page
Someone made it working for vbulletin and i would like to use it in xenforo to but i dont know about coding. Maybe you could help me?
Thats the Code i was using in the old Board
Code:
ob_start();

  readfile ("http://www.sloganizer.net/outbound.php?slogan=brainlag");
  $output = ob_get_contents();

ob_end_clean();
Thanks
Looks like you want to get the slogan from a remote server and display it in your sidebar huh? It's technically possible to do a widget which supports PHP's eval() but that's probably too risky. If you want to do the Slogan Widget, you can dive into the Renderer code of the framework. It's fairly simple to make a renderer for your slogans that way. You can send me PC if you get stuck
 
I imagine xfrocks. I'm just asking how can I move your widgets to the top, before the other elements. I've put the code just to show you what I've in the forum_list template. I would like that you widgets are displayed before the other elements...
The way Widget Framework works is a little different from other sidebar addition. That's why we can't inject widgets in the middle of other stuff. I encouraged some other fellow developers here to support Widget Framework but that's a long way I guess. You can't do anything at this point. Sorry
 
Status
Not open for further replies.
Back
Top Bottom