Posted on: 10/25/04 07:11pm
By: RickW
My main forum page was using the same title tag slogan as my site's home page.
I wanted to change that, so at the bottom of forum/include/config.php I added:
$_CONF['site_slogan'] = 'Antivirus Forums';
And it works. Is this the best way for me to accomplish this for now?
Also I still need some help with
this question about forum descriptions for the title tag[*1]
thanks
Changing title tag of forum index.php page
Posted on: 10/26/04 02:11am
By: RickW
Bummer... I just realized that alos changed the site_slogan for my main page. So I had to move that entry into my forum index.php.
Changing title tag of forum index.php page
Posted on: 10/26/04 02:32am
By: machinari
You might try the function plugin_getheadercode_{pi_name}().
it would be called from the forum's functions.inc file. If it isn't defined there, you would have to do that yourself.
see what <geeklog_dir>/system/lib-plugins.php has to say about it:
/**
* This function is called from COM_siteHeader and will return additional Header information
* This can be Javascript functions required for the plugin or extra Metatags
*
* @return string returns a concatenated string of all plugins extra header code
*/
function PLG_getHeaderCode()
{
global $_PLUGINS;
$headercode = '';
foreach ($_PLUGINS as $pi_name) {
$function = 'plugin_getheadercode_' . $pi_name;
if (function_exists($function)) {
$headercode .= $function();
}
}
return $headercode;
}
Changing title tag of forum index.php page
Posted on: 10/26/04 01:57pm
By: Dirk
Did you see
this[*2] ?
PLG_headerCode won't help you, btw.
bye, Dirk
Changing title tag of forum index.php page
Posted on: 10/26/04 02:27pm
By: Anonymous (RickW)
[QUOTE BY= Dirk] Did you see
this[*2] ?
PLG_headerCode won't help you, btw.
bye, Dirk[/QUOTE]
Yes, you showed me that hack before and I'm using it now (for viewtopic.php). I now need something for the index.php, with a different default title on the main forum page than what's on the site's main page, plus would like the topic descriptions to populate the title tag when the topics are clicked on (which still remains at the index.php).