Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Howto disable full path?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedHowto disable full path?

 Post Reply Post Reply Page  12>
Author
MillaG View Drop Down
Newbie
Newbie
Avatar

Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MillaG Quote  Post ReplyReply Direct Link To This Post Topic: Howto disable full path?
    Posted: 22 May 2005 at 12:52pm

When using AddEmoticons function I always get the full path (e.g. <img src="http://www.myserver.com/images/smiley.gif">) in the source code. If possible I'd like to control the path so it won't add the http:// part, I want the path to be just <img src="images/smiley.gif">.

Is there any solution for this? Changing the blnUseFullURLpath doesn't work, same result for true and false.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2005 at 2:42pm
the only way ff the top of my head is to directly edit the page. in qyuestion.
Back to Top
MillaG View Drop Down
Newbie
Newbie
Avatar

Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MillaG Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2005 at 4:08pm
Hmmm... ok.. not working. I've been trying all day to make the result look the way I want it to but don't seem to be able to work around it.
 
When typing URLs in the RTE textarea, the text is automatically recognized as an URL and the RTE is surrounding the URL with A HREF tag. That's just fine, but can I somewhere in the code add target=_blank to force links to open in new window?
 
Can't use base target for the entire page, that would mess up other links on the page, just want to make links from the textarea to open in new window by default. If I can make that work, I don't have to worry about the first problem....
 
Thankful for any help in this matter!
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2005 at 5:12pm
within the RTE postback validation you could add

strRTEInput = replace (strRTEInput, "<a href", "<a target=""_blank"" href")

strRTEInput is finctionary.. you will have to use existing veriables that you use.
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2005 at 5:41pm
Originally posted by wrote:

but can I somewhere in the code add target=_blank to force links to open in new window


One quick workaround is to click the "Toggle HTML View" button when using the RTE. Add the code in the HTML. Of course, you can also just choose "New Window" when you add a hyperlink in the dialog box. There is a drop-down for it.
Back to Top
Thorbjorn View Drop Down
Newbie
Newbie


Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thorbjorn Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2005 at 12:47am
Originally posted by xeerex xeerex wrote:

Originally posted by wrote:

but can I somewhere in the code add target=_blank to force links to open in new window


One quick workaround is to click the "Toggle HTML View" button when using the RTE. Add the code in the HTML. Of course, you can also just choose "New Window" when you add a hyperlink in the dialog box. There is a drop-down for it.
 
Hi, I am working together with MillaG on this small problem.
The thing is that we donīt want any of our members in our community should need to know any html, so, when they type a link, like www.webwisguide.info we want to be sure the link  opens a new window. We do not want to force them to use a dialog box either.
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2005 at 9:38am
Originally posted by wrote:

The thing is that we donīt want any of our members in our community should need to know any html, so, when they type a link, like www.webwisguide.info we want to be sure the link  opens a new window. We do not want to force them to use a dialog box either.


Hi and welcome to the WWG forum. You are welcome for the suggestions posted by dj air and myself.

If your users are smartly running Firefox, then they will have to use the hyperlink button which will open the hyperlink dialog box anyway. If your users are unfortunately still running IE, then just use dj air's suggestion.Wink
Back to Top
Thorbjorn View Drop Down
Newbie
Newbie


Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thorbjorn Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2005 at 4:58pm
Thank You!
 
Is it possible to disable the whole feature to create link in WWRTE?
 
We donīt need to create links in the RTE. We only need it to format text.
 
I am sorry for all questions but I like the RTE but not the CreatLink funtion.
 
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.