LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 Wait, I feel less stupid! It didn't work Changed it back for the moment Quote Link to comment Share on other sites More sharing options...
ReDucTor Posted August 28, 2007 Share Posted August 28, 2007 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)));     Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 http://boddingtonparish.co.uk/php/processout.php - at the moment, that's all it is. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 That system worked, but I haven't got an individual output thread, it's still just output.php Quote Link to comment Share on other sites More sharing options...
ReDucTor Posted August 28, 2007 Share Posted August 28, 2007 change  <form action="output.php" method="post"> to <form action="output.php" method="get">  This will make it easier to copy the get variable. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 *smacks forehead* sorry, my fault, I should have known that. OK, it works. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 Now how do I make it output a .png so it'll work on forums? Quote Link to comment Share on other sites More sharing options...
ReDucTor Posted August 28, 2007 Share Posted August 28, 2007 [img=http://boddingtonparish.co.uk/php/output.php?username=zezima] Â Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 that works here, but not on my other board. Â Invisionfree is fail :/ (I didn't pick it) Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 can you use bbc code in your forum? or if you can is it slightly different to on this forum? Â Or try using html: <img src="http://boddingtonparish.co.uk/php/output.php?username=zezima" border="0" alt="runescape stats" /> Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 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 :\ Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 looks like the board doesn't let you use .php images... Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 yeah. but surely there's a way of outputting it as a .png and saving it somewhere on the site? Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 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. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 that's odd. because I've seen several sites that give a .png, and they update. Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 Just found this.. 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. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 things like rsbandb.com offer this kind of thing but in .png. I'm quite sure it is .htaccess, but I have no idea about how to use it. so meh :\ Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 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 Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 I know how to make them, just not how to use them for anymore than viewing permissions that I used in databases and stuff * I'll try it out. Â *Note: my databases are flatter than a training bra. PHP FTW. Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 Nope, didn't work Quote Link to comment Share on other sites More sharing options...
ReDucTor Posted August 28, 2007 Share Posted August 28, 2007 [img=http://boddingtonparish.co.uk/php/output.php?username=zezima&fakeparm=.gif] Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 IT WORKED! Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 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... Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 28, 2007 Author Share Posted August 28, 2007 So what url would that be? Quote Link to comment Share on other sites More sharing options...
Dragen Posted August 28, 2007 Share Posted August 28, 2007 should work with this: [img=http://boddingtonparish.co.uk/php/rune,zezima.png] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.