joomla / mambo integration

Having trouble installing serendipity?
Post Reply
dracula
Regular
Posts: 5
Joined: Mon Oct 24, 2005 8:30 pm

joomla / mambo integration

Post by dracula »

actualy this is not realy a installation problem since my s9y runs great. But it kind of bugs me that I have to run in a wraper.
I didn't find any mambo / joomla component for this.
I tried it on my own by creating in the components directory a link to my blog
ln -s com_blog /var/www/dracula/blog/ and then in the serendipity directory I created a link blog.php -> index.php then I went to my mambo installation with index.php?option=com_blog but then s9y tries to start the admin php to do the installation. I changed path and everything and also did a little modification in the source so that it doesn't do http Autodetect host when running in embeded mode but with no result.
anybody got this running in mambo / joomla or a module / component for s9y ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: joomla / mambo integration

Post by garvinhicking »

If you embed serendipity, you need to pay attention that you previously chdir() to the s9y directory, so that s9y can find it's installation files! After the s9y installation, you can/must chdir() back to the directory where joomla started from.

Sadly I have never used Mambo/Joomla, so I cannot give you feedback on this.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dracula
Regular
Posts: 5
Joined: Mon Oct 24, 2005 8:30 pm

Post by dracula »

thank you thank you thank you !
this is sooooooooo easy after your tip with the chdir.

so what I did is install the blog in components/com_blog/ direcotry ( or com_foobar ) mambo / joomla then uses this as component if you enter as link index.php?option=com_blog ( or com_foobar ) then you need a blog.php ( or foobar.php ) with just a simple content

Code: Select all

<?

chdir("/var/www_livadaru/html/cristian/components/com_blog");
include('index.php');
chdir( "/var/www_livadaru/html/cristian/");
?>
this is it ... then serendipity works
don't forget to set serendipity in embeded mode ...

/me happy ... :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That's great! Maybe you can tell that on the Mambo/Joomla! forums as well, in case other people are interested :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

Ahhhh, u got s9y embedded in mambo/joomla.
S9y can be embedded inside anything right. they r all webpages after all

dracula, test it extensively. If it all works. the plugins works , template change then I'll go and post it on their forum.

can i see ur webpage
Image
ranman
Regular
Posts: 19
Joined: Wed Jul 05, 2006 1:36 pm

Re: joomla / mambo integration

Post by ranman »

Hi

I have done everything as explained in here but I am getting something I could not really expect..

Code: Select all

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/44/d35/htdocs/components/com_blog/include/db/mysql.inc.php on line 270
serendipity error: unable to connect to database - exiting.
Any ideas ?

Many thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: joomla / mambo integration

Post by garvinhicking »

Hi ranman!

the error messag estems from s9y not being able to connect to your database. Which database config did you enter in serendipity_config_local.inc.php? Maybe you needd to enter the IP address of the DB server instead of a hostname to prevent socket connections.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply