Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: dopeitspaul on August 10, 2014, 10:28:02 PM

Title: SMF & Wordpress
Post by: dopeitspaul on August 10, 2014, 10:28:02 PM
Hey everyone I'm very new to the whole integration and bridging thing. So the question I might ask is probably stupid.

But I plan on using Wordpress as my blog and SMF as the forum.
I been working on my theme for SMF, and once I'm done I want my wordpress to match with my forum. For example, I want them to have the same frame width, same footer, and same, header.

Here's a good example of a Wordpress x Smf
http://segabits.com/

Here's what my forum looks like
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi218.photobucket.com%2Falbums%2Fcc263%2Fxguillotinezx%2Fphpbb%2FScreenshot2014-08-10at71820PM_zps64d023de.png&hash=4c8da5d632e07adae11cd5040405efaaea415065)

Note: the navbar is not part of the header, but I can try to move it in the header section if needed.

As you can see, the red box I marked, is what I want displayed when I'm on the wordpress. And the purple box i marked, is how I want the width to be on the blog. And same goes with the footer. So basically in the main context of the frame is where I want the blog.

Can someone tell me how can this be done? Thanks
Title: Re: SMF & Wordpress
Post by: Chen Zhen on August 10, 2014, 11:11:56 PM
  Wordpress & SMF globals conflict (so I have read) although atm I have come up with one possible solution for you.
Set up Simple Portal's standalone option in your main Wordpress directory.
ref. http://simpleportal.net/index.php?action=docs;area=set_up_standalone_portal
Then you can work PHP block(s) in the middle (vertically) to scrape the Wordpress index.php via DOM and container id's.
I've never really worked with Wordpress and would have to mess around with it.

The standalone file has to be index.php though. You'd have to put SP's code within a function contained/combined in the Wordpress index.php and have it tripped if ie. a certain value isn't met in the url via $_REQUEST else continue with the Wordpress code. That would enable you to scrape it with the block codes using the same url with an added value (ie. ../index.php?wordpress=1;) anyhow. 

Atm that's all guess work.
Title: Re: SMF & Wordpress
Post by: Kindred on August 11, 2014, 01:28:44 PM
even that won't work nicely....

in general, there is no good way to do what you are asking....

So, the question becomes -- what exactly are you trying to accomplish?
If you are just using wordpress to essentially make articles, published by only yourself... and the forum for community discussions...   then a portal mod like SimplePortal, EZPortal, PortaMX or TinyPortal with the articles section in use would seem a better choice.

Then everything is handled from within the forum software and you don't have to mess with combining two separate themes and softwares
Title: Re: SMF & Wordpress
Post by: dopeitspaul on August 12, 2014, 01:25:34 PM
You think theres a way I could call in wordpress's index.php file into a simple portal block?
Title: Re: SMF & Wordpress
Post by: Kindred on August 12, 2014, 04:53:54 PM
In a word... No

And you still have not answered my question.   
Title: Re: SMF & Wordpress
Post by: dopeitspaul on August 12, 2014, 11:33:25 PM
Here's what I'm trying to do,

I want smf and a wordpress blog to match. I was trying to see if there's a way they can have the same header with a menu. The same context body width, and the same background. I'm new to all this, so I'm assuming this is integration or bridging? I'm not exactly sure sorry.

This is the best example site I can find

Here's the wordpress blog:
http://segabits.com/

And here's their SMF forum:
http://segabits.com/forums/

Notice that they have the same header, background, and context width.

Pardon my last post. But would it work the other way? Call in the SMF index, and put it in a wordpress page?

If not, can you describe how http://segabits.com did it? Like, by just looking at their site, do you know the solution they used? Thanks
Title: Re: SMF & Wordpress
Post by: internets on August 13, 2014, 10:34:56 AM
I am a WP Lover, so surely watch this thread.
Title: Re: SMF & Wordpress
Post by: Kindred on August 13, 2014, 06:28:42 PM
Personally,I would say why bother?

Everything done in a Wordpress blog can be done within smf with a mod...

