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

#126 2012-09-26 04:12:23

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

laser314 wrote:

jvvg wrote:

laser314 wrote:

How do you reset your password if your account isn't linked to scratch?

Um, we haven't thought of a way to do that yet.
However, all new registrations must be linked to Scratch, so it isn't that big a problem.

Mine isn't connected to scratch, for security reasons.

We understand your concerns about sharing your Scratch password. I still want to stress that the Scratch password is not even stored, and you can see in the source code on Assembla, but we can provide an alternative method just for you...

Contact us here and we'll reply with an email containing a new random password.

Offline

 

#127 2012-09-26 15:01:56

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

jvvg wrote:

XenoK wrote:

So do we get to see the source code?

Yes. It is located at https://www.assembla.com/code/mod-share-iv/git/nodes

I think you need a Git client to check it out. Also, if anyone can figure out how merge requests work, you're welcome to contribute code.

Awesome  big_smile

Ages ago I had an idea to make a site to make collabs easier, and I really hope this can make my dream come true! MOD SHARE IS EPIC!!!!!!!!!!

(Credit will be given  smile  )

Whoa!  Far more complicated than what EternityX1 is currently run on!  I'm not even sure how you implement the pages!


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#128 2012-09-26 15:07:37

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

XenoK wrote:

Zeusking19 wrote:

jvvg wrote:

Yes. It is located at https://www.assembla.com/code/mod-share-iv/git/nodes

I think you need a Git client to check it out. Also, if anyone can figure out how merge requests work, you're welcome to contribute code.

Awesome  big_smile

Ages ago I had an idea to make a site to make collabs easier, and I really hope this can make my dream come true! MOD SHARE IS EPIC!!!!!!!!!!

(Credit will be given  smile  )

Whoa!  Far more complicated than what EternityX1 is currently run on!  I'm not even sure how you implement the pages!

I implemented pages using a new technique. A lot of sites just have each page as a .php file that includes the header, footer, etc.
What we did instead is used a dispatcher. That means that ALL REQUESTS go to dispatcher.php, which then includes the content of the page based on the configuration (pages config in config/pages.php).

Oh, and, credit to the Scratch Team. I completely ripped that idea from ScratchR.  tongue

Last edited by jvvg (2012-09-26 15:08:24)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#129 2012-09-26 15:10:14

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask  smile


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#130 2012-09-26 15:13:18

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask  smile

Nah. I'm fine as a moderator.

Also, if you look above, I provided the database patch you need for the forums.

It is at /config/database/db_data_forums.sql or something like that.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#131 2012-09-26 15:44:10

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

XenoK wrote:

Zeusking19 wrote:


Awesome  big_smile

Ages ago I had an idea to make a site to make collabs easier, and I really hope this can make my dream come true! MOD SHARE IS EPIC!!!!!!!!!!

(Credit will be given  smile  )

Whoa!  Far more complicated than what EternityX1 is currently run on!  I'm not even sure how you implement the pages!

I implemented pages using a new technique. A lot of sites just have each page as a .php file that includes the header, footer, etc.
What we did instead is used a dispatcher. That means that ALL REQUESTS go to dispatcher.php, which then includes the content of the page based on the configuration (pages config in config/pages.php).

Oh, and, credit to the Scratch Team. I completely ripped that idea from ScratchR.  tongue

Yeah, I know just basic php,  at the moment, that would be far too complicated for me to implement.  I'll get there eventually  tongue


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#132 2012-09-26 16:08:13

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

XenoK wrote:

Zeusking19 wrote:


Awesome  big_smile

Ages ago I had an idea to make a site to make collabs easier, and I really hope this can make my dream come true! MOD SHARE IS EPIC!!!!!!!!!!

(Credit will be given  smile  )

Whoa!  Far more complicated than what EternityX1 is currently run on!  I'm not even sure how you implement the pages!

