[SOLVED] SMF within...
 
Notifications
Clear all

[SOLVED] SMF within EFiction Folder - Bridge Problems

21 Posts
6 Users
0 Reactions
6,167 Views
(@miruru)
Posts: 18
Active Member
Topic starter
 

URL to your eFiction: Site not yet live
Version of eFiction: 3.2
Have you bridged eFiction, if so with what?: haven't bridge yet!
Version of PHP: Not Sure
Version of MySQL: Not Sure
Have you searched for your problem: Yes.
If so, what terms did you try: SMF, Bridge,
State the nature of your problem:

I'm new to eFiction but have had it installed for quite a while now.

I currently have eFiction 3.2 and it's working perfectly.  Site is not live yet as I'm still working on it.

I only have 2 members on eFiction at the moment and both are admins.

I have just installed SMF and am trying to bridge it.  I have tried bridging before but was unsuccessful.

I have read on this forum that people have eFiction installed within the Forum folder and that it would be better to use an existing SMF and new eFiction, however, I do not wish to uninstall/reinstall eFiction after a lot of work has been put into it.

SMF is currently in a folder called Forum and within the eFiction folder. (path: eFiction>Forum)
Would the current bridge work in the same way?

Thank you


 
Posted : 27/02/2007 6:20 am
(@darklight)
Posts: 170
Estimable Member
 

I had the same issue with a site with almost 500 members. I used this method to transfer the members to the smf install.

This assumes that you've already bridged your sites together and that eFiction and SMF are using the same database.

Try this on a test install first and make sure that you're signed in with the remember me block checked and back up both your database and the info in the smf_members table so that you can replace it if doesn't work. This assumes that you're the only current member of the forum. If there are others, you'll need to clear their data as well. Once again, This should be tested and perfected before trying it on your live archive or in your case, one that is almost ready to go live.

Now go into the database and remove these values in the smf tables user_id, membername, passwd, and emailaddress. Example: Your user id is likely set to one. Edit the smf user id table by deleting that number as well as whatever is in your membername, passwd, and emailAddress fields.

Now run this query:

INSERT INTO smf_members (ID_MEMBER, memberName, passwd, emailAddress) SELECT uid, penname, password, email FROM fanfiction_authors

Now, if that worked as it should, go back to the smf_members table and make sure that your info is in the default (admin) table. The same one you deleted it from.

Now when you go the the forum, your user name won't show, but it'll say you're logged in. All you have to do is edit your account and those of any other members now in the forum by adding your or their name on your/their profile page. You may want to change your password as well, although you can change it to the same thing.

Edit I also have my SMF install inside on my eFiction install. That would make the path to SMF: smf_directory/
For me, if I added a slash before the directory it wouldn't work. Just thought I'd mention it. Also, if you have eFiction already install, all that's left to do to bridge it is to move the files in the bridges/smf folder to where the read me says to put them. And don't forget to place QueryString.php into the Sources/ folder in your SMF install.


 
Posted : 27/02/2007 9:43 am
(@miruru)
Posts: 18
Active Member
Topic starter
 

thank you for your help.  I will give this a go and will keep you updated as to whether this has worked.


 
Posted : 27/02/2007 9:49 am
(@miruru)
Posts: 18
Active Member
Topic starter
 

Ok, i got the bridge working, however, when a user logs in, it's takes me directly to SMF and not the main eFiction site.

Is that support to happen?  I want the user to be able to log in but does not redirect to SMF and for them to go to the Forum, they will click on the Forum link and it will take them there.


 
Posted : 27/02/2007 12:20 pm
(@darklight)
Posts: 170
Estimable Member
 

That's how it works. Logging in takes you directly to the main page of the forum. If there's a way to change that I haven't heard about it yet.


 
Posted : 27/02/2007 12:26 pm
(@miruru)
Posts: 18
Active Member
Topic starter
 

I see 🙁

I now get an error message when I click on the Challenges link.


Warning: main(forum/SSI.php) [function.main]: failed to open stream: No such file or directory in /home/k4ttzz/public_html/efiction/includes/get_session_vars.php on line 21

Fatal error: main() [function.require]: Failed opening required 'forum/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/k4ttzz/public_html/efiction/includes/get_session_vars.php on line 21

Everything is fine so I don't understand!!!


 
Posted : 27/02/2007 12:28 pm
(@darklight)
Posts: 170
Estimable Member
 

This one's over my head. It looks like it can't find forum/SSI.php (obvious I know) but I can't see why if everything else is working. You may want to post a link to your site and have Tammy or Carissa take a look at it.


 
Posted : 27/02/2007 12:56 pm
(@miruru)
Posts: 18
Active Member
Topic starter
 

ah k, i'll work on it a bit more.  I've removed the bridge for the time being. 

I'll try again tonight and if problems still persists, i'll try again.


 
Posted : 27/02/2007 1:09 pm
(@carissa)
Posts: 791
Member Moderator
 

