Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Terms of Service Violation (http://www.mysidiaadoptables.com/forum/showthread.php?t=311)

livingingc 01-24-2009 06:18 PM

Terms of Service Violation
 
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?

BMR777 01-24-2009 06:34 PM

RE: Terms of Service Violation
 
Quote:

Originally Posted by livingingc
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

livingingc 01-24-2009 07:15 PM

RE: Terms of Service Violation
 
ohh k. what do i change the code to? whats the new url? im also donating 10
Quote:

Originally Posted by BMR777
Quote:

Originally Posted by livingingc
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

[hr]
i figured it out, i forgot to change the path at the rewriterule part at the bottom. Wow. imm glad thats fixed.

BMR777 01-24-2009 07:43 PM

RE: Terms of Service Violation
 
Ok, in the file manage.php find:

PHP Code:

<img src=\"http://www.".$dname."".$spath."/get.php?id=".$cid."\"> 

I think you will need to change to:

PHP Code:

<img src=\"http://www.".$dname."".$spath."/get/".$id.".gif\"> 

That is assuming you installed the .htaccess file correctly, then that should work. Also, change .gif to the extension of your image files if different.

Brandon

livingingc 01-24-2009 07:57 PM

RE: Terms of Service Violation
 
Alright, thanks. It works fine now.

BMR777 01-24-2009 07:58 PM

RE: Terms of Service Violation
 
Glad it is working. :)

If you have any other issues please let me know. :)

Brandon

livingingc 01-24-2009 08:03 PM

RE: Terms of Service Violation
 
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?

BMR777 01-24-2009 08:06 PM

RE: Terms of Service Violation
 
Quote:

Originally Posted by livingingc
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?

Johnathon is the lead developer on the next release as he has taken over the Adoptables Script development for me. He has made public a list of new features in this thread.

BMR777

agnyz 01-26-2009 11:31 AM

RE: Terms of Service Violation
 
i haven't got this mod to work yet, but don't have the time to work on it right now.

I did want to poing out that you will also want to change the script on the adopt.php or new people will be getting the old code when they first adopt.

agnyz 01-26-2009 01:35 PM

RE: Terms of Service Violation
 
in this part of the 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]

does the .gif$ need to be changed to .jpg$ if using jpgs?

I assume it does but you know what they say about assuming.[hr]
Ok I just don't get it.

This is a simple mod and should be easy to do but I just can't make it work.

I checked livingingc program and i can see it does work. Btw livingingc you do need to change the adopt.php page when i firts adopted it is giving me the old code.

when i add this <img src="http://www.".$dname."".$spath."/get/".$id.".jpg\">

I get this
Parse error: syntax error, unexpected T_STRING in /home/agnyz/public_html/pettest/manage.php on line 118

so i tested it using a copy of the script that i didn't alter any and i still get the same error message.

When I first installed this program I noticed the same thing with myspace and came up with the same mod back then but was getting that error message so I used a work around just to show a static logo image for the site on myspace.

When I seen this post I thought perhaps it was the .htaccess file that was making it not work, but that isn't the case.

The short of it is, when I apply this mod I get the above mentioned error message.

Could it be something with my hosting?[hr]
i should add that I am getting this error when I click on the link to get the codes for the html.


All times are GMT -5. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.