I implemented pages using a new technique. A lot of sites just have each page as a .php file that includes the header, footer, etc.
What we did instead is used a dispatcher. That means that ALL REQUESTS go to dispatcher.php, which then includes the content of the page based on the configuration (pages config in config/pages.php).

Oh, and, credit to the Scratch Team. I completely ripped that idea from ScratchR.  tongue

I'm actually glad you did that, cause my I'm very bad at .htaccess compared to my php.  This makes it much easier for me to make the collab thingy  tongue


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#133 2012-09-26 18:17:13

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

SJRCS_011 wrote:

jvvg wrote:

XenoK wrote:


Whoa!  Far more complicated than what EternityX1 is currently run on!  I'm not even sure how you implement the pages!

I implemented pages using a new technique. A lot of sites just have each page as a .php file that includes the header, footer, etc.
What we did instead is used a dispatcher. That means that ALL REQUESTS go to dispatcher.php, which then includes the content of the page based on the configuration (pages config in config/pages.php).

Oh, and, credit to the Scratch Team. I completely ripped that idea from ScratchR.  tongue

I'm actually glad you did that, cause my I'm very bad at .htaccess compared to my php.  This makes it much easier for me to make the collab thingy  tongue

I'm pretty good at .htacecss, but that's not the reason we did that.
The reason is so that it is more secure (prevents access to system files) and it is easier to make changes. With this, everything goes through the dispatcher, so it is easy to add stuff like bans.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#134 2012-09-26 21:06:10

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

when will insanity for macs be out ?


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#135 2012-09-26 21:12:32

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

dvd4 wrote:

when will insanity for macs be out ?

In a few days, probably.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#136 2012-09-26 21:14:15

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

dvd4 wrote:

when will insanity for macs be out ?

In a few days, probably.

Do you develop on Windows? If  so, I'd like to ask how you port them to Mac applications.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#137 2012-09-26 21:20:16

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

SJRCS_011 wrote:

jvvg wrote:

dvd4 wrote:

when will insanity for macs be out ?

In a few days, probably.

Do you develop on Windows? If  so, I'd like to ask how you port them to Mac applications.

Yes, I develop on Windows (you'll see that the Assembla repo has all Windows files).

To port it to Mac, you just replace the image file and change a few plist files.
However, the real problem is I'm too lazy to fire up my Mac.  tongue


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#138 2012-09-26 21:20:43

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

SJRCS_011 wrote:

jvvg wrote:

dvd4 wrote:

when will insanity for macs be out ?

In a few days, probably.

Do you develop on Windows? If  so, I'd like to ask how you port them to Mac applications.

it's really easy. I just tried. And succeeded.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#139 2012-09-27 02:27:33

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

Zeusking19 wrote:

btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask  smile

Nah. I'm fine as a moderator.

Also, if you look above, I provided the database patch you need for the forums.

It is at /config/database/db_data_forums.sql or something like that.

phpMyAdmin throws errors..


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#140 2012-09-27 08:18:05

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

jvvg wrote:

Zeusking19 wrote:

btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask  smile

Nah. I'm fine as a moderator.

Also, if you look above, I provided the database patch you need for the forums.

It is at /config/database/db_data_forums.sql or something like that.

phpMyAdmin throws errors..

Oh. Not sure what the problem is, then.  sad


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#141 2012-09-27 22:32:48

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

If anyone else wants to be moderator, this is your last chance!

You have until Friday evening to nominate yourself, and voting starts on Saturday.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#142 2012-09-28 12:15:20

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

I need help with the collab creation, I cant seem to get it to insert into the table.

http://collabcentral.goodluckwith.us/createcollab

Ok, I use the collab name Test and the description is testing123.

I get

An error was encountered: Failed to create collab

In file /public_html/pages/registercollab.php on line 16

The database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Test,'')' at line 2

from the webpage. Here is my code. It is based off the user registration system:

Code:

<?php
if ($ms_config['status'] == 'warning') {
    header('Location: /');
    die;
}
$page_title = 'Register Collaboration - EzyCollab';
if (isset($_POST['name'])) {
    $errors = array();
    $result = $db->query('SELECT 1 FROM collaborations
    WHERE LOWER(name) = LOWER(\'' . $db->escape($_POST['name']) . '\')') or error('Could not check for existing collabs', __FILE__, __LINE__, $db->error());
    if ($db->num_rows($result)) {
        $errors[] = 'Collab already exists';
    }
    if (empty($errors)) {
        $db->query('INSERT INTO collaborations(name,description)
        VALUES(\'' . $db->escape($_POST['name']) . '\',\'' . $db->escape($_POST['description']) . ',\'\')') or error('Failed to create collab', __FILE__, __LINE__, $db->error());
        
        
        addlog('New Collaboration registered! ' . $_POST['name']);
        header('Location: /users'); die;
    }
}
?>
<h2>Register a Collaboration</h2>
<h3>Name and Description</h3>
<?php if (!empty($errors)) {
    echo '<h4>The following errors need to be fixed:</h4>';
    echo '<ul>';
    foreach ($errors as $val) {
        echo '<li>' . $val . '</li>';
    }
    echo '</ul>';
} ?>
<form action="/createcollab" method="post" enctype="multipart/form-data">
    <table width="335" height="167" border="0">
        <tr>
            <td height="50">Collaboration Name:</td>
            <td><input type="text" name="name" value="<?php echo clearHTML($_POST['name']); ?>" /></td>
        </tr>
        <tr>
            <td>Description:</td>
            <td><textarea name="description" cols="100" rows="8"><?php echo clearHTML($_POST['description']); ?></textarea></td>
        </tr>
    </table>
    <input type="submit" value="Register Collab" />
</form>

Last edited by Zeusking19 (2012-09-28 12:25:02)


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#143 2012-09-28 12:59:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

You put two consecutive apostrophes (single quotes) on line 16 after the description. Remove one \' from the end and try again!

Offline

 

#144 2012-09-28 18:39:19

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

I see the error. You are putting in an unnecessary parameter.

Replace

Code:

 $db->query('INSERT INTO collaborations(name,description)
        VALUES(\'' . $db->escape($_POST['name']) . '\',\'' . $db->escape($_POST['description']) . ',\'\')') or error('Failed to create collab', __FILE__, __LINE__, $db->error());

with

Code:

 $db->query('INSERT INTO collaborations(name,description)
        VALUES(\'' . $db->escape($_POST['name']) . '\',\'' . $db->escape($_POST['description']) . ')') or error('Failed to create collab', __FILE__, __LINE__, $db->error());

Last edited by jvvg (2012-09-28 22:47:23)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#145 2012-09-29 11:10:33

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Due to a little bit of smart coding, I was able to improve the performance of the site a little bit by caching data.
If stuff like new projects aren't showing up, please let us know.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#146 2012-09-29 11:18:35

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

the project viewing page amazes me...


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#147 2012-09-29 11:25:44

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

so does the search on the users page, howd you do that?


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#148 2012-09-29 11:33:28

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

XenoK wrote:

the project viewing page amazes me...

Thanks.  smile

XenoK wrote:

so does the search on the users page, howd you do that?

I just used a little bit of AJAX.

There is also a nice feature in SQL that lets you do this:

Code:

SELECT username FROM users
WHERE username LIKE 'Xe%K'

and use a % as a wildcard.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#149 2012-09-29 11:45:41

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

XenoK wrote:

the project viewing page amazes me...

Thanks.  smile

XenoK wrote:

so does the search on the users page, howd you do that?

I just used a little bit of AJAX.

There is also a nice feature in SQL that lets you do this:

Code:

SELECT username FROM users
WHERE username LIKE 'Xe%K'

and use a % as a wildcard.

well I knew that, I was wondering about the AJAX part


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#150 2012-09-29 15:41:49

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Moderator elections have begun!
Vote here!


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer