Page 1 of 1

New forum.

PostPosted: Thu Apr 17, 2008 9:15 am
Author: chopper
I've tweaked the code a bit on this site so that the main categories titles display at the top instead of Homestead Country Forum Index. Click on one of the categories to view the sub-forums and it displays the forum title.
I thought that might be a little better for SEO.
I also changed the Title of the links to things like Knowledge base etc..
Let me know what you think.

[url=http]Homestead Country[/url]

Re: New forum.

PostPosted: Thu Apr 17, 2008 11:04 am
Author: Helter
that is a great idea. Looks good

PostPosted: Fri Apr 18, 2008 4:33 am
Author: sanji
It is effective, I did the same long time ago, too.

sanji

PostPosted: Sat Apr 26, 2008 2:54 pm
Author: richiebgood
what code did you edit to make such changes?

Re: New forum.

PostPosted: Wed Apr 30, 2008 10:40 pm
Author: XHIBIT
Yeah bro thats tight, hook us up with the code for that

Re: New forum.

PostPosted: Mon May 05, 2008 10:21 am
Author: chopper
For the category names here is the code edits:

open includes/functions_categories_hierarchy
find this code
Code: Select all
        // constants     $template->assign_vars(array(         'L_FORUM' => $lang['Forum'],         'L_TOPICS' => $lang['Topics'],         'L_POSTS' => $lang['Posts'],         'L_LASTPOST' => $lang['Last_Post'],         )     );     $template->assign_vars(array(         'SPACER'         => $images['spacer'],         'NAV_SEPARATOR' => $nav_separator,         'NAV_CAT_DESC'   => $nav_cat_desc,         'NAV_CURRENT'   => get_object_lang($cur, 'name'), // Correct Titles ]

and replace with this code

[code]       // constants     $template->assign_vars(array(         'L_FORUM' => $lang['Forum'],         'L_TOPICS' => $lang['Topics'],         'L_POSTS' => $lang['Posts'],         'L_LASTPOST' => $lang['Last_Post'],         'L_CAT' => get_object_lang($cur, 'name'),         )     );     $template->assign_vars(array(         'SPACER'         => $images['spacer'],         'NAV_SEPARATOR' => $nav_separator,         'NAV_CAT_DESC'   => $nav_cat_desc,         'NAV_CURRENT'   => get_object_lang($cur, 'name'), // Correct Titles ]

in your templates folders find the file index_body.tpl

Find this code
[code]  class="maintitle">{L_INDEX}</td>  [/code]

and change to this

[code]  class="maintitle">{L_CAT}</td>  


That's it.

Edited on 5/06/08 to include additional file edit