Jump to content


Photo
* * * * * 1 votes

(IM) IPB SDK V3


54 replies to this topic

#1 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 29 July 2009 - 05:14 AM

File Name: (IM) IPB SDK V3
File Submitter: Vince
File Submitted: 29 Jul 2009
File Updated: 11 Aug 2009
File Category: IP.Board v3.0.x Mods
Resource Type: Application
Version: 3.0Alpha

This is just an alpha version of the IPB SDK for IPB 3. Currently it supports:

Here is a list of available functions.

Login & Register:

* Authenticate the user - creates account if possible
* Change a user's email address
* Change a login name/display name
* Change a user's password
* Check login information to see if it's valid
* Create a user's account
* Delete a user's cookies
* Check if the email is already in use
* Check to see if a member is logged in
* Login a member without checking credentials
* Delete members cookies set by the board And logout the member

Member, Group & Access:

* buildAvatar - Returns user's avatar
* Parse a member for display
* Parse a member's profile photo
* Determine if two members are friends
* Determine if a member is ignoring another member
* Check forum permissions Forum perms can be: view read start reply upload download - by member
* Cleans a username or display name, also checks for any errors
* Check forum permissions - by group(s)
* Delete personal photo function
* Fetches SEO name, updating the table if required
* Retrieve all IP addresses a user (or multiple users) have used
* Create new member - extended
* Generates a log in key
* Generates a compiled passhash.
* Generates a password salt.
* Grab all hosted avatar gallery directories
* Grab all images within a particular avatar gallery directory
* Check to see if a member is banned (or not)
* Load member information
* Sends a query to the IPS Spam Service
* Delete member(s)
* Remove member's avatar
* Remove member uploaded photos
* Save member information
* Saves the member's avatar
* Set up defaults for a guest user
* Updates member's DB row password - extended
* Upload personal photo function


Simple to use interface.

currently there is only one simple example, we will extend this within time.
documentation and class reference available also.

Demo:

<?php

<?php

// Define the IPB path here on inside the SDKConfig.php file.
define('IPB_PATH', '');
require_once('../SDKConfig.php');
$sdk = IPBSDK::instance();
$login = $sdk->getClass('login');
$self = $_SERVER['PHP_SELF'];

if( $sdk->request['dologin'] )
{
	$login->authLogin( 'admin', '123' );
	header('Location: ' . $self);
}

if( $sdk->request['logout'] )
{
	$login->logOut();
	header('Location: ' . $self);
}

if( !$login->isLoggedIn() )
{
	
	echo "You are not logged in.<Br/>";
	echo "Please <a href='{$self}?dologin=1'>Here</a> to login as admin.";
}
else
{
	echo "Welcome, {$sdk->memberData['members_display_name']} <Br/>";
	echo "Please <a href='{$self}?logout=1'>Here</a> to logout.";
}


var_dump($login->checkLoginAuth('username', 'email', 'password'));


Bug reporting and feature requests please refer to the bug tracker (link available at the top of the page).
We will be updating it with new features and options within time.

Click here to download this file

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#2 NuclearGeneral

NuclearGeneral

    Advanced Member

  • Modders
  • PipPipPipPip
  • 77 posts
  • IPB Version:v3.0.x
  • Real Name:Donald

Posted 29 July 2009 - 02:19 PM

Nice Vince. I'll be sure to use it when I switch to IPB 3, but not for quite awhile though. Waiting for all the mods I have currently installed to be upgraded. But do you think you could do an upgrade of the mod for it to work on IPB 2.3? I used to use it alot when I had 2.1.

#3 xBlur

xBlur

    Coder

  • Members
  • PipPipPipPipPip
  • 226 posts
  • IPB Version:v3.1.x
  • Real Name:Jay
  • Location:England, UK

Posted 29 July 2009 - 02:20 PM

What does this mod do?

#4 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 29 July 2009 - 02:29 PM

@Donald It will require downgrade not upgrade if you would like to use it with 2.3, And i am sorry i won't be doing that since there is an SDK for IPB 2.2 which should work the same on 2.3

@Jay basically gives you ability to use IPB features and stuff outside the forums scope. Meaning for example if you have a website as a front-end for you board and you would like to display certain information for members only or just certain groups then with this you will be able to. Of course it's just an example you can do alot more with this once it's get to some stable stage.

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#5 xBlur

xBlur

    Coder

  • Members
  • PipPipPipPipPip
  • 226 posts
  • IPB Version:v3.1.x
  • Real Name:Jay
  • Location:England, UK

Posted 29 July 2009 - 02:32 PM

Ah sounds a good mod. Might have to have look around see more about it. But sounds good, good work ;)

#6 NuclearGeneral

NuclearGeneral

    Advanced Member

  • Modders
  • PipPipPipPip
  • 77 posts
  • IPB Version:v3.0.x
  • Real Name:Donald

Posted 29 July 2009 - 03:19 PM

@Vince - Wheres the IPD SDK for 2.2/2.3 at? I've never been able to find one thats been upgraded for 2.2/2.3 from the 2.1 version. But if your talking about the IPBWI mod, then I'd had to say no to that mod because I have tried it out several times and it quite frankly sucks! lol I could never get it to do what I needed it to. Not like the original SDK when I had 2.1.

#7 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • IPB Version:v3.2.x
  • Real Name:David
  • Location:Cracow, Poland

Posted 29 July 2009 - 03:20 PM

2.3.x: http://sourceforge.n...rojects/ipbsdk/ ;)
Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#8 NuclearGeneral

NuclearGeneral

    Advanced Member

  • Modders
  • PipPipPipPip
  • 77 posts
  • IPB Version:v3.0.x
  • Real Name:Donald

