SSI.php doesnt work with wordpress?

Started by im1, June 09, 2008, 05:01:28 PM

Previous topic - Next topic

im1

I put the php require into my header.php in my wordpress template but this is the error I get when trying to load the site..
Quote
Fatal error: Cannot redeclare is_admin() (previously declared in /home2/myusername/public_html/musicblog/wp-includes/query.php:40) in /home2/myusername/public_html/musicblog/forum/Sources/Security.php on line 824

I think its conflicting with the wordpress php or something, can anyone help me solve this?

vbgamer45

I would try include main SSI.php in the main index.php file of wordpress and see if that helps.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Oldiesmann

The is_admin() function in SMF was included for compatibility reasons and has been completely removed in 2.0, so you can safely remove it from Security.php as well.
Michael Eshom
Christian Metal Fans

im1

Quote from: Oldiesmann on June 10, 2008, 12:07:23 AM
The is_admin() function in SMF was included for compatibility reasons and has been completely removed in 2.0, so you can safely remove it from Security.php as well.
Could you tell me exactly what to remove? I dont want to f*ck anything up

[SiNaN]

../Sources/Security.php

Find and Delete:

// Grudge chickens out and puts this in for combatibility. This will be ripped out on day one for SMF 1.2 though ;)
function is_admin()
{
isAllowedTo('admin_forum');
}
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: