Author |
Topic |
|
adslonline
Starting Member
Netherlands
38 Posts |
Posted - 13 March 2004 : 03:12:46
|
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
|
The url function is in "inc_func_common.asp"
Function ReplaceURLs(ByVal strToFormat) and this line opens the new window
rc1Tag = """ target=""_blank"">" |
_-/Cripto9t\-_ |
|
|
adslonline
Starting Member
Netherlands
38 Posts |
Posted - 14 March 2004 : 10:49:15
|
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 |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 14 March 2004 : 19:09:08
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 14 March 2004 : 20:44:23
|
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. |
|
|
|
adslonline
Starting Member
Netherlands
38 Posts |
Posted - 16 March 2004 : 13:33:51
|
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 |
|
|
kwhipp
Junior Member
USA
407 Posts |
Posted - 16 March 2004 : 19:36:10
|
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 |
|
|
adslonline
Starting Member
Netherlands
38 Posts |
Posted - 17 March 2004 : 14:01:08
|
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 |
|
|
|
Topic |
|