Page 1 of 2

CMSMS Site integrated Wordpress

Posted: Mon Oct 08, 2007 8:45 am
by mafiasam
Hello,

I am new to CMSMS. I am an experienced Zen Cart user and decided to try CMSMS.

I am running CMSMS version 1.3.1 with PHP 5.1.6, MySQL 4.1.22. Running Apache 1.3.37 on Linux. Dedicated server.

My observation is that the front page for the CMSMS - cmsmadesimple.org - is actually running WordPress as their blog.

Yet I haven't been able to find anywhere in the forums where there is an actual reference to how they did this.

My question is...

Can the developers/designers please post here how they accomplished this task?

thank you

Re: CMSMS Site integrated Wordpress

Posted: Mon Oct 08, 2007 11:21 am
by Ted
It's actually very simple.  One is CMSMS, the other is Wordpress and we copied the template.  Probably not what you're looking for, but sometimes the most simple things works best.

Re: CMSMS Site integrated Wordpress

Posted: Mon Oct 08, 2007 12:13 pm
by mafiasam
Ted wrote: It's actually very simple.  One is CMSMS, the other is Wordpress and we copied the template.  Probably not what you're looking for, but sometimes the most simple things works best.
Actually it would work fine for me if I could get it to work like you guys have done here.

Maybe you could post a quick install explanation?

Thanks for the reply.

Re: CMSMS Site integrated Wordpress

Posted: Fri Nov 09, 2007 7:20 am
by giggler
I've done integration of wordpress with something else that used smarty by doing the same copying of theme for wordpress part of the site, and I was able to grab the most recent post for the main part of the site as well. BUT I don't know enough about how the modules work for CMSMS to be able to do that. So does anyone know how to do that either by module or by using php tag on the content area?

Re: CMSMS Site integrated Wordpress

Posted: Fri Nov 09, 2007 8:45 am
by Johann
I'm currently working on a system (tag or module) to include wordpress (or in fact any blog/forum/site...) into cmsms. I will release this next week (hopefully).

Re: CMSMS Site integrated Wordpress

Posted: Fri Nov 09, 2007 9:10 am
by cyberman
Tag is IMHO better - it's faster and need lower resources.

Re: CMSMS Site integrated Wordpress

Posted: Mon Dec 10, 2007 11:01 am
by thumbsucker
Johann wrote: I'm currently working on a system (tag or module) to include wordpress (or in fact any blog/forum/site...) into cmsms. I will release this next week (hopefully).
This would be fantastic (Wordpress integrated into CMS).  I just need Wordpress displayed within the confines of my CMS Made Simple site (i.e. menu + header).

Just what I've been looking for.  Please keep us up to date. 

Re: CMSMS Site integrated Wordpress

Posted: Tue Dec 11, 2007 4:21 am
by giggler
Here is the simple way you can do it and add as much as you want to the echo part of it - I usually use post_excerpt and put a little blurb. Then I can put this code anywhere in the homepage, sidebar, etc that displays X number of recent post title with a short blurb that links to the actual blog.

Then on the blog side of it, just copy your header and style it to look exactly like cmsms.

This is in User Define Tag, name it "wp" if you want and then put {wp} where you want this to show. You can also make another UDT that randomizes post with the Select statement.

Code: Select all

$mysql_host		= 'XXX';		
$mysql_user 		= 'XXX';		
$mysql_passwd 		= 'XXX';
$mysql_database 	= 'XXX';

MYSQL_CONNECT($mysql_host,$mysql_user,$mysql_passwd);
MYSQL_SELECT_DB( $mysql_database ) or die( "Unable to select database");
$today = time();

  $query2 = "SELECT * FROM wp_posts WHERE post_type = 'POST' AND post_status ='publish' ORDER BY post_date DESC LIMIT 8";
$result2 = mysql_query($query2) or die("Error: " . mysql_error());

echo "<div class='navleft'> <br />"; 
while($row = mysql_fetch_array( $result2 )) {
	// Print out the contents of each row into a table
echo "<h4>";
echo "<a href='";
	echo $row['guid']; 
echo "'>";

	echo $row['post_title'];

echo "</a>"; 
echo "</h4>";

} 

Re: CMSMS Site integrated Wordpress

Posted: Thu Dec 13, 2007 4:05 am
by giggler
I just did another one that's better since it uses Search Engine Friendly URL and you just need to select the permalink in wordpress as "Date and name based"

uses UDT
http://forum.cmsmadesimple.org/index.ph ... 778.0.html

cmsms is so awesome!!

Re: CMSMS Site integrated Wordpress

Posted: Wed Feb 11, 2009 8:41 am
by herbshirt
Did the WP and CMS MS integration ever eventuate?

Re: CMSMS Site integrated Wordpress

Posted: Mon Jun 08, 2009 2:13 pm
by nam-d
Giggler, Hi.

It would be really nice to have this working (for me).  Currently, when I use it, the main CSS file for the site seems to get 'lost' (meaning, it simply doesn't get rendered, and it's no longer in the underlying HTML). I've no idea why, but when I disable this again, all is fine.

Also, is there any way to make this work with several WP Blogs? I have WP sites to set up, and I'd like to include the latest headline from each. I love complicated :)

Thank you
d

Re: CMSMS Site integrated Wordpress

Posted: Mon Jun 08, 2009 9:52 pm
by tyman00
This isn't an answer to the original question, but you may want to check out CGBlogs. It is a pretty powerful Blog module that has surfaced the last couple months. I am not sure if it will fit the bill for what you need, but I think it is definitely worth considering.

Re: CMSMS Site integrated Wordpress

Posted: Tue Jun 09, 2009 12:05 pm
by nam-d
Thanks tyman, I will have a look at that and see if it'll suit. It would still be good to get something back on this though as CGBlogs may be wonderful, but they guys here are used to Wordpress and I don't like the idea of 'retraining the monkeys'... I mean, users.

Re: CMSMS Site integrated Wordpress

Posted: Tue Jun 09, 2009 5:47 pm
by tyman00
I know all to well what you mean. :) The bonus is everything is centralized now into one admin area instead of multiple login locations. If they are already comfortable with  CMSMS it shouldn't take them too long to pickup on it.

Re: CMSMS Site integrated Wordpress

Posted: Wed Jun 10, 2009 11:08 am
by nam-d
thanks. It looks to me that CGBlog will only handle one blog (it works a treat though). But currently we have 4, with 2 more coming along later, and possibly more after that. What I'd love to do is pull in the latest headline from each Wordpress blog onto a CMSMS powered site home page.