|
|
slink snippet
| Name: | slink snippet |
|---|---|
| Version: | 1.0 |
| Author: | Graham Keellings (pivot [at] keellings [dot] com) |
| Download: | here |
| Discussion | Pivot forum |
| Demo | here |
Description
A snippet to make it easy to insert frequently used URLs into your posts (or even into templates), allows for a shortcut, a long text and a tooltip.
Just use something like [ [slink: g] ] to expand to Check regularly for more new snippets.
Please see the ReadMe file included in the archive for details of the parameters.
Instructions
Step 1: Get the files (available above). Unzip and upload into your extensions/snippets folder.
Step 2: create your snippet_slink.dat file, as described below
Step 3: place a slink tag, with the appropriate parameters, whereever you want the output to appear
Step 4: rebuild the FrontPage(s).
This snippet uses the file 'snippet_slink.dat' in your snippets directory, which you provide.
Each line consists of 3, possibly 4, entries, separated by a vertical bar '|' (configurable).
Each line should have either:
<shortcut>|<text to display>|<URL>
or
<shortcut>|<text to display>|<URL>|<tooltip>
e.g e|eBay|http://www.ebay.com
or
g|Graham's Pivot Snippets|http://keellings.com/graham/software/pivot.php|Check regularly for more new snippets
Note: The <text to display>, which is what will actually be shown on the web page, can be left blank, or entered as * and it will take the same value as the <shortcut> name,
e.g google||http://www.google.com
The <tooltip> is any descriptive text you want, which will appear as a popup bubble when the reader hovers his cursor over the link.
Changelog
2.1
2006/05/19 Singapore
- Tidied up the external file access mechanism
- Created an on-line demo to be sure the snippet is thouroughly tested
- some minor fixes
20
2006/01/28 Sentosa Island, Singapore
- major rewrite, thanks to lieeu
- Now supports various combinations of icon/link/text
- Works even if “allow_url_fopen” is false.
- Last ditch option to define strings inline in Snippet, rather than in data file.
1.0
2005/11/06 Sentosa Island, Singapore
- initial version
| Special thanks to our platinum sponsors: Gambling News |
