So what I've done is taken Panther's ( get content from url ) block and I've coded some PHP to make a forum in Panther. Currently the length of a post being made in Panther is very small. Just a few words work.
The original topic: http://panther-forum.4815094.n2.nabble. … 69996.html
So basically the project is here: http://scratchnetwork.zxq.net/SNForum1.2.pt.zip
Press the green flag, it should ask you to login or create a user:
Login or Create User? ( LI or CU ): LI Username: guest Password: guest
For 'simplicity' I set up the forum so it shows the topic/post ID next to everything. The ID is very important for this forum:
VT = View Topic PT = Post in Topic LT = List Topics What would you like to do?: LT 0 Announcements - Posts: 2 2 Chat - Posts: 8 3 Support - Posts: 0 4 Suggestions - Posts: 0 What would you like to do?: VT View Topic ID?: 0 Topic Name: Announcements 0 0 Magnie says: Set up the 'forum'! 15 Magnie says: Got the LT ( List Topics ) command to show how many posts are in each topic.
The way I've set it up, it isn't the most user-friendly, but hopefully I'll be able to do that later. ( I've got a customized one that is much more user-friendly
)
If you have any questions, I'm willing to answer the best I can.
Last edited by Magnie (2011-04-23 14:56:38)
Offline
What does the .pt file open with?
Offline
.pt opens in Panther.
http://pantherprogramming.weebly.com/
Last edited by Magnie (2011-04-16 19:04:29)
Offline
Magnie wrote:
.pt opens in Panther.
http://pantherprogramming.weebly.com/
OH! LOL! I never noticed that! Thanks.
Offline
This is a really cool idea. Except, whenever I try to post it says "Failed to post"
Offline
ugog10 wrote:
Where do you download panther from?????????
From the Panther website
http://www.pantherprogramming.weebly.com
Offline
ScratchReallyROCKS wrote:
This is a really cool idea. Except, whenever I try to post it says "Failed to post"
![]()
I would assume the reason is because the username/password are incorrect. The code restrictions for posting are:
($r0['user'] == $user && $r0['pass'] == $pass)
So unless you are trying to create a topic ( CT = Create Topic ) only people with the 'Owner' rank can create topics. ( I don't want the place to be spammed with topics when you type LT )
Offline
Magnie wrote:
ScratchReallyROCKS wrote:
This is a really cool idea. Except, whenever I try to post it says "Failed to post"
![]()
I would assume the reason is because the username/password are incorrect. The code restrictions for posting are:
Code:
($r0['user'] == $user && $r0['pass'] == $pass)So unless you are trying to create a topic ( CT = Create Topic ) only people with the 'Owner' rank can create topics. ( I don't want the place to be spammed with topics when you type LT )
Yeah, I forgot my password for ScratchReallyROCKS on it, so I jet made a new account called SRR
Offline
ScratchReallyROCKS wrote:
Magnie wrote:
ScratchReallyROCKS wrote:
This is a really cool idea. Except, whenever I try to post it says "Failed to post"
![]()
I would assume the reason is because the username/password are incorrect. The code restrictions for posting are:
Code:
($r0['user'] == $user && $r0['pass'] == $pass)So unless you are trying to create a topic ( CT = Create Topic ) only people with the 'Owner' rank can create topics. ( I don't want the place to be spammed with topics when you type LT )
Yeah, I forgot my password for ScratchReallyROCKS on it, so I jet made a new account called SRR
![]()
I believe you meant *just
Offline
ssss wrote:
ScratchReallyROCKS wrote:
Magnie wrote:
I would assume the reason is because the username/password are incorrect. The code restrictions for posting are:Code:
($r0['user'] == $user && $r0['pass'] == $pass)So unless you are trying to create a topic ( CT = Create Topic ) only people with the 'Owner' rank can create topics. ( I don't want the place to be spammed with topics when you type LT )
Yeah, I forgot my password for ScratchReallyROCKS on it, so I jet made a new account called SRR
![]()
I believe you meant *just
Stupid iPod spellcheck.
Offline
ScratchReallyROCKS wrote:
ssss wrote:
ScratchReallyROCKS wrote:
Yeah, I forgot my password for ScratchReallyROCKS on it, so I jet made a new account called SRR![]()
I believe you meant *just
Stupid iPod spellcheck.
![]()
Fail much?
Offline
This is soooooooooo cool! But you should change it so you can use a single statement (like "VT 4") instead of typing "vt" then hitting enter and typing "4". Also, I can't make a new topic. Or better yet, just make it "v", "c", "p", and "l"...the "t" is redundant.
Also, you really should be SHA-1 or md5-encrypting your passwords. Just saying.

Offline
fullmoon wrote:
This is soooooooooo cool! But you should change it so you can use a single statement (like "VT 4") instead of typing "vt" then hitting enter and typing "4". Also, I can't make a new topic. Or better yet, just make it "v", "c", "p", and "l"...the "t" is redundant.
Also, you really should be SHA-1 or md5-encrypting your passwords. Just saying.![]()
they're already MD5'd, I believe
It is pretty cool!
Offline
sparks wrote:
fullmoon wrote:
This is soooooooooo cool! But you should change it so you can use a single statement (like "VT 4") instead of typing "vt" then hitting enter and typing "4". Also, I can't make a new topic. Or better yet, just make it "v", "c", "p", and "l"...the "t" is redundant.
Also, you really should be SHA-1 or md5-encrypting your passwords. Just saying.![]()
they're already MD5'd, I believe
It is pretty cool!
My bad. I was just looking at this line:
($r0['user'] == $user && $r0['pass'] == $pass)
Someone needs to show the Scratch team this as an example of why we need a Scratch 2.0 with HTTP GET and POST.

Offline
fullmoon wrote:
This is soooooooooo cool! But you should change it so you can use a single statement (like "VT 4") instead of typing "vt" then hitting enter and typing "4". Also, I can't make a new topic. Or better yet, just make it "v", "c", "p", and "l"...the "t" is redundant.
Also, you really should be SHA-1 or md5-encrypting your passwords. Just saying.![]()
Yes, I was thinking of that as well, though I've forgotten how to do that in an "un-messy" way ( check every letter until it hits a space, cleaning out extra stuff, etc.
) though I'll try to add that in the "Next version of the viewer"
Yes, the passwords are MD5
I add extra text to the beginning and end for extra security against those "MD5 Decrypters"
Though I am thinking of using SHA-1 for more security. The full code for posting a message is:
<?php
$con = mysql_connect('localhost','username','password');
mysql_select_db("database", $con);
$tid = $_GET['tid'];
$text = $_GET['txt'];
$user = $_GET['u'];
$pass = $_GET['p'];
$pass = md5('some text here'.$pass);
$r0 = mysql_query("SELECT * FROM sn_users
WHERE user='$user'");
$r0 = mysql_fetch_array($r0);
if ($r0['user'] == $user && $r0['pass'] == $pass) {
$r1 = mysql_query("SELECT *
FROM `sn_posts`
WHERE pid = (
SELECT MAX( pid )
FROM `sn_posts` )");
$t1 = mysql_fetch_array($r1);
$pid = $t1['pid'] + 1;
$add_post = mysql_query("INSERT INTO sn_posts (`author`,`text`,`tid`,`pid`)
VALUES ('$user', '$text', '$tid', '$pid')");
echo 'Succesfully posted, now please revisit the topic to see the post.';
}
else { echo 'Failed to post.'; }
?>Yes, I know my coding is messy
Once Scratch gets HTTP POST and GET then I won't have to use Panther for this project. No offense towards Panther and it's team.
Apparently I should use MySQLi instead of MySQL, so for the 'next version' I'll fix up my coding for MySQLi. I'm also open to any suggestions.
Offline
Well, a new, small update, I've implemented Fullmoon's request for putting commands on a single line "VT 2" etc.
And the interface is a little better, not messy basically.
http://scratchnetwork.zxq.net/SNForum1.2.pt.zip
Though I admit, this post was more of a bump than an update. But still, go try out the project.
Last edited by Magnie (2011-04-23 14:58:36)
Offline
If you made the id fields in the database "auto_increment", you wouldn't have to manually increment the id all the time.
Offline
I guess that is true, oh well.
Offline