Forum Moderators: open
I'd like to give a user an option to copy the url that can be used in posting inside a forum.
(like the text box in photobucket where you can copy and paste the [url] tags of the image and paste it inside the forum)
please help.
thanks in advance.
First, you can count the number of characters in the word and force a space into any words that exceed that limit. You can do this in the DB output or in the logic. The type will still be clickable, but the url displayed will be in two pieces. Not good for copy/paste.
Second, you can define any overflow of the block emlement to be hidden. Your url will cut off but still be clickable. OK for copy/paste the text box should scroll.
Third you can redesign the page so the text area is not as restrictive. Best for copy/paste, but might be a bear to redesign.
That is all I can think of off the top of my head.
Because the real URL is too long composed of several parameters being passed to the script this is what I did, I created a subdomain and an index.php file the has a GET query. I then use the a single parameter that will be passed to the real URL then ridirect it. In that way I cut the URL for about 75%. no need for textarea field :D