Users Online for IPB 3.0.X
By: PaulAmy
|
|
||||||||||||||||||||||||||||||||||||||||
| March 1 2010, 03:29 PM | |
|---|---|
| by richrockstar |
it would be interesting to modify this so you can show recent topics in a PHP window, such as a wordpress widget....
|
| March 1 2010, 02:39 PM | |
| by richrockstar |
nevermind, i got it, thank you so much for this script. I wish I could find more IPBoard --> Wordpress integration
|
| March 1 2010, 02:10 PM | |
| by richrockstar |
I have not been able to get this to work, I REALLY want to tho, can you contact me privately at daniel@holtblog.com so I can supply my error code?
Thanks, Daniel |
| February 3 2010, 05:56 PM | |
| by RangerDart |
make sure you add your prefix (if you have one) to the 'members' table:
$getusers = mysql_query("SELECT * from (prefix)members where last_activity >= '$offline'"); |
| January 19 2010, 11:36 AM | |
| by PaulAmy |
NOTE: Do not add the PHP script inside another script. This Php Script is a seperate script which is used to display online members on your website side of your website. It is not meant to be used inside a PHP ready script such as Blogger or wordpress.
SIDE NOTE: Try adding the PHP script in a test.php page and upload it to your webserver AFTER adding your database connect details where required and see for yourself. It works because I have the script working on my website. Click here to see the working script! You will find the working script on the left navigation menu under "online" |
| January 18 2010, 06:13 PM | |
| by masoom |
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ..... on line 25
|
| January 16 2010, 07:05 PM | |
| by PaulAmy |
Look in the PHP code for this paragraph:
CODE //Database Connection Info $host = "localhost"; $dbname = "database"; $dbuser = "username"; $dbpass = "password"; And replace by editing the database connection info, example below: CODE //Database Connection Info $host = "localhost"; $dbname = "communityforums"; $dbuser = "exampledatabaseusername"; $dbpass = "password"; This scrip is scripted for invision powerboard 3.0.x. Where $dbname = is where you put the name of your database Where $dbuser = is where you put the database username Where $dbpass = is where your database password goes. I don't know if calling a function from a different database, in your case and the case for this script, your invision powerboard database for your invision powerboard forum which I assume is version 3.0.x will work from inside another database functioned webpage. All I have tested is it working on a basic Php Page which is the main part of the site, for example, the first page a visitor see's. This script is working because I have it running on my website. The above where's are not for your website part of the user accounts admin info. They are your database connection info. It's the best I can describe to you. I hope I have not confused you and hope it has helped. |
| January 16 2010, 03:53 PM | |
| by JIXcorp |
How does it work? I want to use this to show the users online in the sidebar of my WordPress blog. I guess that I need to add the database info from the IPB forum, right? When I do that and place the php in the sidebar I get this error:
QUOTE Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in xxx on line 40 Where xxx stands for the path of the sidebar.php wordpress theme file. Thank you. |