News:

Wondering if this will always be free?  See why free is better.

Main Menu

Wordpress 3.0+ User Integration

Started by SlammedDime, May 19, 2011, 06:54:29 PM

Previous topic - Next topic

Bendo

At moment all files in the root directory have 755 permissions. The subfolders and subfiles have 644, 755 and other permissions.

rishab555555

I have installed Wordpress in /directory and SMF 2.0 in root directory.

Applied a 301 redirect for www.heyrtu.com to redirect on www.heyrtu.com/plus

Bridge has worked almost correctly , but i am not being redirected to worpress after login .

Please tell me what to do I AM VERY MUCH TIRED :(



Bendo

You must open the wp-login.php and delete the redirecting. if you fixed the wp-login, the redirecting part is in the 2 or 3 line, I think.

rishab555555

I think you havent read the question !
I have to stop the re-direction after login !

Quote/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );

wp_redirect('http://www.heyrtu.com/index.php?fromWp='; . time() . '&url=' . $_SERVER['REQUEST_URI'], 302);
exit();

As far as i know these lines of code only re-direct login from wordpress to SMF !


How can i re-direct from smf after login back to wordpress :( Please anyone helo me :(

Svyadov

Well, in first place sorry for my english. And now my situation: I have tried this mod in a fresh installation of WP and SMF (last versions of both, downloaded today). All went OK. But when I set up WP for a Multisite/Network configuration (it's a configuration in which you can have and handle so much blogs as you want but using only one installation of WP) then the bridge allows to login in the forum but not in the blog. If I try to login through the blog, the bridge leads me to the SMF login page, and when I introduce de user and password, all went OK, and I am logged in the forum, but then, the bridge redirects me to the blog, and I'm not logged in the blog, and, of course, I can't access to de admin page of WP.

For a multisite configuration, the WP installation requires the following modifications:

htaccess in WP root with this code:


RewriteEngine On
RewriteBase /main/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-

files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1

[L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]


Modification of the wp-config.php file adding this lines above where it says /* That's all, stop editing! Happy blogging. */: :

define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/main/';
define( 'DOMAIN_CURRENT_SITE', 'localhost' );
define( 'PATH_CURRENT_SITE', '/main/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );


And, of course, the activation in the admins area of WP of the network set up.

Is it possible to use the bridge with a multisite configuration of WP? Thanks in advance.

fmofmpls

Keep getting this message upon trying to install mod - The package you are trying to download or install is either corrupt or not compatible with this version of SMF..

I'm running SMF 2.0 rc3.  Is this not compatible with this version of 2.0?

And is this mod compatible with 2.0 gold?

Thanks!

Jim R

Same question as fmofmpls.  It's not showing to be compatible with SMF 2.0. 

All Colours Sam

have you tried to emulate version RC5 on install?  that should do the trick.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Jim R

Thought about that but not sure how. Do I just unzip, change the compatible file then upload?

All Colours Sam

No.

go to admin / packages


below the list of all your mods installed, theres an "advanced" link, click on it.

it will appear a box,  in that box type:  2.0 RC5    click on apply button.


upload the mod,  now you can install the mod,  oncs the mod is installed, click the advanced link again and then click on "Revert", thats all you need to do.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

DomDom Skye

I've install the mod successfully in SMF final 2.0 (remove the RC5 and rezip it). Work find, but now my Wordpress 3.2.1 got white page everywhere! No more content, and no possibility to log in.

Any hint?

Best regards, Dom

digitalmikey

Everything seems to be working except I can't assign roles under "Role Settings". It just has a drop down box with nothing to select. Any help?

DomDom Skye

I've the drop box in SMF for the role, but impossible to read anything in Wordpress. Blank page. Strange. Any hints? Or at least anybody who install this bridge with final SMF 2.0 and Wordpress 3.2.1 ?

Dom

digitalmikey

Scratch my last question. It ended up being I installed Wordpress with another prefix instead of the default wp_. I reinstalled WP with the default prefix and everything works great!

However, I was wondering if there was some code I can add to have it so all users have their name linked to their forum profile? I can call a user profile by either ID or Username, I just don't know how to implement this properly. Any help?

DomDom Skye

Which version of Wordpress do you use?

petersweb

#155
Quote from: fmofmpls on August 07, 2011, 12:39:35 PM
Keep getting this message upon trying to install mod - The package you are trying to download or install is either corrupt or not compatible with this version of SMF..

I'm running SMF 2.0 rc3.  Is this not compatible with this version of 2.0?

And is this mod compatible with 2.0 gold?

Thanks!

I have the same issue.  I'm running Wordpress 3.2.1 and SMF 2.0

Edit: Just read the last few posts....sorry!

digitalmikey


DomDom Skye

@digitalmikey, same as me. Strange that I've a blank page and cannot access. I've installed Wordpress via SimpleScript, maybe this is why. I will try a fresh install again.

digitalmikey

Anyone know how I can link a users profile link and avatar in the comments? Right now it's just fetching their website URL.

AgainstBelief

Hey, SlammedDime!

First off, THANK YOU FOR THIS WONDERFUL MOD! It saved me so much hassle, and it lets my users navigate my website with ease.

However, I was wondering if there's anyway to set up a login form to put onto the WordPress page that's linked to the SMF board, so that a redirect isn't necessary?
Basically, to have the 'Username' and 'Password' fields be on the WP page, that connect to SMF database.

This isn't a terrible urgent, life-threatening request; but I thought I might as well ask.

P.S.
Also, I actually never knew that it was supposed to redirect you BACK to the WP page after logging in. I guess it never worked for me!

Advertisement: