Cool PHP Sparks, you have the code?
Offline
johnnydean1 wrote:
Cool PHP Sparks, you have the code?
code for what? if you mean a counter, that's easy. just set the php page to count how often it is visited, (just read the page with the URL block to "Visit" it) and that will accurately count uses as long as no one visits the actual page
Offline
Ok but whats the actual PHP counter code?
Offline
johnnydean1 wrote:
Ok but whats the actual PHP counter code?
I'm the designated PHP-er in the group, so my suggestion would be using an SQL database, then retrieving the value and adding one, then replacing the previous value with that value. If you mean actual code something like this:
<?php /* This script accepts the GET argument "id" in order to select a certain record from the database. */ if (!isset($_GET["id"])) { echo "error"; die(); } // configuration $mysql_host = "host"; //host $mysql_database = "database"; //database name $mysql_table = "table"; //table name $mysql_user = "username"; //username $mysql_password = "password"; //password $mysql_col = "column"; //column name for get/set $con = mysql_connect($mysql_host, $mysql_user, $mysql_password); if (!$con) { echo "error"; die(); } mysql_select_db($mysql_database, $con); $q = mysql_query("SELECT * FROM `$mysql_database`.`$mysql_table` LIMIT " . $_GET["id"] . ", 1"); $row = mysql_fetch_array($q); $i = $row[$mysql_col]; $i++; $q = mysql_query("UPDATE `$mysql_database`.`$mysql_table` SET `$mysql_table`.`$mysql_col`=$i LIMIT " . $_GET["id"] . ", 1"); ?>
Last edited by nXIII (2010-06-16 11:20:31)
Offline
Ok. Ive nearly finished the Time Trail Mario Kart Game bit
Offline
Idea for block
I need this:
(Paste)
It does the same as CTRL-V and pastes the text
Offline
johnnydean1 wrote:
Idea for block
I need this:
(Paste)
It does the same as CTRL-V and pastes the text
What would it paste into?
Offline
it would be a reporter so it would report what it had to paste.
Offline
What's the latest version of Panther? I have 1.0.
Offline
Jonathanpb wrote:
What's the latest version of Panther? I have 1.0.
Still just 1.0
Offline
ScratchReallyROCKS wrote:
Jonathanpb wrote:
What's the latest version of Panther? I have 1.0.
Still just 1.0
Ah, okay.
Will Panther 1.1 be coming out soon? Just wondering... ^_^
Offline
When blockshop and NXIII's features are done (open Panther)
Offline
johnnydean1 wrote:
When blockshop and NXIII's features are done (open Panther)
Whats the point in an open panther block?
Offline
johnnydean1 wrote:
When blockshop and NXIII's features are done (open Panther)
The only point of an [open Panther] block would be to open Panther. But it would only work if Panther was not opened. And if Panther was not opened, then you wouldn't be able to use it. AND if you use it during Panther, Panther will already be open, so there is no point.
Offline
henley wrote:
johnnydean1 wrote:
When blockshop and NXIII's features are done (open Panther)
The only point of an [open Panther] block would be to open Panther. But it would only work if Panther was not opened. And if Panther was not opened, then you wouldn't be able to use it. AND if you use it during Panther, Panther will already be open, so there is no point.
nooo! you both misunderstood him. I think he is saying (in brackets) that he can see that 1.1 will be released when blockshop and nXIII's features are done when he opens Panther as the Panther news has that stuff in it!
Offline
sparks wrote:
henley wrote:
johnnydean1 wrote:
When blockshop and NXIII's features are done (open Panther)
The only point of an [open Panther] block would be to open Panther. But it would only work if Panther was not opened. And if Panther was not opened, then you wouldn't be able to use it. AND if you use it during Panther, Panther will already be open, so there is no point.
nooo! you both misunderstood him. I think he is saying (in brackets) that he can see that 1.1 will be released when blockshop and nXIII's features are done when he opens Panther as the Panther news has that stuff in it!
Oooooooooooooooooooooooooooooooooooooh! That makes more sense...
Offline
Will you be adding the download costume from URL officaly or in the blockshop?
Offline
^ oh and I have made DLC for my Mario Kart game using it!
Offline
johnnydean1 wrote:
Will you be adding the download costume from URL officaly or in the blockshop?
It won't be necessary because urls ending in "png," "gif," or "jpeg" (and any other image files) will automatically return an image.
Offline
If possible, could you make Panther not display the news unless it has changed? Or if someone sets it to always/never show.
Also do you have an idea when 1.1 will come out?
Last edited by climber59 (2010-06-18 14:12:17)
Offline
That was the original idea with the news when I came up with the concept. However, our problem was that to remember what the last news was, the image would have to save itself all the time to remember. The current unfinished 1.1 has a "Show news" popup which I feel still isn't the best solution. It's certainly in our intrest to only make it show when a new one comes out, otherwise people won't read it anymore and one solution I can think of is having a file included with 1.1 that Panther can read and write to as that would allow it to keep track without saving itself.
As for the release, that's still unclear, nXIII might be able to give a better estimate than me on that one.
Offline