Simple PHPLB to make detail page more SEO friendly

Discussion in 'Directories' started by aaron_nimocks, Jun 26, 2007.

  1. #1
    Tikime helped me with a simple mod for the title tags on the detail page and Im going to share with you all if you havent seen it.

    Basically all it does is replaces the URL in the title tag with the anchor text of the link. This is much better in my opinion for the search engines.

    Find in index.php (around line 119)

    $cfg->setVar('page_title', $cfg->getVar('site_name') . ' - ' . $rs->fields['link_url']);
    PHP:
    replace with

    $cfg->setVar('page_title', $rs->fields['link_title']);
    PHP:
    to show just the link title

    or you can leave sitename in there if you want by replacing with

    $cfg->setVar('page_title', $cfg->getVar('site_name') . ' - ' . $rs->fields['link_title']);
    PHP:
    I would recommend doing this because its better for the search engines and it just looks better. :)

    Ive done it to my bidding directory if you want to see how it looks.
     
    aaron_nimocks, Jun 26, 2007 IP
    centime and britishguy like this.
  2. britishguy

    britishguy Prominent Member

    Messages:
    7,949
    Likes Received:
    892
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Seems like a good move
    Thanks :)
     
    britishguy, Jun 26, 2007 IP
  3. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #3
    cheers buddy. I'm gonna have some mods installed on zorg links soon, so i'll share them around.

    rep added :)
     
    mikey1090, Jun 26, 2007 IP
  4. coolsitez

    coolsitez Well-Known Member

    Messages:
    2,586
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    183
    #4
    I have also modified the detail page where the URL is the link, rather than anchor text. My bidding directory lets you place 3 anchor texts in the detail pages. See here.

    This is very good for SEO purpose, related to the thread subject.

    Also, those who haven't done removing nofollow in detail pages, they should fix that too.
     
    coolsitez, Jun 26, 2007 IP
  5. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #5
    vic_msn, Jun 26, 2007 IP
  6. centime

    centime Peon

    Messages:
    847
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You're a champ, thanks for that
     
    centime, Jun 27, 2007 IP
  7. smub

    smub Notable Member

    Messages:
    3,443
    Likes Received:
    375
    Best Answers:
    0
    Trophy Points:
    230
    #7
    for some reason ur site looks misaligned in IE 6.0

    might want to check
     
    smub, Jun 27, 2007 IP
  8. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #8
    It is. Looks fine in IE 7.0 and Firefox. Havent been able to figure out IE 6.0 issue yet. Its driving me crazy.
     
    aaron_nimocks, Jun 27, 2007 IP
  9. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #9
    yeah i noticed that yesterday. dam IE :evil-microsoft
     
    mikey1090, Jun 27, 2007 IP
  10. coolsitez

    coolsitez Well-Known Member

    Messages:
    2,586
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    183
    #10
    Sorry to be offtopic, but how do you fix a problem something like that?

    I have experienced similar things so many times. I managed to fix those though by messing with css files mostly. Or resize the table width, I think.

    I hate IE :D But close to 90% of visitors use IE, so I just can't ignore the issue.
     
    coolsitez, Jun 27, 2007 IP
  11. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #11
    according to awstats, 57% of my visitors use firefox. but thats because they are webmasters and have sense. on my forum, it much less, as dumass IE users visit:D

    as for aarons IE problem, it will be IE stupid ways in which it "presumes" how wide you want things to be. whereas firefox does as its told, it never trys to guess.
     
    mikey1090, Jun 27, 2007 IP
  12. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #12
    I dont know because I havent fixed it yet. But normally you can find CSS hacks for it.

    Like my site shows fine in IE7 but not IE6. Just need to research why and find something to fix it.
     
    aaron_nimocks, Jun 27, 2007 IP