|
Title: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 01:00:10 PM Hi-
Is there a way to force users to the wrapped version of SMF? If they click the wrapped link from our website, they are taken to the wrapped version of SMF. However, if they simply type the direct link path, www.mysite.com/forums, they are taken to the unwrapped version. Is it possible that I can stop that from happening? Thanks- Title: Re: "Force" users to wrapped forum Post by: Livebox on April 08, 2007, 01:11:52 PM Please search the forums. It is mentioned several times. ;)
Title: Re: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 01:21:23 PM Please search the forums. It is mentioned several times. ;) My game must be off because I've searched for an answer to this and have not found it. I'll search some more.Thanks, Title: Re: "Force" users to wrapped forum Post by: Livebox on April 08, 2007, 02:19:19 PM yoy can use this in the index.php
Code: // Redirect users who try to access /forum directly }if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false) { if(!defined('_VALID_MOS')){ header("Location: /component/option,com_smf/Itemid,17");} here I'am using the path off the forum..more info about this you will find on the forums. ;) Title: Re: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 03:20:42 PM yoy can use this in the index.php Thank you. I'll try this out.Code: // Redirect users who try to access /forum directly }if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false) { if(!defined('_VALID_MOS')){ header("Location: /component/option,com_smf/Itemid,17");} here I'am using the path off the forum..more info about this you will find on the forums. ;) Title: Re: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 03:42:07 PM Thank you. I'll try this out. I'll have to keep playing around. I haven't figured out exactly where to put it within the index.php file. Tried the beginning and the end. Changed the 17 to the item id of my forum. Perhaps that is where I am going wrong. Title: Re: "Force" users to wrapped forum Post by: -Wolverine on April 08, 2007, 04:44:30 PM this code goes in your SMF index.php, not your joomla index.php.
Title: Re: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 06:24:23 PM this code goes in your SMF index.php, not your joomla index.php. Yeah, /forums/index.php. I tried it there and it generates a blank white page.Title: Re: "Force" users to wrapped forum Post by: RJ on April 08, 2007, 06:44:28 PM Yeah, /forums/index.php. I tried it there and it generates a blank white page. Okay I know why it is not working for me. The path layout is my problem. This is what I have for the path to SMF wrapped:http://www.corpsvets.org/index.php?option=com_smf&Itemid=250 This is what is in the code: /component/option,com_smf/Itemid,17. How do I make that happen? I figure the 17 would be replaced with 250 and tried that but no joy.
Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved. Joomla Bridge by JoomlaHacks.com |