$7 Question- Central Linking file

Discussion in 'HTML & Website Design' started by freerblog, May 1, 2008.

  1. #1
    $7 to the answer which I end up using...

    What I am trying to do is have a central links .txt file which I can put links to my various sites and then insert a little snippet of code on each site to show the links. This way I only have to edit on file instead of manually editing the links on each site.

    The sites are using wordpress.

    So, what is the easiest way to do this?

    Thanks
     
    freerblog, May 1, 2008 IP
    twistedspikes likes this.
  2. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #2
    You can use a php include to do this.

    So having the links in a file called "links.php" or something like that, looking something like so inside:
    Then having a php include (inside a php file, WP uses PHP) where you want the links to appear. So to include "links.php" you would put this:
     
    twistedspikes, May 1, 2008 IP
  3. freerblog

    freerblog Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #3
    ok, I'll try and let you know...
     
    freerblog, May 1, 2008 IP
  4. freerblog

    freerblog Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #4
    Bingo, worked like a charm, please PM me your paypal id.
     
    freerblog, May 1, 2008 IP
  5. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Wow, that was easy. Congrats TS! :D Shit, I arrived late :D
     
    Dondon2d, May 1, 2008 IP
    twistedspikes likes this.
  6. freerblog

    freerblog Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #6
    Would this have any impact on the SEO impact of the links?
     
    freerblog, May 1, 2008 IP
  7. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nope, all the codes that you put on the links.php file will be the one displayed in the main page where the links would show as HTML. So, what you have placed in the links file stays as is, if it's SE optimized, then it's SE Optimized.
     
    Dondon2d, May 1, 2008 IP
  8. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #8
    lol it was nothing really...i'm used to getting questions like this :D

    Thanks Freerblog :)

    As DD said, it won't have any impact on SEO, the links will be seen just as if you put them in using static HTML.
     
    twistedspikes, May 1, 2008 IP
  9. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah that's why I said that was an easy one. Easy 7$, god treat me lunch.
     
    Dondon2d, May 1, 2008 IP