CMSMS Site integrated Wordpress

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
mafiasam

CMSMS Site integrated Wordpress

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: CMSMS Site integrated Wordpress

Post 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.
mafiasam

Re: CMSMS Site integrated Wordpress

Post 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.
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: CMSMS Site integrated Wordpress

Post 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?
Johann

Re: CMSMS Site integrated Wordpress

Post 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).
cyberman

Re: CMSMS Site integrated Wordpress

Post by cyberman »

Tag is IMHO better - it's faster and need lower resources.
thumbsucker
Forum Members
Forum Members
Posts: 73
Joined: Thu Feb 09, 2006 1:38 pm

Re: CMSMS Site integrated Wordpress

Post 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. 
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: CMSMS Site integrated Wordpress

Post 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>";

} 
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: CMSMS Site integrated Wordpress

Post 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!!
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: CMSMS Site integrated Wordpress

Post by herbshirt »

Did the WP and CMS MS integration ever eventuate?
nam-d
New Member
New Member
Posts: 5
Joined: Mon Jun 08, 2009 2:10 pm

Re: CMSMS Site integrated Wordpress

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: CMSMS Site integrated Wordpress

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
nam-d
New Member
New Member
Posts: 5
Joined: Mon Jun 08, 2009 2:10 pm

Re: CMSMS Site integrated Wordpress

Post 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.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: CMSMS Site integrated Wordpress

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
nam-d
New Member
New Member
Posts: 5
Joined: Mon Jun 08, 2009 2:10 pm

Re: CMSMS Site integrated Wordpress

Post 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.
Locked

Return to “CMSMS Core”