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
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
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 )
Whoa! Far more complicated than what EternityX1 is currently run on! I'm not even sure how you implement the pages!
Offline
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
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 )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.
Last edited by jvvg (2012-09-26 15:08:24)
Offline
btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask
Offline
Zeusking19 wrote:
btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask
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.
Offline
jvvg wrote:
XenoK wrote:
Zeusking19 wrote:
Awesome
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 )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.
Yeah, I know just basic php, at the moment, that would be far too complicated for me to implement. I'll get there eventually
Offline
jvvg wrote:
XenoK wrote:
Zeusking19 wrote:
Awesome
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 )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.
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
Offline
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.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
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.
Offline
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.
Offline
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.
Offline
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.
Offline
jvvg wrote:
Zeusking19 wrote:
btw jvvg, thanks for signing up to EzyCollab, I made you a mod. If you would like admin, just ask
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..
Offline
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
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.
Offline
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:
<?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)
Offline
You put two consecutive apostrophes (single quotes) on line 16 after the description. Remove one \' from the end and try again!
Offline
I see the error. You are putting in an unnecessary parameter.
Replace
$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
$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)
Offline
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.
Offline
XenoK wrote:
the project viewing page amazes me...
Thanks.
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:
SELECT username FROM users WHERE username LIKE 'Xe%K'
and use a % as a wildcard.
Offline
jvvg wrote:
XenoK wrote:
the project viewing page amazes me...
Thanks.
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
Offline