BabbleBoard Support Forums
What Are YOU Babbling About?
Hello Guest!  |  Home  |  Search  |  Login  |  Register
Home | Mods Development | Forums -> Site Integration Development
Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Oct 17, 2007 18:29  Trackback URL

Download the latest version: here

So it's been a while since my last modification for BabbleBoard, mainly because I got bored of writing the same code over and over. However developing this mod is something new and interesting because its programmed in OOP (most won't know what that is).

So what does it do I hear you say? Its hard to explain because its not finished yet, and I want to keep as much as possible secret, but a good example is IPBSDK. Have a look at some of the functions on the left, especially the member functions, this exactly what this mod will do.

To use it'll be as simple as uploading two files to your forums and including it in your sites index.php page.
It can then be used to create member only pages, admin only pages, showing latest posts & topics, etc on your site.
Heres an example to check if a user is online:
RAW CODE
if ($bbsdk->user_is_loggedin()){
echo "i am logged in :)";
}
else {
echo 'Im not logged in :(';
}

Another example, this time check if the forums are offline:
RAW CODE
if ($bbsdk->board_offline()){
echo "board is offline...";
}
else {
echo "board is online...";
}


In the first release there'll only be the most important functions probably, but as it grows so will the feature list.
So far there features ive thought of are:
RAW CODE
logged in, online, get posts, get topics, board offline, group info, is admin, is mod

If anyone thinks of any good features to be included then post them here.

Also ideas, opinions and comments would be welcome as always.

I'll look to keep you all informed over the next few days



Last edited by: Jonny - Thursday, Oct 25, 2007 17:08.
Reason: Added link to download..
Go To Top
PutzMan123



Role

Posts: 396
Joined: 22 June 2007
Location: London, England
BabbleBoard Version: v1.1.5

Wednesday, Oct 17, 2007 19:00  Trackback URL

Me and Slashman X were working on this :P Dev Just stopped as I had other stuff

Go To Top
Rob



Role

Posts: 167
Joined: 22 June 2007
Location: Potters Bar
Wednesday, Oct 17, 2007 22:51  Trackback URL

Looks quite a good idea, it'll be interesting to see how it's implemented

you got a timeline for this?

Go To Top
Caleyjag



Role

Posts: 868
Joined: 22 June 2007
Location: Inverness, Scotland
Wednesday, Oct 17, 2007 22:55  Trackback URL

Yeah, I'll be watching this, could be very helpful in creating a kind of portal page for BB

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Oct 17, 2007 22:59  Trackback URL

Rob Trackback URL

Looks quite a good idea, it'll be interesting to see how it's implemented

you got a timeline for this?
Errm, I'm hoping to have the first version released either tomorrow or Friday. It won't have too many features but it'll allow me to get feedback etc.

Caleyjag Trackback URL

Yeah, I'll be watching this, could be very helpful in creating a kind of portal page for BB
Yep, it should come with some nifty functions that make creating a portal page easy peasy.

Go To Top
Rob



Role

Posts: 167
Joined: 22 June 2007
Location: Potters Bar
Wednesday, Oct 17, 2007 23:02  Trackback URL

Does this include something simple such as putting the little nav bar (logged in, yes, no, my controls, new messages etc) on a mainsite rather than just on the forums?

It was something that I was going to look at tomorrow for my own use, but if it's something which your thing will deal with, i'll leave it and wait to see what you've come up with.

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Oct 17, 2007 23:17  Trackback URL

Rob Trackback URL

Does this include something simple such as putting the little nav bar (logged in, yes, no, my controls, new messages etc) on a mainsite rather than just on the forums?

It was something that I was going to look at tomorrow for my own use, but if it's something which your thing will deal with, i'll leave it and wait to see what you've come up with.
If you want you can easily recreate the nav bar by using the functions username, logged_in, new_pms, etc.

So a simple nav bar could be:
RAW CODE
require_once ('../bbsdk_class.php');
$bbsdk = new bbSDK();

echo '<div class="nav-bar">';

if ($bbsdk->user_is_loggedin())
{
echo 'Logged in as: .'$bbsdk->username();
echo ' | <a href="....?page=mycontrols">My Controls</a>';
if ($bbsdk->get_new_pms()!='0')
{
echo ' | '.$bbsdk->get_new_pms().' New Messages';
}
}
else
{
echo 'Welcome <i>Guest</li> | <a href="...?page=login">Login</a> | <a href="...?page=register">Register</a>';
}

echo '</div>';
?>


Go To Top
Rob



Role

Posts: 167
Joined: 22 June 2007
Location: Potters Bar
Wednesday, Oct 17, 2007 23:31  Trackback URL

Ah brilliant so something as simple as checking to see if a user is logged in, asking them to log in or register, then grabbing there ID once they have and assigning something to that ID (e.g. an upload for the mainsite) could be done quite simply, rather than having to weedle out the necessary bits and bobs from the code that's already there

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 11:37  Trackback URL

Yep thats the general idea. Rather than someone who has limited knowledge of php having to write out large mysql queries to get info, its now as simple as calling a function

Go To Top
Slashman X



Role

Posts: 54
Joined: 22 June 2007

Thursday, Oct 18, 2007 14:59  Trackback URL

I have a function for showing latest topics from a certain forum if you want it

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 16:30  Trackback URL

I've already made a function that can show all topics or from certain forums., but you might as well post yours to see if there's anything I can add to mine

Go To Top
Slashman X



Role

