Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Enhancing 'Links' tag in forum code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

adslonline
Starting Member

Netherlands
38 Posts

Posted - 13 March 2004 :  03:12:46  Show Profile  Visit adslonline's Homepage
I was looking for a way to be able to add a 'target' to links posted on snitz forums. All links are set to display in 'new window' and I would like to have the option to set it to target='self' for example.

What part of the snitz code would I need to edit to achieve this?

www.adslforum.nl

cripto9t
Average Member

USA
881 Posts

Posted - 14 March 2004 :  09:32:37  Show Profile
The url function is in "inc_func_common.asp"
Function ReplaceURLs(ByVal strToFormat)

and this line opens the new window
rc1Tag = """ target=""_blank"">"

    _-/Cripto9t\-_
Go to Top of Page

adslonline
Starting Member

Netherlands
38 Posts

Posted - 14 March 2004 :  10:49:15  Show Profile  Visit adslonline's Homepage
Hello Crypt, thanks for your response. I'm gonna try to find a way to edit that piece of code so a member can choose what target tag to use when posting a link.

www.adslforum.nl
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 14 March 2004 :  19:09:08  Show Profile
Your welcome.
I think this is a good idea. Making the new window optional will make the forums more user-friendly .

    _-/Cripto9t\-_

Edited by - cripto9t on 14 March 2004 19:09:44
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 March 2004 :  20:44:23  Show Profile  Visit dayve's Homepage
out of curiosity, why would you target self? you might be making it difficult for your visitors to come back to your site. rule of thumb, anytime you have a link to another site on your site, don't let them leave easily. opening another window gives the visitor the option to look at the external link and when they are done they can close the window and be back at your site to resume viewing the rest of your site. it's a very common practice and only one that will benefit you as the webmaster of the site.

Go to Top of Page

adslonline
Starting Member

Netherlands
38 Posts

Posted - 16 March 2004 :  13:33:51  Show Profile  Visit adslonline's Homepage
quote:
out of curiosity, why would you target self?
We added for example several internal links on our portal page (portal mod) to forum pages. In normal Forum Code they are set as 'open in new window' while I want those specific links to be 'self'. I now have a work-around by enabling HMTL, then post the link. Then change set to Forum code and the link remains working like in html.

www.adslforum.nl

Edited by - adslonline on 16 March 2004 13:34:58
Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 16 March 2004 :  19:36:10  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
quote:
Originally posted by adslonline

quote:
out of curiosity, why would you target self?
We added for example several internal links on our portal page (portal mod) to forum pages. In normal Forum Code they are set as 'open in new window' while I want those specific links to be 'self'. I now have a work-around by enabling HMTL, then post the link. Then change set to Forum code and the link remains working like in html.


Instead of enabling and disabling HTML, would the Super/Admin/Moderator HTML Only MOD be easier? If so, the link is in my sig.

- Kevin
Go to Top of Page

adslonline
Starting Member

Netherlands
38 Posts

Posted - 17 March 2004 :  14:01:08  Show Profile  Visit adslonline's Homepage
Hello kwhipp, I wasnt familiar with that mod. I'll check it out today, thanks for the help.

<update> This mod is exactly what I was looking for!! It works like a charm and the clear documentation made it easy to install.

www.adslforum.nl

Edited by - adslonline on 17 March 2004 14:21:12
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07