Advertisement:

Author Topic: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass  (Read 30460 times)

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
[NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« on: December 29, 2012, 02:08:57 am »
This is an early release. That means some features wont automatically work until the next version of OSClass is released. Details below...


Plugin Name: SMF Bridge

Description: This bridge will allow your OSClass users to be automatically logged into an SMF forum residing on the same domain.


To use:

Step 1: Install an SMF forum.

Step 2: This step is only needed for Osclass versions 3.0.2 and earlier. You must manually add a line of code to your root file login.php. Simply change this line (around line 110):

From this:
Code: [Select]
$this->redirectTo( $url_redirect ) ;
To this:
Code: [Select]
osc_run_hook("after_login");
$this->redirectTo( $url_redirect ) ;

Step 3: Install the SMF Bridge plugin.
Step 4: Configure the plugin (through the SMF Bridge page listed in the Plugin menu).

That's it!


Use:
Now whenever you log into OSClass, you'll also be logged into your SMF forum. The same goes for all your users. This plugin is NOT intended to integrate with existing SMF forum users.
  • OSClass users can change their forum display name by going into their OSC Dashboard >> Forum settings.

Hopefully Step 2 will be unneeded in the future assuming this hook gets added to the core of OSC.
« Last Edit: January 09, 2013, 11:29:46 am by Jesse »

okeypinoy

  • Full Member
  • ***
  • Posts: 124
  • Okeypinoy-Your free ADS PROVIDER
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #1 on: December 29, 2012, 02:34:35 am »
Hello jesse
First of all belated Merry Xmas and advance happy new year

I try your plugin and I install it how to config it

in step2 I already change in root login.php


When I used testing user in my site I see in user dashboard forum setting but when I click it make an error message

Warning: require_once(/home/mydomain/public_html/smf/Settings.php) [function.require-once]: failed to open stream: No such file or directory in /home/mydomain/public_html/oc-content/plugins/smf_bridge/user_menu.php on line 8

Fatal error: require_once() [function.require]: Failed opening required '/home/mydomain/public_html/smf/Settings.php' (include_path='/home/mydomain/public_html/oc-includes/htmlpurifier:.:/usr/lib/php:/usr/local/lib/php') in /home/mydomain/public_html/oc-content/plugins/smf_bridge/user_menu.php on line 8
« Last Edit: December 29, 2012, 02:48:48 am by okeypinoy »

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #2 on: December 29, 2012, 02:57:46 am »
You have to tell the plugin where your SMF directory is.

To do that, login to /oc-admin/, click "Plugins", then "SMF Bridge". There is only one setting there, which is simply the path to your SMF installation.

okeypinoy

  • Full Member
  • ***
  • Posts: 124
  • Okeypinoy-Your free ADS PROVIDER
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #3 on: December 29, 2012, 03:18:22 am »
 ??? I just compused

I follow your instruction

I login as admin oc-admin

I click plugin then

I see your plugin SMF Bridge

But I cannot see configuration

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #4 on: December 29, 2012, 03:42:39 am »
The plugins settings are under the menu plugins with the name of "SMF Bridge"

Jay

okeypinoy

  • Full Member
  • ***
  • Posts: 124
  • Okeypinoy-Your free ADS PROVIDER
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #5 on: December 29, 2012, 03:52:01 am »
 ??? Still I cannot see in menu plugin

but I try in my test osclass 3.0.2

Then I see there in MENU plugin

I think I will upgrade in 3.0.2

When I upgrade my test osclass I see the different the plugin know have scrolling not like in my live site osclass 3.0.1 maybe thats the problem why I cannot see the config

I will test first in test site this plugin while my live site I will upgrade

Thank you Jesse  and  Jay  for your quick response

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #6 on: December 29, 2012, 09:42:30 am »
Once again a nice plugin!

Do i need to install smf and creat smf directatory ?

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #7 on: December 29, 2012, 10:22:00 am »
Hi Legion,

Yes, you would have to install SMF. You should be able to install into any directory you want. Just make sure to tell the plugin where you install SMF (through Admin panel at /oc-admin/ >> Plugins >> SMF Bridge)

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #8 on: December 29, 2012, 11:53:46 am »
OKay i got it

angkorwonder.com

  • Newbie
  • *
  • Posts: 37
  • Share.Shine.Success
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #9 on: January 09, 2013, 08:19:31 am »
Hi Jesse;

Could I bridge between OSClass to OSClass as well? I have separated into two accounts because of language: English & Local Language.

AngkorWonder.Com

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #10 on: January 09, 2013, 08:27:43 am »
A bridge between two completely independent installations (two databases) of OSClass could be done, however, not with this plugin. That would require a new plugin to be built for that purpose.

You may want to start a new post in the "plugins" section and see if there is any interest in such a plugin, or add it as a suggestion on the new site they got (https://osclass.uservoice.com/). If so, myself or someone else may be interested in building such a plugin, it wouldn't be too hard (just takes time, as with most coding projects).
« Last Edit: January 09, 2013, 08:30:55 am by Jesse »

atomjani

  • Newbie
  • *
  • Posts: 19
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #11 on: January 12, 2013, 04:50:22 pm »
How can I put osclass header to smf at top? Or I creating a new menu to smf?

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #12 on: January 12, 2013, 11:22:06 pm »
You will have to edit the theme files to do that... you can just use standard HTML and CSS.

avast

  • Newbie
  • *
  • Posts: 6
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #13 on: January 16, 2013, 08:57:14 pm »
You will have to edit the theme files to do that... you can just use standard HTML and CSS.
Could you please make a plugin for PHPBB bridge?

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [NEW PLUGIN] SMF Bridge - Add a forum to OSClass
« Reply #14 on: January 16, 2013, 11:56:57 pm »
Thanks! Glad it was working for you.  :)

I'm working on a bridge for WordPress right now, which is proving to be quite a challenge. I've got the plugin working and it's being test right now, but some possible issues seem to have come up. I'll have to see how this ends up before considering an OSC-OSC or PHPBB bridge.