Posts: 54
Joined: 22 June 2007

Thursday, Oct 18, 2007 16:33  Trackback URL

I'll dig it out, the only real difference i could see in it is the use of my limit_string function which limits the amount of chars and if its over a certain amount adds "... Read Full" to it

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Oct 21, 2007 22:17  Trackback URL

So here we go then, a bit later than Thursday/Friday I admit but I tried to include a few examples and what not with it.

This version is basically just for testing and for feedback etc. However it does have enough functions for it to be usable on your site.
Things like loggedin, user info, new pms, list pms, newest member, member info, etc have all been included.

So go and give it a test and report back any bugs and stuff here.
There are a few functions not complete yet, such as new_pms, so they don't need to be mentioned.

To install, just download the .zip file, and read the install.html file located in the documentation folder.

This Topic Has Attachments You do not have permission to download attachments in this forum


Last edited by: Jonny - Sunday, Oct 21, 2007 22:18.
Go To Top
PutzMan123



Role

Posts: 396
Joined: 22 June 2007
Location: London, England
BabbleBoard Version: v1.1.5

Monday, Oct 22, 2007 09:01  Trackback URL

Just looked through the classes - nice work on it - better than what I could've done anyway

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 25, 2007 17:06  Trackback URL

And here comes v0.2

This version features 10 new functions mostly based around the user. It also includes changes to some functions such as renaming and altering of some functions.
All changes have been recorded in the included changelog.txt.

So this version is again mostly for testing and feedback purposes. It now also as a much easier to follow install guide, and also the example area is layed out neater.

With more functions means more examples, so make sure you take a look at them if your interested in using this.

So anyway, download and test, and report back any bugs etc please

This Topic Has Attachments You do not have permission to download attachments in this forum


Last edited by: Jonny - Thursday, Oct 25, 2007 17:06.
Go To Top
Angelotus




Posts: 9
Joined: 28 October 2007
Location: Rotterdam
Monday, Oct 29, 2007 13:21  Trackback URL

Jonny Trackback URL

And here comes v0.2

This version features 10 new functions mostly based around the user. It also includes changes to some functions such as renaming and altering of some functions.
All changes have been recorded in the included changelog.txt.

So this version is again mostly for testing and feedback purposes. It now also as a much easier to follow install guide, and also the example area is layed out neater.

With more functions means more examples, so make sure you take a look at them if your interested in using this.

So anyway, download and test, and report back any bugs etc please


I don't have persmission to download!?!?   



http://www.klifix.eu/u/
Go To Top
Rob



Role

Posts: 167
Joined: 22 June 2007
Location: Potters Bar
Tuesday, Oct 30, 2007 11:39  Trackback URL

A few things, on fiddling around with it, sorry if this doesn't quite make sense, i'm pretty rough at this stuff.

In V0.1 and v0.2

Change bbsdk_class to save database connection:
-----------------------------------------------
E.G. $this->mydb = mysql_select_db(....);

Then use $this->mydb to implicity state the database being used.

E.G. $this->lastresult = mysql_query($query, $this->mydb);

This is needed to cater for applications, like mine, which can have multiple database connections i.e. forum in one DB, my app data in another.

Change user_login() to:
-----------------------
if ($this->numrows()=='1')
{
// Add ----
$this->user_name = $username;
$this->user_id = $this->user_name2id($this->user_name);
$this->user_loggedin = '1';
$this->user_group_id = $this->user_group_id();
// End of added

if ($remember=='0')
{
$this->user_name = $username;
setcookie("bb_name", $username, NULL, "/");
setcookie("bb_password", $password, NULL, "/");
return true;
}
else
{
$this->user_name = $username;
setcookie("bb_name", $username, time() +31536000, "/");
setcookie("bb_password", $password, time() +31536000, "/");
return true;
}
}
else
{
// Add ----
user_logout();
// End of added
return false;
}

Change user_logout() to:
-----------------------
if ($this->user_loggedin=='1')
{
setcookie("bb_name", "", time() -3600, "/");
setcookie("bb_password", "", time() -3600, "/");
$this->user_session_delete();
// Add ----
$this->user_name = null;
$this->user_id = null;
$this->user_loggedin = '0';
$this->user_group_id = null;
// End of added
return true;
}
else
{
return false;
}

In v0.2 Examples

Following error in Apache log:
PHP Notice: Undefined property: bbSDK::$numrows in C:\webs\sites\footballmanagerportal\forum\bbsdk\bbsdk_class.php on line 600

Change line 5 of examples.php to:
$page = isset($_GET['page']) ? $_GET['page'] : null;

Change line 67 of bbsdk_class.php to: ????
if (!defined("BB_RUN")) define("BB_RUN", 1);

Other issues then arise, but not had the time to look into.

EDIT: each of those smilies should just be " ) (without spaces) it's to do the bug where "+) becomes

Go To Top
endor




Posts: 2
Joined: 11 September 2009

Monday, Sep 14, 2009 17:51  Trackback URL

Download links not working.

Go To Top
Daimon
New Management


Role

Posts: 25
Joined: 01 February 2008

Monday, Sep 28, 2009 09:16  Trackback URL

endor Trackback URL

Download links not working.


Yep. Looks like the page is bashed. I'll look at that later today or tomorrow at the latest.
-Daimon

Go To Top
 
1 Guest(s), 0 Member(s) Viewing This Topic:
 
 
 
Powered by BabbleBoard v1.1.6
All Content © BabbleBoard Support Forums