URL tags don't seem to be working

For information and questions on how to use the discussion board (do not post ostomy related questions in this area!).
Anyone can read. Only registered users can post.
No commercial posting allowed.

Moderators: Bob Webtech, Jimbob

Forum rules
Before posting, please read our Discussion Board Terms and Conditions and our Code of Conduct. This particular area of our board is only for issues on how to use the board, not for ostomy-related questions!
Post Reply
User avatar
susan f
Posts: 1163
Joined: 2005-10-01 21:26:14

URL tags don't seem to be working

Post by susan f »

Hi Bob,

I am trying to get the BBCode url tags to work, and they are not creating a link - they are just printing. I have used them before on the board, so I know that they should be working!

I pressed the URL button, pasted the link, then pressed the url button.

http://url.blah.blah

and also tried to set it up as text with a link (like html <a href='http://url.blah.blah>text</a> format),

text

Am I missing sonething??? This worked in this posting, but not in the original posting. I didn't check the disable BBCode in this post check box? The actual post is here:

http://www.uoaa.org/forum/viewtopic.php?p=35476#35476
User avatar
Bob Webtech
Site Admin
Posts: 995
Joined: 2005-09-29 11:17:09

Post by Bob Webtech »

Hi Susan,

The problem in this case was actually the parentheses within that Coloplast URL, which are nonstandard and prevented our phpBB software from recognizing this as a URL. To fix this problem, you can use URL-encoding (percent-encoding) as described at
http://en.wikipedia.org/wiki/Percent-encoding
In this case, replace the open paren with %28 and the close paren with %29 within the URL. After doing this, I can make the link work:

Sensura URL with % encoding in the URL

For lots of information about the board's "BBCode" system, click the BBCode link in the lower left of any posting window. Note that when you're simply including a URL in a posting (and you don't care about displaying the link with text different from the URL itself), you don't even need to include the and tags around the URL, as the software automatically turns it into a link (They call this the Magic Links feature). My link above to the wikipedia page about percent-encoding was done this way.

Bob
User avatar
susan f
Posts: 1163
Joined: 2005-10-01 21:26:14

Post by susan f »

Ah -hah!

Strangely enough, the link worked later, but I would have to look into the syntax to see if it had the parentheses or if I used a different link, and now that the mystery is solved I can just let that one go.

I find it amusing that the BBCode system more or less replaced the angle brackets in html with square braces. Otherwise it looks pretty much the same.
User avatar
LeeAnn
Posts: 2850
Joined: 2005-10-01 19:58:37

Post by LeeAnn »

testing this out, I have issues with getting this sort of thing to work for me as well. So, I am going to give it a try here..............

http://www.uoaa.org/forum/viewtopic.php ... %20conduct


OK, Bob, I can't seem to get it to work................can you fill me in.

LeeAnn
You are always right where you need to be to take the next step beyond .GF
User avatar
majormom2u
Posts: 2132
Joined: 2006-03-09 21:53:11

Post by majormom2u »

Sorry to "butt" in, but I never use the "url" icon... I just past the actual link and it works ine every time... maybe I'm missing something, but it does work by just adding the link to your message...

Using LeeAnn's example without the [url] before and after it:

http://www.uoaa.org/forum/viewtopic.php?t=7411

Sandy
Uhh.. That's my story and I'm sticking to it...
User avatar
LeeAnn
Posts: 2850
Joined: 2005-10-01 19:58:37

Post by LeeAnn »

Tis alright Sandy. I am trying to do the URL as a text................. such as typing in Code of Conduct and having it highlight, but when someone clicks on it, it will direct straight to the link I am trying to send people to.

LeeAnn
You are always right where you need to be to take the next step beyond .GF
User avatar
majormom2u
Posts: 2132
Joined: 2006-03-09 21:53:11

Post by majormom2u »

I got it now!....

All you do is type RED[/color]] BLUE

RED is for the url address you want to send people to... ie. http://www.uoaa.org/forum/viewtopic.php?t=7411

BLUE is for the txt you want people to see

As in this one:
code of conduct

I hope this helps...

Sandy
Uhh.. That's my story and I'm sticking to it...
User avatar
LeeAnn
Posts: 2850
Joined: 2005-10-01 19:58:37

Post by LeeAnn »

let's give this a try............

Code of Conduct

Well, I'll be dipped!!!!!!!!!!!!!!!!!!!!!!!!!!! thanks Sandy. Sometimes my computer abilities are not the best....... As long as I can email, post and do what I am expected , all is good. It is the 'extra' things that boggle the mind. LOL

LeeAnn
You are always right where you need to be to take the next step beyond .GF
User avatar
majormom2u
Posts: 2132
Joined: 2006-03-09 21:53:11

Post by majormom2u »

My pleasure!... any time!

Sandy
Uhh.. That's my story and I'm sticking to it...
User avatar
Bob Webtech
Site Admin
Posts: 995
Joined: 2005-09-29 11:17:09

Post by Bob Webtech »

Sandy and LeeAnn,

I just came across this exchange (nearly 4 weeks after it occurred), but I'll butt in with another tip: Suppose you want to explain how to use a feature of the board's BBCode system (for example, how to create a link to a desired URL that displays some desired text). The problem is how to display the code so people will actually see that code instead of its rendered version.

One possibility would be to check the "Disable BBCode in this post" checkbox beneath the posting window. This would prevent rendering of BBCode totally throughout your post, but you may not want to do that. For example, you may wish to display the raw code as well as its rendered version. (You might also wish to use BBCode elsewhere in your post to format text, include images, etc.)

Sandy, you've dealt with this problem by inserting extra spaces in the codes. This can inhibit rendering of the code but isn't an ideal solution because you aren't displaying the exact code that produces the desired effect.

As a better solution for displaying the code, enclose it between {code} and {/code} tags (but use square brackets where I wrote curly brackets!). All text enclosed between those tags will be displayed in a box, and any BBCodes in that text will be displayed without rendering them. For the example you guys were discussing, the raw code (displayed by enclosing it between {code} and {/code} tags) is:

Code: Select all

[url=http://www.uoaa.org/forum/viewtopic.php?t=7411]Code of Conduct[/url]
and the rendered version (produced by omitting the {code} and {/code} tags) is:

Code of Conduct

In writing this post, I did face the problem of talking about the {code} tag without having it get rendered. For this purpose, I resorted to the artifice of writing curly brackets instead of the square brackets in the actual tag. Such a trick isn't necessary when using the {code} tag to talk about other BBCode tags.

Remember that you can obtain lots of information about the board's BBCode system by clicking the BBCode link near the lower left of any posting window.
Bob Baumel, UOAA discussion board administrator
Post Reply