Home arrow Forum Enable dynamic page titles
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 12:43:38 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Enable dynamic page titles
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Enable dynamic page titles  (Read 2116 times)
Max
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 2


View Profile
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
« Last Edit: November 10, 2005, 11:01:34 AM by Max » Logged
javier
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 13


View Profile
Re: Enable dynamic page titles
« Reply #1 on: August 17, 2006, 04:40:02 PM »

Right now, with the joomla 1.0.10 and smf 1.1, this hack simply dont work. Not in my site at least.

Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Enable dynamic page titles
« Reply #2 on: August 18, 2006, 09:31:43 PM »

dynamic page titles work correctly in the upcoming JSMF 2.0 release.
Logged

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

Karma: +0/-1
Offline Offline

Posts: 13


View Profile
Re: Enable dynamic page titles
« Reply #3 on: August 18, 2006, 11:15:51 PM »

Do you think phpbb integration will allow us to have those titles work as normal?


thanks
Logged
javier
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 13


View Profile
Re: Enable dynamic page titles
« Reply #4 on: August 21, 2006, 02:56:45 PM »

Warning to new users!
Since all of the titles and browser urls dont worked as before installing this bridge, I've decided to uninstall this bridge.

I have properly reverse the process:
- unpatched the patched files,
- unistalled the bridge.

But the site is now screwed up! - No titles, No urls and even if you choose to make it SEF 'on' in the joomla config, the site just dissapear!

Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Enable dynamic page titles
« Reply #5 on: August 22, 2006, 09:28:18 PM »

was there a failure on uninstall?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
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
i-Vibe.com
Search Contact About Advertise Blogs Topsites Submit News Register Login