Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Integrating Wordpress and SMF together

Aloittaja nameless, huhtikuu 19, 2005, 07:49:27 IP

« edellinen - seuraava »

nameless

I have searched through the forum and have found some successful intergrations between WP and SMF. What I am trying to do is add the new topics at the bottom of my homepage which is Wordpress. I have made a test file and have successfully gotten to work from the help of this and this post. So it seems pretty simple to me.

Now this is my directory structure below:

home/sfboarders/public_html/nameless - subdomain of nameless.domain.com (Wordpress)

home/sfboarders/public_html/nameless/board/ subdomain of nameless.domain.com/board (this is where SMF is)

I went into Wordpress to add the following entry below to my header template at the top of the page.


<?php require("/home/sfboarders/public_html/nameless/board/SSI.php"); 
?>

<?vote_poll(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />


I just wanted to see what would happen before I entered ssi_recentTopics(); somewhere on my site and I got a mess of errors on the home page. Can someone point me in the right direction?

LainaaWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sfboarders/public_html/nameless/board/Sources/Subs.php on line 232

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 40

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 42

Notice: Undefined index: time_format in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 176

Notice: Undefined index: theme_guests in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 657

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sfboarders/public_html/nameless/board/Sources/Subs.php on line 232

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 683

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 693

Notice: Undefined index: theme_url in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 700

Notice: Undefined index: images_url in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 701

Notice: Undefined index: theme_dir in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 702

Notice: Undefined index: smiley_sets_known in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 721

Notice: Undefined index: smiley_sets_default in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 721

Warning: array_unshift(): The first argument should be an array in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 762

Notice: Undefined index: theme_dir in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 822

Notice: Undefined index: default_theme_dir in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 824

Notice: Undefined index: default_theme_dir in /home/sfboarders/public_html/nameless/board/Sources/Load.php on line 831
index

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

[Unknown]

Are you using the same, or separate databases?

-[Unknown]

nameless

#2
Lainaus käyttäjältä: [Unknown] - huhtikuu 19, 2005, 07:52:12 IP
Are you using the same, or separate databases?

-[Unknown]

Databases are separate.

SMF is _yabbse (upgraded from Enigma Portal)
WP is _wp

[Unknown] if I make a new db username would this resolve this issue? I found this not sure if I have to do that.

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

nameless

Ok I figured out how to get it to work thanks to Diplomat's recent post here. :)

Except I can't get ssi_recentPoll to show up. I'd like to get the options and the submit button to show. Can someone help me out with this? I tried it on a test page but same results. TIA. :)

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

[Unknown]

It will only show polls you've not voted in; are you sure it's not working?

-[Unknown]

nameless

Lainaus käyttäjältä: [Unknown] - huhtikuu 23, 2005, 01:42:59 AP
It will only show polls you've not voted in; are you sure it's not working?

-[Unknown]

I tested by making some brand new polls and I did not vote and I still can't get it to show. :-[

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

Advertisement: