For Neopets ONLY discussion.
Topic locked

Pet Lookup Page question...

Thu May 19, 2011 6:55 am

Maybe someone here can answer this...

I was updating my pet page this evening - just adding a few items to the bottom. When I clicked the "Preview Changes" button, I get a "New Rule!" error:
TNT wrote:
Hang On! There's a new rule!

You can only embed src files that end in:

.jpg
.jpeg
.gif
.bmp
.png
.midi
.wav
.mp3
.mid

You cannot use any variation of the <src=somelink> tags to embed files that end in

-blocked- from this url: -blocked-

You may not have used the 'img src' tag, but this applies to all tags that have 'src' in it, such as 'background src'.


The offending line is:
Code:
<img src='#PHOTO' width="200" height="200" border="0">
or
<img src="#PHOTO" width="200" height="200" border="0">
neither one work

Which is actually a hold-over from the *original* default lookup...

Any ideas how I can use the #PHOTO now to get a current photo of my ever changing lab pet? They even tease you with its existence at the top of the "Edit your Neopet's Homepage" page o_O

Thanks,
Blue

Re: Pet Lookup Page question...

Fri May 20, 2011 12:47 am

I really don't have a clue. After they reformatted everything, I lost the cool background patterns on my petpages, which were part of the default. I'm too lazy to go back and try to recreate them. Perhaps if you saved what you had in a document (be sure to save!), then revert to the default, the new code might be there? Or try the *gasp* Neoboard for coding issues.

Re: Pet Lookup Page question...

Fri May 20, 2011 6:42 pm

Siniri wrote:After they reformatted everything, I lost the cool background patterns on my petpages, which were part of the default.

Code:
body {
   background: url("BG URL HERE");
}



Blue wrote:Any ideas how I can use the #PHOTO now to get a current photo of my ever changing lab pet? They even tease you with its existence at the top of the "Edit your Neopet's Homepage" page o_O

I know this isn't exactly what you're looking for, but this might do. Try this code.
Code:
http://pets.neopets.com/cpn/PETNAMEHERE/1/4.png

Re: Pet Lookup Page question...

Fri May 20, 2011 7:40 pm

domo_hello_kitty wrote:
Blue wrote:Any ideas how I can use the #PHOTO now to get a current photo of my ever changing lab pet? They even tease you with its existence at the top of the "Edit your Neopet's Homepage" page o_O

I know this isn't exactly what you're looking for, but this might do. Try this code.
Code:
http://pets.neopets.com/cpn/PETNAMEHERE/1/4.png

Great! That image will work well for now!

Thanks, domo_hello_kitty!

Re: Pet Lookup Page question...

Fri May 20, 2011 7:47 pm

Welcome! :)

Re: Pet Lookup Page question...

Fri May 20, 2011 11:36 pm

Thanks, DHK! The problem is, I don't know what the background URL is -- it was the default for Flotsam and Mynci, respectively. Even though I know I should copy and paste my look-ups (and save!), I'm too scared of messing up and losing them, so that even if I did that, I wouldn't risk going to the default (if it's even the same) to get that URL). Especially since it's such a subtle difference, really. But thanks, anyway!

Re: Pet Lookup Page question...

Sat May 21, 2011 9:17 pm

Flotsam: http://images.neopets.com/template_imag ... bkgrnd.gif

Mynci: http://images.neopets.com/template_images/mynci_bg.gif

Re: Pet Lookup Page question...

Thu May 26, 2011 2:43 am

Wow, you rock! Thanks!

Re: Pet Lookup Page question...

Fri May 27, 2011 1:21 am

No problem! Glad to help with any coding/image issues.

Re: Pet Lookup Page question...

Fri May 27, 2011 9:03 pm

Hmm, I tried adding it in a couple places, and it broke the code. Where would I stick that? I do have a number of "tables" on the petpages. There's only a little bit of code before the first table:

<div align="center">
<p>Welcome, #VISITOR! My name is #NAME, and I am a Flotsam.
</p>
<p>
</p>

Thanks again for your help.

Re: Pet Lookup Page question...

Fri May 27, 2011 10:02 pm

Put it in the very first part of your code. You need style tags, so it would look like this:
Code:
<style>
body {
   background: url("http://images.neopets.com/template_images/mynci_bg.gif");
}
</style>

The <style> tags are VERY important. Do not leave them out.
Topic locked