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

#176 2012-10-02 12:44:33

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

MathWizz wrote:

Commit everything but the database config file?

Still, exporting the database takes a while, because we have to export some specific stuff.
The code is also useless without the database.


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

Offline

 

#177 2012-10-02 15:55:16

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

SJRCS_011 wrote:

jvvg wrote:

Returning a 403 does expose the URL, because people will see that the page does in fact exist.
The 404 tells the user that there is no page there and they are just wasting their time.

though the purpose has sorta already been defeated, cause the site's open source.  hmm

True, but it's the same thing on this website, and I tried to copy a lot of the "good" aspects of ScratchR into the Mod Share Platform IV.
Stuff like the dispatcher, using entirely MySQL, caching data, even the ban screen, they all were related to ScratchR.

where is the source code for ScratchR?
EDIT: found it

Last edited by XenoK (2012-10-02 16:03:33)


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

Offline

 

#178 2012-10-02 17:40:19

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

XenoK wrote:

jvvg wrote:

SJRCS_011 wrote:


though the purpose has sorta already been defeated, cause the site's open source.  hmm

True, but it's the same thing on this website, and I tried to copy a lot of the "good" aspects of ScratchR into the Mod Share Platform IV.
Stuff like the dispatcher, using entirely MySQL, caching data, even the ban screen, they all were related to ScratchR.

where is the source code for ScratchR?
EDIT: found it

If you think our code is hard to understand, just wait until you see ScratchR.
I am fluent in PHP, but hardly understood anything of ScratchR (mainly because they used CakePHP, not raw PHP).


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

Offline

 

#179 2012-10-03 21:50:27

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Btw, since the code is open-source and a few people are now making their own versions, if you made your own version and have some code you think we need, you are welcome to submit it to us, either in the form of a merge request or a list of changed files.
We will add code as long as it works and has a feature/bug fix we deem meaningful.


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

Offline

 

#180 2012-10-04 08:41:31

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

With the new code I get this after submitting the form:

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 ''Testing 123)' at line 2


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

Offline

 

#181 2012-10-04 08:52:32

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

With the new code I get this after submitting the form:

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 ''Testing 123)' at line 2

That should tell you what the problem is.

It appears you forgot to close quotes 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

 

#182 2012-10-04 09:27:38

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

Btw, since the code is open-source and a few people are now making their own versions, if you made your own version and have some code you think we need, you are welcome to submit it to us, either in the form of a merge request or a list of changed files.
We will add code as long as it works and has a feature/bug fix we deem meaningful.

I do, but it would require the profile to have more fields, its based off of what i used on eternityx1.  I will make some modifications to modshare later, gotta finish eternityx1 alpha (should be out this month)


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

Offline

 

#183 2012-10-04 11:43:56

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

Zeusking19 wrote:

With the new code I get this after submitting the form:

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 ''Testing 123)' at line 2

That should tell you what the problem is.

It appears you forgot to close quotes or something like that.

Still very confusing  hmm


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

Offline

 

#184 2012-10-04 12:32:34

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

jvvg wrote:

Zeusking19 wrote:

With the new code I get this after submitting the form:

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 ''Testing 123)' at line 2

That should tell you what the problem is.

It appears you forgot to close quotes or something like that.

Still very confusing  hmm

What is the code, exactly?


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

Offline

 

#185 2012-10-04 13:25:48

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

<?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>


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

Offline

 

#186 2012-10-04 14:51:51

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Zeusking19 wrote:

Code:

\'' . $db->escape($_POST['description']) . ')')

You forgot to close the quotes.  tongue

Use this instead:

Code:

\'' . $db->escape($_POST['description']) . '\')')

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

Offline

 

#187 2012-10-04 20:41:00

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

