HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


serious SMF integration troubles

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#86106 (In Topic #17634)

Fan in action

I'm using SMF, and having issues getting it fully integrated with ocportal.

I couldn't get SMF to load in the site so I used an iframe, which I think may be causing my first issue.


Right now the ocPortal "register" (join now) link is leading to

Code

http://www.mywebsite.com/portal/index.php?page=forums&url=http%3A%2F%2Fwww.mywebsite.com%2Fforums%2Findex.php%3Faction%3Dregister


Instead of going straight to the register page, it leads to a firefox error page about redirect looping.

To explain how I set it up, when someone clicks the forum link on the menu, it leads to a comcode page called Forum, and that comcode page has the iframe in it adjusted to the size I wanted it to be.



My second issue is:
Logging into the main website, doesn't log you into the forum and vice-versa. I thought this was a cookie error, but even after editing the cookies so both match, it's still not working right


I have SMF and ocportal working together on my other website just fine, and it's been working just fine for 2 years, the only glitch is that Ocportal doesn't show the user's avatar, but that's not a big deal (and from reading the documentation, I think that's only possible with OCF).
I tried comparing the info.php for both sites to see what's wrong, the only difference is the other site is using SMF 1.1.6 but this new site is using SMF 2.0.2.

So I'm confused about how to fix these issues. O_o
Back to the top
 
Posted
Rating:
#86114
Avatar

Community saint

wicked said

I couldn't get SMF to load in the site so I used an iframe, which I think may be causing my first issue.<br />
<br />
<br />
Right now the ocPortal "register" (join now) link is leading to<br />

Code

http://www.mywebsite.com/portal/index.php?page=forums&amp;url=http%3A%2F%2Fwww.mywebsite.com%2Fforums%2Findex.php%3Faction%3Dregister
<br />
That makes sense. What FF sees is essentially this:

Code

http://www.mywebsite.com/portal/index.php
<iframe>
   http://www.mywebsite.com/portal/index.php
</iframe>
Because its ignoring the parameters. It has no way of knowing that ocportal would render it as:

Code

http://www.mywebsite.com/portal/index.php
<iframe>
   http://www.mywebsite.com/forums/index.php
</iframe>
To FF it looks like infinite recursion.

Can you make your link point to:

Code

http://www.mywebsite.com/forums/index.php?action=register
directly?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#86186

Fan in action

that's why I was asking for help, I have no idea how to make it point to the right page (register)
I'm unsure where the code for it is to try changing it.
I searched through the places I thought it would be, but nothing :(
Back to the top
 
Posted
Rating:
#86187
Avatar

Community saint

The links to the join page appears on the following 3 templates:

BLOCK_SIDE_PERSONAL_STATS_NO.tpl
LOGIN_SCREEN.tpl
OCF_GUEST_BAR.tpl

Go to Admin Zone Style Manage themes Choose Edit templates for the theme you are using, and in each of the templates change:

"{JOIN_LINK*}" and "{FULL_LINK*}" to:

Code

"http://www.mywebsite.com/forums/index.php?action=register"


Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#86212

Fan in action

that worked. thanks :)

now I just need to connect smf/ocportal logins  O_o
Back to the top
 
Posted
Rating:
#86215
Avatar

Well-settled

ocPortal has it's own forum and member system (OCF), but can also integrate with some third party ones out-of-the-box:

-Burning Board 2.0 / 2.2/Lite
-IPB 1.1-1.3 / 2.0-2.3
-phpBB 2.0-3.0
-SMF 1.0 / 1.1 / 2.0
-vB 2.2 / 3.0-3.7
-WowBB 1.7
Back to the top
 
Posted
Rating:
#86240

Fan in action

I know it's supposed to integrate, but it's not cooperating.

As I said in my initial post, I have ocportal and smf (1.1.6) working together just fine on one website, but on this new website smf (2.0.2) and ocportal don't seem to want to connect fully.

on this new website: ocportal recognizes logins (registered accounts through smf), but logging into ocportal doesn't log me into the smf forum, and vice versa. Same with logging out. Whereas on the other website, that whole process works fine and the logins are connected.

I tried adjusting the cookies but that didn't help. So I'm lost :(
Back to the top
 
Posted
Rating:
#86290
Avatar

Hi,

Just letting you know I'll be taking a look at this soon.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86312
Avatar

For SMF cookies to work you must disable local cookies in the SMF configuration and set the cookie name correctly in ocPortal:
  1. Disable "Enable local storage of cookies" option in SMF > Admin > Configuration > Server settings > Cookies and Sessions
  2. The Cookie Name is configurable in the same place as above. Let's assume it is set as SMFCookieXXX. We would need to have the cookie names configured as follows in ocPortal's info.php file:

    Code

    $SITE_INFO['user_cookie']='SMFCookieXXX:0';
    $SITE_INFO['pass_cookie']='SMFCookieXXX:1';


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Important!
Posted
Rating:
#86313
Avatar

Automated fix message

wicked said

I'm using SMF, and having issues getting it fully integrated with ocportal.

I couldn't get SMF to load in the site so I used an iframe, which I think may be causing my first issue.


Right now the ocPortal "register" (join now) link is leading to

Code

http://www.mywebsite.com/portal/index.php?page=forums&url=http%3A%2F%2Fwww.mywebsite.com%2Fforums%2Findex.php%3Faction%3Dregister


Instead of going straight to the register page, it leads to a firefox error page about redirect looping.

To explain how I set it up, when someone clicks the forum link on the menu, it leads to a comcode page called Forum, and that comcode page has the iframe in it adjusted to the size I wanted it to be.



My second issue is:
Logging into the main website, doesn't log you into the forum and vice-versa. I thought this was a cookie error, but even after editing the cookies so both match, it's still not working right


I have SMF and ocportal working together on my other website just fine, and it's been working just fine for 2 years, the only glitch is that Ocportal doesn't show the user's avatar, but that's not a big deal (and from reading the documentation, I think that's only possible with OCF).
I tried comparing the info.php for both sites to see what's wrong, the only difference is the other site is using SMF 1.1.6 but this new site is using SMF 2.0.2.

So I'm confused about how to fix these issues. O_o
This issue has been filed on the tracker as issue #536, with a fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Important!
 
Important!
Posted
Rating:
#86314
Avatar

Automated fix message

wicked said

I'm using SMF, and having issues getting it fully integrated with ocportal.

I couldn't get SMF to load in the site so I used an iframe, which I think may be causing my first issue.


Right now the ocPortal "register" (join now) link is leading to

Code

http://www.mywebsite.com/portal/index.php?page=forums&url=http%3A%2F%2Fwww.mywebsite.com%2Fforums%2Findex.php%3Faction%3Dregister


Instead of going straight to the register page, it leads to a firefox error page about redirect looping.

To explain how I set it up, when someone clicks the forum link on the menu, it leads to a comcode page called Forum, and that comcode page has the iframe in it adjusted to the size I wanted it to be.



My second issue is:
Logging into the main website, doesn't log you into the forum and vice-versa. I thought this was a cookie error, but even after editing the cookies so both match, it's still not working right


I have SMF and ocportal working together on my other website just fine, and it's been working just fine for 2 years, the only glitch is that Ocportal doesn't show the user's avatar, but that's not a big deal (and from reading the documentation, I think that's only possible with OCF).
I tried comparing the info.php for both sites to see what's wrong, the only difference is the other site is using SMF 1.1.6 but this new site is using SMF 2.0.2.

So I'm confused about how to fix these issues. O_o
This issue has been filed on the tracker as issue #538, with a fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Important!
 
Posted
Rating:
#86315
Avatar

Ok, I've solved all your issues there :).

Feel free to mention ocPortal's SMF capabilities on the SMF home forum.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86319

Fan in action

Thanks, that worked great!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: