Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Modifying [URL] tag
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Modifying [URL] tag

 Post Reply Post Reply
Author
jur3k View Drop Down
Newbie
Newbie


Joined: 31 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jur3k Quote  Post ReplyReply Direct Link To This Post Topic: Modifying [URL] tag
    Posted: 23 May 2006 at 4:54pm
Hello
 
Can anyone pls tell me how to modify the [URL] tag, so that all the links would contain "rel="no follow" tag. I've searcherd the forum and the only information I got was HERE. Regretfuly the <meta name="robots" content="nofollow"> solution doesent work for me, because I still need some links to be followed by robots.
 
I've tryed modifying lots of files, but i cant seem to find the right one. There must be some place where  "rel="no follow"" line can be added...
 
I've also seen, that this option is available for v.8 forums.
 
Please help me, I'm despered!
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: 23 May 2006 at 7:33pm
You need to upgrade to version 8 to get this.

If you upgrade to version 8 you can enable this by editing the file includes/setup_options.asp
Back to Top
jur3k View Drop Down
Newbie
Newbie


Joined: 31 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jur3k Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2006 at 9:35pm

tnx, for making a commercial, but upgrading from 6.x to 7.x has caused me enough trouble and it took me really a lot of time, so if there's any posibility, please give me a brake.

Im planning to upgrade to 8.x, I just need some time off my job to make all the necesery design change etc.
 
Plus, I have a really bad hosting service provider, so upgrading is a bit too much for me right now...
 
pls, -boRg-, I know you can help me...
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: 24 May 2006 at 8:31am
Have a look in the mods forum to see if anyone has made a mod to do this for version 7.

Upgrading to version 8 really isn't that hard, just run the database upgrade tool, then replace the ASP files with the new ones.
Back to Top
jur3k View Drop Down
Newbie
Newbie


Joined: 31 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jur3k Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 10:49am
Hi
I've just browsed through 23 pages of v7 modifications, and found nothing useful...
 
Myself I've tryed modifying
functions/functions_format_post.asp
includes/RTE_toolbar_2.asp
includes/message_form_inc.asp
and all RTE files,
 
but nothing seems to do the job. I would like to find the part of the code that adds "target="_blank" to every link, and squeeze "rel="no follow" next to it.
 
Can you pls point me to the right direction, or tell me which file should I look into...
 
Would integrating RTE 3.0 solve the problem?
 
Tnx for the support
 
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: 24 May 2006 at 11:34am
I think in version 7 it was the file functions/functions_filters.asp that added the target="_blank"
Back to Top
jur3k View Drop Down
Newbie
Newbie


Joined: 31 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote jur3k Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 12:09pm
Thank you, it works!!!!
 
In functions/functions_filters.asp change line 120 so it would like this:
 
strTempHTMLMessage = Replace(strTempHTMLMessage, ">", " target=""_blank"" rel=""no follow"">", 1, -1, 1)
 
Thank you again!!!
 
/edit
 
You have to modify functions_format_post.asp
line 61: strMessage = Replace(strMessage, " target=_blank rel=nofollow>", ">", 1, -1, 1)
line 877: strMessage = Replace(strMessage, " target=""_blank"" rel=""nofollow""", "", 1, -1, 1)
line 373: strTempMessage = Replace(strTempMessage, "[FILE=", "<a target=""_blank"" rel=""nofollow"" href=""", 1, -1, 1)
 
functions_edit_post.asp
line 67: strMessage = Replace(strMessage, " target=""_blank"" rel=""nofollow""", "", 1, -1, 1)
 
otherwise things get messed up while editing... I hope I didn'd miss smth out...
 


Edited by jur3k - 24 May 2006 at 2:14pm
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.