Open a New Window for Display Name link

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Open a New Window for Display Name link

Postby Beach » 09 Jul 2012, 07:16

Hi,

This is a repost of a question I posted several days ago, but had no response too! :(

If anyone could help i'd really appreciate it. So here goes...

My users link their display name to a website link, so that when someone clicks on their display name in a comment on the message boards, they are taken to that users website link. They add the website link through their user profile page, by filling in the 'website' box.

Currently when someone clicks on the display name, the users website is opened in the window being used (ie it replaces my wordpress site!). I would rather the user's website opened up in a new window when someone clicks on the display name.

Is their a way of doing this is Suffusion, or is there some new code I need to insert somewhere?

Many thanks for your help.
Beach
 
Posts: 19
Joined: 23 Aug 2011, 23:59

Re: Open a New Window for Display Name link

Postby amarogue » 11 Jul 2012, 15:35

The below code will open a new tab or window

Code: Select all
target="_blank"


Example below would be enclosed within < >

a href="http://mywebsite.com" target="_blank">Beach</a

I had to do this with the text widget in sidebar to open new tab for linked websites.
amarogue
 
Posts: 6
Joined: 10 Jun 2012, 08:18

Re: Open a New Window for Display Name link

Postby Beach » 11 Jul 2012, 16:47

Hi,

Thanks for the response, and the code.

My only remaining question is to ask where would I enter this extra code (i.e. which files in wordpress, and whereabouts in those specific files?).

Many thanks for helping me out
Beach
 
Posts: 19
Joined: 23 Aug 2011, 23:59

Re: Open a New Window for Display Name link

Postby amarogue » 14 Jul 2012, 06:23

Please post a link to your website - #6 in forum rules
amarogue
 
Posts: 6
Joined: 10 Jun 2012, 08:18

Re: Open a New Window for Display Name link

Postby Colin » 14 Jul 2012, 09:33

Beach,

I would suggest that if you are asking this question this is not something that you should tackle. Find someone locally who knows php and html and get them to help you. This will quickly become a saga of a broken site with lots of pleas of help on your part.
Colin
 
Posts: 2785
Joined: 27 Oct 2009, 10:46

Re: Open a New Window for Display Name link

Postby sayontan » 14 Jul 2012, 10:04

Simply put, this is very difficult, particularly for one not conversant with code. This requires using a WP hook and a bunch of regular expressions to insert the appropriate text within an "<a>" element.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Open a New Window for Display Name link

Postby Beach » 17 Jul 2012, 07:11

Sayontan,

If someone as experienced as you is saying this is difficult, then boy it must be hard! I will not take this any further then, and will leave it there.

Thank you (& everyone else) for taking the time to reply to me - I really appreciate it.
Beach
 
Posts: 19
Joined: 23 Aug 2011, 23:59


Return to Support Requests

Who is online

Users browsing this forum: No registered users and 8 guests