COAddOns project site-Add-Ons for MiaCMS, Mambo & Joomla CMS

 Home arrow FAQs arrow FAQ: MosModudle (mosaddphp) arrow MosModule: Greeting Sample with snippet
Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LV | LT | NO | NL | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZT
SiteMap :: Contact Us :: About Us :: Member Blog :: Newsfeeds :: How-To :: News :: CMS Info :: MosNews :: Web Tools :: IRC Chat  

Main Menu
Home
Forums
Downloads
CMS Category
Web Links
FAQs
Blog
MoseCMS
COAddOns Wiki
COAddOns Docs
Drupal resources
Who's Online
We have 520 guests online
MosCmenuTree

FAQs

Feature Sites
Web Hosting
Q's quickdeals
OpensourceCMS
CMS Matrix
Joomla Extensions
Joomla Templates
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one
Donate
Support OngETC in making a small donation:
Syndicate

MosNewsWriter

MosModule: Greeting Sample with snippet Print E-mail
User Rating: / 12
PoorBest 

MosModule can execute PHP code in content with the feature call "snippet"!  It essentialy turns your article into a composite of various content whether it is other article, PHP code and more!

Reference:   http://docs.ongetc.com/index.php?q=content/mosmodule-greeting-sample-snippet

Running demo below


(1) Hello guest
Your IP is 38.107.191.116

(2) Your Browser is: DontKnow

(3)

Your First Name is:

This is from the second parameter: lastname

Thanks for visiting ...


Comments

I am confused! When you turn off WYSIWYG should not put any extra code to your content at all. You should get a clean box to enter your code.

Posted by Chanh Ong, on 03/04/2008 at 10:32

Have now got MM working on latest Joomla 1.5 RC. I have many, many uses for this great module - only if I can get the rest of the features to function.

Even with WYSIWYG editors off, Joomla keeps adding a [linebreak] tag to the start of any snippet code. This produces the following error.

Parse error: syntax error, unexpected '[less than symbol]' in /home/papworth/public_html/j15/plugins/content/mosmodule/mosmodule.inc.php(113) : eval()'d code on line 1

Can't get the PHPINC pat to work - even using the HELLO.PHP example!

Help!

Posted by Joe, on 03/04/2008 at 10:27

Thanks! It is an excellent module and as you say with it possibilities are endless!

Posted by Aakash, whose homepage is here on 01/17/2008 at 05:24

The snippet is just like any content, you just create a content that store your snippet. I would suggest to create a category call snippet and store all your snippet there and once you create the content that has your snippet just use that article id as your snippet id.

As for the module title, you can put the title before the call like this:
module title
{MM module=yourmodule}

Posted by Chanh Ong, on 01/15/2008 at 09:07

In the first part on IP address { mosmodule snippet=216}, 216 is the name of snippet file? Where do I store this snippet?

Also, when you call a module in content, it doesn't display full title of the module (even if it is published) e.g. {mm module=featured_articles} will just generate articles but with no module heading. How do I enable module heading?

Posted by Aakash, whose homepage is here on 01/15/2008 at 05:45

 1  2  Next Page >
Page 1 of 2 ( 7 Comments )

You are not authorized to leave comments. Please login first.
<Previous   Next>




Sponsors

Reseller hosting (free)

000webhost (free)

HostUpon (w/ ssh)

Hosting24 (w/ ssh)

Free TK domain

CO.CC:Free Domain

Get Chitika Premium

Free Windows Hosting


Credit Counseling - Arizona Landscaping - click fraud protection - Renegade Motorhomes
Validate XHTML
Validate CSS