Home arrow Forum "Force" users to wrapped forum
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 28, 2008, 10:30:23 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)
| | | |-+  "Force" users to wrapped forum
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "Force" users to wrapped forum  (Read 1218 times)
RJ
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
"Force" users to wrapped forum
« 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-
Logged

RJ
Atlanta, GA
Livebox
Guest
Re: "Force" users to wrapped forum
« Reply #1 on: April 08, 2007, 01:11:52 PM »

Please search the forums. It is mentioned several times. Wink
Logged
RJ
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #2 on: April 08, 2007, 01:21:23 PM »

Please search the forums. It is mentioned several times. Wink
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,
Logged

RJ
Atlanta, GA
Livebox
Guest
Re: "Force" users to wrapped forum
« Reply #3 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. Wink
Logged
RJ
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #4 on: April 08, 2007, 03:20:42 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. Wink
Thank you. I'll try this out.
Logged

RJ
Atlanta, GA
RJ
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #5 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.
Logged

RJ
Atlanta, GA
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #6 on: April 08, 2007, 04:44:30 PM »

this code goes in your SMF index.php, not your joomla index.php. 
Logged

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

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #7 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.
Logged

RJ
Atlanta, GA
RJ
Joomla Newbie
*

Karma: +1/-2
Offline Offline

Posts: 34


View Profile WWW
Re: "Force" users to wrapped forum
« Reply #8 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.
Logged

RJ
Atlanta, GA
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