Notices

Go Back   FileFront Forums > Main Forums > General Yib-Yab (Off Topic)

Remember Me?

General Yib-Yab (Off Topic)
Pass the time and talk about general topics here.
Feeling nostalgic? Visit the GameFront Hall of Fame!

Reply
 
LinkBack Thread Tools Display Modes
Old July 22nd, 2006   #11
I would die without my life.
 
Biggus Dickus's Avatar
 
Join Date: January 19th, 2004
Location: Lurking Mastermind
Status: As strange as Kerian.
6,228 posts, 0 likes.
Rep Power: 31
Biggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybodyBiggus Dickus is close friends with everybody
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Knippschild
I've never seen that in PHP, it'd probably give you a parse error
I asked it because this language looks a bit like java or c++. But I can be wrong.


Now you have a reason to stay online.
Biggus Dickus is offline   Reply With Quote
Old July 22nd, 2006   #12
weirdal = new ptaq()
Best Socialgroup
 
Sheepeep's Avatar
 
Join Date: September 2nd, 2003
Status: Wondering why the default statuses are five years old.
2,172 posts, 39 likes.
Rep Power: 29
Sheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admiration
Default Re: My work is being featured in IPB SDK

Hrm, I never thought of contributing to someone else's project with my own PHP knowledge...

Ah well, good job.

What could be more fun than a Flash IRC client?

Intel 80486DX4 120MHz | 2x16MB 72pin SIMMs | 540MB Western Digital AC2540 | 2MB Cirrus Logic CL-GD5426
Sheepeep is offline   Reply With Quote
Old July 22nd, 2006   #13
Banned
El Bano
 
Tango Protocol's Avatar
 
Join Date: July 18th, 2003
Status: Available
3,377 posts, 35 likes.
Rep Power: 0
Tango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love you
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Sheepeep
Hrm, I never thought of contributing to someone else's project with my own PHP knowledge...

Ah well, good job.
You should, it gives you a warm fuzzy feeling inside

[CENTER]
[url="http://raptr.com/knippy?src=em_smforum"][img]http://raptr.com/badge/b69bb5ce84374c997d571b1dd95aa3ae/fss.png[/img][/url]

[URL="http://forums.filefront.com/member.php?u=108795"][COLOR=darkorange]Crazy Wolf[/COLOR][/URL] is a sexy beast.
[/center]
Tango Protocol is offline   Reply With Quote
Old July 22nd, 2006   #14
weirdal = new ptaq()
Best Socialgroup
 
Sheepeep's Avatar
 
Join Date: September 2nd, 2003
Status: Wondering why the default statuses are five years old.
2,172 posts, 39 likes.
Rep Power: 29
Sheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admiration
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Knippschild
You should, it gives you a warm fuzzy feeling inside
Well, yeah, I should...But I write all my own PHP software and thus have little experience with other peoples'. And since more and more people are starting to charge for their PHP-based products, it gets harder still to contribute to them. Shame, I guess.

What could be more fun than a Flash IRC client?

Intel 80486DX4 120MHz | 2x16MB 72pin SIMMs | 540MB Western Digital AC2540 | 2MB Cirrus Logic CL-GD5426
Sheepeep is offline   Reply With Quote
Old July 22nd, 2006   #15
Banned
El Bano
 
Tango Protocol's Avatar
 
Join Date: July 18th, 2003
Status: Available
3,377 posts, 35 likes.
Rep Power: 0
Tango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love you
Default Re: My work is being featured in IPB SDK

Well if you contribute code that they later charge for (which is totally bogus; it's opensource software) you can demand royalties

[CENTER]
[url="http://raptr.com/knippy?src=em_smforum"][img]http://raptr.com/badge/b69bb5ce84374c997d571b1dd95aa3ae/fss.png[/img][/url]

[URL="http://forums.filefront.com/member.php?u=108795"][COLOR=darkorange]Crazy Wolf[/COLOR][/URL] is a sexy beast.
[/center]
Tango Protocol is offline   Reply With Quote
Old July 22nd, 2006   #16
weirdal = new ptaq()
Best Socialgroup
 
Sheepeep's Avatar
 
Join Date: September 2nd, 2003
Status: Wondering why the default statuses are five years old.
2,172 posts, 39 likes.
Rep Power: 29
Sheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admirationSheepeep is worthy of your admiration
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Knippschild
Well if you contribute code that they later charge for (which is totally bogus; it's opensource software) you can demand royalties
I think you just gave me something to do for after I finish my own personal project. Contribute to a million other projects and wait a few years...Then have my three lines removed and replaced by something else.

What could be more fun than a Flash IRC client?

Intel 80486DX4 120MHz | 2x16MB 72pin SIMMs | 540MB Western Digital AC2540 | 2MB Cirrus Logic CL-GD5426
Sheepeep is offline   Reply With Quote
Old July 22nd, 2006   #17
Banned
El Bano
 
Tango Protocol's Avatar
 
Join Date: July 18th, 2003
Status: Available
3,377 posts, 35 likes.
Rep Power: 0
Tango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love you
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Sheepeep
I think you just gave me something to do for after I finish my own personal project. Contribute to a million other projects and wait a few years...Then have my three lines removed and replaced by something else.
Hey, sometimes that happens...

[CENTER]
[url="http://raptr.com/knippy?src=em_smforum"][img]http://raptr.com/badge/b69bb5ce84374c997d571b1dd95aa3ae/fss.png[/img][/url]

[URL="http://forums.filefront.com/member.php?u=108795"][COLOR=darkorange]Crazy Wolf[/COLOR][/URL] is a sexy beast.
[/center]
Tango Protocol is offline   Reply With Quote
Old July 22nd, 2006   #18
Shizzle my nizzle
Best Socialgroup
 
Revenge's Avatar
 
Join Date: July 28th, 2004
Location: Glasvegas
Status: Mourning the day Revenge left the staff.
7,626 posts, 19 likes.
Rep Power: 32
Revenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admiration
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Biggus Dickus
Hmm...Just for information, would it be possible to do this:
Code:
function is_ingroup($groups,$member='') {
        global $SDK;
        return ($SDK->is_ingroup($groups, $member) or is_in2group($groups, $member)) ? true : false;
}
instead of this:
Code:
function is_ingroup($groups,$member='') {
        global $SDK;
        if ($SDK->is_ingroup($groups, $member) or is_in2group($groups, $member)) {
                return true;
        }
        else {
                return false;
        }
}
It's exactly the same thing with less lines. I don't know if it's allowed in this language.
Yep, that would work. It's used for the vBulletin plugin system alot, and it prevents an extra function call. If you know the ELSE function will just return FALSE, then there is no need to have an overhead of calling the else function. Therefore there is a method, like in C (since PHP is based on C) for returning FALSE automatically if the IF condition is false without calling ELSE.

Even though the ELSE function (if you can call it that) is obviously embedded so that it is hideously fast when used, it's still more than the parser needs to know.

Knippy, does $SDK->get_advinfo($member) generate a query? If so, it's probably a better idea for the Invision guys to incorporate all usergroups into their is_ingroup() function rather than just the first, and query it all at once (I've not used Invision for around a year - presuming the primary and secondary usergroups are stored in the same table). Well done nevertheless.

Putting the fun back into fundamentalism.
Revenge is offline   Reply With Quote
Old July 22nd, 2006   #19
Banned
El Bano
 
Tango Protocol's Avatar
 
Join Date: July 18th, 2003
Status: Available
3,377 posts, 35 likes.
Rep Power: 0
Tango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love youTango Protocol - yes, we love you
Default Re: My work is being featured in IPB SDK

Quote:
Originally Posted by Reven
Knippy, does $SDK->get_advinfo($member) generate a query? If so, it's probably a better idea for the Invision guys to incorporate all usergroups into their is_ingroup() function rather than just the first, and query it all at once (I've not used Invision for around a year - presuming the primary and secondary usergroups are stored in the same table). Well done nevertheless.
$SDK->get_advinfo is an object calling which pulls all of $member's attributes in the database. if the param is blank, it returns the info of the currently logged in user.

the SDK is developed by a different group than IPB is.

so basically get_advinfo returns stuff like

username
displayname
warn
posts
mgroup
mgroup_others [secondary groups are stored here]

[CENTER]
[url="http://raptr.com/knippy?src=em_smforum"][img]http://raptr.com/badge/b69bb5ce84374c997d571b1dd95aa3ae/fss.png[/img][/url]

[URL="http://forums.filefront.com/member.php?u=108795"][COLOR=darkorange]Crazy Wolf[/COLOR][/URL] is a sexy beast.
[/center]
Tango Protocol is offline   Reply With Quote
Old July 22nd, 2006   #20
Shizzle my nizzle
Best Socialgroup
 
Revenge's Avatar
 
Join Date: July 28th, 2004
Location: Glasvegas
Status: Mourning the day Revenge left the staff.
7,626 posts, 19 likes.
Rep Power: 32
Revenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admirationRevenge is worthy of your admiration
Default Re: My work is being featured in IPB SDK

Ah, so it's kind of like PEAR then?

I prefer to make a list of usergroups a member is part of (primary usergroup being the first in the list) and put it into CSV format in the database, so it uses one cell. Then call it and explode() it.

Putting the fun back into fundamentalism.
Revenge is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPB 2.2 vs PHPBB 3 Snow_Flake Tech Discussion 5 March 21st, 2008 07:29 AM
SDK TOOLS won't work tbird700 F.E.A.R. Problems, Errors and Help 1 December 10th, 2005 09:10 AM
Plz Help Sdk Instal Dont Work Scorpion_Blood Soldier of Fortune 2 General Yib-Yab (Off Topic) 2 November 24th, 2002 06:49 AM


All times are GMT -7.







   
 





This site is part of the Defy Media Gaming network

The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!

FileFront Forums - Terms of Service - Top
Theme Selection
Copyright © 2002-2016 Game Front. All rights reserved. Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Forum Theme by Danny King (FileTrekker), Sheepeep & Graeme(rs)
RSS Feed Widget by FeedWind