HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Using special chars in links such as ()

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#102058 (In Topic #20009)

Honoured member

When using the comcode tag assistant to quote Wikipedia, some of the links contain () in the link. When I use it the assistant, during preview, reports an error. I tried using a \ to escape the ( and ), but it didn't work. How can I use them? An example is:

Code

http://en.wikipedia.org/wiki/Changes_in_Latitudes,_Changes_in_Attitudes_(song)
 
Back to the top
 
Posted
Rating:
#102059
Avatar

What tag are you trying to add?

The 'quote' and 'url' tags are not in the Comcode tag assistant, as there are separate buttons for them in the editor – so I'm not sure what you were adding.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102077
Avatar

Fan in training

I'm refering to the quote used to quote something someone said, not the tag for the " symbol.
Example:

Code

[quote="http://en.wikipedia.org/wiki/Changes_in_Latitudes,_Changes_in_Attitudes_(song)" saidless="1"]"Changes in Latitudes, Changes in Attitudes" is a song written and recorded by American popular music singer-songwriter Jimmy Buffett. It was released as a single (b/w "Landfall") on ABC Dunhill 12305 in August 1977. It was first released on his 1977 album Changes in Latitudes, Changes in Attitudes. It reached number 37 on the BillboardHot 100, number 24 on the Hot Country Songs chart, and number 11 on the Easy Listening chart. The phrase "and son of a bitches" was edited out of the single version of the song, replaced by "some bruises, some stitches". "Changes in Latitudes, Changes in Attitudes" is one of Buffett's more popular songs with fans, and is part of "The Big 8" that he has played at almost all of his concerts. Recorded live versions of the song appear on You Had to Be There, and the video Live by the Bay.[/quote]
Back to the top
 
Posted
Rating:
#102079
Avatar

Community saint

The quote tag is a bit selective with its parameters.

The example you show would effectively use the information within the " & " symbols to display a 'title' header for the quote box.

Here is an example from the built-in COMCODE help …



… taken from my site.

Does that throw some light on the matter?



Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#102080
Avatar

Fan in training

Fletch said

The quote tag is a bit selective with its parameters.

The example you show would effectively use the information within the " & " symbols to display a 'title' header for the quote box.

Here is an example from the built-in COMCODE help …



… taken from my site.

Does that throw some light on the matter?

(I've got to get this log in straighten out,) Hey Fletch, I can't see the pic. This is the blind user chipster. For some reason the board has kicked me out and keeps logging me back in with my facebook id.

I do understand the principle behind the tag. However I've used it quite successfully on many other entries. By using the actual Wikipedia link it displays the Wikipedia header text in addition to providing the link. For example:

Code

[quote="http://en.wikipedia.org/wiki/Call_me_the_breeze" saidless="1"]Like many Cale songs, "Call Me the Breeze" has been covered numerous times by an assortment of musicians, most notably Lynyrd Skynyrd (on their album Second Helping), Mason Proffit (on their album Rockfish Crossing), Bobby Bare (on his album Bobby Bare - The Country Store Collection (1988), Johnny Cash (on his album Water from the Wells of Home ) and UK singer Alan Price
.
Many of the cover versions available have been performed as tributes to Lynyrd Skynyrd. For example, Les Claypool covers it on his album Under The Influence, A Jam Band Tribute to Lynyrd Skynyrd[/quote]

Displays as:

Call Me the Breeze - Wikipedia, the free encyclopedia

Like many Cale songs, "Call Me the Breeze" has been covered numerous times by an assortment of musicians, most notably Lynyrd Skynyrd (on their album Second Helping), Mason Proffit (on their album Rockfish Crossing), Bobby Bare (on his album Bobby Bare - The Country Store Collection (1988), Johnny Cash (on his album Water from the Wells of Home ) and UK singer Alan Price
.
Many of the cover versions available have been performed as tributes to Lynyrd Skynyrd. For example, Les Claypool covers it on his album Under The Influence, A Jam Band Tribute to Lynyrd Skynyrd


Is is only on those wikipedia pages that contain () that I'm having the issue with.  Thus far, when it gives me that error I go back and place "From Wikipedia" in the parameter then include the page link as a url.  However, Even when place a link inside the URL tag that contains () it gives me an error, and says the link is broken.
Back to the top
 
Posted
Rating:
#102089
Avatar

Community saint

Chip McCain said

 Hey Fletch, I can't see the pic. This is the blind user chipster …
Yes Chip, realised the image was the weakness in my post as soon as I had posted it, but let it run regardless. Even mentioned it to my wife as having committed a 'dumb@ss' action.

I'm waaaaay behind you in the usage of the tag, so I really ought to step out of the way and allow a more experienced user take over.

Good luck with resolving this issue. I shall follow with great interest.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#102097
Avatar

Fan in training

Well it seems that it isn't just the quote tag. Even when I try to use an URL that contains () in it it breaks the link.
Back to the top
 
Posted
Rating:
#102100
Avatar

I see what you're saying now :).

There's a misunderstanding here…

URLs are not directly supported by quote tags. It just so happens that the quote source is itself interpreted as Comcode, and Comcode recognises URLs.

However, when Comcode recognises URLs, it is quite conservative about when the URL ends. Normally a closing bracket would indicate someone had put the URL inside brackets, and not be actually part of the URL itself.

If you want to be explicit, use a url tag explicitly like [url]http://en.wikipedia.org/wiki/Changes_in_Latitudes,_Changes_in_Attitudes_(song)[/url].


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102105

Honoured member

I've gotcha Chris. That makes perfect sense. It was handling the other entries so well, and it made for a pleasant way to display the info and notes accompanying my lyrics catalogue entries. I'll just use a different format.  Thankfully I had only made this addition to around eighty entries or so.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: