Warning: The author of this contribution does not provide support for it anymore.

Tweet this topic or post

Open Up In a New Window? - Tweet this topic or post

Open Up In a New Window?

by packerstud » Mon Jul 11, 2011 8:19 am

I have modified my code with this, http://www.phpbb.com/kb/article/links-o ... ew-windows, so my forum links open in a new window.

This mod works great and is just what I want, but is there a way to get it to open twitter in a new window?
packerstud
Registered User
Posts: 113
Joined: Fri Jul 08, 2011 5:29 am
Contact:

Re: Open Up In a New Window?

by RMcGirr83 » Mon Dec 03, 2012 8:56 pm

Make this edit within viewtopic_body.html

Code: Select all

<!-- IF not S_IS_BOT and S_TWEET --><div class="tweet-topic"><a href="http://twitter.com/home?status={TWEET_TOPIC}" title="{L_TWEET_TOPIC}"><span></span>{L_TWEET_TOPIC}</a></div><!-- ENDIF -->


like this

Code: Select all

<!-- IF not S_IS_BOT and S_TWEET --><div class="tweet-topic"><a href="http://twitter.com/home?status={TWEET_TOPIC}" onclick="window.open(this.href);return false;" title="{L_TWEET_TOPIC}"><span></span>{L_TWEET_TOPIC}</a></div><!-- ENDIF -->
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact: