This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-05-01 17:18:51

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

Blade-Edge wrote:

archmage wrote:

You already got 2 posts explaining ways to do it, the administrators won't tell you anything different.

That's the problem; those ways don't go into specifics. The administrators who have hooked up the forum can explain it more thoroughly than someone who "hasn't looked at the ScratchR source"

And builder, I meant the Scratch admins

You will have better luck if you email them. Only paddle2see really goes on often and he didn't build Scratchr, nor did lightning.

This is really a copy & paste job too so anyone decent with code should be able to figure it out. Go to the Scratchr signup page, in the part where it adds the user name and password to the member table, copy and paste this over again, but change the table it adds to to the forum's member table.

If they are incompatible you are most likely going to get an error, that looks something like
"can't add x value to y table"
You have to change it so that the incompatible table holds the x values instead of the y values. In short, give the tables the same data type.

If none of this works go to a real programming forum and ask for php help, you will get better replys there.

Last edited by archmage (2011-05-01 17:22:24)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#27 2011-05-01 17:21:57

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

archmage wrote:

Blade-Edge wrote:

archmage wrote:

You already got 2 posts explaining ways to do it, the administrators won't tell you anything different.

That's the problem; those ways don't go into specifics. The administrators who have hooked up the forum can explain it more thoroughly than someone who "hasn't looked at the ScratchR source"

And builder, I meant the Scratch admins

You will have better luck if you email them. Only paddle2see really goes on often and he didn't build Scratchr, nor did lightning.

This is really a copy & paste job too so anyone decent with code should be able to figure it out. Go to the Scratchr signup page, in the part where it adds the user name and password to the member table, copy and paste this over again, but change the table it adds to to the forum's member table.

You can try to contact andresmh at andresmh@media.mit.edu

Offline

 

#28 2011-05-01 17:25:46

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

It's not really a cut and paste job. It uses functions that would need to get completely redefined to be able to output to the forum database. The problem is that we don't know how to redefine them.

I'll email them after they respond to the one I just sent a few days ago


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#29 2011-05-01 20:39:16

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

Would this help?
Or these:

http://scratch.mit.edu/api/getproject/1211743
http://scratch.mit.edu/api/getprojectpath/1211743
http://scratch.mit.edu/api/getuser/139
http://scratch.mit.edu/api/getusernamebyid/139
http://scratch.mit.edu/api/getregisteredusers
http://scratch.mit.edu/api/getcreators
http://scratch.mit.edu/api/gettotalprojects
http://scratch.mit.edu/api/gettotalscripts
http://scratch.mit.edu/api/gettotalsprites.
http://scratch.mit.edu/api/getprojectsbyusername/ashok
http://scratch.mit.edu/api/getgalleriesbyusername/ashok
http://scratch.mit.edu/api/getinfobyusername/ashok
http://scratch.mit.edu/api/getprojectsbygallery/27321
http://scratch.mit.edu/api/getprojectinfobyid/1210197
http://scratch.mit.edu/api/getprojectinfobyid/785614/490868
http://scratch.mit.edu/api/getgalleryinfobyid/24994
http://scratch.mit.edu/api/getnumprojectsbyuser/ashok
http://scratch.mit.edu/api/getnumprojectsbyuser/ashok?onlyvisible='no'
http://scratch.mit.edu/api/getpcommentsbyid/255443
http://scratch.mit.edu/api/getusersfavoriteprojectsbyuid/261892
http://scratch.mit.edu/api/getprojectblockscount/4447
http://scratch.mit.edu/api/getprojectblocks/1308192
http://scratch.mit.edu/api/get_latest_project/XXXXXXXXXXXXX
http://scratch.mit.edu/api/getblockcountpercategorybyuserid/139
http://scratch.mit.edu/api/get_remixed_project

Last edited by Pecola1 (2011-05-01 20:40:26)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#30 2011-05-01 21:18:25

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

If I had to fathom a guess I would say that FluxBB and ScratchR user data exist in two separate tables. The ScratchR dev team probably modified the production code to create a user on the FluxBB tables when you sign up for ScratchR. There's probably something similar in the login handling code that sets FluxBB session variables when you log into Scratch. You'd also have to add a few other things, such as redirection to user pages upon clicking a forumer's name. I don't know how much of this is already clear to you, just my two cents (¥1.6).

EDIT: Just read the whole thread more thoroughly. What do you mean by 'incompatible' tables between ScratchR and FluxBB? Are they just using different fields/data types or can you literally not get them to coexist in the same database?

Last edited by fullmoon (2011-05-01 21:21:06)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#31 2011-05-01 23:00:26

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

Basically, we can get them to coexist, but we don't know how to


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#32 2011-05-02 17:15:19

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Hooking up FluxBB to ScratchR

If you're having trouble getting them into the same database, you can use phpMyAdmin to move tables between databases...is that what you mean? Then the rest of it is probably just custom code, I'm afraid.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer