Overview Digg Macro -- Generate a hyperlinked image or text that allows one click submission of a WebGUI Asset to the Digg.com social networking site. Prerequisites. WebGUI 7.x Parameters The digg macro accepts the following parameters asset url Required. The URL of the asset containing the content you want to submit. This will likely be a post, thread, or article url but it can be any asset. digg icon url Optional*. Link to an image to display for users to click on to start the submission process. You can use an image that is hosted offsite or in WebGUI somewhere. Digg.com provides quite a selection of icons at http://www.digg.com/tools/buttons digg text Optional*. Text to display in the anchor tag that will take the user to the digg submission page. This text also becomes the value of the digg icons alt tag if an icon is specified in addition to text. * You must specify at least one of the above two parameters, digg icon url and/or digg text. Embedded CSS Selectors The output of this macro contains several CSS elements that can be used in conjunction with a stylesheet to alter the appearence of the final output without modifying the macros code. The HTML output of this macro is listed below to document these properties.
[digg text] [digg text]
Example Usage Generate a Digg submission icon for /webgui/asset/url ^Digg(/webgui/asset/url,http://digg.com/img/badges/180x35-digg-button.gi f); Generate a Digg submission text link that says, "Digg This!" for /webgui/asset/url ^Digg(/webgui/asset/url,,Digg This!); Installation / Uninstallation Written and tested using WebGUI 7.3.22 stable. Should work with any version of WebGUI 7.x or higher. Install 1. Place the Digg.pm file in WebGUI/lib/WebGUI/Macro folder on your server. 2. Add an entry to your sites WebGUI config file in the macro block: "Digg" : "Digg", should work... ommit the comma if it's the last entry in your macro block. 3. Restart your webserver that runs WebGUI Uninstall 1. Remove WebGUI/lib/WebGUI/Macro/Digg.pm 2. Remove the "Digg" : "Digg" entry from your sites WebGUI config file. 3. Restart the webserver running WebGUI.Overview Digg Macro -- Generate a hyperlinked image or text that allows one click submission of a WebGUI Asset to the Digg.com social networking site. Prerequisites. WebGUI 7.x Parameters The digg macro accepts the following parameters asset url Required. The URL of the asset containing the content you want to submit. This will likely be a post, thread, or article url but it can be any asset. digg icon url Optional*. Link to an image to display for users to click on to start the submission process. You can use an image that is hosted offsite or in WebGUI somewhere. Digg.com provides quite a selection of icons at http://www.digg.com/tools/buttons digg text Optional*. Text to display in the anchor tag that will take the user to the digg submission page. This text also becomes the value of the digg icons alt tag if an icon is specified in addition to text. * You must specify at least one of the above two parameters, digg icon url and/or digg text. Embedded CSS Selectors The output of this macro contains several CSS elements that can be used in conjunction with a stylesheet to alter the appearence of the final output without modifying the macros code. The HTML output of this macro is listed below to document these properties.
[digg text] [digg text]
Example Usage Generate a Digg submission icon for /webgui/asset/url ^Digg(/webgui/asset/url,http://digg.com/img/badges/180x35-digg-button.gi f); Generate a Digg submission text link that says, "Digg This!" for /webgui/asset/url ^Digg(/webgui/asset/url,,Digg This!); Installation / Uninstallation Written and tested using WebGUI 7.3.22 stable. Should work with any version of WebGUI 7.x or higher. Install 1. Place the Digg.pm file in WebGUI/lib/WebGUI/Macro folder on your server. 2. Add an entry to your sites WebGUI config file in the macro block: "Digg" : "Digg", should work... ommit the comma if it's the last entry in your macro block. 3. Restart your webserver that runs WebGUI Uninstall 1. Remove WebGUI/lib/WebGUI/Macro/Digg.pm 2. Remove the "Digg" : "Digg" entry from your sites WebGUI config file. 3. Restart the webserver running WebGUI.