Members: 15,141
Threads: 38,828
Posts: 159,362
Online: 35

Newest Member: batterygogo



Go Back   Mambers.com > Development > Mambots

Reply
 
Thread Tools Display Modes
Old 20.06.2004, 15:37   #1
eyezberg
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Exclamation mosbots cheatsheet

(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
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com

Last edited by eyezberg; 09.08.2004 at 23:10.
eyezberg is offline   Reply With Quote
Sponsored Links
Old 23.06.2004, 05:10   #2
thinguy
Junior Mamber
 
Join Date: May 2004
Posts: 49
thinguy is on a distinguished road
Default Re: mosbots cheatsheet

Great list, very handy. Boomarked.

How bout a sticky?
thinguy is offline   Reply With Quote
Old 23.06.2004, 06:42   #3
web2xs
Mamber
 
web2xs's Avatar
 
Join Date: Apr 2004
Location: Luxembourg
Posts: 69
web2xs is on a distinguished road
Send a message via MSN to web2xs
Default Re: mosbots cheatsheet

'Bot' ifull Joe,

1 Stop for Bot commands - Great. Should be made a stcky
__________________
The 1 Who Dies With The Most Toys ___Wins......
web2xs is offline   Reply With Quote
Old 23.06.2004, 12:33   #4
Admin
Administrator
 
Join Date: Mar 2004
Posts: 807
Admin will become famous soon enough
Default Re: mosbots cheatsheet

Quote:
Originally Posted by eyezberg
Many of them are at Mamboportal.com too...

But your list is great! Thanks for compiling it. I made it sticky and if you like, you maintain this list here.

Maybe bot developers can add their commands to this list too. If so, I would like to add AkoFormsBot:

Command: {akoforms=<form_id>}
Parameter: <form_id> - ID of a certain form. The ID can be found in AkoForms Form Manager.
Infos: The bot can be used multiple times inside a content item.
__________________
Regards,
Arthur Konze
Webmaster @ Mamboportal.com - Mambers.com
Admin is offline   Reply With Quote
Old 23.06.2004, 13:39   #5
pixelsoul
Expert Mamber
 
pixelsoul's Avatar
 
Join Date: Apr 2004
Posts: 288
pixelsoul is on a distinguished road
Send a message via MSN to pixelsoul
Default Re: mosbots cheatsheet

Yes very usefull lists some bots i haven't seen before
__________________
Visit my site for pro mos templates www.pixelsoul.net
pixelsoul is offline   Reply With Quote
Old 23.06.2004, 16:40   #6
snarkpit
Baby Mamber
 
Join Date: Jun 2004
Posts: 22
snarkpit is on a distinguished road
Default Re: mosbots cheatsheet

Thanks eyezberg, aweseme list of commands. This is just what I needed!!
snarkpit is offline   Reply With Quote
Old 23.06.2004, 16:47   #7
thinguy
Junior Mamber
 
Join Date: May 2004
Posts: 49
thinguy is on a distinguished road
Default Re: mosbots cheatsheet

Quote:
Originally Posted by Admin
Many of them are at Mamboportal.com too...

But your list is great! Thanks for compiling it. I made it sticky and if you like, you maintain this list here.

Maybe bot developers can add their commands to this list too. If so, I would like to add AkoFormsBot:

Command: {akoforms=<form_id>}
Parameter: <form_id> - ID of a certain form. The ID can be found in AkoForms Form Manager.
Infos: The bot can be used multiple times inside a content item.

Didn't notice that, mamboportal.com should be added to the top. It's always my first stop.
thinguy is offline   Reply With Quote
Old 23.06.2004, 20:00   #8
eyezberg
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Default Re: mosbots cheatsheet

Done, sorry, but as I have cookie problems and can't access the site,
I couldn't know..
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com
eyezberg is offline   Reply With Quote
Old 23.06.2004, 23:14   #9
interfaSys
Baby Mamber
 
interfaSys's Avatar
 
Join Date: Jun 2004
Location: /CH
Posts: 12
interfaSys is on a distinguished road
Send a message via ICQ to interfaSys
Default Re: mosbots cheatsheet

Strange...Can't find the mosexternalpage bot anywhere.
__________________
Olivier
interfaSys sàrl
---
Rich Internet Applications / Usability testing
interfaSys is offline   Reply With Quote
Old 24.06.2004, 09:43   #10
setup
Mamber
 
setup's Avatar
 
Join Date: Apr 2004
Location: Portugal - Madeira Island
Posts: 78
setup is on a distinguished road
Send a message via MSN to setup
Default Re: mosbots cheatsheet

Great job this will help all people in mambots
__________________
-|- MamboPT -|-
Portuguese Community of Mambo
SITE: http://www.mambopt.com
FORUM: http://forum.mambopt.com
Project: http://mamboforge.mambopt.com
setup is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
htmlarea2 editor -> Adding the editor to a custom component without the mosbots Bernard Component 'How Do I' Questions 0 23.04.2004 02:04


All times are GMT +2. The time now is 00:45.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.