Is there a way of hiding the forum for unregistered users? I have a site with SMF and JSMF 2.0 but when I go to the location (http://www.domain.com/forum) then it is shown fullscreen (no joomla) although you have to login to see anything. Could this be solved?
you should not be accessing the forum directly. Only through joomla. You can add a rewrite rule to your .htaccess file to prevent users from accessing the forum directly
you should not be accessing the forum directly. Only through joomla. You can add a rewrite rule to your .htaccess file to prevent users from accessing the forum directly
It is just for security that no one knows that there is a forum I will try the above solution, thanks in advance!
I tried the solution given. Unfortunately, it prevented the SMF Stylesheet from being read. I'm not sure why.
In the mean time, I have used the following workaround. In the /smf/index.php, i have added the following lines at the top.
Code:
/* * Get the URI path that was typed in the Address bar * and strip the filename so we're left with the path */ $URI = $_SERVER["REQUEST_URI"]; $URI = substr( $URI, 0, strrpos( $URI, "/" ));
/* * If the path does not match the path for the Joomla * installation, redirect to the correct location * for the Forum under Joomla. * NOTE: Itemid may be different on some installations. */ if ( $URI != "/go/portal" ) { header ("Location: http://www.domain.com/go/portal/index.php?option=com_smf&Itemid=51"); }
« Last Edit: September 11, 2006, 03:22:52 PM by brutebmw »
be careful, that file is loaded by the component... you could get multiple refreshes when loading the page. Another option may be to use the joomla page restriction, add
Code:
defined( '_VALID_MOS' ) or die( 'Restricted access.' );
at the top of SMF's index.php. Just a thought, lemme know how it works out.
be careful, that file is loaded by the component... you could get multiple refreshes when loading the page. Another option may be to use the joomla page restriction, add
Code:
defined( '_VALID_MOS' ) or die( 'Restricted access.' );
at the top of SMF's index.php. Just a thought, lemme know how it works out.
Hey that's so true! Now why didn't I think of that one?
i have the same problems to, but i solved the problem by actually moving the forum from /forum to /forum123
and then all i need to do is change the configuration file in smf's config.php so the server settings will look the forum from /forum to /forum123, and after that i change the jsmf module to find the forum at /forum123, after that the problem is solved... no one knows the right address for my forum since it's wrapped in joomla, and every body should find the forum by entering the main joomla screen first...
i don't know if this method has a weakness yet, is it possible for members to actually see the forum's direct url by looking at the joomla link ??
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