Welcome to Geeklog, Anonymous Thursday, October 03 2024 @ 10:27 pm EDT
Geeklog Forums
Changing title tag of forum index.php page
Status: offline
RickW
Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
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:
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
thanks
www.antisource.com
I wanted to change that, so at the bottom of forum/include/config.php I added:
Text Formatted Code
$_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
thanks
www.antisource.com
16
15
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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:
Text Formatted Code
/*** 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;
}
7
14
Quote
RickW
Anonymous
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).
13
15
Quote
All times are EDT. The time is now 10:27 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content