Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 40

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 15.02.2005, 13:02   #1 (permalink)
Baby Mamber
 
Join Date: Jun 2004
Posts: 1
eyesofkids is on a distinguished road
Coffee My first Mambot - MOS GeSHi bot

Hello everyone,

I did a new mambot .....it's for mambo 4.5.1

You can download it from bot_mosgeshi_1.0beta.zip


-----------------------------------------------------------------------------------------------------------------------------
What's this?

This is a mambot(content bot) using the popular GeSHi - Generic Syntax Hilighter. It can support Over 30 supported languages: PHP, HTML, C and more. You can get more information at : http://qbnz.com/highlighter/

This bot will load your code files ouside the content items.(default in "your-mambo-root/codefiles" )

-----------------------------------------------------------------------------------------------------------------------------
Why not directly insert the code lines inside the bot tag (like {moscode}...{/moscode})?

When use the WYSIWYG Editors, they always "EAT" your code characters.

-----------------------------------------------------------------------------------------------------------------------------
The official mambot {moscode} seems to do the same job(I think it will in 4.5.2) ?

When i use the "{moscode}...my code lines...{/moscode}", i often have some troubles. BTW, I can't wait for it and i think the "Load from file" method maybe the another good solution to display formatted code in content items.

How to install it?

1. Use the Mambot install in your administration.
2. Publish it.
3. Configurate the parameters

-----------------------------------------------------------------------------------------------------------------------------
How to use it?

look the tag definition below:

Usagelang ,start, nth is optional)
{mosgeshi file="the_file" lang="the_lang" start="the_start_line_number" nth="the_nth_line_number"}

You MUST assign a file name to the attribute "file", like "test.java", "mambo.php"...etc.

The attribute "lang" has the default value "php".
You can change it to "asp", "java" ,"sql"...any language in the GeSHi.
Or you can configurate the default language in the parameters in this bot.

The attribute "start" is a positive integer using in the line numbering.
You can now make the line numbers start at any number.

The attribute "nth" is a number using in the Fancy line numbering.
Fancy line numbers means that you can specify a different style for each nth line number.
You change the value of n (default 5)

Last edited by eyesofkids; 15.02.2005 at 19:49.
eyesofkids is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 15.02.2005, 18:39   #2 (permalink)
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Default Re: My first Mambot - MOS GeSHi bot

Your link was Eaten too
http://www.taiwanmambo.com/dmdocumen...hi_1.0beta.zip
Thanks, will test, even though you are correct, 452 has GeSHi.
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com
eyezberg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed with MOS thumb bot manni Mambots 2 22.03.2005 05:07
MOS Textile Mambot Released rhuk Mambots 1 22.01.2005 07:26
Mambot: Mos Rating question timtaiwan Mambo 4.5.1 'How Do I' Questions 2 20.01.2005 00:41
MOSthumb Mambot für Mambo 4.5.1 descartes Mamboreport Ankündigungen & News 0 04.10.2004 12:48
Mos 4.5 100 --> 106 Glimmerman Mambo 4.5 Installation and Upgrades 1 24.04.2004 16:47


All times are GMT +2. The time now is 14:22.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.