Home arrow Forum How to prevent SMF sending headers when wrapped in Joomla ?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 04:56:24 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  How to prevent SMF sending headers when wrapped in Joomla ?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to prevent SMF sending headers when wrapped in Joomla ?  (Read 1995 times)
Mister T
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 18



View Profile
How to prevent SMF sending headers when wrapped in Joomla ?
« on: February 26, 2006, 06:59:11 AM »

I searched the forum, but I didn't find any anwser to this simple question...  Sad

My Joomla bridge is calling SMF (wrapped mode).
If I look at the HTML code generated, I have my "Joomla stuff" at the start, and then, inside the appropriate DIV, I have my "SMF stuff", starting with the usual "HTML, HEAD, META, BODY..." tags, which should not be included there (we are already inside the BODY of the generated page) !

How can I get them not sent by SMF when wrapped ?

My configuration:
=================
- Joomla 1.0.7
- SMF 1.1RC2
- Joomla-SMF bridge component 1.1RC1
- mod_smf_login 1.4

Bridge settings:
Integration mode: Wrapped
Hide emails in SMF profile on sync: Yes
Always redirect to forum on login: No
Registration module to use: SMF

Thanks a lot !
Logged
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: How to prevent SMF sending headers when wrapped in Joomla ?
« Reply #1 on: February 26, 2006, 04:53:44 PM »

The headers are sent by smf no matter if it's wrapped or bridged, or not. You can manually remove them, they're in your smf template's index.template.php.

If you want them removed ONLY when it's wrapped/bridged with joomla, then you'll need to add a "if (defined( '_VALID_MOS' )" before each header information.
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: How to prevent SMF sending headers when wrapped in Joomla ?
« Reply #2 on: February 27, 2006, 11:08:40 PM »

Here's an excellent guide.

I will follow the steps soon and report back my findings...
Logged

p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: How to prevent SMF sending headers when wrapped in Joomla ?
« Reply #3 on: February 28, 2006, 02:49:28 AM »

good guide, but i still suggest using "if (defined('_VALID_MOS')" instead of "if (empty($_REQUEST['option']))" as it makes more sense Smiley
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
chadness
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: How to prevent SMF sending headers when wrapped in Joomla ?
« Reply #4 on: April 05, 2006, 04:56:01 PM »

good guide, but i still suggest using "if (defined('_VALID_MOS')" instead of "if (empty($_REQUEST['option']))" as it makes more sense Smiley
I agree, but for some reason, I could never get that to work right.
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
Search Contact About Advertise Blogs Topsites Submit News Register Login