Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 01-26-2009, 04:04 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,778
BMR777 is on a distinguished road
Default RE: Terms of Service Violation

Post the code surrounding the edit as well so I can take a look. It's possible that somehow a quote or something is missing and that is causing the error.
Reply With Quote
  #12  
Old 01-27-2009, 10:28 AM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,988
agnyz
Default RE: Terms of Service Violation

$article_title = "Codes for ".$name."";
$article_date = date('Y-m-d');
$article_content = "You can use the codes below to show off your adoptable and get others to level them up. If you have a website, use the HTML code to put your creature on your website. If you want to link to your creature in forums, use the BBCODE.<br><br>";
$article_content = $article_content."<b>HTML:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\"><img src="http://www.".$dname."".$spath."/get/".$id.".jpg\"><br>Creature Name: ".$name."<br>
<a href=\"http://www.".$dname."".$spath."/levelup.php?id=".$cid."\">Level this creature up! Click Here!</a><br></textarea>";

$article_content = $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">
Creature Name: ".$name."
Level this creature up! Click Here!</textarea><br>";

}

the script works fine until I add this <img src="http://www.".$dname."".$spath."/get/".$id.".jpg\">

as soon as i switch this I get the error message
Reply With Quote
  #13  
Old 01-27-2009, 04:47 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,778
BMR777 is on a distinguished road
Default RE: Terms of Service Violation

Here's the issue:

PHP Code:
<img src="http://www.".$dname."".$spath."/get/".$id.".jpg\"> 
is wrong. Told you you forgot something. :)

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. :)
Reply With Quote
  #14  
Old 01-27-2009, 09:17 PM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,988
agnyz
Default RE: Terms of Service Violation

Quote:
Originally Posted by BMR777
Here's the issue:

PHP Code:
<img src="http://www.".$dname."".$spath."/get/".$id.".jpg\"> 
is wrong. Told you you forgot something. :)

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. :)
thanks for clearing that up, it works great of course.

I knew I couldn't have forgotten anything because I copy and pasted.

Thanks for the support you give.

Have to say out of all the support sites I have used this one is the best.[hr]
small problem with this fix.

it works fine on the manage.php but on the adopt.php once they have adopted a pet and get the code the link shows up without the user id number. it just shows up as adoptables/get/.jpg">
Reply With Quote
  #15  
Old 01-28-2009, 04:34 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,778
BMR777 is on a distinguished road
Default RE: Terms of Service Violation

On the code you use for adopt.php use $cid instead of $id and that should work. :)

Brandon
Reply With Quote
  #16  
Old 01-28-2009, 10:08 PM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,988
agnyz
Default RE: Terms of Service Violation

worked like a charm!

thanks again.
Reply With Quote
  #17  
Old 01-31-2009, 09:30 AM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,988
agnyz
Default RE: Terms of Service Violation

Hiya people.

Just wanted to give anyone using this change to the .htaccess file to make the adoptable program work on Myspace a warning in case you run into what i did last night.

We are working on a new game for our site and we bought four domain names for the game. We have the game on a sub-domain on the agnyz site, no reason to pay for more hosting when it isn't needed.

Last might I was using our hosting control panel to redirect the new domain names to the sub-domain were the game is located.

Then we lost the whole site. There were internal 500 errors for everything we ran off the site.

It took us about 10 minutes to figure out that the control panel added commands to the .htaccess file and the adotable code we added to it was confusing things and knocking the whole site off line.

It was easy to fix and now the new names and the adoptable programs are working.

Anyway, just wanted to give you guys a warning that if you have made the changes in the .htaccess to make this work on myspace and you use your hosting control panel to make global changes you might run into the same thing.

Perhaps this post will help you find the problem quickly if it does.
Reply With Quote
  #18  
Old 02-03-2009, 02:24 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,618
Seapyramid
Default RE: Terms of Service Violation

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
Reply With Quote
  #19  
Old 02-03-2009, 03:42 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,778
BMR777 is on a distinguished road
Default RE: Terms of Service Violation

Quote:
Originally Posted by Seapyramid
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
Reply With Quote
  #20  
Old 02-03-2009, 08:16 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,618
Seapyramid
Default RE: Terms of Service Violation

Quote:
Originally Posted by BMR777
Quote:
Originally Posted by Seapyramid
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
Ok.. confused I guess:) This is what happens with blondes. I had changed the /pets/ to the path that my images were stored. What path should it be going to.. the adoptables script as a whole was installed in my root.

Thanks,
Sea
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysidia's free hosting service Hall of Famer Mysidia Adoptables Official Announcement 12 06-15-2020 04:13 PM
Admin of Nirainia.com at your service. Mortain Newcomer Center 3 11-18-2015 12:39 AM
Name for my web design service? tahbikat Webmasters Area 7 04-05-2014 02:08 AM
Does Anyone Know A Cheap Domain Service? MaximumRide Staff Central 4 05-22-2012 08:23 PM
Email service patronm Other Chat 6 12-23-2008 03:34 PM


All times are GMT -5. The time now is 07:18 AM.

Currently Active Users: 9666 (0 members and 9666 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636