A few announcements (already mentioned on the Mod Share Forums):
-Moderator elections are still going on, they will be over on Saturday
-I'll push more source code changes in a few days, however someone might need to remind me
-Once we get a new moderator and he/she is trained, I'm going to take a break from moderating and developing for a few days. I am having some personal problems that are putting a big drain on my mental and emotional resources and moderating/developing Mod Share adds to the stress. It will also give a good experience for our new mod.  smile


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

Offline

 

#188 2012-10-05 12:18:18

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

The elections will end either today or tomorrow.


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

Offline

 

#189 2012-10-05 15:21:05

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Can I please have the code for the New Flash Player?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#190 2012-10-05 15:33:39

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

funelephant wrote:

Can I please have the code for the New Flash Player?

scratch.mit.edu/static/misc/Scratch.swf


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

Offline

 

#191 2012-10-05 16:48:47

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

for about how long will modshare be down ?


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

Offline

 

#192 2012-10-05 16:49:23

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

dvd4 wrote:

for about how long will modshare be down ?

It's back up already.  smile
We were just doing a few code improvements.


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

Offline

 

#193 2012-10-05 16:51:51

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

dvd4 wrote:

for about how long will modshare be down ?

It's back up already.  smile
We were just doing a few code improvements.

that was quick  smile

Though the link to the forums in the bar at the top is not working

EDIT:now it's just errors

DOUBLE EDIT:there are just too many errors to report  yikes

TRIPLE EDIT:everything is back to normal

Last edited by dvd4 (2012-10-05 16:58:22)


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

Offline

 

#194 2012-10-05 16:56:09

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

dvd4 wrote:

jvvg wrote:

dvd4 wrote:

for about how long will modshare be down ?

It's back up already.  smile
We were just doing a few code improvements.

that was quick  smile

Though the link to the forums in the bar at the top is not working

EDIT:now it's just errors

DOUBLE EDIT:there are just too many errors to report  yikes

I fixed it all. I was trying to make some modifications to make the forums easier to code in the future, but it didn't work.  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

 

#195 2012-10-05 16:57:53

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

jvvg wrote:

dvd4 wrote:

jvvg wrote:


It's back up already.  smile
We were just doing a few code improvements.

that was quick  smile

Though the link to the forums in the bar at the top is not working

EDIT:now it's just errors

DOUBLE EDIT:there are just too many errors to report  yikes

I fixed it all. I was trying to make some modifications to make the forums easier to code in the future, but it didn't work.  sad

jugging by the number of fatal errors,it's easy to see it didn't work.


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

Offline

 

#196 2012-10-05 17:22:44

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

dvd4 wrote:

jvvg wrote:

dvd4 wrote:

that was quick  smile

Though the link to the forums in the bar at the top is not working

EDIT:now it's just errors

DOUBLE EDIT:there are just too many errors to report  yikes

I fixed it all. I was trying to make some modifications to make the forums easier to code in the future, but it didn't work.  sad

jugging by the number of fatal errors,it's easy to see it didn't work.

I actually get tons of errors from my successes too while I'm programming them.
I got a cumulative total of over 5000 PHP and SQL errors when writing the first draft of Mod Share IV.

However, I did get some other code working today.  smile
I re-implemented my 3 reports = hide post code.
Now, it will also ban the user that posted it (just like here).

Last edited by jvvg (2012-10-05 17:28:38)


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

Offline

 

#197 2012-10-05 17:45:03

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

I pushed all of the changes to the repo.


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

Offline

 

#198 2012-10-05 20:40:50

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

The election is now over. We will announce the winner tomorrow.


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

Offline

 

#199 2012-10-05 20:47:10

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

Why are you using assembla anyway? I'd use Github any day.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#200 2012-10-05 20:49:18

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

Re: Mod Share IV ⋆ Bingo 2.0 ⋆ Insanity 1.1

MathWizz wrote:

Why are you using assembla anyway? I'd use Github any day.

I saw that ScratchR was hosted on Assembla. So, I decided to try it out for Insanity, and I liked it.
That's why I now use it for all of my projects.


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