Jump to content

Widget Kit


Marcher Technologies

Recommended Posts

File name: Widget Kit
Submitter: Marcher Technologies
Submitted: 04/11/2012
Category: Utilities
Demo : http://www.marchertech.com/blocklayout
Discussion URL :
Supported Versions: IP.Content 2.3.x
Support Info:

This is A Lightweight IP.Content Block Feed Source of Blocks with premade ajax Handlers to allow Ajax use of any block, and easy rearranging through the ACP ordering per Block Used, or in other desired orders.
The Provided Ajax Templates are Exponentially lower in Execution Times and Query Counts on Page Load with more blocks on the page than the direct parsing the Feed's "stock" Template provides, and are templated to match the IP.Board skin Styles, while still granting enough markup to manipulate further by skin, or use a premade jQuery tabs ui theme.
Included Is a functionality That Creates Hooks From and Clones IP.Content Blocks, allowing precise and complete control of placement of IP.Content blocks in any hook point with little to no effort, and block replication with ease.
This Hook Makes It Easy To Export Content Blocks as Hooks for use anywhere in your IP.Board installation.
Each exported hook hence imported has a selection of system settings, including(at stock) Forums to show in, Member Groups to show to, Applications to parse in, and Skin Sets to parse in(where applicable).
An Entire System Settings Tab Is Present to manage these, grouped by block.
Combined with The Ability To easily Tabify any set of blocks with the feed source/templates, ajax popups and ACP Block Ordering Capabilities This Proves to be the ultimate sidebar Manager Utility as Well.
For New users, this Widget Kit an easy way to add Vertical or Horizontal tabs to any page with a large amount of blocks with impressively little overhead, And to do the Same in any hook point, With 1 sidebar viably fully manageable from one feed block honoring ACP Positioning.
For Advanced users, this provides the ability to Ajax any block, from these blocks as a dynamic ajax feed, without the overhead or extraneous css/js load(as .the "parent" already loads it).
Included is 2 Plugin Blocks!
One that will allow you to select and parse any enabled board index hook, or the *entire* board sidebar as an IPC block with ease.
New The other is 'Top Reputation Earners'.
This unique plugin block will allow you to pull the top reputation earners in your community in a given period, with any valid strtotime option, such as -30 days(the default, thirty days), limit the amount of top reputation earners to show, exclude applications from being counted.
This Plugin Block, Without any doubt, should indeed be cached ruthlessly, *especially* if pulling from many applications, this is a particularly expensive task.
Get your Blocks Feed Block Widget Kit Today.
 
 2-Step Install/Upgrade! Upload files, import hook, it installs ALL the block templates.

Every Current Purchaser as of the Release of this Modification of the 3.2 Blocks Management Hook, and IP.Content Hookmaker For 3.2, was Generated a Manual Purchase of this file.


View File

Link to comment
Share on other sites

  • Replies 144
  • Created
  • Last Reply

This looks pretty nice! So basically, looking at your demo, this allows us to display blocks inside of a nice ajax loading menu which stores the blocks, rather than have all the blocks load in their own seperate block space?

What I mean is like say I have a homepage which on the right it has "recent topics", "recent posts", "newest members", "upcoming events" and "who's online".

With the default {parse block}, all of these blocks would be shown and expanded and loaded every time the page is loaded or refreshed. With this kit, I could put them in a "menu" style which will have tabs like "Recent Topics", "Recent Post", etc. and loads and displays those blocks when clicked?

Link to comment
Share on other sites


This looks pretty nice! So basically, looking at your demo, this allows us to display blocks inside of a nice ajax loading menu which stores the blocks, rather than have all the blocks load in their own seperate block space?



What I mean is like say I have a homepage which on the right it has "recent topics", "recent posts", "newest members", "upcoming events" and "who's online".



With the default {parse block}, all of these blocks would be shown and expanded and loaded every time the page is loaded or refreshed. With this kit, I could put them in a "menu" style which will have tabs like "Recent Topics", "Recent Post", etc. and loads and displays those blocks when clicked?



That is quite correct, I quite purposely after initial tests opted to NOT provide the block content In the block source, but rather pageBuilder so that the stock template could "use" it if necessary/desired(or for some reason needed for a custom template).
Therefore, the Block Content Is only retrieved if one manually does so in the template, which is obviously not the case of the Ajax Block templates :smile: The tabs will load the visible tab with Ajax on page load, the rest will all await a trigger, the statement you make was the literal goal from the spawning of the idea, one of Ajax functionality to Make IP.Content Blocks More Lightweight than ever before.
Though.... The menu.... you know that right sidebar isn't Ajax right(or Jquery)? the Ajax Block tabs are what is showcased there... vertical and horizontal.
Happy to add more widget templates, mind you.
Link to comment
Share on other sites


No fading effect? Fading effects are the best part about tabs.



it IS .tabs, thats simply the default configuration, some matching markup, and spitting it off to ajax :smile: all the .tabs options are valid.
as is the markup on any IPB skin, using ipsVerticalTabs and ipsFilterBar....I
n fact, its a 1-line Block template edit to add the effect:


