Scripts Index
PHP Miscellaneous phpBB Modules  

Mongodb Peekaboo; Ajax CCK field loader

download download home home   report broken
important script information
company name:
Daniel Braksator
license: Free
minimum requirements: No special requirements.
functional limitations:
Mongodb Peekaboo; Ajax CCK field loader description
Provides a CCK field that can be used in nodes, node templates, and views to output the contents of another CCK field, from the same node, via Ajax.Click the image on the right to see an animated demonstration.BackgroundThis module was made when I had built a massive site structure using the book module, although similar hierarchies are possible with other modules such as node reference. I used a viewfield to embed a view of the child nodes into each node. Each view also showed the output of the child node's viewfields. I discovered I could produce a massive tree of nodes, however it was very slow to load. I needed a solution that allows the user to load a minimal version of the node, with the ability to produce and display the viewfield at the user's discretion, thereby preventing memory or time limits exceeding upon page load, especially once more nodes were added. I tried a few things, and soon the peekaboo cck field was born, one field to point to another.Example setupPrior to using this module you have created some other CCK field on your content type. 1. Create a CCK field using the Peekaboo Select widget (See CCK module help). 2. Optionally, configure the default value of the CCK field to point to a target CCK field, and use the 'content permissions' module to disable the ability for node authors in certain roles to change this field. 3. Choose the wording for the link, and whether to hide the link upon use. If the link is not hidden it will be usable as a 'toggle' for the content. 4. For optimal performance, hide and exclude the target field from being loaded in the node on the 'display fields' section when configuring your content type. 5. Choose the formatter in the 'display fields' section appropriate for your peekaboo field: * Default - Gives the link and the empty container for the Ajax. * Plain (no link) - Gives only the empty container for the Ajax. You would have to theme/template your own link. The resulting HTML output must contain the three classes as shown in the example below, as well as have the same ID as the div container except with -link appended to the end. text You can also add the class "peekaboo-link-removable" to remove the link after it is used. tip: look at the source of the function peekaboo_link_anchor() for a complete way of generating the html output. * Link only - Gives only the link, you could use it in conjunction with the plain formatter in views, or provide the div container yourself, which involves using the 3 classes: peekaboo-container, peekaboo-collapsed, and peekaboo-unprocessed, as well as the same ID as the link, except without the -link part at the end. You would also need to add the CSS and javascript files. tip: look at the source of the function peekaboo_container() for a complete way of generating the html output and ensuring the proper javascript and CSS files are added. 6. Optionally use CSS to turn the link into an image, for example: a.peekaboo-link { /* Give the link a bounding box */ display: block; width: 100px; /* width of bg image */ height: 100px; /* height of bg image */ /* Add the image - use your imagination */ background: transparent url(images/my_image.png) no-repeat 0 0; /* Hide the text in most browsers */ text-indent: -10000px; overflow: hidden; /* Hide the text in IE */ line-height: 0; /* If your image simulates a button, use this cursor style */ cursor: default; } 7. Optionally use a different image for a.peekaboo-collapsed and a.peekaboo-expanded selectors, e.g. an arrow that points to the right, and an arrow that points down. 8. Optionally override the styles in the .css file included with the module, such as the throbber image.ThemingYou will find the following three functions defined in the module file: * theme_peekaboo_formatter_default($element) * theme_peekaboo_formatter_plain($element) * theme_peekaboo_formatter_link($element)You can add more output to these functions, but be careful if changing the existing output. To reduce problems the default output is generated by helper functions.
Similar scripts
Filter tips dialog (Popularity: ) : When you click the "More information about text formats" link, you don't expect to see the node form disappear. And you certainly don't expect to lose your work. Unfortunately on some browsers that's just what happens. This module solves the ...
Daisy's Forum Designs (Popularity: ) : Daisy's Forum Designs hosts a collection of PHPBB templates, smilies, avatars and forum icons. Webmasters are able to include attractive and eye catching templates for their forums with different template styles and images in several colours.
IP.Board Comments (Popularity: ) : IP.Board Comments for WordPress allows you to use IPB (IP.Board or Invision Power Board) to replace or enhance your WordPress comments. When a new WordPress post is created in a mapped category, it will cross-post to your IPB forum with ...
Total Control Admin Dashboard (Popularity: ) : What is Total Control?The Total Control Admin Dashboard creates a default panel page with useful administration panes right out of the box. Several overview panes are included for site stats and quick reference. Several View panes are provided with 'more' ...
Page Comments Off Please (Popularity: ) : This plug-in un-checks the "allow comments" and "allow trackbacks/pingbacks" checkboxes by default for new pages while leaving the default behavior for posts alone.Enable the plugin to uncheck the discussion checkboxes by default for pages. Disable the plugin to remove this ...
Registration Secret Codes (Popularity: ) : This module helps create secret codes that users can enter to automatically register or upgrade their accounts to specific roles. It is particularly useful for cases when it's impractical for the website administrator to manually process and upgrade single subscriptions, ...
Google Adsense Dashboard (Popularity: ) : Google Adsense Dashboard is a very simple WordPress plugin to display your live Google Adsense earnings on your WordPress Dashboard. Google Adsense Dashboard is designed to show Today's earnings only. Google Adsense Dashboard is compatible with WordPress 3.0+ as of ...
Advanced Forum More Styles (Popularity: ) : More Styles for Advanced Forum, compatible with the current 6.1.x release. Created by Rufzeichen Webdesign.Advanced Forum is a great module. Over Time, Michelle has built a nice theme layer, and it is completely pluggable. So Styles (or say forum themes) ...
What is my IP Address (Popularity: ) : This is an advanced online tool designed especially for PHP based bulletin boards to help webmasters to find out the IP address and whois information of their bulletin board visitors. This program gives you the visitor IP address along with ...
Usernode Guestbook (Popularity: ) : So, you have a usernode. Do you want to make further sense of it?Having a user a node gives also the possibility to post comments on a user. Let's use these comments as guestbook entries!usernode_guestbook is another way of implementing ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
django-ajax-filtered-fields (Popularity: ) : django-ajax-filtered-fields contains Django fields which may be used in a many to many or foreign key relation, where the user may want to apply filters to the listed objects, because of they being too many, or just for usability reasons.

