Home arrow Forum Latest posts of: Max
  Welcome, Guest. Please login or register.
Did you miss your activation email?
September 05, 2008, 06:26:33 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1]
1  Joomla Hacks / Joomla-SMF 1.0.x / Enable dynamic page titles on: November 10, 2005, 10:57:41 AM
We are using SMF/Joomla/Sef Advance and noticed that Dynamic page titles did not work, so we make a hack and thought would share it:

1. Open smf.php in the frontend component (around line 115)
Make the function look like this:
Code:
fixMamboUrls($buffer, $mosurl); 
if (defined(pack('H*',"5f534d46315f"))) { 
// Page titles hack start
     // Parameters 
     $menu =& new mosMenu( $database ); 
     $menu->load( $Itemid ); 
     $params =& new mosParameters( $menu->params );   
 
     // Display the page title 
     ?> 
     <div class="componentheading<?php echo $params->get'pageclass_sfx' ); ?>"> 
     <?php echo $menu->name?> 
       
     <? 
// Page titles hack end
     echo $buffer;   
     unset($buffer); 
}

PS: Big thanks to Pedro from www.globodigital.net for working this out.


Cheers,
Max
2  Joomla Hacks / Joomla-SMF 1.0.x / SMF and SEF Advance workaround on: November 10, 2005, 10:46:26 AM
Just thought I would share a work around for the users of SEF Advance who are having problems with " Your session timed out while posting. Please try to re-submit your message." error.

Our environment:
  • SMF 1.1 RC1
  • Jooma 1.03
  • Sef Advance v4.2.2

Basically we noticed that turning off SEF in globals, resolved the SMF problem. Then we re-enabled SEF in globals and hacked SMF so it does not try to detect if site-wide SEF is used:

1. Edit fixMamboUrls function in functions.smf.php file.
2. $mosConfig_sefTEMP = 0; <-- Add a new variable (we used $mosConfig_sefTEMP)
3. Replace $mosConfig_sef var in fixMamboUrls function with $mosConfig_sefTEMP

So SMF will always think that SEF is turned off but SEF Advance will continue to do its magic for the rest of the site.

Big thanks to Pedro from www.globodigital.net for working this out.

PS: Would be nice for someone to do a sef_ext for the latest version of this bridge.

Cheers,
Max


Pages: [1]


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