Did you install the challenges module? It's not installed automatically.


 
Posted : 27/02/2007 1:38 pm
(@miruru)
Posts: 18
Active Member
Topic starter
 

It was installed originally.

I have reverted my eFiction site as normal and the challenge module works fine.


 
Posted : 27/02/2007 4:08 pm
(@miruru)
Posts: 18
Active Member
Topic starter
 

I have updated SMF to 1.1.2 due to security vulnerbilities.

Problems that I am encountering:

1. When logged in as the main admin via eFiction, it redirects straight to SMF.  I would much prefer it if it did not do that and just go to the main eFiction site instead.
2. When you are in SMF, and then go back to your eFiction site, it asks you to log in again.
3. I have created a new member via SMF, however, when you have logged in, the eFiction site loses its theme and all you get is text.
4. When both sites are bridged, the Challenge Module throws up Errors.

I have removed all the bridging files and have put back the originals.

I have tested both sites as standalones, and they are all working fine.  I can get into the Challenge module with out a problem.  New users can log in successfully.

If there is nothing that can be done, i may consider not bridging the two installs together.  However, I will try again at a later date as I'm a little fustrated and preocuppied at the moment.  Sorry if this sounds rather harsh. I would like this integration to work and will keep trying when i have the time.

Thank you everyone who has tried to help me so far. ^__^


 
Posted : 28/02/2007 6:56 am
(@darklight)
Posts: 170
Estimable Member
 

I have updated SMF to 1.1.2 due to security vulnerbilities.

Problems that I am encountering:

1. When logged in as the main admin via eFiction, it redirects straight to SMF.  I would much prefer it if it did not do that and just go to the main eFiction site instead. This is something I don't like too, but it isn't a problem or a feature, just an issue with bridging the scripts. I think that to change it, you have to do some editing with SMF and will likely end up with everyone who logs into the forum being taken to the eFiction install if you manage it. Although someone may be able to come up with some java script that will take you back th the page you logged in from.

2. When you are in SMF, and then go back to your eFiction site, it asks you to log in again. There's a problem here. If you're logged into one, you should already be logged into the other too. I'm also using SMF 1.1.2 and I'm not having this problem.

3. I have created a new member via SMF, however, when you have logged in, the eFiction site loses its theme and all you get is text. I've only run into this problem once with a member who register but every time they logged in the theme was lost. What I did was tell the person to log in and gave them a link to their account profile settings and tell them to choose a skin. It worked. The link is: http://www.yoursitename.com/user.php?action=editprefs This is one of the reasons that I think that admins should be able to edit user accounts even with the bridge: https://efiction.org/forums/index.php?topic=4684.0

4. When both sites are bridged, the Challenge Module throws up Errors. I'm getting the same errors with my bridged site. I think it's a bug and I have reported it. You may want to monitor that thread, here

I have removed all the bridging files and have put back the originals.

I have tested both sites as standalones, and they are all working fine.  I can get into the Challenge module with out a problem.  New users can log in successfully.

If there is nothing that can be done, i will have to forget about bridging the two installs together.


 
Posted : 28/02/2007 10:17 am
(@tammy)
Posts: 2577
Member Moderator
 

For the challenges issue.  Edit get_session_vars.php for the bridge.  You're looking for line 22:


require_once(_BASEDIR.$path_to_smf."SSI.php");

Change it to that.  You're adding _BASEDIR. to the line. 


 
Posted : 28/02/2007 11:55 pm
(@miruru)
Posts: 18
Active Member
Topic starter
 

Thank you Tammy for the change in the Challenge module.

Ok, i've got it bridge again and just a few minor setbacks.

1. Logging in: when a user logs in via the eFiction site, it redirects to SMF, then when the user goes back to the main site, it keeps them logged in.  HOWEVER, if the user logs in via SMF and then goes into the main site, it asks them to log back in.  Why does it do this?  Also, sometimes, when you log out via SMF, you get an error message about the url not being defined.  Help me!!!

2. The main site loses it theme when new users register and logs in.  I do not want to keep letting people know the link to their profile to accept the profile.  It will be fustrating if I suddenly get 10 members signed up etc.... I have registered two members and the same thing has happened to them both.  The thing is I don't have any other themes in the skins folder, just the one.  I don't know what else to do about this and it's really annoying.

Please help.


 
Posted : 01/03/2007 7:18 am
(@therio)
Posts: 16
Active Member
 

2. The main site loses it theme when new users register and logs in.  I do not want to keep letting people know the link to their profile to accept the profile.  It will be fustrating if I suddenly get 10 members signed up etc.... I have registered two members and the same thing has happened to them both.  The thing is I don't have any other themes in the skins folder, just the one.  I don't know what else to do about this and it's really annoying.

Have you gone into Admin ->Settings and set the default skin to your theme?

Therio


 
Posted : 01/03/2007 6:52 pm
Page 1 / 2
Share: