How To: Merge Wordpress Themes with PHP Link Directory

Discussion in 'Directories' started by DotSauce, May 6, 2007.

  1. #1
    I recently fused a wordpress blog with PHP Link Directory. They now blend seamlessly with the same design. It is fairly simple to do with some modifications to the Default PHPLD template header and footer.

    Check out my new RSS directory for an example:
    www.RSSbuffet.com "Serving up fresh article and news feeds of all flavors."

    I am new here, so I can't link yet (Boggle). Feel free to copy and paste or someone link my example for me please.

    Using a Wordpress Theme with PHPLD
    We are basically taking the header and footer from the Wordpress theme and wrapping it around the PHPLD content.



    Basic Instructions
    ============
    Wordpress Themes vary greatly in arrangement and complexity, this tutorial has been tested on a two column layout with a normal header/footer and body content section. Complex themes may require additional tweaking and hacking.

    Step 1. View the source code of your desired Wordpress theme from a browser. (Generally does not work well if you take the code directly from the Wordpress template files because alot of items are dynamically generated.) In your browser select View -> Page Source.

    Step 2.
    Copy everything from the top of the page to just before the DIV where the main content begins (usually the first blog post).

    Step 3. Open up the header.tpl file for the Default PHPLD template. Replace everything with the wordpress header code. (Note: You may want to keep certain code from the original header such as meta tags, etc.)

    Step 4. Copy the code after the main content
    of your Wordpress theme all the way to the end of the source code. This will usually include the sidebar as well.

    Step 5. Open up the footer.tpl file of the Default PHPLD template. Replace everything with the Wordpress footer code. Be sure to include your link back to PHPLD if required.

    Step 6. Open your PHPLD CSS file and copy/paste important styling such as error text, etc. to your Wordpress CSS stylesheet.


    For the most part, if you follow these steps your link directory should now have the exact design as your Wordpress blog theme. You can now link back and forth between the blog and the directory with a seamless design. You will most likely have to tweak your CSS stylesheet to get fonts and forms looking perfect.

    The only downside to this is that when you want to edit the header/footer or sidebar you need to make the changes in both your PHPLD and Wordpress template files.

    I hope this helps! Please ask questions if you need assistance.
     
    DotSauce, May 6, 2007 IP
    dvduval and Glo-con like this.
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Looks interesting.
    Thanks for sharing it with us!

    Besides,is it easy to translate a phpld template into wordpress?
    Say I have the design on http://www.livelydirectory.com/ and I want to translate it into a wordpress theme.
     
    Richie_Ni, May 6, 2007 IP
  3. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #3
    Richie he mean converting a wordpress into phpld .. not vice versa;)
     
    MeetHere, May 7, 2007 IP
  4. jhnrang

    jhnrang Notable Member

    Messages:
    4,107
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    225
    #4
    Thanks for sharing us about this technique. Very interesting indeed. I might try to experiment :D
     
    jhnrang, May 7, 2007 IP
  5. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #5
    That's why I was asking.
     
    Richie_Ni, May 7, 2007 IP
  6. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #6
    Thanks for this. I looked at the site where you did this. It is an interesting combination of wordpress and phpLD. I think you are on to a very novel idea that is likely to be successful. Good luck with your project. :)
     
    dvduval, May 7, 2007 IP
  7. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #7
    You might try to experiment? Please let us know how that goes if you actually do end up trying (5% chance?...okay 1% chance then).

    The above post by jhnrang is an example of some of the posts I describe in the thread http://forums.digitalpoint.com/showthread.php?t=321546

    :)

    Most themes will vary in design by having different layouts, coding, and content. I think this tutorial will offer a general idea of the concept of doing so, but it's not an actual tutorial to accomplish a working example.


    Good write-up though. I hope it helps those who are actually going to try it out (unlike jhnrang over here).
     
    LeopardAt1, May 7, 2007 IP
  8. Glo-con

    Glo-con Peon

    Messages:
    1,428
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for sharing this. I added you rep :)
     
    Glo-con, May 7, 2007 IP
  9. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #9
    Has anyone tried to follow the instructions yet?
    (just curious)
    I'll give you some rep too. Good idea Glo-con.
     
    dvduval, May 7, 2007 IP
  10. coolsitez

    coolsitez Well-Known Member

    Messages:
    2,586
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    183
    #10
    sounds like an great idea. ;)
     
    coolsitez, May 7, 2007 IP
  11. muskur

    muskur Well-Known Member

    Messages:
    480
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    120
    #11
    I am interested in vice versa as well ,any idea?
     
    muskur, May 7, 2007 IP
    LeopardAt1 likes this.
  12. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #12
    LeopardAt1, May 8, 2007 IP
  13. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #13
    Richie_Ni, May 8, 2007 IP
  14. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #14
    LeopardAt1, May 8, 2007 IP
  15. vicky_877654

    vicky_877654 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    i am new to digital point here .i am interested to know about that what is php link directory.
     
    vicky_877654, May 8, 2007 IP
  16. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #16
    Welcome to DP vicky!
    http://www.phplinkdirectory.com/
     
    Richie_Ni, May 8, 2007 IP