Home arrow Forum How to allow login if Forum not Public
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 05:41:57 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  How to allow login if Forum not Public
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to allow login if Forum not Public  (Read 1449 times)
Graham Ball
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
How to allow login if Forum not Public
« on: November 02, 2006, 09:27:23 PM »

Hi,

In some of the other forums in JoomlaHacks, people have asked questions about how to make a link to the Forum visible for registered users only. See the following topics:
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,2073.0
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,2422.0

'Officially' you can't do this because, as Wolverine points out:
Quote
Actually, I think I know why this wouldn't work.  To login you must access the component or forum *before* you are actually logged in.  Joomla will not allow that.  So pretty much its not possible as far as I can tell.

However, it is possible to do this by creating two Forum menu items. The first one is 'not published' and set to 'Public' access and the second one is 'published' and set to 'Registered' access. You must make sure that the 'Itemid' parameter shown in the SMF Component installation options points to the id of the first (i.e. unpublished + Public) Forum menu for it to work.

I don't know if this will work for future versions of the component or Joomla, but so far it's worked for bridges V1.1.4.2 and V2.0 RC2.

Regards,
Graham
Logged
Tom Miller
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: How to allow login if Forum not Public
« Reply #1 on: December 06, 2006, 07:56:51 AM »

This worked great  - Thank You !!!  Cheesy

Used it with j1.0.11 with SMF RC3 and JM 2.0 RC3
Logged
Graham Ball
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: How to allow login if Forum not Public
« Reply #2 on: December 06, 2006, 06:37:16 PM »

Hi Tom,
This worked great  - Thank You !!!  Cheesy
No problems, just glad to put something useful back into the community.

Graham
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: How to allow login if Forum not Public
« Reply #3 on: December 06, 2006, 09:04:01 PM »

Thanks Graham, I added this to the user guide.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
tuff
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: How to allow login if Forum not Public
« Reply #4 on: May 23, 2007, 06:52:23 PM »

Hi,

I dont know if this is usefull or not, but i experienced some problems getting this to work, for some reason i tried to delete my original forum entry from the mainmenu, this was originally itemid 26, now when i came to readd the 2 forum entries, 1 unpublished and public, 1 published and registered, ofcourse this also changed the itemid`s for these, i couldnt get the bridge to detect the new itemids

I ended up having to use myphpadmin, browsing the jos_menu entry from my main joomla/smf db, removing the old forum entry id 26, and renumbering the new unpublished public id to 26

Once id done this my problems where solved

its a shame joomla doesnt allow you to edit itemids, or atleast allow you to renumber them (or does it, and i just didnt find the option?)

hope this helps someone
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Joomla Comment
Search Contact About Advertise Blogs Topsites Submit News Register Login