SMF user permissions in joomla

Started by An-Old_User, November 22, 2005, 09:35:03 AM

Previous topic - Next topic

HoTmetal

Hello all. I'm new to the whole Joomla/SMF combo. Just wanted to know how do I add a nav. bar that only my SMF admins/moderators can see?
IS there a way to do this through Joomlas back end? Or does it have to be hand coded? In the back end I noticed I had 3 choices, public, registered, & special. But if I choose special, it doesn't show up at all, even for the admin. Registered shows up to all logged in users right? Is there another place where I can set the parameters for the nav bar?? Please help, thanks in advance. RickC

chadness

You can't setup a Joomla module based on SMF permissions - they don't really talk to each other like that.  You could, however, give each of them at least "Author" rights in the Joomla user manager, and then your "Special" module will show up.

HoTmetal

Hmmm this sounds like a good work around. But how do I set this up in joomla? Do I choose public, registered, & special? I've tried special, but even I can't see it logged in as the admin... Maybe I'm going about this all wrong??Thanks again for the help

chadness

Special should work.  That should enable it for anyone who is an author or above.  And, yes, Registered is for anyone logged in.  Strange.  Is the Administrator menu showing up OK for you?

HoTmetal

Quote from: chadness on November 22, 2005, 11:45:13 PM
Special should work.  That should enable it for anyone who is an author or above.  And, yes, Registered is for anyone logged in.  Strange.  Is the Administrator menu showing up OK for you?

Yup.... I'll re try....

xpolicy

I also have this problem. The users work with joomla/smf forums, but on joomla when you login you cant do things such as view a article that only registered users can view. Acts as if the user that logs in doesnt login to joomla at all. But I know it half way works because when I go into the administrator of joomla and look at all the users thats registered it shows them.

xpolicy


Orstio

Information helps....

Version of bridge?

Version of SMF?

xpolicy

Oh my bad. Verson of bridge used MOS_SMF_BRIDGEv3.19a_stable.

Verson of SMF is 1.0.6.

I kind of thought it might of just been something i'm not doing right because every thing else works fine. Not sure =/

Orstio

QuoteIn MOS_SMF.php, we need to end the old Joomla session.  Because the name of the session cookie changed in Joomla, we need to change the code a bit:

Find (for login and logout functions...):



setcookie ("sessioncookie","",-3600, "/" );

Replace with:



    $sessionCookieName = md5( 'site'.$GLOBALS['mosConfig_live_site'] );
setcookie ($sessionCookieName,"",-3600, "/" );



xpolicy

Thanks for the reply but this did not work either when I changed the lines. I didnt do anything differnt it seams. I tried to use the search to find the post you quoted that from but search is offline for now.

xpolicy

Bumb

My prob: I can register/login users using the Joomla/SMF module and that part works fine. What doesnt work is it acts as if the users are not loged into Joomla. An example would be users can't view an article that is for registered users only.

When users login or register it does show that those users have an account in the Joomla admin backend, but it never shows them logged in.

If you want to see an example of what i'm talking about you can register an account and see for your self. www.Techit.org [nofollow] is the site. When you login their should be an article on front page with the words test all in it that only registered users can see. Anohter way would be you can click on the downloads button and you can clearly see it says You are not authorized to view this resource. You need to login.

I use
SMF 1.0.6
Joomla 1.0.8
Bridge 3.19a Stable

xpolicy


Advertisement: