1
matskm
Problem with external links
  • 2010/5/18 18:53

  • matskm

  • Just popping in

  • Posts: 3

  • Since: 2010/5/18


Hi All,
Love using xoops, but am frustrated by one thing: I am trying to make my own html pages (using either Content module or waku). All I want is to have an external link (i.e., the <a> href = ... syntax), but whenever I do this, a part of xoops adds to the link address with the xoops base directory, so that whatever link I do (e.g., www.google.com) is just:

$xoops_url/www.google.com

Can anyone tell me how to fix this, or use a different method for external links?

cheers

Mat

2
iHackCode
Re: Problem with external links

could be a html thing. make sure you put the protocol in too. (http://). or it makes a relative link.

ex:http://google.com orhttp://www.google.com

CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

3
matskm
Re: Problem with external links
  • 2010/5/19 7:46

  • matskm

  • Just popping in

  • Posts: 3

  • Since: 2010/5/18


Hi Bandit-X,
You got me on the right track! I was using too many quotation marks. It appears that when I surround something with "..." xoops appends the root url to this string at the front.

So I fiddled with various combinations of \" in waku (just needed one set) and even in content module (or more likely the text editor I'm using for Content module) I didn't need any quotations marks at all!

Should have remembered the vital importance of quotations marks in all markup languages!

Anyway, problem solved - and you got me on the right track.

cheers

Mat

4
matskm
Re: Problem with external links
  • 2010/5/19 7:51

  • matskm

  • Just popping in

  • Posts: 3

  • Since: 2010/5/18


I should post the code that works. In waku I used:

<p>
<a href="http://www.google.com;">redwood boys </a></p>
</p>

I'm using xemacs here which I'm pretty sure doesn't do anything nasty to the strings in the text file before it saves.

And in Content module I use:

<a href=http://www.google.com> redwood boys </a></p>

Although, something (probably the text editor -- CKeditor in this case) is adding a double quotation mark (") to each end of the tag -- which I discover after I upload the file, and look at it again in xoops.

cheers

Mat

5
ghia
Re: Problem with external links
  • 2010/5/19 8:10

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The result should be
<a href="http://www.google.com"redwood boys </a>
and you see this if you are looking into the HTML source.
However if you use CKeditor, I suppose you use it in WYSIWYG and do insert links with the appropriate button/icon, and not by switching to raw HTML.

Login

Who's Online

159 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits