Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 20

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

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 11.04.2004, 17:02   #1 (permalink)
Baby Mamber
 
afru's Avatar
 
Join Date: Apr 2004
Posts: 24
afru is on a distinguished road
World Useful Links -> Embeding php scripts into mambo content

Those guys who dont know how to embed php scripts into mambo content just follow on...

Mosphp : Mosphp is a mambot that embeds your own (small) php scripts into mambo content. Get it at http://www.mambobrothers.com (Needs to register to check download section)
Mosaddphp : Another great variation to embed your own PHP scripts into mambo content is Mosaddphp mambot. Get it at http://www.mamboportal.com in "Downloads/MOS 4.5 Downloads/4.5 Mambots" section.
Wrapper Component : This one doesnt actually embed your scripts, it displays your php scripts in IFRAMES. However it works great. Get it at http://www.jasonmurphy.net/page29/Wrapper.html

Hope this post will help newbies like me. If anybody knows any other options to embed external php scripts, just post it here.

Thanking you,
Afru.
afru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 14.04.2004, 14:37   #2 (permalink)
speedyG
Guest
 
Posts: n/a
Default Re: Useful Links -> Embeding php scripts into mambo content

Good post:: one more possibility to ad with component from Mathias Schreurer:::

Best method of displaying Static Pages

Incorporates static html-pages and php-pages in Mambo

A large thread so please read completely Contains the download link for the component!

speedyG::
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 27.04.2004, 10:58   #3 (permalink)
Senior Mamber
 
scheurer's Avatar
 
Join Date: Apr 2004
Location: Frankfurt am Main, Germany
Posts: 137
scheurer is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

Quote:
Originally Posted by speedyG
Good post:: one more possibility to ad with component from Mathias Schreurer:::

Best method of displaying Static Pages

Incorporates static html-pages and php-pages in Mambo

A large thread so please read completely Contains the download link for the component!

speedyG::
Static content XT Version 1.1.2 released!
Some improvements and minor changes. Can now handle Paramters for include-files!
I.e. index.php?option=com_staticxt&staticfile=test.php? testparam=1 is now possible.
This works only with SEF-Urls disabled!
Please update: uninstall the component then reinstall version 1.1.1 with mambos component installer.
Download it from
http://mosforge.net/projects/staticcontent/
__________________
Cheers,

Mathias Scheurer
http://www.mamboland.de
(under construction)
scheurer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.04.2004, 17:14   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 13
doubled is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

I have SEF-Urls disabled and can not get the pass parmaeter to work. Is there any thing on the receiving php page outside of using code like:

$pass_code = "pv";
$pass_product = !isset($_GET[$pass_code])?NULL:$_GET[$pass_code];

that I need to do?
doubled is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.04.2004, 22:59   #5 (permalink)
Senior Mamber
 
scheurer's Avatar
 
Join Date: Apr 2004
Location: Frankfurt am Main, Germany
Posts: 137
scheurer is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

Quote:
Originally Posted by doubled
I have SEF-Urls disabled and can not get the pass parmaeter to work. Is there any thing on the receiving php page outside of using code like:

$pass_code = "pv";
$pass_product = !isset($_GET[$pass_code])?NULL:$_GET[$pass_code];

that I need to do?
See

http://www.mambers.com/showthread.php?p=13643#post13643
__________________
Cheers,

Mathias Scheurer
http://www.mamboland.de
(under construction)
scheurer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04.05.2004, 05:30   #6 (permalink)
Baby Mamber
 
luis's Avatar
 
Join Date: Apr 2004
Posts: 10
luis is on a distinguished road
Exclamation Re: Useful Links -> Embeding php scripts into mambo content

Hello, I've just installed the StaticXT v1.1.4 component.

I get this error all the time:
Warning: Wrong value for parameter 4 in call to preg_match_all() in /usr/home/www/components/com_staticxt/staticxt.php on line 163


Is this a bug or am I missing something here?
luis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04.05.2004, 11:03   #7 (permalink)
Senior Mamber
 
scheurer's Avatar
 
Join Date: Apr 2004
Location: Frankfurt am Main, Germany
Posts: 137
scheurer is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

Quote:
Originally Posted by luis
Hello, I've just installed the StaticXT v1.1.4 component.

I get this error all the time:
Warning: Wrong value for parameter 4 in call to preg_match_all() in /usr/home/www/components/com_staticxt/staticxt.php on line 163


Is this a bug or am I missing something here?
Did You include a php-script or a html-page?
Please provide more informations, i.e. Your PHP-Version (> PHP 4.3.0 ?), the complete link etc.
__________________
Cheers,

Mathias Scheurer
http://www.mamboland.de
(under construction)
scheurer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.05.2004, 02:32   #8 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 3
bhibbits is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

I created a useful How To Use MOSADDPHP article. For all intensive purposes it's a hello world or in this case my name is example with step by step instructions on how to use MOSADDPHP.

MOSADDPHP Demo Tuturial Example: http://www.hibbits.com/content/view/27/9/

I had a really tough time finding documentation on MOSADDPHP so it took me a little while to figure out. Once you get the hang of it, it's pretty easy. I the basic Mambo concept is that any thing in curly braces is a command. e.g {mosimage} would insert an image. In the case of MOSADDPHP you need to insert the text {mosaddphp:test.php} into your page which will call the .php file from the /mosaddphp folder. This will allow you to display your PHP script.

However if you want to interact with the PHP script e.g. some sort of <FORM> that returns a result, you will need one other piece of info. In your php script you will need to pull in all the info about that page so when you click submit it will take you back to the current page. This info can then be hidden in your form so it works correctly.
e.g. <input type="hidden" name="option" value="<?php echo mosGetParam( $_REQUEST, 'option', "" ); ?>">
bhibbits is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 02.06.2004, 13:14   #9 (permalink)
Mamber
 
Jazzy's Avatar
 
Join Date: Apr 2004
Posts: 63
Jazzy is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

Could you please advise me how to insert php include only on the frontpage of Mambo?

I have invision board and it have ssi file to display last 5 forum topics.

I tried to include this code in template, but with no success

<?php
include('http://www.mysite.com/InvisionBoard/ssi.php?m=posts&a=topics&order=lastpost&start=0&sh ow=5');
?>

plz plz plz
I give you a kiss for helping me
Jazzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 19.06.2004, 05:50   #10 (permalink)
Junior Mamber
 
Join Date: Jun 2004
Posts: 25
traderx is on a distinguished road
Default Re: Useful Links -> Embeding php scripts into mambo content

ok, this tells you how new I am to mambo and php, could you pls give me a 'good' example as to WHY you would want/need to embed php into mambo?

Sorry for the newbie Q, but ya gotta start some where
traderx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo Open Source 5.0 Book Series mmx Community Announcements 13 19.09.2005 09:35
Design is kinky ! Ein Mambo Osterei auf grishan.schwabenserver.de grishan Mamboseiten 17 09.07.2005 20:30
How to integrate a custom php script into Mambo TheEdge Component 'How Do I' Questions 6 11.08.2004 11:52
New mambo fork xMambo scheurer Community Announcements 24 16.05.2004 09:52
How to link content items to main menu afru Mambo 4.5 'How Do I' Questions 3 11.04.2004 16:16


All times are GMT +2. The time now is 06:13.

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.