Jump to content
Sign in to follow this  
nabiscuit

Getting the Twitter Sidebar Widget to Open Links In a New Window

Recommended Posts

nabiscuit

Pretty much what the subject says. Thanks for all your past help! Site came out great! www.thenatureofexistence.com Any help with this matter would be greatly appreciated.

Share this post


Link to post
Share on other sites
Andrew

hmmm... could be tough. Somehow the `target="_blank"` attribute needs to be added to these links. Do you feel comfortable editing the plugin code?

Share this post


Link to post
Share on other sites
nabiscuit

I do feel comfortable doing so. As long you tell me where it is. The plugin doesn't show up on my plugin list.

Share this post


Link to post
Share on other sites
Andrew

ok open: "core" - "plugins" - "twitter.php" in a text editor. In this file look for `

Share this post


Link to post
Share on other sites
nabiscuit

Okay... I tried it out. I got it to work on the twitter plugin on the feature page but once I tried to add the targets on the sidebar widget... my whole site went down. so i reverted everything back - and now the link discoveries in the twitter sidebar widget aren't formatting correctly. any help please? http://thenatureofexistence.com/ http://thenatureofexistence.com/category/blog/

Share this post


Link to post
Share on other sites
cmunns

The link discoveries? You also need to get the sidebar fixed on the home page. I believe you have code for this in previous thread. If not let me know. Roger Nygard...anyone relation to a Will Nygard currently making a living do mathematics in Japan?

Share this post


Link to post
Share on other sites
nabiscuit

Yes, you know how if you post a link in your twitter status, the widget will automatically detect it's a link and make the link clickable? If you check out the category/blog, you'll see that the links in the twitter sidebar aren't formatting correctly. I have no idea why it's doing it. And when it comes to the sidebar on the homepage, I just gave up. I think it looks fine and I really can't see myself or the film needing that extra functionality. I have no idea about Will Nygard, but when I go back into work, I'll ask him! Thanks!

Share this post


Link to post
Share on other sites
cmunns

I see what you mean now. Try using a twitter update that doesn't link to youtube. There are some weird parameters that seem to be missing and it would help to know if it's just a youtube problem. Also the signup/screenings form on the home page can be changed. The script that your using for that form has a size parameter specified. If you look at the code and change size to 30 it should look much better.

Share this post


Link to post
Share on other sites
nabiscuit

cmunns, Okay... I specified the width for the contact form on the front page... I don't know why I did it - but if you wanted me to, it probably was for a good reason (it looked perfect to me). As for the other twitter issue - I'll get Roger to use a url shortener for the youtube links to see if that changes anything. I'll keep you posted. But still - if you could look at the twitter plugin and see exactly where i'm supposed to add the [target="_blank"] I'd appreciate it. I added it to every link in there and it brought the whole site down. So I had to undo it all.

Share this post


Link to post
Share on other sites
cmunns

In the twitter.php file look for this code: ` $msg = ''.$msg.''; // Puts a link to the status of each tweet } else { $msg = $msg . ''.$linked.''; // Puts a link to the status of each tweet ` You can see I've added the target=_blank in the code already so you can search for it then add it like i have.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×