News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

phpWCMS integration

Started by cyaneo, March 10, 2005, 02:47:53 PM

Previous topic - Next topic

cyaneo

I try to integrate this forum to hxxp:www.phpwcms.de [nonactive]

In this CMS, there is a cool way to integrate external scripts:

Create a new article with text content in it, like
{PHP:path_to_your_script/external.php}

As an example, I integrated the hxxp:singapore.sourceforge.net [nonactive] - you can see it in action hxxp:www.achilles-kreta.de/gallery.htm [nonactive]

This would be easy, but the only problem is, that I also have to use the $phpwcmsalias (created with the name oft the article) to call external scripts.

HINT: $phpwcmsalias = name of the article with the content

Another example:
to call a post in smf, the url is "index.php?action=post;blabla..."

Now, in phpWCMS, the url have to be "index.php?forum&action=post;blabla..." where "forum&" ist the phpwcmsalias



Is there a simiar way to do this with smf?
Greetings,
cyaneo
-------------------------------------------------------------------------------
If everyone wanted to help the other one, would be helped all
-------------------------------------------------------------------------------
A problem is half solved, if it is clearly formulated.

************************************
hxxp:www.zen-cart.at [nonactive]
************************************

[Unknown]

Well, I would personally use output buffering, like this:

smf.php:
<?phpob_start('ob_phpwcms');include_once('/path/to/smf/index.php');ob_end_flush();function ob_phpwcms($buffer){   global $scripturl;   return strtr($buffer, array($scripturl . '?' => 'http://www.achilles-kreta.de/index.php?forum&amp;', $scripturl => 'http://www.achilles-kreta.de/index.php?forum'));}

Or similar.... this would have some caveats, see the development of the Mambo Bridge for more information.

-[Unknown]

Advertisement: