UploadScript

Check out the FREE chatroom mod for IPB 3.x

>  Users Online for IPB 3.0.X
Short Description
This is my very first PHP code that integrates with Invision Powerboard 3.0.X.

Detailed Description


To be honest it is my very first PHP code. It has been tested and is working. I hope you like it. Feel free to mod it in any way you please.
Download

>  Users Online for IPB 3.0.X, User Contributed Files
File Information
Date Submitted: December 14, 2009
Downloads: 180
Downloads Per Day: 1.9140
Views: 1,840
Compatibility: Invision Power Board v3.0
File Version: v1.0.0
File Size: 794 Bytes
Last Updated: January 6 2010, 02:11 PM
Demo Link: Click Here.
Allow Upgrades w/o Your Permission?: No
Upgrade Terms for this Submission: None
Support Topic: Click Here
Report File: Report Broken Mod
File Rating
BadOkGoodGreatExcellent(2.5/5 (2 votes)
Please login to vote.
(you must login to be able to cast your vote)

User Comments (View Topic)
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.


Invision Skins · IPB Skins