Internet/Web/Tech Question... IT Gurus Please help!

Dana Gallagher

Name was Missygail
Joined
Jun 8, 2003
Posts
3,887
I'm sorry I keep coming here when I have a computer/internet related question. It's just that ya'll have always come through for me and usually in a more timely manner than say a yahoo group or something. So, I'm here, not with a sexual related question, but with a html question.

Say I'm on myspace and I'm trying to give people advice on how to update their profiles. I want to give these people html scripting code to put in their profiles. How do I give them text say in their myspace email or on my myspace blog, without having the script activate. I want it to appear as just text that they can copy and paste.

How do I do this? I've seen it where say someone has a banner to the blog and underneath is a scroller box in which has the html to post this banner up on your page. How is this done???

Any help you can give would be greatly appreciated!!

Thanks so much, Missygail
 
um...you're in OK, and it's the middle of the night. i'm sure someone will be along in a few hours who's both awake and has the right information.

i'm just awake so i'm afraid i can't really help you. :>

ed
 
silverwhisper said:
um...you're in OK, and it's the middle of the night. i'm sure someone will be along in a few hours who's both awake and has the right information.

i'm just awake so i'm afraid i can't really help you. :>

ed

Thanks, yeah I know. I'm just fairly impatient. I probably couldn't make much sense of it right now anyways since I haven't been to bed yet.
 
You can write the html code and put the code in any of the spots in "Edit my Profile" page. Once the page is run (displayed in the browser) any scripts pasted into those available boxes will run.
 
If you want people to be able to see the code so they can copy it, there is always the cheating way of simply putting a . after in the middle of the code. So it would be like <.html> <./html> or use a space, and just leave a note saying to remove the spaces or period. What you are asking about, where they can see the code in a scroller box is another html code. Try www.dynamicdrive.com for the box function.
 
missygail said:
Say I'm on myspace and I'm trying to give people advice on how to update their profiles. I want to give these people html scripting code to put in their profiles. How do I give them text say in their myspace email or on my myspace blog, without having the script activate. I want it to appear as just text that they can copy and paste.

How do I do this? I've seen it where say someone has a banner to the blog and underneath is a scroller box in which has the html to post this banner up on your page. How is this done???

As you seem to know, html is comprised of tags that begin with < signs and end with > signs. So how do you write tags like <blink>Blink is bad<blink> without the browser interpreting them and leaving them for the end user to see? You need to know the code to get the browser to display < and > characters. Those are < and >. Try that replacement, (so for the above example, it would be <blink>Blink is bad<blink>) and it should work.
 
SkateBoardDude said:
You can write the html code and put the code in any of the spots in "Edit my Profile" page. Once the page is run (displayed in the browser) any scripts pasted into those available boxes will run.

I know this. I don't want the scripts to run. I want the average user to come by and be able to copy and paste the code. So, they can take it and put it on their edit profile and have it show up.
 
Ravin the Poet said:
If you want people to be able to see the code so they can copy it, there is always the cheating way of simply putting a . after in the middle of the code. So it would be like <.html> <./html> or use a space, and just leave a note saying to remove the spaces or period. What you are asking about, where they can see the code in a scroller box is another html code. Try www.dynamicdrive.com for the box function.

I'll check out the link thanks. I don't want to put the extra space or . there, because the very newbie user isn't going to understand or want to take out all the spaces or dots.
 
bighornedsatyr said:
As you seem to know, html is comprised of tags that begin with < signs and end with > signs. So how do you write tags like <blink>Blink is bad<blink> without the browser interpreting them and leaving them for the end user to see? You need to know the code to get the browser to display < and > characters. Those are < and >. Try that replacement, (so for the above example, it would be <blink>Blink is bad<blink>) and it should work.

Okay I will try that. Thank you!
 
bighornedsatyr said:
As you seem to know, html is comprised of tags that begin with < signs and end with > signs. So how do you write tags like <blink>Blink is bad<blink> without the browser interpreting them and leaving them for the end user to see? You need to know the code to get the browser to display < and > characters. Those are < and >. Try that replacement, (so for the above example, it would be <blink>Blink is bad<blink>) and it should work.

that was just what I needed. though the one lovely thing is when I put it in an html editor to check my work. I have to go back and re-paste cause the editor loves to replace the < with <. But it's not a big deal. It works and that's what i wanted.
 
Sometimes you can use the text <code></code> instead of the <html></html> in the page as you are trying to do.

