(
note:
Check back from time to time, as this will be constantly updated as new bots become available and/or I get new info..)
Just threw together a quick tag guide for all the various mosbots arounds
Check out:
Please read the
bot FAQ here.
MosSmilies: (converts ; - ) into smilies/emoticons (images))
nothing to insert, it's done automatically on all news items;
you should customize the php file to link to your own gifs
and maybe add a few more if you want..
http://www.phil-taylor.com/component...ree/Itemid,43/
============================================
Simpleboard: (open a simpleboard thread for any news item)
{mos_sb_discuss:##}
Here, the ## must be replaced with the Category id of the forum
in which you want this particular article to be discussed.
More info
here.
Download from MosForge:
http://mosforge.net/frs/?group_id=24
=============================================
mosviewonly: (restrict access)
{viewonly=registered} ... {/viewonly}
{viewonly=registered,special} ... {/viewonly}
{viewonly=public,special} ... {/viewonly}
Download from
Troozer's site.
=============================================
Mosaddphp: (In-line PHP in content)
{mosaddphp:<php-file>[,<parameter>]...}
Example:
{mosaddphp:subfolder/sample.php,12,14.325,blabla}
For security reasons the string "mosaddphp/" is always
added before the folder/filename, so all your custom
php-scripts have to reside in a mosaddphp-folder in
mambo-root or any subfolders of it. In the example above
it would evaluate to mosaddphp/subfolder/sample.php.
If the file doesn't exist, the tag is replaced by an
empty string.
Your script can be any 'normal' php-script with php-code parts
enclosed in php-tags and direct HTML in between.
You can specify as many parameters as you want in the tag.
The parameters are stored in an array called $mosaddphp_params
(index 0 for the first parameter and so on), which you can simply
access in your custom php-script.
Of course in your script you will also have full access to any defined
mambo-variables, -functions, -classes, -objects, -methods, constants etc...,
and to any php-variables/arrays (like $_REQUEST, $_POST, $_GET, $_FILES,
$_SESSION etc.), so the possibilities for custom php-scripts are enormeous.
You can have either direct HTML-code/text and echo/print-statements in your script or
you can put the output of your script into the variable $mosaddphp_output, the
mosaddphp-mambot will then replace the full mosaddphp-tag with the output of your script.
When using both options in one script, keep in mind that HTML/text put directly into
$mosaddphp_output is always displayed before all other output in your script, regardless
of the order of appearance in your script.
You can have unlimited number of mosaddphp-tags in your content.
============================================
bannerbot: (display your banners in content articles)
{bannerbot id=n} - where n is the banner id
{bannerbot list} - display a list of available banners
Note: TSMF have released a much improved component
for this bot which goes for 10€, includes extensive backend admin
and allows you to choose exactly on which page/in which content
item you'd like the banner to show!! If you're serious about making $$
with your site, go check it out, 10€ is less than most components,
and you may get some of it back soon..
http://www.tsmf.jigsnet.com/index.ph...=111&Itemid=37
============================================
MODULEBOT: (any module or position anywhere)
{modulebot module=somemoduletitle}
- this is the title of the module as can be seen in the Module Manager.
Module titles can also be seen with the list bot below.
{modulebot user1} - Where "user1" is any module block position.
{modulebot list} - Displays a list of available modules and block positions
===========================================
MOSDMLINK (DocMan Download Link Generator)
{mosdmlink}.....{/mosdmlink}
around the filename
=>
http://www.mambobrothers.com/content...ategory/73/40/
===========================================
MOSDMLIST (DocMan Download List Generator)
{mosdmlist}.....{/mosdmlist}
surrounding the sub_category name
=>
http://www.mambobrothers.com/content...ategory/73/40/
===========================================
MOSPOLL (include each poll you want in an article)
{mospoll}.....{/mospoll}
surrounding the full poll title
=>
http://www.mambobrothers.com/mambo/i...d=73&Itemid=40
$10
===========================================
MOSCATTLE (display section name and categorie name of the current article in this article)
{moscattle}
=>
http://www.mambobrothers.com/content/view/27//
$10
===========================================
MOSA_QUOTE: (include text from other content items within the current content)
{mosa_quote}id#:intro{/mosa_quote} OR
{mosa_quote}id#:full{/mosa_quote}
=>
http://www.mambobrothers.com/content/view/43//
===========================================
MOSCATEGORY : (Category name and its link under a content Item)
{moscategory}
=>
http://www.mambobrothers.com/content/view/42//
===========================================
MOSPHP : (in-line PHP code in your content)
ex:
PHP Code:
{mosphp}$today = date("F j, Y, g:i a",
date("U") - 1*6*60*60 );
return $today;{/mosphp}
=>
http://www.mambobrothers.com/content/view/18//
===========================================
mosexternalpage: (show external content inside your text)
{mosexternalpage}http://www.php.net{/mosexternalpage}
! if the site you are calling has relative pathes to images, the pics won't be shown
! if you click a link, you will leave Mambo
===========================================
mosfootnote: (Produces an ordered list of notes at the end of the content text)
{note}...some text...{/note}
Settings:
Edit mambots/mosfootnote.inc
To change the style of the footnote number in the body of the text,
modify MOSFOOTNOTE_TAG_START and MOSFOOTNOTE_TAG_END. The default
is a square bracket - [1]. You can use html tags such as <sup> and </sup>
To change the width of the main footnote block, modify MOSFOOTNOTE_WIDTH.
To disable footnotes on the frontpage, modify MOSFOOTNOTE_FRONTPAGE.
1 = display on frontpage. 0 = disable on frontpage. The default is disable.
==========================================
mosimagehack (not really a bot, more a hack, as the title says..)
-give all the images that you want to show thumbnailed the alt-Text: "Click to enlarge"
==========================================
mosInfoPop (for
use with the Glossary-Component from
www.michelleolivia.com
Just define terms and publish, found Terms will be "linked" only once in content)
1. Extract mosinfopop.php and folder _mosinfopop to [mamboroot]/mambots
2. Open the Index.php of your template
3. Include the libaries within your Header :
<script language="javascript" src="includes/js/overlib_mini.js"></script>
4. on bottom, before closing the Body Tag, create this div-tag:
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
=========================================
titles (will output the pathway in the browser title bar. It duplicates the pathway with the exception it inserts $mosConfig_sitename instead of "home".)
Install it in the includes directory. In your template index.php, use the following title tag:
<title><?php include ("includes/titlepath.php"); ?></title>
=>
http://mosforge.net/snippet/detail.p...e=snippet&id=7
(note: as you can see, this is to be placed in the "includes" dir, so it's not really a bot, more of a hack in fact, but looks really better!)
There's also another version (which I haven't tested) here:
myTitles: (the page title is being displayed in the visitors browser bar)
=>
http://www.mambobrothers.com/content/view/36//
====================================
mosproductsnapshot (use with phpShop)
{ product_snapshot:id=...} replaced it by a product snapshot, containing the product name, the image and - if you want - the short description, price and an add-to-cart link.
http://mosforge.net/forum/forum.php?forum_id=1374
====================================
mostogglebot (show/hide content buttons/options)
Usage:
Place any of the following in a content item:
{toggle pdf} {toggle email} {toggle print} {toggle rating}
{toggle vote} toggle author} {toggle createdate}
{toggle modifydate}
Output:
This mambot toggles the state of any of the elements listed above.
If the element is off by default, it is turned on for the content item.
If the element is on by default, it is turned off for the content item.
http://mosforge.net/forum/forum.php?forum_id=1379
====================================
Enjoy, and let me know about any others to add, then get someone to put the buttons for easy access into the editor