Integrating Wordpress to Your Directory
|
||||||||
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 ?
- Easy admin interface to create articles.
- It support search engine friendly URL.
- Allow user to comment your articles.
- There is rss feed feature.
- And the most important factor : they have a lot number of plugins
Here is our integration goal :
- We want indexu and wordpress to use the exact same layout, so user will not notice the different when browsing the directory or blog.
- We want wordpress component like : Blog Search, Blog Recent Post, Blog Categories, Blog Archives, etc can be shown in IndexU panel.
- 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.
- We want it to be dynamic. So if we add or remove blocks in indexu it should affect wordpress too.
Here is the step :
- Install wordpress to your server, example : we installed it under /blog folder in our directory.
- 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 :
This file should be saved in your wordpress folder.
Here is the block.wordpress_panel.php content (the script) :
This file should be saved in your blocks folder in your indexu.
And here is the block.wordpress_panel.html content (the template) :
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 :
Ok, the indexu integration part is done. You should able to see wordpress component within your indexu page now.
- 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 :
Here is the footer.php content :
Here is the comments.php changes (just minor change) :
Change :To :
Here is the single.php changes (just minor change) :
Change :To :
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 |










August 17th, 2007 at 10:33 am
cool tutorial..thanx for the help given :)
August 17th, 2007 at 11:10 pm
No problem, I'm glad the article helps.
October 20th, 2007 at 5:56 pm
Very neat. Just some CSS tidying up to do and voila!!
January 18th, 2008 at 10:25 pm
Thanks for this ..just added it today!
February 24th, 2008 at 12:28 am
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/
February 25th, 2008 at 8:33 am
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.
February 26th, 2008 at 7:42 am
@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.
September 25th, 2008 at 12:51 am
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
September 30th, 2008 at 7:12 am
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.