vBulletin Search Engine Optimization
This is a discussion on WordPress and global.php within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Anyone have any experience with WordPress plugins? I'm trying like crazy to include the global.php file from vB into a ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| ||||
| ||||
| WordPress and global.php
Anyone have any experience with WordPress plugins? I'm trying like crazy to include the global.php file from vB into a plugin so I can do some conditional stuff within my posts but I always tend to get a fatal error any time i use require() or require_once() I was hoping it would be as ease as: PHP Code: |
|
#2
| ||||
| ||||
|
conditionals, like template conditionals? including global.php into wordpress won't help you there. wordpress has it's own template engine. that said, are you sure you're in the right spot? try require_once('/public/forums/global.php'); with whatever your home directory path is |
|
#4
| ||||
| ||||
|
I'm trying to consolidate everything into one plugin. If I include global.php into the wordpress config.php file, this plugin (well the bottom half atleast They got the global.php file to load in another plugin over at Complete Wordpress/Vbulletin Bridge - Share Users And Postings - vBulletin.org Forum but it is bugged out pretty hard at the moment (due to WordPress updating to 2.6) and is why I wanted to just move the include code over. Otherwise I would just keep using their script with my stuff just appended to the end I tried PHP Code: and PHP Code: but both fail out when run as a wordpress plugin. When run as a standalone php file though they both work fine. I'm sure the path is correct now at least Here's my problem code, followed by the full plugin. I really appreciate you guys lookin at this. Now back to crawling the WP docs. PHP Code: PHP Code: |
|
#5
| ||||
| ||||
|
I gave up on the plugin and just added the require() code to wp-config. lol, ill revisit it another day. I did want to get your guys feedback though 3. Creating Your First Blog | Blogger Video Training contains my "members only" message. I can't wait to see what this does for my registrations! |
|
#6
| |||
| |||
|
Thanks for suggesting This plugin.
Last edited by Oleg Ignatiuk; 11-01-2008 at 09:42 AM. Reason: sig removed |
| Tags |
| global.php, wordpress |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vb + vbSEo + Wordpress | Ky! | Deutsch | 10 | 07-04-2008 10:56 AM |
| htaccess for vb and wordpress | gdubs12345 | URL Rewrite Settings | 3 | 08-21-2007 07:55 PM |
| SEO Advice - Wordpress | vol_freak | General Discussion | 1 | 05-04-2007 02:38 PM |
| Wordpress 301 Redirect Help Please | BamaStangGuy | General Discussion | 7 | 12-13-2006 07:00 AM |
| Wordpress installed | datarecall | Troubleshooting | 1 | 09-26-2006 07:46 PM |