Directory Statistics
Active Directories:
Pending Directories:
Rejected Directories:

Categories:
Unique Outgoing Hits:
539
38
606

75
24193

Pagerank Statistics
PR 7
   
1 site(s)
PR 6
   
4 site(s)
PR 5
   
7 site(s)
PR 4
   
32 site(s)
PR 3
   
55 site(s)
PR 2
   
47 site(s)
PR 1
   
26 site(s)
PR 0
   
367 site(s)

Regional Directories

Niche Directories

Integrating Wordpress to Your Directory

 Tuesday, July 24th, 2007
Mods Compatibility
IndexU 5.4.X
IndexU Deluxe

Adding unique content to your directory probably one of the best way to make your directory more valuables. It is good for your users (especially when you're running niche directory) and so does search engine. Here we're using wordpress to create the news section (what's up) and the article section (IndexU Tips & MODs).

Why wordpress ?

  1. Easy admin interface to create articles.
  2. It support search engine friendly URL.
  3. Allow user to comment your articles.
  4. There is rss feed feature.
  5. And the most important factor : they have a lot number of plugins

Here is our integration goal :

  1. We want indexu and wordpress to use the exact same layout, so user will not notice the different when browsing the directory or blog.
  2. We want wordpress component like : Blog Search, Blog Recent Post, Blog Categories, Blog Archives, etc can be shown in IndexU panel.
  3. And we want indexu blocks like : Category List, Who's Online, Directory Stats, Pagerank Stats, Site of The Day, etc can be shown in wordpress panel too.
  4. We want it to be dynamic. So if we add or remove blocks in indexu it should affect wordpress too.

Here is the step :

  1. Install wordpress to your server, example : we installed it under /blog folder in our directory.
  2. Next, we need to show wordpress component in indexu. We do this by creating custom script in wordpress (indexu-blocks.php) that will act as component provider, then create custom block in IndexU (block.wordpress_panel.php) to call this component.

    Here is the indexu-blocks.php content :

    Content visible to member only. Please register or login first.

    This file should be saved in your wordpress folder.

    Here is the block.wordpress_panel.php content (the script) :

    Content visible to member only. Please register or login first.

    This file should be saved in your blocks folder in your indexu.

    And here is the block.wordpress_panel.html content (the template) :

    Content visible to member only. Please register or login first.

    This file should be saved in your themes/active_theme/blocks folder in your indexu. You might need to adjust the template based on your own theme in this regards.

    After everything is set, now modify the header.html/footer.html/index.html (depend on your theme) to call this new blocks. Here is the block call :

    Content visible to member only. Please register or login first.

    Ok, the indexu integration part is done. You should able to see wordpress component within your indexu page now.

  3. Next, we'll need to make wordpress use the same layout as indexu and also showing indexu blocks. Here we're using the default wordpress theme, but we have to modify some files : sidebar.php, header.php, footer.php, comments.php and single.php templates.

    Here is the sidebar.php content :

    Yup, no code there. Just emptied the file :)
    We'll going to use indexu panel to replace it.

    Here is the header.php content :

    Content visible to member only. Please register or login first.

    Here is the footer.php content :

    Content visible to member only. Please register or login first.

    Here is the comments.php changes (just minor change) :
    Change :

    Content visible to member only. Please register or login first.

    To :

    Content visible to member only. Please register or login first.

    Here is the single.php changes (just minor change) :
    Change :

    Content visible to member only. Please register or login first.

    To :

    Content visible to member only. Please register or login first.

Ok, done.
For more better result, you might also want to modify your indexu css file to accommodate some of wordpress specific style.

That's all.
We hope this tips will be useful for you.

Related Mods
- WP Calendar in IndexU
- WP Search Result in IndexU
- WP Recent Post By Category in IndexU
- WP Meta Keywords and Description in IndexU

9 Responses to “Integrating Wordpress to Your Directory”



  1. Bruce Valentine Says:

    cool tutorial..thanx for the help given :)

  2. admin Says:

    No problem, I'm glad the article helps.

  3. David Says:

    Very neat. Just some CSS tidying up to do and voila!!

  4. Nassau County Business Directory Says:

    Thanks for this ..just added it today!

  5. Chad Says:

    Hi - I can't get the items to appear in my header (right side). I followed everything above and I even added in the styles in my CSS as I didn't have the ones above mentioned in the panel file. Any suggestions why nothing is appearing? Here is my site: http://marketingconnextions.com/blog/

  6. admin Says:

    Your problem is quite strange.
    Since there was no issue from other members that using this mods.
    Please contact us at http://www.indexudirectory.com/contact.php and provide the FTP info so we can check it out.

  7. admin Says:

    @Chad

    Seems you missed the 2nd step, creating wordpress panel blocks in IndexU (the script).
    We have fixed your problem, it should be working fine now.

  8. Hani Says:

    Hi
    I want to try it, but before I scerew things up, I have wordpress in root, and indexu in /Directory, I also have vbuletin in /vb

    I am thinking of having Making WP as the portal, but I think here Indexu is the portal, so should I change my folders, or do I have a chance to do it?

    regards

  9. admin Says:

    You should use IndexU as main portal, and your wordpress as subdirectory, it is easier this way.
    Using WP as main portal will require more works in the integration part.

Leave a Reply