Home Forum
Enable dynamic page titles
Pages: [1 ]
Author
Topic: Enable dynamic page titles (Read 2116 times)
Max
Joomla Newbie
Karma: +2/-0
Offline
Posts: 2
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: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
Posts: 13
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
dynamic page titles work correctly in the upcoming JSMF 2.0 release.
Logged
javier
Joomla Newbie
Karma: +0/-1
Offline
Posts: 13
Do you think phpbb integration will allow us to have those titles work as normal? thanks
Logged
javier
Joomla Newbie
Karma: +0/-1
Offline
Posts: 13
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
was there a failure on uninstall?
Logged
Pages: [1 ]