Jump to content

Global widgets enhance


kmk
 Share

Recommended Posts

7 hours ago, kmk said:

IPS widgets are already implemented, but could you add ability to show by app and by page? 

I try to place a gallery album widget inside of club, but it is visible in all clubs and forums pages. 

I would like have choices of Global, by apps, by pages, or only in specific club page... 

I have been asking for this for the past 5 years, so don't hold your breath.

Due to the way that the blocks information are stored in the database, it makes it impossible to create a plugin to do what you or I want.

 

Link to comment
Share on other sites

Just now, TDBF said:

I have been asking for this for the past 5 years, so don't hold your breath.

Due to the way that the blocks information are stored in the database, it makes it impossible to create a plugin to do what you or I want.

 

I do not think that such a slight option is impossible.

If you want a widget to be displayed only in a forum sub category because it only corresponds to this sub category or to a specific club, why display it on all forums?

Link to comment
Share on other sites

2 minutes ago, abdoulghani said:

If you want a widget to be displayed only in a forum sub category because it only corresponds to this sub category or to a specific club, why display it on all forums?

Because currently the widget is tied to the controller so Forum1, Forum200 or Club Forum C and Club Forum Z uses same controller, that’s why it shows same information in all “forums”.

It seemed to start to change in 4.5. There are news regarding clubs: Clubs Widgets on 

 

Link to comment
Share on other sites

8 minutes ago, abdoulghani said:

I do not think that such a slight option is impossible.

If you want a widget to be displayed only in a forum sub category because it only corresponds to this sub category or to a specific club, why display it on all forums?

Without a major refactor to the database block tables, or simply hacking the hell out of the code which will require pulling unnecessary table row information to display one block, then sure. 😉

Edited by TDBF
Link to comment
Share on other sites

3 minutes ago, TDBF said:

Without a major change database table, or simply hacking the hell out of the code which will require pulling unnecessary table row information to display one block, then sure. 😉

I don’t think it’s necessary. It’s enough to add a node field in the widget configuration and check if you’re in the forum controller then check the request ID of the forum and display the widget output if it’s a match. 

Edited by Adriano Faria
Link to comment
Share on other sites

20 minutes ago, Adriano Faria said:

I don’t think it’s necessary. It’s enough to add a node field in the widget configuration and check the request ID of the forum and display the widget output if it’s a match. 

It is, as the block information is stored in two different database tables, cms_page_widget_areas and core_widget_areas, and the block content for each page is stored table field which corresponds to the for app, module and controller.

In the case of pages, all the block information is stored in field area_widget which means it is global for pages database. That means, if you place a block in the database index, it will be shown in the database category and page.

If I want to pull out just one block for the Category page, it means I have to pull out all that information from area_widgets for all blocks for that Database and process them all. It is just not very efficient way and is resource hungry IMO. It also means that you have to take process this information every-time you want to update or save a block.

Edited by TDBF
Link to comment
Share on other sites

55 minutes ago, Adriano Faria said:

If you check the controller and the request ID on the render() and if you’re not in the “right” place, no output is generated so no resource is used. This is already used by IPS in announcements. You are over complicating things. Anyway, it’s already doable. 

Then I don't think we are talking about the same thing.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By opentype
      This plugin adds two widgets to your website, which improve the core widgets “Who is online” and “Recently Browsing” through a new design. The members are not only shown with their username, but also with their avatar. 
      Available global settings:
      Widget background: normal or light Maximum number of avatar images to show Notes:
      Works with any installation of the Invision Community as it is based on core widgets. Access permissions are respected. If member profiles cannot be accessed by guests for example, the profile links will also be suppressed for the avatars. Caching works just as with the original core widgets. With longer caching times for blocks, the Recently Browsing widget might not work well, as it will not show the data in real time. 
    • By opentype
      Support topic for this Marketplace resource:
       
    • By opentype
      Tags and IPS’ Similar Content widget are a powerful way to provide helpful additional content on a page and to increase the page view count, since there are always more related entries suggested. Unfortunately, the stock version of the Similar Content widget is rather dull. This plugin takes the Similar Content widget to a new level. It retrieves images from the entries (where available) and it also shows the entry’s container name so your users understand where they will be taken before clicking on the entry. Additional settings (listed below) give admins more control over the content of the widget. 
      Directly Supported Content Types:
      Pages records Forum topics Download files Gallery images Calendar events  Settings:
      Show/Hide entry author  Show/Hide text preview Show/Hide forum images Show/Hide calendar images Widget background: “Area Background” or “Area Background Light” Notes:
      The plugin only changes the look of the entries. It doesn’t influence which entries are shown or how they are ordered. 
    • By Michael.J
      Adds status replies and add reply support to the "Recent Status Updates" widget, similar to how IPB 3.4 worked.
      Features:
      Expand/collapse toggle for displaying status replies. Full rich text support for both status updates and replies. Support for status reply pagination. Add status reply form and save using ajax. Set a status reply limit before directed to members profile page. Enable or disable text truncate for status updates or replies. Optional setting to include status reply reactions. Optional setting to include status update reactions. Modifies the existing core widget, just upload plugin and your done. Keep up to date with DevFuse mod development and releases.

    • By Eudemon
      If you can't purchase, please try here (also reduced price)
       
      This plugin enables few features for site wide:
      Optional Light and Dark mode switch
      This differ from other solutions on the marketplace that works for ANY theme with full customization-ability
      User option stays with them, even when they switch device, and since the style is loaded directly from source, you don’t get weird overwrite or lag on every page refreshes
        Optional set message required when reporting
      If you only want this and running 4.4 or below just use this free plugin
        Optional use SVG / Webp logo
      Much smaller size and scale without losing quality
        And more ...
      this app will get more features added Demo: https://turboduck.net/
      Planned features:
      Add flying kitty
       
      All my Apps support
      Follow best coding practice Support language translation
      Reuse default system element as much possible
      ensure compatibility of theme and other component updates Edit logging
      Permission sets
       
×
×
  • Create New...