And this will allow your code to display without it running on the page.
 
Going nuts!!

Ezzy said:
Sometimes you can use the text <code></code> instead of the <html></html> in the page as you are trying to do.

And this will allow your code to display without it running on the page.

Okay, so myspace is pissing me off. What else is new.

Here's the myspace profile I'm working on.

http://www.myspace.com/profile_help_1978

I'm a total geek, I can build the profile, but how in the hell do I give the script to people that what the profile???????

Replacing <> with < and > didn't work because damn myspace just replaced those codes with the brackets and thus making the script active.

And <code></code> didn't work either. Should I try both??? I don't know.

I tried to make an html file with all the script.

http://star.walagata.com/w/missygail/star_trek_code.html

That worked, but I can put it in my scroller box. <iframes></iframes> doesn't work anymore. I don't know how to do <object></object> and <embed></embed> just fucks every thing all up.

Here's supposed to be the very intelligent blog to show how you too can have this code. Instead I look like a complete moron because the box at the bottom is totally empty. I'm an idiot, this is a fact.

http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=219007937&blogID=292433172
 
what about swapping out < > with [ ] and telling people who copy & paste the code to paste it into their word processor of choice and do a search & replace?

i know, i know, it's a kludge. but still faster than creating a compressed archive, no?

ed
 
I found this.

Displaying HTML code within an HTML document can be confusing. The XML tag makes it easy.

The XML tag tells the browser not to render any further tags until it sees the /XML tag.

For example...
<XML>
<a href = "http://www.tech-recipes.com">Tech-Recipes</a>
</XML>



will display...
<a href = "http://www.tech-recipes.com">Tech-Recipes</a>

You could also try this site although may just do what you have already done.

http://www.uccs.edu/~cbrewer/tools/translate_entities.html
 
Last edited:
silverwhisper said:
what about swapping out < > with [ ] and telling people who copy & paste the code to paste it into their word processor of choice and do a search & replace?

i know, i know, it's a kludge. but still faster than creating a compressed archive, no?

ed


Creating a compressed archive? You mean the html page, that was the easy part in this whole messed up thing. There's so many chances for mess ups when you give of the script to the novice user and say "here change this". Then when they mess it up, unless they give me their username and password (which they won't) I'm gonna have a hell of a time figuring out what they did wrong.
 
Try <XMP>insert code/script whatever</XMP>.
You may need to fool around with your formatting to stop it showing as a single line but it seems to work.
 
missygail said:
I'll check out the link thanks. I don't want to put the extra space or . there, because the very newbie user isn't going to understand or want to take out all the spaces or dots.


Actually you'd be surprised. Hence why I said put a note in. It takes a second to do and is the easy. Newbies won't have an issue as long as you leave the note.
 
I just went for a stroll around MySpace for you.

It looks like you can use <textarea></textarea> around the code you want to show as code, and then tell folks to select the whole thing, but to delete the <textarea></textarea> TAGS.

You will need to define the height in rows and the width in columns.

If that works, then hurrah! :)
 
Last edited:
Ezzy said:
I just went for a stroll around MySpace for you.

It looks like you can use <textarea></textarea> around the code you want to show as code, and then tell folks to select the whole thing, but to delete the <textarea></textarea> TAGS.

You will need to define the height in rows and the width in columns.

If that works, then hurrah! :)

YES! Someone in another forum told me the same thing. The Text area did work and it doesn't show the actual <textarea>, so they don't have to delete it..

Yes it did work, thank you, thank you!

I knew it was going to be one of those very simple things that would make me feel stupid.... Thanks to everyone.

How do you define height in rows and width in columns??

Again, thank you, thank you!! :nana:
 
Ezzy said:
Sometimes you can use the text <code></code> instead of the <html></html> in the page as you are trying to do.

And this will allow your code to display without it running on the page.
If memory serves, the <pre> and </pre> tags were intended for "preformatted text" Which means any thing between those tags should not be "parsed"

Don't know if it will work on myspace though, I don't come there.
 
cryforhelp said:
If memory serves, the <pre> and </pre> tags were intended for "preformatted text" Which means any thing between those tags should not be "parsed"

Don't know if it will work on myspace though, I don't come there.
Um, I'm now in web programming class, so I'm learning a bit more.

The preformatted text will just be monospaced text and a block font... but I think it could still end up activiting.
 
Last edited:
Back
Top