Home arrow FAQ arrow Adding Special Links
Adding Special Links
Article Index
Adding Special Links
Links - External
 

External Site Links

Often it's useful to send people to an external site like Wikipedia, Internet Movie Database or another resource like that.


Term below in bold replace <site>

  1. acronym | search-acronym:cia  - cia

  2. dictionary | search-dictionary:precipitous  - precipitous

  3. google | search-google:marin italians  - marin italians

  4. googlegroups | search-googlegroups:marin italians  - marin italians

  5. imdb | search-imdb:la meglio gioventu  - la meglio gioventu

  6. thesaurus | search-thesaurus:abundant  - abundant

  7. webster | search-dictionary:abundant  - abundant

  8. wikipedia | search-wikipedia:giuseppe garibaldi  - Giuseppe Garibaldi

  9. wiktionary | search-wikctionary:abundant  - abundant

  10. wunderground | 94901

RSS Feeds 

Many sites deliver their content in a packaged format called [search-wikipedia:Really Simple Sindication 'RSS Feed]

To show such information inside this stie as a list you can refer to it in this way:

 

 

Parameters:

default
"image" "1" Display Channel images
"chtitle" "1" Display Channel titles
"chdesc" "1" Display Channel description
"chsrc" "0" Do NOT Display the HTML source code for the Channel
"title" "1" Display the item title
"desc" "1" Display the item description
"itemsrc" "0" Do NOT Display the HTML source code for the Item
"item_one" "1" Specify the item number to start with
"items" "1" Specify the max number of stories per feed
"word_count" "100" Specify the max number of words per story
"span" "0" Wrap the feed in a span or a div
"cache" "3600" Number of seconds to cache each feed.
"class" "kl_rssfeed" CSS class to be used in the various HTML tags.
"debug" "0" Turning this on will produce a lot of output!


 

Bookmarks 

{rss image="1 "chtitle="0" chdesc="0" span="div" items="20"}http://www.diigo.com/rss/user/emagin/enterprise,wiki{/rss}

Images: 

{rss "items="5" image="1"}http://www.defencetalk.com/pictures/contentrss.xml?type=rss2&cat=3010{/rss}

Yahoo Example:
{rss}http://news.search.yahoo.com/news/rss?p=marin+county+consultants&ei=UTF-8&fl=0&x=wrt {/rss}

A more refined search of Yahoo: {rss}http://news.search.yahoo.com/news/rss?ei=UTF-8&va=&va_vt=any&vp=marin+county&vp_vt=any&vo=italian&vo_vt=any&ve=&ve_vt=any&datesort=1&pub=&timeago=&smonth=3&sday=20&emonth=4&eday=19&source=&location=california&fl=1&vl=lang_en&vl=lang_it&n=30&eo=UTF-8{/rss} {rss}http://news.google.com/news?ie=UTF-8&q=%22marin+county%22+italian+-restaurant+-sports+-%22death+row%22+-catholic+-coroner&output=atom{/rss}  

Modules

MosModule usage
{ Mosmodule module name=modulename }

Example: {mosmosule module name =Search Cloud}

 

{ MosModule list} - Displays a list of available modules and block positions.

{ MosModule random=FAQ} - Displays the entire section randomly

{ MosModule articleid=2} - Displays an article inside another article 

- Displays an article inside another article as code listing

{ MosModule snippet=2} - Execute and displays an article inside another article as PHP code

{ MosModule phpinc=hello.php,firtname,lastname} - Include php file, Execute and displays an inside an article, please make sure to create a "mosmodule" folder under Mambo to put your php script to be execute by mosmodule due to potential security implication. You can also set the folder of your choice in the mosmodule parameter screen.


Note:

Important: Make sure to save the setting at least once and enable MosModule in Mambot manager!

This is a rewrite of modulebot to be compatible with Mambo 4.5.1 or above

The default folder for external script is "mosmodule" but you can change it in param screen

Please see hello.php for a sample on passing variable between mosmodule and external script

Snippet should not have <?php ?> tags where as phpinc should have the tags

Use can also use mosmodule to get RSS feeds from anywhere using the user module with RSS URL Legacy mambot notes:

 

By default, the module will fill the width of the content area. If you wish to control the width and positioning of modules in content area, you will want to enclose the modulebot tag(s) in a div and either assign a class to controll the display in your template_css.css file, or use inline styles (if you are using a WYSIWYG editor such as htmlarea2, you will need to switch to source mode in order to create the <div> tag).

Forms 

MosModule mambot has the ability to display a module, article, exec snippet written in PHP inside of another content item like a story or static page.

Usage:

Adding New Pages

Any member can submit new information a page to the site
Just click on the [Add Page] link at the top of a page.

Adding Pages on the Site

Select the proper Category (is this news, member or children related, etc.)

Select a good Title that is descriptive.

You can add images by choosing the mountain/sun icon and then the up arrow/globe Upload icon.

Browse to an image on your hard drive and upload it. Please make sure it is small and saved for web before sending in, or else everyone will have to download your huge image each time.

 

Adding pages by Email 

Send a message with your story or news to  This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

You must be a registered member of the site, and the email you send from must match your member email.

Target the Section

{section}Section Name{/section}

Target the category: {category}Category Name{category}  


Create Intro Text

{intro}

intro

{/intro}

 

Create Body Text 

{body}

body

{/body}

 


- Displays the entire section randomly

- Displays an article inside another article

- Displays an article inside another article as code listing

- Execute and displays an article inside another article as PHP code

- Include php file, Execute and displays an inside an article, please make sure to create a "mosmodule" folder under Mambo to put your php script to be execute by mosmodule due to potential security implication. You can also set the folder of your choice in the mosmodule parameter screen.

 

Example, show the latest Forum postings:

{mosmosule module=Google Rank}

 

Existing Site Module List

mosmodule Usage: (note extra space to avoid double parsing)

{ mosmodule phpinc=Include PHP file with parameters. Ex: {mosmodule phpinc=filename.php,p1,p2...}}
{ mosmodule snippet=Run Aritcle ID as Snippet PHP code}
{ mosmodule articleid=Aritcle ID}
{ mosmodule codeid=Code Article ID}
{ mosmodule random=Section Name}
{ mosmodule module=module name}
{ mosmodule position} - position = a block position (user1, top, left, etc)
{ mosmodule list} - display a list of modules and block positions

Available ModulesAvailable Positions
Archive
Banners
Bottom Newsletter
Contact - IP Address
Events CA
Events OR
Events US
FAQ
Funding
Google Analytics Tracking Module for VirtueMart
Header Image
Login
Mailing List
Main Menu
Member Stats
Menu Footer
News Flash
Old Login Form
Other Menu
Poll
Random Image
Random Quote
Related Items
RSS Feeds
Schools
Schools Links
Search
Searched
Sections
Teaching Links
Template Chooser
Training
User Menu
Users Online
Users Online
Visitors Map
banner
cpanel
footer
header
icon
inset
left
pathway
right
toolbar
top
user1
user2

 

Notes

Important: Make sure to save the setting at least once and enable MosModule in Mambot manager

Please see hello.php for a sample on passing variable between mosmodule and external script . Snippet should not have <?php ?> tags where as phpinc should have the tags.

Use can also use mosmodule to get RSS feeds from anywhere using the user module with RSS URL Legacy mambot notes: - To use mosmodule as a legacy mambot . copy {ROOT}/mambots/content/mosmodule.php to {ROOT}/mambots - To run inside a module to call other module, hack the includes/frontend.html.php around line 51
Replace this: echo $module->content;
With this:
$mosmodulefunc=$mosConfig_absolute_path."/mambots/content/mosmodule/mosmodule_func.php";
if (file_exists($mosmodulefunc)) { include_once($mosmodulefunc); }

if (function_exists('mosmodule_bot')) { echo mosmodule_bot($module->content); } else echo $module->content;
By default, the module will fill the width of the content area. If you wish to control the width and positioning of modules in content area, you will want to enclose the modulebot tag(s) in a div and either assign a class to controll the display in your template_css.css file, or use inline styles (if you are using a WYSIWYG editor such as htmlarea2, you will need to switch to source mode in order to create the <div> tag).

You can see an example of that in "mosmodule\hello.php". In my mind this would give me the potential of reusing article that are common to all article without repeating the same content, make my article more dynamic enrich with php code using snippet or external php script file. With the use of the parameters you can pass variable between mosmodule and the external php script. The possibilities are endless! In summary, MosModule is a mambot to displays any module, article, exec snippet and external php script inside a content item. Usage: Please see "{ROOT}/mambots/content/mosmodule/readme.txt" for more detail. (this file)
 


Related Pages:

Online Calendars
Software
Surveys


 
< Prev

spacer.png, 0 kB
| Site Map | Privacy | Search | Login | Add | Contact
spacer.png, 0 kB