Posted 29 July 2009 - 03:46 PM

I know about the sourceforge location of the mod, but it's not compatible with 2.2/2.3. Only 2.1.x and older.

Edited by NuclearGeneral, 29 July 2009 - 06:13 PM.


#9 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 30 July 2009 - 12:16 AM

will be updating this over the weekend to add more things to it and maybe make this even easier to use.

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#10 MastricX

MastricX

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v3.0.x
  • Real Name:Sean

Posted 31 July 2009 - 07:06 AM

Woo More Things! Easyer not sure how you can do that i got this working rather nicely rather easly

#11 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 31 July 2009 - 12:12 PM

Feature suggestions are welcome, The more things it will do the easier it will be for you guys to develop your site that will work along with your forums.

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#12 silentloki

silentloki

    n00b

  • Banned
  • Pip
  • 2 posts
  • IPB Version:v3.0.x
  • Real Name:Al
  • Location:Ireland

Posted 07 August 2009 - 04:26 AM

Hi Vince.

Loving the work so far on the SKD mod. Im about to start a huge project that will most definitly need the mod and more, anyway ill have a god dig through it this week and get back to u

Thanks

Alan / silent
Digital Designer / Developer
http://alanoc.net

#13 Shadow Wolf

Shadow Wolf

    Novice

  • Members
  • PipPip
  • 13 posts
  • IPB Version:v3.0.x

Posted 07 August 2009 - 04:13 PM

Forum Path: /home/name/www/ipb3/

Installed SDK into: /home/name/www/ipb3/SDK

Changed sdkconfig.php, IPB_PATH to: /home/name/www/ipb3/

I tried doing a test with the login example but it is pulling up an error:

No such file or directory in /home/name/www/ipb3/SDK/Classes/SDKLoader.php on line 38

On that line it contains:
require_once( SDK_ROOT_PATH . "SDKConfig.php");

Am I missing another step somewhere?

Posted Image
May you have the hindsight to know where you've been, the foresight to know where you're going, and
the insight to know when you're going too far. - - - Irish Toast


#14 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 08 August 2009 - 08:56 AM

When did you download this modification?

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#15 mrghost

mrghost

    Novice

  • Members
  • PipPip
  • 5 posts
  • IPB Version:v3.1.x
  • Real Name:Josh

Posted 09 August 2009 - 05:59 AM

I was just wondering I loved the Old sdk it was really easy to use and they had a wonderful example of how to use it and also had the programming done. for instance the login example you have all you do is click on the link and logs you in... what ever happened to the user name input and the password input. im wondering if you are going to include further coding into the future updates. or maybe give a example of how to do a login.

Thank You for your time,

MrGhOsT

#16 silentloki

silentloki

    n00b

  • Banned
  • Pip
  • 2 posts
  • IPB Version:v3.0.x
  • Real Name:Al
  • Location:Ireland

Posted 10 August 2009 - 06:03 AM

Hey mrghost, Im sure there will be that example again in the future, this sdk has only started developmen and there is still a good bit of work need on the support and demo docs. If i get a chance today ill do up the demo.

Vince, I might start doing up examples and also style up the docs that you created?
Oh also, my profile doesn't have a valid board url, every thing I do is on a local dev server in work, can an account be valided without one? ;)
Digital Designer / Developer
http://alanoc.net

#17 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 10 August 2009 - 07:04 AM

Yes, There will be lots of examples when the time is right, Like Al said the development process just started, So i am doing this bit by bit hopefully will release another build this week. Feel free to post anything you would like to be included so eventually you will have to do very little to integrate your website with your forums.

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#18 Shadow Wolf

Shadow Wolf

    Novice

  • Members
  • PipPip
  • 13 posts
  • IPB Version:v3.0.x

Posted 10 August 2009 - 03:30 PM

When did you download this modification?

I downloaded it the day I posted the question, 08/07/2009.

Posted Image
May you have the hindsight to know where you've been, the foresight to know where you're going, and
the insight to know when you're going too far. - - - Irish Toast


#19 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,974 posts
  • IPB Version:v3.1.x
  • Real Name:Vince
  • Location:California, USA / Israel

Posted 11 August 2009 - 04:46 AM

Mod updated.

Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88


#20 PeteB

PeteB

    Novice

  • Members
  • PipPip
  • 9 posts
  • IPB Version:v2.3.x
  • Real Name:Pete

Posted 13 August 2009 - 05:35 AM

Keep up the good work with this Vince, it looks to be coming along nicely!

All I personally need on top of what you've done so far is the ability to pull topics from a forum into a sort of news headline list (so first post and other info from each topic in a forum taking into account current user's forum permissions). Then I can finally upgrade the forums to v3 and upgrade the functionality to use IPBSDK instead of the older tools I'm using to achieve the same results with v2.3.6.

As for my larger wishlist - if you're familiar with IPBWI (grew out of a previous version of IPBSDK I think) then really all the member functions, topics functions and forum functions. Forum stats including who's online etc would also be nice, but not essential, as would the ability to pull events from calendars (supply the function with a calendar ID and get upcoming events for X months for example).

I'd best stop there as I really could go on all day, but I think your login/reg/member data functionality is the highest up the list, followed by the ability to pull out a list of forum topics. It may just be my view, but those are the two most basic forms of forum integration I've seen on other sites.

Also, if there was a suggestion made for a function that you didn't think was useful to too many people and therefore might not code it, how much would you charge to have it implemented? Bit vague I know as it could be incredibly easy or extremely hard to do, but any rough price guide would be good ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq