[14:26] <orudge> A unified tt-forums login system
[14:26] <orudge> so in other words
[14:26] <orudge> sites like grfcrawler, the Repository and ttdgraphics can all use tt-forums logins
[14:26] <orudge> Kind of like a Microsoft Passport system
[14:26] <orudge> only without Microsoft
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
require("Auth.php");
$dsn = "mysql://user:password@localhost/database";
$authdsn = array(
"dsn" => $dsn,
"table" => tt_forum_db.phpbb_users",
"usernamecol" => "username",
"passwordcol" => "user_password"
);
$auth = new Auth("DB", $authdsn, "loginFunction", 1);
$auth->setSessionname("somename");
$auth->start();
if ($auth->checkAuth()) {
//Do what you normaly would do here
} else {
//Do what you would do when the user is not logged in.
}
function loginFunction() {
//print the login form here...
}
that is what I use, if you have access the ttforum db like me.
how to acces the cookie, the cookie is limited to domain/path of tt-forums.net the cookie would not be sent to your site (unless you use the same domain as tt-forum)
It might be a good idea to warn for logging out in the crawler, since you also logout from the forums at the same time, and thus loosing your unread posts in the process.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Well yes, but the image has to be / would need to be 75x75 pixel for the small display, btw. do you have planed a GRFID field?
We should move that discussion maybe into private messages...
Rob: Well a warning could be good, true
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
My thumbnails are 120x120. You can resize them yourselve using gd.
I don't have plans to include grfid. I could add a field for users to input it. Or read it from the grf file. I however have no idea how a grf file looks internally.
I've got a bit of code for extracting the GRF info over here. I think it breaks if the size sprite starts with 08, though, so something needs to be done about that. AIUI, the pseudosprite data is written directly to the GRF, that is, not compressed, so it's pretty easy to read.
The conversation of the editing features need more time then expected, so the new grfcrawler will start next week hopefully.
(Defined Constants behave very odd, sometimes they can be used as Value sometimes not)
TODO List:
Written Plugins for Smarty: done
Conversation to Smarty: 80%
Session Mangement Binding to TT-Forums: done
New Editor for GRFs: 10%
List feature for own grfs: 0%
Added User ID for GRFs, that means you will be able to edit your files. 100%
(It's not possible to have more than one forum user for a GRF)
So for sets like PBS, who will be responsible for it?
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...