If you already had an established Wordpress blog, it might make sense... But if this is a new site, it really doesn't make sense to link the two...  Because it is very difficult to even begin to do so..
Title: Re: SMF & Wordpress
Post by: Arantor on August 13, 2014, 06:47:57 PM
Did you patch for the latest vulnerability (last week)? (Incidentally, despite SMF making heavy use of XML files, it's totally immune, and has *always* been immune to that entire class of vulnerabilities.)
Title: Re: SMF & Wordpress
Post by: GB_Techie on October 05, 2014, 11:15:07 AM
We've been using SMF since the yabbse days.  We have a separate standalone content website that accompanies it.  The content site contains a directory and and an events calendar with listings that can recur weekly, monthly, last monday of the month etc. 

I'd like to bring the two sites together so that users who log in only have to log in once.

I didn't think that SMF could do all of the things that we currently do on our content site, but would be very happy to be proven wrong.  Using one system would be much easier.  If I can't find a way to bridge the two then I will have to find another forum that does work with Wordpress which does not make me happy.  My users won't be impressed, but it's become impractical to manage the two separately.
Title: Re: SMF & Wordpress
Post by: handy1 on November 07, 2014, 02:30:54 AM
Quote from: Kindred on August 13, 2014, 06:28:42 PM
Personally,I would say why bother?

Everything done in a Wordpress blog can be done within smf with a mod...

If you already had an established Wordpress blog, it might make sense... But if this is a new site, it really doesn't make sense to link the two...  Because it is very difficult to even begin to do so..

Dear Kindred,

I have googled all kind bridges a few days now and every fu**ing topics you have posted same answer "why to use wp, you can do everything same on smf". Why you do this? Maybe you believe that wp is just a blog platform, but I can say that you can do a lot more than just blogging articles. Wordpress is leading cms to website developers and wp's SEO is the best what you can get.

Because you say that everything is possible to do in smf, I would like to give one job for you.

http://wp.modulout.com/

Get this plugin works on smf  ;)
Title: Re: SMF & Wordpress
Post by: Arantor on November 07, 2014, 02:40:59 AM
What does it do, exactly? I don't get what the site is trying to say (like 96% of WP sites I see, very pretty, no substance)

By comparison I give you a site I built: http://crossingoverland.com... that's SMF with a custom portal and a WP theme I made work on SMF. So before you proceed to lecture on our 'attitude', remember that *literally anything* can be done on SMF. And likely work more efficiently and more securely than WP.

Hell, I once wrote a crude accounting system built on top of SMF, in 4 hours flat.
Title: Re: SMF & Wordpress
Post by: handy1 on November 07, 2014, 04:29:42 AM
Quote from: Arantor on November 07, 2014, 02:40:59 AM
What does it do, exactly? I don't get what the site is trying to say (like 96% of WP sites I see, very pretty, no substance)

By comparison I give you a site I built: http://crossingoverland.com... that's SMF with a custom portal and a WP theme I made work on SMF. So before you proceed to lecture on our 'attitude', remember that *literally anything* can be done on SMF. And likely work more efficiently and more securely than WP.

Hell, I once wrote a crude accounting system built on top of SMF, in 4 hours flat.

It's very good betting script. Scroll down a little bit and click users, events..
Just one reason why to use wordpress.

PS: Your site looks good, but now we need something more than just cool design and content.
Title: Re: SMF & Wordpress
Post by: Arantor on November 07, 2014, 04:42:47 AM
Is *THAT* what it is? OK...

The only reason it isn't a thing on SMF is because no-one has ever been that bothered to build it. It's quite doable with sufficient time, energy and skill - you'll notice the same reason no-one ever built and maintained a WP/SMF bridge.

In any case building a bridge is going to be a terrible fugly mess because getting WP themes and SMF themes to play nicely together... yeah, that ain't happening any time soon.
Title: Re: SMF & Wordpress
Post by: handy1 on November 07, 2014, 04:48:32 AM
Quote from: Arantor on November 07, 2014, 04:42:47 AM
Is *THAT* what it is? OK...

The only reason it isn't a thing on SMF is because no-one has ever been that bothered to build it. It's quite doable with sufficient time, energy and skill - you'll notice the same reason no-one ever built and maintained a WP/SMF bridge.

In any case building a bridge is going to be a terrible fugly mess because getting WP themes and SMF themes to play nicely together... yeah, that ain't happening any time soon.

Actually smf2wp mod (wp plugin) works with newest smf version and wp4.0. I made few tests an hour ago and dual logins and registerations works perfect. Tested only for fresh installations, not with modifications. Have to figure out how to get old smf users to wp, maybe with new plugin.

Title: Re: SMF & Wordpress
Post by: Arantor on November 07, 2014, 04:51:49 AM
Yes - until WP changes things and it will need to be seriously overhauled for SMF 2.1 as well... and that's even before getting into any incompatibilities with any modifications/plugins on either side...
Title: Re: SMF & Wordpress
Post by: colby2152 on November 10, 2014, 10:27:19 PM
I had to install WP to handle a special plugin that I want to use for my site.  I only care to use WP to access this plugin.  I am only interested in a bridge between members (those must register via SMF and then WP recognizes it).  Any thoughts?
Title: Re: SMF & Wordpress
Post by: radu81 on November 11, 2014, 02:46:31 AM
It's usefull for you all, but there are a lot of similar requests here :)

I started with smf just because back in 2007 it was the only forum I could integrate with Joomla. I don't use Joomla anymore but people love using a CMS. Think about it
Title: Re: SMF & Wordpress
Post by: Arantor on November 11, 2014, 09:19:07 AM
I'd rather build a CMS for SMF than frankenstein a CMS onto it.
Title: Re: SMF & Wordpress
Post by: colby2152 on November 11, 2014, 09:42:43 AM
Quote from: Arantor on November 11, 2014, 09:19:07 AM
I'd rather build a CMS for SMF than frankenstein a CMS onto it.

I agree.  My only need for WordPress is a specific plugin that it used on the platform.
Title: Re: SMF & Wordpress
Post by: Kindred on November 11, 2014, 10:19:42 AM
why don't you just request that plugin to be rebuilt for SMF?
Title: Re: SMF & Wordpress
Post by: colby2152 on November 11, 2014, 01:48:42 PM
Quote from: Kindred on November 11, 2014, 10:19:42 AM
why don't you just request that plugin to be rebuilt for SMF?

That may happen actually.
Title: Re: SMF & Wordpress
Post by: Frantix on November 12, 2014, 11:30:03 AM
Thanks for the SMF2WP plugin, I've looked at a few but don't remember that one (with the 3.x + 2.x or confirmed that 4.x is working), however, my notes are at home.  There are quite a few dead ones.  All I care about is bridging the ID & password hash, so if it's only creating a separate table for those, I'll try it.  Unless major structural changes to the database on key tables occur, something that bridges the id/password won't matter much.  It would be insane if those changes are occurring, far too many opportunities for failure if user tables are being structurally changed.  Even Oldiesmann has the G2 bridge/full integration.

Kindred is always happy with an awesome attitude towards anything not SMF, always making it a warm and inviting atmosphere for everyone.
Title: Re: SMF & Wordpress
Post by: Kindred on November 12, 2014, 11:37:58 AM
actually, with 2.1, there are some things changing - including the password hash.



and, whatever you think about my attitude, I think that you are mistaken -  I am not opposed to other things... I use WordPress myself on a few sites.   I just don't see the need to bridge things that don't need to be bridged. It over complicates systems and leads to eventual problems which could have been avoided.

Use the right system for the job in the first place. :)
Title: Re: SMF & Wordpress
Post by: Arantor on November 12, 2014, 11:39:36 AM
I have used WP on sites, but I am at the stage where it actually ends up being better for me to build a blog out of SMF than it does to try to optimise WP to be performant...
Title: Re: SMF & Wordpress
Post by: Frantix on November 12, 2014, 04:56:03 PM
Quote from: Kindred on November 12, 2014, 11:37:58 AM
actually, with 2.1, there are some things changing - including the password hash.



and, whatever you think about my attitude, I think that you are mistaken -  I am not opposed to other things... I use WordPress myself on a few sites.   I just don't see the need to bridge things that don't need to be bridged. It over complicates systems and leads to eventual problems which could have been avoided.

Use the right system for the job in the first place. :)

In no way was it a personal attack, hopefully you didn't take it as such. I have just followed a lot of these types of conversations and it seems your position has been secured in carbonite. :)  I was doing some searches for 2.1 info and not finding an actual feature list/update.  I found the 2.1 Comments board and GitHub but not a specific 2.0 vs. 2.1 features or just 2.1 features.
Title: Re: SMF & Wordpress
Post by: Kindred on November 12, 2014, 06:29:58 PM
That is correct. Such an official list has not been published yet
Title: Re: SMF & Wordpress
Post by: DenDen60 on November 13, 2014, 04:28:20 PM
Quote from: Kindred on November 12, 2014, 06:29:58 PM
That is correct. Such an official list has not been published yet
Will there be one soon? (I can't help myself, I am curious)  8)
Title: Re: SMF & Wordpress
Post by: Kindred on November 13, 2014, 05:07:46 PM
It will be published as soon as it is ready -- just like the release.
Title: Re: SMF & Wordpress
Post by: diontoradan on November 22, 2014, 03:52:40 AM
check out my site : www.ravelex.net

the blog / articles is taken from smf posts, done with a bit knowledge of php and mysql.
Title: Re: SMF & Wordpress
Post by: Arthran on November 26, 2014, 07:09:52 AM
So just to throw my 2pence into the discussion. I'm trying to integrate WP and SMF. The primary reason is that my site is built this way

devgaming.  net - Main WP install with Multisite turned on
%user%.devgaming.  net - certain writers are given their own subdomain using the multisite, allowing their own articles to be separated
wow.devgaming.  net - A sub-community on the site, with their own area and forum

So you can see the site is kinda complicated as it is with multiple subdomains caused by wordpress multisite/network. I need multiple forums, one on the main site for the community forums, and one for the sub-community page. At the moment I've been using bbpress for this but it's unweildly, slow and doesn't work like a real forum does.

So a User bridge between SMF and WP would allow me to at worst have a couple of SMF installs that get their users from WP and I use WP as the central user system. FAR from ideal but unless SMF can do something similar I cant see a better way.

Arth
Title: Re: SMF & Wordpress
Post by: Kindred on November 26, 2014, 07:58:07 AM
well, with the split forum mod, you would not actually need multiple installations of SMF either...


However, that still does require a bridge between SMF and wordPress...   and, unless someone else steps up or finds a dev to do the work for them, I don't see that happening any time soon...


Now...   as for "can SMF do something similar"?
Actually - yes...   with the split forum mod - you can set up various boards to appear, using specific subdomains - and then grant the authors full MODerator rights within those specific boards.


hence - no wordpress.

SMF at root and various subdomains - with split forum mod
board 1, 2 and 6 display on the root domain
board 3 displays on author1.domain
board 4 and 5 display on author2.domain

Install a portal mod to accomplish a similar layout to the standard WordPress column design.

Advtantage?   SMF has a MUCH more robust security and permissions system than WP.
Title: Re: SMF & Wordpress
Post by: Arthran on November 26, 2014, 08:04:20 AM
See, After posting that and whilst having lunch I thought about that. SMF on root domain with a portal mod, then use a domain mapping mod for multiple forums on subdomains. The key question is finding a suitable portal that would work with the domain mapping allowing each subdomain to have its own SMF portal, as long as thats possible than boom, problem solved
Title: Re: SMF & Wordpress
Post by: Kindred on November 26, 2014, 08:10:23 AM
hmmm.....    I don't know about "each domain" having its own sub-portal....

THAT may be complicated.

I believe that the split forum mod works pretty well with the SimplePortal.
and I know that the subforums mod (by feline) works well with PortaMX and PMXBlog (since they are all written by feline)


I'd suggest checking with the authors of the two subdomain mods to see if the portal blocks can be displayed per subdomain -- the confirm if specific membergoups can be given access to edit specific blocks
Title: Re: SMF & Wordpress
Post by: DenDen60 on November 27, 2014, 11:42:18 AM
It does seem to work well with EZportal as well. I have made a few test and it was working. I should test it more thoroughly soon.
Title: Re: SMF & Wordpress
Post by: charpress on December 08, 2014, 12:19:26 PM
Let me add my two cents here as someone who uses WordPress and SMF for totally different sites and wishes there was a way to have the best of both. Here's the dead-end problem I'm experiencing right now with WordPress:

I have a highly SEO rated site that is totally WordPress. For the past three years, I have been using the BBpress plugin for the forum part of the site. It has 265,000 registered members. The problem? 260,000 of those members are basically spammers. They, together with all their metadata, take up about a gigabyte of database space. These are all people that went through the registration process with captcha, and replied to the email authentication just to get a chance to comment spam, signature line spam, or whatever. They haven't been able to do that on any large scale, but here's the big problem:

My site is kind of dead in the water. There is some database error that I can't resolve that has screwed up the WordPress visual editor. I can no longer post any blogs, pages or posts. The widget areas no longer works. I can't even edit or change a post date. All of this is because the database is so huge that it just has become dysfunctional. It is so bad, I can't even back up or move the database to work on because the host times out way before anything can be done.

I'm not sure what I'm going to do. Since the existing forum (BBPress) is tied to all users, metadata, and actually creates a WordPress page for each thread, I'm guessing I'm totally screwed.

My point for posting in this thread: if your going to have a sizable forum, don't even consider kludging a forum into the WordPress structure. You will be sorry at some point if you end up with anything close to a successful following. You will be spammed and re-spammed and there is nothing you can do to prevent it. If it doesn't work with the WordPress designers own forum plugin -BBpress, then how can you expect any other solution to work?

Probably the only thing I can do at this point is start over. I doubt if there is any way to transfer my BBpress forum to SMF. The WordPress/BBpress method of creating a WordPress page for each post is very, very problematic.

All I really want to do anyway is perhaps have a frame in WordPress that displays the last 10 forum post titles from a SMF forum in a WordPress sidebar. Any thoughts there anyone? Anyway, I hope my experience with a large forum within WordPress will make some users think twice about taking that route.
Title: Re: SMF & Wordpress
Post by: Bruce the Shark on December 10, 2014, 05:17:11 PM
So let me get this right....hmmm so, you want to transfer all of your database thats full of spam in a SMF
Have i read this right?
Why would you want to transfer all that spam over to here.
Dude just suck it up and start all over again.
Title: Re: SMF & Wordpress
Post by: TonyG on December 25, 2014, 09:38:44 PM
Wow, this discussion is a lot like the one I started here (http://www.simplemachines.org/community/index.php?topic=531541).

So @charpress, you have a bug you can't resolve and you're convinced the entire platform is bad? I know a lot of people who get new PCs when the one they have starts to run slow. These folks are certainly not developers. I have a leak in my roof but I'm not going to blame the neighborhood I live in and go buy another house elsewhere. Changing the environment isn't the solution to a bug, database corruption, or leaky roof. Someone needs to work through the issue and fix it.

As to the OP request, I've been looking for a way to skin SMF and WP in similar ways for years. The best option I've considered is refitting the CSS with LESS or SASS and then getting all environments to use a common base of definitions. I haven't had time to complete such an endeavor but I might give it a shot with my latest projects.
Title: Re: SMF & Wordpress
Post by: Gwenwyfar on December 26, 2014, 02:22:07 AM
Quote from: TonyG on December 25, 2014, 09:38:44 PM
As to the OP request, I've been looking for a way to skin SMF and WP in similar ways for years. The best option I've considered is refitting the CSS with LESS or SASS and then getting all environments to use a common base of definitions. I haven't had time to complete such an endeavor but I might give it a shot with my latest projects.
In all that time couldn't you just have made a theme for one of them that is the same as the other? :P
Title: Re: SMF & Wordpress
Post by: TonyG on December 26, 2014, 04:08:25 PM
Quote from: Fortytwo on December 26, 2014, 02:22:07 AMIn all that time couldn't you just have made a theme for one of them that is the same as the other? :P
You might not ask that if you've ever created a theme for both sides. :) Seriously though, they're not compatible because the CSS classes and IDs are all different. For example, the DIV ID "header" might be common to different environments, but under that SMF has ID "top_section" and a class "forumtitle". There's also an "upper_section", class "user", "main_menu", etc. In other FOSS there may or may not be the same concepts but the names aren't the same. So getting two themes from two FOSS applications to agree is a huge challenge. Now, as we see, themes tend to change from one app release to another, so after that huge effort to get a single theme compatible between two environments, the theme author is likely to change it, or new Responsive / mobile-friendly themes are likely to emerge. So this whole effort is just a temporary fix that's too time consuming to endure.

[rant]
I think the real solution is better collaboration amongst a number of the popular FOSS leaders. I know there have been a couple initiatives like this but they never seem to work out - usually because everyone just likes to do things Their way, and playing nice with the rest of the world just isn't high on the priority list. What's funny is that this is Exactly one of the reasons why the world revolted against big software from big companies. This is the big gripe against Microsoft versus FireFox versus Chrome. This is the whole Cathedral versus Bazaar thing, shrunk down to a thousand individual apps with tiny groups of people empowered to play the same game as the big guys. But in the end it's just a game and now we're stuck with thousands of incompatible bits of software rather than the few that prompted the original revolts for FOSS. Humans are funny like that. Oh well. Maybe some day...
[/]
Title: Re: SMF & Wordpress
Post by: Arantor on December 26, 2014, 04:16:41 PM
QuoteYou might not ask that if you've ever created a theme for both sides.

I've ported WP themes to SMF. It really isn't that much of a deal in most cases.

QuoteSeriously though, they're not compatible because the CSS classes and IDs are all different.

So? It's not like you have to keep them. My favourite example for this is crossingoverland.com, I ported a premium WP theme to SMF, there's no WP install there despite the fact it looks bloggish.

QuoteNow, as we see, themes tend to change from one app release to another, so after that huge effort to get a single theme compatible between two environments, the theme author is likely to change it, or new Responsive / mobile-friendly themes are likely to emerge

So having a single environment makes so much more sense.

QuoteI think the real solution is better collaboration amongst a number of the popular FOSS leaders.

It's very nice in theory but you're not the one that would actually have to spend the time working on it.

Of the people in the SMF camp who 'could' work with WP... none of us actually *do*. Similarly, of the people in the WP camp capable of doing such things with SMF... none of them actually do. There's a lack of need and a serious lack of incentive.
Title: Re: SMF & Wordpress
Post by: Gwenwyfar on December 26, 2014, 04:43:47 PM
Quote from: TonyG on December 26, 2014, 04:08:25 PM
Quote from: Fortytwo on December 26, 2014, 02:22:07 AMIn all that time couldn't you just have made a theme for one of them that is the same as the other? :P
You might not ask that if you've ever created a theme for both sides. :) Seriously though, they're not compatible because the CSS classes and IDs are all different. For example, the DIV ID "header" might be common to different environments, but under that SMF has ID "top_section" and a class "forumtitle". There's also an "upper_section", class "user", "main_menu", etc. In other FOSS there may or may not be the same concepts but the names aren't the same. So getting two themes from two FOSS applications to agree is a huge challenge. Now, as we see, themes tend to change from one app release to another, so after that huge effort to get a single theme compatible between two environments, the theme author is likely to change it, or new Responsive / mobile-friendly themes are likely to emerge. So this whole effort is just a temporary fix that's too time consuming to endure.
Nothing stops you from changing the classes and rearranging the divs. I started making a theme for SMF as soon as I installed it for the first time and I changed or added many of them to fit my needs. And most wordpress themes I've seen seem very simplistic, so it shouldn't be hard to just copy whatever theme you're using.
Title: Re: SMF & Wordpress
Post by: djohns on January 11, 2015, 06:47:13 PM
This SMF-WP bridge was updated 01 Jan 2015, if anyone is interested.  I have not tried it, myself:
https://wordpress.org/plugins/wp2smfbridge/ (https://wordpress.org/plugins/wp2smfbridge/)
Title: Re: SMF & Wordpress
Post by: samhtb on February 23, 2017, 06:13:56 AM
Can the WordPress users automatically sign in without sign up to the WordPress SMF platform? How do you think, is it works good on WordPress?