Jump to content

[SOLVED] RuneScape Stat Signature Maker


LemonInflux

Recommended Posts

  • Replies 79
  • Created
  • Last Reply

Are you passing it through with the URL? Another possible method to cover both is to use

 

 

You should also do urlencode on this before passing it to the runescape website.

 

$username = $_REQUEST['username'];
$username = urlencode(strtolower(str_replace(' ', '_', $username)));

 

 

 

 

bbc works, but if I try to use that url, this appears:

Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

 

The error returned was:

 

You are not allowed to use that image extension on this board. A valid format is: http://www.domain.com/picture.gif, an invalid format is: http://www.domain.com/picture.one.gif

. HTML works, but only for admin, so lesser members wouldn't be able to use it :\

in the admin control can you specify what html is allowed? or allow certain html for normal users?

 

If you want to save it as a png it wouldn't update. Each time a users stats changed they would have to go back to the .php file a re-enter their username to get the image. It would then have to be saved on your server for people to use.

Just found this..

style2,mysql.png

The bbcode is this:

[img=http://www.sloganizer.net/en/style2,mysql.png]

 

I'm not quite sure how it works though. I'm sure it's parsing through a php page. It might be using htaccess to redirect incoming .png to a .php file to create the image.

do you know how to create a .htaccess file?

 

If you've got one just put this code in it:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^rune,([a-z0-9]+).png$ output.php?username=$1 [L]

please note that I haven't tested this code!!!

also place the .htaccess file in the php/ directory.

 

then have your image as this:

[img=http://boddingtonparish.co.uk/php/rune,zezima.png]

 

I'km not sure if it'll work, but give it a try

slight change in htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^rune,([a-z0-9]+).png$ php/output.php?username=$1 [L]

 

if you get the htaccess working it'll be easier to remember the code and look slightly better...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.