A little help please (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


ajsonnick426 -> A little help please (10/24/2006 16:30:57)

OK.. so u know on myspace how u can copy and past a URL into their comment boxes and the URl (TAG)turns into a picture (example; u copy the url(tag) that photobucket gives u)

WELL, i need help on doing that.. on my comment page on my website when i paste a URL(tag) (that photobucket says it can be used for websites) it stays as a worded URl and doesnt change into a picture..


i need a comment box that when someone comments wants to put a pic on there the pic will come through and not stay as a URL..

HELP




jaybee -> RE: A little help please (10/24/2006 17:13:24)

Use Insert>Hyperlink and then paste the URL into the address line (CTRL + V)

Warning, this is known as hotlinking. In the case of photobucket you are OK but don't try it elsewhere unless the picture belongs to you. If it's not yours then unless you have permission you are guilty of bandwidth theft.

Some sites block hotlinking and others...... well let's just say the hotlinker gets more than they bargained for. [;)]




ajsonnick426 -> RE: A little help please (10/24/2006 17:26:36)

hey thanx but it doesnt work.. i think u r misunderstanding my problem

On my website when ppl r viewing i have a text box.. if someone wants to post a pic with a TAG from photobucket it stays as a tag and does not change into a picture as it should..




errant -> RE: A little help please (10/25/2006 1:34:49)

THis is not as easy an answer as you think! Im assuming you mean that you want the link to be converted to an image when you click 'send' or 'save' (or whatever) so that when what has been submitted is displayed on the page it appears as an image?

If thats the case the solution really depends on what scripts your using. The simplest way would be to copy the full html <img tag from photobucket (the second box down on the photobucket page - the one that starts <a href="...) because then that will display as an image when it appears on the page.

If you want to use another method it becomes more complicated. You can send the form data to a PHP script that adds the html automatically. In this case you should be using the [IMG]image url[/IMG] tag photobucket provide so the PHP script can see it is an image. Heres and example of how to do it:

(it assumes you called the textbox 'mydata')

// Get the posted form data from the text box as a variable
$text_data = $_POST['mydata'];
// Replace the first [img] tag with html
$text_data = string_replace('[IMG]', '<img src="', $text_data);
// Now we need to add a little more html at the end to replace [/IMG]
$text_data = string_replace('[/IMG]', '" />', $text_data);
// Display the modified output
echo $text_data;

Ok so if your not using PHP then the javascript method is an option - but more complcated (IMO). Plus I cant do it in JS so if thats what you want someone else will have to help!!

On the other hand if - when you paste the URL into the text boxyou want the image to automatically appear right then IN the text box then your in for some serious Javascript fun! Its not easy......






ajsonnick426 -> RE: A little help please (10/25/2006 7:13:54)

thats what im doing.. im copying the tag and hitting submit.. but it stays as a tag and doesnt turn into a picture




ajsonnick426 -> RE: A little help please (10/25/2006 7:29:23)

i dont want it to change into a image right in the text box.. i just want that when u hit submit it goes into a picture




ajsonnick426 -> RE: A little help please (10/25/2006 7:48:38)

ok.. let me CLEAR things up - I just need a text box that accepts HTML... for example; in myspace in their about me, and stuff and comments whenever u put in an HTML and hit submit it will go into HTML.. thats what i want!

I need this because just for family and friends im creating a thing called YourPlace... its gonna be my own version of myspace..... but i know there are certain things i can and cannot do because of copyrights...


So all i need is a Text box or a way to figure out how to get a text box to accept HTML and turn HTML into what it has to turn it into

THANX




errant -> RE: A little help please (10/25/2006 8:25:32)

It sounds like you need specific help with the exact code rather than general advice :D :D

So are you using some form of pre-built script (like blog software etc.) to do this or have you written the code yourself?

If so what is the software? Or what is your code based on (PHP or Html / JavaScript)?

Post as much info as possible and I should be able to help you out more specifically :) Currently I'm 'flying' blind!




rdouglass -> RE: A little help please (10/25/2006 9:28:13)

Do you have a URL of what you have right now? That might help a lot of us.

Are you using a database to store the text input, or text files, or what?




ajsonnick426 -> RE: A little help please (10/25/2006 20:49:40)

ok.. this is the URL http://www.AjSonnick.com/yourplace_user_aj.htm and then click on Edit Profile..
The that text box (after clicking edit pro) is the TEXT box i need help with!

When u publish something from that box it goes to the page http://www.AjSonnick.com/yourplace_user_aj.htm like it should! but it doesnt go for example into the picture.. like if i submit a PIC using the TAG from photobucket it doesnt work

-As u know this is part of the thing i was trying to CREATe.. im trying to create a myspace type of thing for family and friends!




ajsonnick426 -> RE: A little help please (10/25/2006 20:50:28)

just wanted to say that i am running WIN XP and use Microsoft Front Page 2003




ajsonnick426 -> RE: A little help please (10/25/2006 20:51:31)

read my recent reply to the other person.. it may answer ur questions




ajsonnick426 -> RE: A little help please (10/29/2006 20:55:02)

Ok.. i posted the URl




jaybee -> RE: A little help please (10/30/2006 3:17:54)

quote:

<textarea id="ctl00_Main_postComment_commentTextBox"
The clue is in the name

Text area. It holds text.




ajsonnick426 -> RE: A little help please (10/30/2006 7:15:41)

ohh ok... how do i change that to what i want it to do




ajsonnick426 -> RE: A little help please (10/31/2006 20:04:30)

ok.. how do i get a text box that does what i expect of it ?(to accept HTML TAGS from photobucket and actually change it into a pic like all other text boxes do !)




ajsonnick426 -> RE: A little help please (11/7/2006 17:25:46)

jay bee put this <textarea id="ctl00_Main_postComment_commentTextBox" and i dont know who to change it to Turn an HTML TAG that when it is put into the text box it will actually turn it into the TAG from photobucket like the myspace text boxes..!! HELP!!!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
7.910156E-02