Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16

GARS TOC page titles

This is a discussion on GARS TOC page titles within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi vb seo team..first question i am using GARS and gars's T.O.C (table of contents) extension for some categories at ...

  1. #1
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times

    GARS TOC page titles

    Hi vb seo team..first question

    i am using GARS and gars's T.O.C (table of contents) extension for some categories at my site..

    But there's a duplicate page title's problem when i use it...

    For example ;

    The main thread URL is :

    Rusya ile Gürcistan Aras?nda Sava? Ç?kt? ! - BG Portal | Bilgi-E?lence

    And there is GARS TOC page's URL's :

    Rusya ile Gürcistan Aras?nda Sava? Ç?kt? ! - BG Portal | Bilgi-E?lence

    Rusya ile Gürcistan Aras?nda Sava? Ç?kt? ! - BG Portal | Bilgi-E?lence

    this all the url's pointing the same thread title...

    So ..at google webmaster tools , it causes duplicate title problem...

    Question ;

    is it possible to rewrite this "gars2.html" "gars3.html" urls, which page titles and meta descripton , not the same original thread..Just the named as you see,as i defined ?

    thanks..

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    i would change 2 things.

    First,
    convert

    to



    This keeps your hierarchy correct with the root article acting as "index.html" (but, not displaying at the end).
    Then, the pages after it are 2.html and 3.html instead of un-nesting from the heirarchy.


    Finally, I would add the page into the Title itself via a template edit and remove the board name/description.


    <title> Rusya ile Gürcistan Arasında Savaş Çıktı ! - BG Portal | Bilgi-Eğlence</title>

    becomes

    <title> Rusya ile Gürcistan Arasında Savaş Çıktı</title>

    and your pages become

    <title> Rusya ile Gürcistan Arasında Savaş Çıktı - Page X</title>

  3. #3
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    Thanks briansol...if i wrong,correct me please...

    First ;

    i am using auto VBSEO settings for my multipaged GARS articles...At vbseo panel this value defined as ;

    [forum_title]/[thread_id]-[thread_title]-gars[thread_page].html
    Now , you recommended that it's better a custom value for this as ;

    [forum_title]/[thread_id]-[thread_title]-page[thread_page].html
    or

    [forum_title]/[thread_id]-[thread_title]-[thread_page].html
    in your opinion is it more effective ? or i get it wrong..

    And second (the main problem )

    Finally, I would add the page into the Title itself via a template edit and remove the board name/description


    Unfortunately, i have no chance to edited this via templates...There is only toc.php file ...
    and my php knowledge not very well...

    Here's that php file ...i think the solition in this file but i can't do..

    PHP Code:
    if (!defined('VB_AREA') || !defined('DIR'))
    {
     exit();
    }
            global 
    $threadinfo$post$thread$vbphrase;
            if (
    $this->navigation)
            {
             if (
    $this->navigation['pagecount'] > 1)
             {
                 if (
    $settings['allow_title'] && $this->data['custom1']['toc_title'])
                 {
                  
    $fptitle htmlspecialchars_uni($this->data['custom1']['toc_title']);
                 }
                 else if (
    $settings['name'])
                 {
                  
    $fptitle $settings['name'];
                 }
                 else if (
    $thread['title'])
                 {
                  
    $fptitle $thread['title'];
                 }
                 else
                 {
                  
    $fptitle $vbphrase['GARS_page1'];
                 }
              
    $threadinfo['threadid'] = intval($threadinfo['threadid']);
              
    $this->navigation['pagecount'] = intval($this->navigation['pagecount']);
                 
    $this->navigation['pages'][0]['text'] = $fptitle;
              
    $bits "<tr><td><ul>";
                 
    $bits.= "<li><div class=\"smallfont\"><a href=\"showthread.php?t=$threadinfo[threadid]#content_start\">";
                 
    $bits.= $fptitle;
                 
    $bits.="</a></div></li>";
                 for(
    $toc_x 1$toc_x $this->navigation['pagecount']; $toc_x++)
                 {
                          
    $this->navigation['pages'][$toc_x]['text'] = htmlspecialchars_uni(unhtmlspecialchars($this->navigation['pages'][$toc_x]['text']));
                     
    $bits .= "<li><div class=\"smallfont\"><a href=\"showthread.php?t=$threadinfo[threadid]&amp;garpg=" . ($toc_x 1). "#content_start\">";
                     
    $bits .= $this->navigation['pages'][$toc_x]['text'] ? $this->navigation['pages'][$toc_x]['text'] : construct_phrase($vbphrase['GARS_pagex'],($toc_x 1));
                     
    $bits .= "</a></div></li>";
                 }
                 
    $bits .= "</ul></td></tr>";
                 
    $title $vbphrase['GARS_contents'];
                 eval(
    '$output.="' fetch_template('GARS_mod_container') . '";');
             }
         }
    ?> 
    i hope , i can tell the problem correctly..my english's not well..Sorry.

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    I would use this style:

    Code:
    [forum_title]/[thread_id]-[thread_title]/page[thread_page].html
    or

    Code:
    [forum_title]/[thread_id]-[thread_title]/[thread_page].html
    depending on if you want the word "page" in there or not.

    Now, to be noted, is that this may conflict with your normal pagination or threads, so you very well may be REQUIRED to use a unique term (such as 'gars') in the rewrite.

    so,


    Code:
     [forum_title]/[thread_id]-[thread_title]/gars[thread_page].html
    or another unique keyword instead of gars. (perhaps 'toc' or 'gpg')


    For the titles:

    I'm not too familiar with Gars, But, i think if you tack on the page if pagecount > 1 to the variable it should work.

    find from the above block:
    Code:
    else
                 {
                  $fptitle = $vbphrase['GARS_page1'];
                 }


    add directly after:

    Code:
    if ($this->navigation['pagecount'] > 1)
    {
    $fptitle .= " - Page ". $this->navigation['pagecount'];
    }


  5. #5
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    PHP Code:
    if ($this->navigation['pagecount'] > 1)
    {
    $fptitle .= " - Page "$this->navigation['pagecount'];

    it doesnt work..

    Also yes , as you say, it may create some normal pagination errors for my threads.. i'll look up my vbseo url settings and discover is this causes any problem or not..

    exactly i think there is no important difference using it with unique parameter (gars/gpg etc..) or wihtout..

    Thanks for all your helps,and suggestions briansol

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    try just this block without the If condition:

    Code:
    $fptitle .= " - Page ". $this->navigation['pagecount'];
    so you end up with

    Code:
    else
                 {
                  $fptitle = $vbphrase['GARS_page1'];
                 }
              $fptitle .= " - Page ". $this->navigation['pagecount'];
    
              $threadinfo['threadid'] = intval($threadinfo['threadid']);

  7. #7
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    ok.. Here's a example too ..

    [Haber] Hüseyin Üzmez tahliye oldu - BG Portal | Bilgi-E?lence

    This is the main URL.




    as you see, the main URL title and gars2.html title is different in TOC coloumn...

    when i clicked gars2.html ;





    i just want,the second title on the T.O.C coloumn be the title when clicked..

    after i edited the code which you write, the only change is in T.O.C coloumn...it add's "Page 2" at main title as you see in first picture...There's no any effects on titles or etc..

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    hrm, you may have to go over to the GARs forum for help on this one. I don't know enough about it (as i personally don't use it).

    I do notice that your URL's are still the old way though. Did you try changing them yet?

  9. #9
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    what kind of change , sorry dont understand ?
    i leave settings unchanged.

  10. #10
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    ok i found a strange solution for this,when trying..for googlers i share it ;

    at the top of SHOWTHREAD template find ;

    Code:
    <title>$thread[prefix_plain_html] $thread[title]
    after,add ;

    Code:
    <if condition="$_REQUEST[garpg]>1"> $_REQUEST[garpg]</if>
    it works for me..it adds an unique number (gars's multiply page's numbers), for all sections of main article to the page title.

  11. #11
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    PHP Code:
    <if condition="$_REQUEST[garpg]>1"$_REQUEST[garpg]</if> 
    Is it safe to use GPC variables directly in your vBulletin templates ?

  12. #12
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    i dont know anything about this,exactly..
    i know that vbulletin do not advice this as you say but unfortunately it's an obligation for me now...

    ps: i also use similar code which is oleg advice for TAG pages.. ($_REQUEST[tag]) search for this at vbseo.com,you will see it.

  13. #13
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    Actually you are worrying too much. Duplicate meta tags or duplicate title tags is just a warning and it will not effect your site rankings at all.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  14. #14
    Member
    Real Name
    tymsh
    Join Date
    Sep 2007
    Posts
    33
    Liked
    0 times
    mert, i dont want to see lots of,thousands of errors at my google webmaster account..actulaly i dont understand vbulletin's strategy for this discussion...yes, i know too it's not so many effective for google search results or seo rankings..There are so so so much criteria to specify a web page's google rank...but we must to accept that, title and description restoration is one of this criterias

    i wonder is it so difficult to PUT some unique (or dynamic) words for titles or descriptions ? look at that :

    *poll results pages
    *social group pages
    *album pages
    *calendar pages
    *thread tag pages

    nobody can not say to me that pages are not important...as we all know, these parts of vbulletin is also helpful (important) to create,to desing new VB-based projcts.and as a vb customer i want to rewrited these all pages...it'a so normal situation.

    in all pages i wrote above, meta description and keyword sections are SAME..(which we defined via admincp>vboptions ) it's strange for me..i cant understand why is this so :/

    you know, in our country (Türkiye), people usually do not use calendar pages or social groups pages rather frequently...briefly, people use vbulletin systems as just "forum" ...

    in my opinion VB is not just a forum site.must not just act as a forum..VB is very very improvable and good script..but when we use it fully performaced, we meet lots of SEO problems as title,description...or anything else.

    i also use joomla one of my websites,and as somebody know we can define custom META's default EVEN an open source script.

    also... time flows,google changing..

    my personal thinking is, this year, google more importance valid XHTML and titles relevancy in comparison with old years.

    so, certainly the most important thing is quailty for a web site...and sometimes, small things may create the difference i think

    maybe you and VBSEO team add some additional features to vbseo plugin for next years about meta's and keywords.

    regards.

  15. #15
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    They aren't errors, but rather 'warnings' to let you know it exists. There is no negative effect of it.

    That said, I would not use a straight request var like that.
    That's a huge cross-site scripting whole you just introduced.

    ie, go to yoursite.com/garsforum/garsthread/?garpg=<script>alert("xss!");</script>

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Rewrite for GARS multiple page ReviewsHi
    By Hemanth in forum URL Rewrite Settings
    Replies: 13
    Last Post: 11-23-2008, 08:45 PM
  2. Page Titles
    By phpbug in forum URL Rewrite Settings
    Replies: 1
    Last Post: 02-21-2008, 11:33 PM
  3. Unique Page Titles on Multiple Page Threads
    By rmjvol in forum vBSEO Features Archive
    Replies: 1
    Last Post: 07-05-2006, 10:37 PM
  4. Google Page Titles
    By Cky47 in forum General Discussion
    Replies: 7
    Last Post: 04-26-2006, 04:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •