The how and why of my programming
Posts tagged wp
Hello Ferengi, a WordPress Plugin
Nov 10th
In the time honored tradition of reusing other people’s hard work, I have combined the Ferengi Rules of Acquisition with ever-fun concept from Hello Dolly to create a new quote plugin…
For fans of Star Trek, or any Ferengi out there, I present Hello Ferengi, a Ferengi’s slave to teaching non-Ferengi the proper rules of business and profit! Hello Ferengi is a small, fun plugin which will display a random Rule of Acquisition on the top-right of every administration page… but is that all?
Of course not, because I know the two-hundred and forty-second Rule of Acquisition…
Shortcode and Rules
[ferengi num="7" tag="0"] ## "Keep your ears open."
- num: defaults to 0; accepts 81 values (see below) that will return a Rule
- 0: a random Rule from the 80 known Rules of Acquisition
- 6R: the Sixth Rule according to Enterprise canon
- … and 79 misc., non-sequential numbers ranging from 1-286
- tag: defaults to -1; defines if you want the ROA Number tag returned or not
- 1: always show the tag
- 0: never show the tag
- -1: only show the tag if getting a random Rule
For the avid Star Trek fans…
But there are only 285 Official Rules of Acquisition!
Rule #286 may only be an unoffical Rule of Deep Space 9‘s Quark, but it is a very good rule.
What is the difference between 6 and 6R?
The series Enterprise said the Sixth Rule was something different from a previous declartion, so I labeled it as 6 Revised, or simply 6R, and left Deep Space 9‘s version of the Sixth Rule as 6.