Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Inserting Link into /language_file_inc.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedInserting Link into /language_file_inc.asp

 Post Reply Post Reply
Author
Wayne G. View Drop Down
Newbie
Newbie
Avatar

Joined: 18 November 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wayne G. Quote  Post ReplyReply Direct Link To This Post Topic: Inserting Link into /language_file_inc.asp
    Posted: 19 November 2008 at 12:46am
Hello:
   I would like to insert an active hyperlink into one of the definitions in /language_file_inc.asp. 
 
Such as:
Const strTxtViewSentNewsletters = "Use our Forum for Addtional Help"
being changed to:
Const strTxtViewSentNewsletters = "Use our Forum at www.MyWebSite.com/forum"
 
Can this be done?  What is the correct code that wraps the URL ?   An example would be great, please.
 
Thanks,
 
Wayne G.
 


Edited by Wayne G. - 19 November 2008 at 12:49am
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2008 at 10:25am
I've not tested this but the following should work:-

Const strTxtViewSentNewsletters = "Use our Forum at <a href=""www.MyWebSite.com/forum"">www.MyWebSite.com/forum</a>"

You need to use two double quotes within the string to escape the character as you can see above, otherwise it will think you are ending the string and give an error.
Back to Top
Wayne G. View Drop Down
Newbie
Newbie
Avatar

Joined: 18 November 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wayne G. Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2008 at 3:36pm
Hi Bruce:
  Thank you for your assistance.  The code will insert and render properly.  However, the link is being called as a relative link rather than the full URL that I did enter.   It is automatically appending www.mywebsite.com/NewsPad/.  The link ends up calling www.mywebsite.com/NewsPad/www.mywebsite.com/Forum/.   Is there a way to break out of the relative link call?
 
Thanks,
 
Wayne G.
 
Back to Top
Wayne G. View Drop Down
Newbie
Newbie
Avatar

Joined: 18 November 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wayne G. Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2008 at 4:14pm
Hello:
       I added the http:// to the called URL and it solved the problem.  Thank you for your help.
 
Wayne G.
 
Back to Top
Putz22 View Drop Down
Moderator Group
Moderator Group


Joined: 06 May 2008
Location: United States
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote Putz22 Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2008 at 4:18pm
Good work Wayne.. its more interesting to try to figure things out.. Thumbs Up
Back to Top
 Post Reply Post Reply

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.