Jump to content

[SOLVED] RuneScape Stat Signature Maker


LemonInflux

Recommended Posts

  • Replies 79
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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)));

 

 

 

 

Link to comment
Share on other sites

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 :\
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • 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.