<script type='text/javascript'>

_ccsjQ('#{$tmpID}').tabs();

</script>

Becomes:


<script type='text/javascript'>

_ccsjQ('#{$tmpID}').tabs({ fxFade: true, fxSpeed: 'slow' });

</script>


All done.... This is a Jump-start pack, I will add more Templates :)

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Question:
Could this be used to place different custom content blocks inside different forums?

Example:
Inside a NY Forum - Custom content blocks for New Yorkers
Inside a Florida Forum - Different custom content blocks for Floridians

Where would the code be placed? Inside the rules? Or in the templates requiring a different template per forum in order to have different custom content blocks?

Just trying to see if this addon would work for what I need. Basically, I am looking for a way to add the category specific gallery images inside each forum that relates to that category. Using my example above, the NY forum would display gallery images from only the NY gallery category.

Thanks for your time and have a splendid week*

Link to comment
Share on other sites


Question:


Could this be used to place different custom content blocks inside different forums?



Example:


Inside a NY Forum - Custom content blocks for New Yorkers


Inside a Florida Forum - Different custom content blocks for Floridians



Where would the code be placed? Inside the rules? Or in the templates requiring a different template per forum in order to have different custom content blocks?



Just trying to see if this addon would work for what I need. Basically, I am looking for a way to add the category specific gallery images inside each forum that relates to that category. Using my example above, the NY forum would display gallery images from only the NY gallery category.



Thanks for your time and have a splendid week*



Hrmm... many items come to mind, but the most prominent and easy(for you) solution is two very real needs... clone block, and more hook locations stock tuned to the app data with settings.... working on that.... the real point of this mod is to not have to dirty your(or my) hands in templates, so obviously it be-hooves me to add it :D
Link to comment
Share on other sites


Hrmm... many items come to mind, but the most prominent and easy(for you) solution is two very real needs... clone block, and more hook locations stock tuned to the app data with settings.... working on that.... the real point of this mod is to not have to dirty your(or my) hands in templates, so obviously it be-hooves me to add it :D




Thanks Marcher.

I don't mind getting my hands dirty at all. I've been hacking up things a lot lately...I come from the old edit files through ftp days. Of coarse, simpler solution is best.

Thanks for answering my post. I think I will get this after work tonight.
Link to comment
Share on other sites

File Updated, Changelog:

  • Functionality and extensibility rewrite.
  • Clone Block added.
  • ccsHookLocations.php config file per application for further extensibility.
  • Multiple Stock Hook Points/Files Added.

As a note, please, please save and reload the block when cloning it, otherwise the template will go left.
Export Hook Update:
post-201612-0-22866300-1338950878_thumb.
Link to comment
Share on other sites

File Updated... change Log:

  • General Feed block source code and Template standardization.
  • Addition of Feed Block Limit and Offset Configuration.
  • Addition of Ajax-refreshing Sidebar Feed Template.

Upgrade Notes, addition of the Limit and Offset means you will need to go edit your blocks and configure this.
Ajax-refreshing Blocks can be viewed at the demo, click a sidebar block.
Link to comment
Share on other sites

  • 1 month later...

Can I somehow use the Ajax functionality in this mod for the articles?

I can easily add 4 custom blocks, and switch between with it load the content via Ajax.


What I want however, is to switch between Articles using AJAX. So on the front-page I would just show 1 large article, and the titles of a dozen other articles. Clicking the title would load that article in the main box area, without a page load.

Is there a way to do that using this mod?

Link to comment
Share on other sites


Can I somehow use the Ajax functionality in this mod for the articles?



I can easily add 4 custom blocks, and switch between with it load the content via Ajax.




What I want however, is to switch between Articles using AJAX. So on the front-page I would just show 1 large article, and the titles of a dozen other articles. Clicking the title would load that article in the main box area, without a page load.



Is there a way to do that using this mod?



not yet, I like the idea though.... some code needed to lay for a sane approach to this(as in, the article being ajaxed in, i suppose honouring the view template) there’s a couple of approaches to doing something like this, i need to sort out the best one for flexible controllable use.
Link to comment
Share on other sites


post-200408-0-04532700-1342307788_thumb.

Hey, this widget is not working properly with Drag and Drop editor. See the attached picture. I sent you a PM with front page code.



I need to see the page, if you have stuck a layout of large proportions(like the ipsLayout ajax block) in a small area i could see this happening.
Also could be the result of some odd styling rules applied to verticalTabs stock, cannot say for certain sans looking at the culprit page.
Link to comment
Share on other sites

  • 2 weeks later...

Hey, I'm trying to upgrade to newer version and I can't find "IPContent Blocks Management Hook" in this.... Log in to your IP.Board Admin CP and visit the System tab -> Applications & Modules -> Manage Hooks page.
Uninstall The Hook Labeled "IPContent Blocks Management Hook".post-200408-0-17818900-1343435352_thumb.post-200408-0-72932600-1343435459_thumb.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...