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:

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
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
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.
www.antisource.com
 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;
}

 
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Did you see this?

PLG_headerCode won't help you, btw.

bye, Dirk
 Quote

RickW

Anonymous
Quote by Dirk: Did you see this?

PLG_headerCode won't help you, btw.

bye, Dirk


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).
 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