I was testing the pet output and its saying "Terms of service violation" on myspace. Apparantly, the code isnt allowed there. Is there a way around this?
livingingc said:I was testing the pet output and its saying "Terms of service violation" on myspace. Apparantly, the code isnt allowed there. Is there a way around this?
RewriteEngine On
RewriteBase /pets/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^pets/get/([0-9]+).gif$ /pets/get.php?id=$1 [L]
BMR777 said:livingingc said:I was testing the pet output and its saying "Terms of service violation" on myspace. Apparantly, the code isnt allowed there. Is there a way around this?
You could try adding the following code to a .htaccess file in your public_html folder (Change pets to the location of your installation):
Code:RewriteEngine On RewriteBase /pets/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^pets/get/([0-9]+).gif$ /pets/get.php?id=$1 [L]
Then you would have to edit the bbcode generator in manage.php so that the new URLs for the images are reflected. The code above will hopefully trick MySpace into seeing the dynamic images as static ones, thus hopefully solving the problem.
For more info see: http://www.arvyre.com/forum/viewtopic.php?f=6&t=238
Brandon
<img src=\"http://www.".$dname."".$spath."/get.php?id=".$cid."\">
<img src=\"http://www.".$dname."".$spath."/get/".$id.".gif\">
livingingc said:this new version sounds like its going to have alot of new things... it looks like im going to have to re-do all of the text changes ive done in the php scripts. but im excited to get the new features so its ok. do you have list of what to expect so far?
<img src="http://www.".$dname."".$spath."/get/".$id.".jpg\">
BMR777 said:Here's the issue:
is wrong. Told you you forgot something.PHP:<img src="http://www.".$dname."".$spath."/get/".$id.".jpg\">
Should be:
<img src=\"http://www.".$dname."".$spath."/get/".$id.".jpg\">
You forgot the backslash before the quote before http, and PHP didn't like that.
Try the above and see if it works.
EDIT: I see what happened. Stupid MyBB when I post using PHP tags on the code strips out the slash before the http and the quote in front. So, that's a bit odd then.
Seapyramid said:The change to the .htaccess file did just cause 500 errors on my site & it is a domain, not a myspace, not sure how to fix it so that this would be usable. Any ideas would be appreciated.
Thank you,
Sea
BMR777 said:Seapyramid said:The change to the .htaccess file did just cause 500 errors on my site & it is a domain, not a myspace, not sure how to fix it so that this would be usable. Any ideas would be appreciated.
Thank you,
Sea
That's odd that it would throw 500 errors. Did you change /pets/ to the path to the adoptables script?
Also, do you have other content in the .htaccess file that would possibly conflict with the code? If you have other content in the file, please paste the whole file's contents here.
Thanks,
BMR777