Technical ...

LOB Item Link Field (Popularity: ) : Easy-to-use lookup into a database or web service-driven line-of-business application to be linked to any document or list item. No need to define connections using BDC or External List settings, all is done using just your browser. FEATURES: WSS/Foundation support, ...
Voting Field (Popularity: ) : Know what your users think of the information you publish. Add voting capability to any list or document library and even allow feedback and discussions. Vote for items or documents directly from views Voting enabled even for readers Optionally add ...
Associated Tasks Field (Popularity: ) : Turn any document or event into a full-fledged project! Assign related tasks, items and documents and manage their lifecycles, and all that from within the parent item itself. No more clicking through pages to view workflow task status, see it ...
Forms Data Loader (Popularity: ) : Forms Data Loader is a popular Data Loader tool to load data into Oracle Apps or E-Business Suite 11i / R12 through front end forms. It provides an easy to use and cost effective solution for loading test or legacy ...
Ajax Contact Form (Popularity: ) : jQuery based Ajax Contact Form which coded with PHP to verify "> HTML or PHP pages of the websites that run on Apache Server. It uses just one file to Validate, Process and Send the completed contact form to your ...
Virto Ajax SharePoint Form Extender (Popularity: ) : Virto Custom List Form Extender is Ajax and Java Script based Web Part allowing for quick and simple customizing SharePoint list forms for creating, editing and viewing list items.

With new Virto List Form Extender web part by Virtosoftware you can ...

dhtmlxTree :: Ajax-based JavaScript Tree (Popularity: ) : dhtmlxTree is an Ajax-enabled DHTML treeview component which provides robust and flexible solution to represent and manage hierarchical data.
The tree can load its content dynamically from server using Ajax or directly from on-page XML data-island. Ready-to-use solution for server-side ...

dhtmlxGrid :: Editable Ajax Data Grid (Popularity: ) : dhtmlxGrid is a cross-browser Ajax grid component designed to represent, edit and sort tabular data. Grid content can be imported from XML data source or created using JavaScript methods. Advanced functionality includes paging support, cells merging (colspan), frozen columns, multiline ...
dhtmlxTabbar :: Ajax Tabs Control (Popularity: ) : dhtmlxTabbar is a cross-browser JavaScript tabbar control that helps to create dynamic tabbed navigation interface. This control lets you add smart-looking tab bar to your site or web application. The tab bar can be easily initialized on a web page ...
ad


Rate me
supported os
Linux
Mac OSX
Macintosh
Win All, BSD, Solaris
stats
downloads 2
version 6.x-1.0
size in Kb 10
popularity   
453/370770
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews