Jump to content


Photo
Resolved

How to open a new window from the Twitter bar?



  • Please log in to reply
4 replies to this topic

#1 linkfr

linkfr

    Advanced Member

  • Members
  • PipPipPip
  • 68 posts

Posted 11 September 2012 - 07:44 PM

Hi everyone!

I'm using Platform theme and have a twitter bar in the Morefoot area. I wouldnt like visitors to my site to leave it when they click on the tweet or username.

How can i make this link open the twitter page on a new window?

Thanks for your help!

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 September 2012 - 08:29 PM

I'm not sure this is possible, but if it is, this would be the method.

You have to copy the twitter section from PlatformPro to PlatformBase (which should be active) then, edit the section.php file in the copied folder, to include target="_blank" in the URL.

Place the copied twitter section folder (and contents) to PlatformBase via FTP and it should work. If not, please let us know.

#3 linkfr

linkfr

    Advanced Member

  • Members
  • PipPipPip
  • 68 posts

Posted 17 September 2012 - 10:16 PM

Hi Rob, thanks, i was about to modify one of the last lines in section.twitterbar.php like this...

echo '" &mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/' . pagelines('twittername') . '" target="_blank">' . pagelines('twittername') . '</a></span></div>';

... But indeed just noticed the twitter bar opens links in a new window. Is it possible that someone from pagelines modified it? Or maybe i just didnt try right before?

Thanks for your a lot for your help anyway!

#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 15047 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 September 2012 - 08:34 AM

The topic was marked as resolved.

#5 gsx0pub

gsx0pub

    Newbie

  • Members
  • 1 posts

Posted 04 November 2012 - 01:23 PM

I'm not sure if this answer is out of date or not, but I'm having the same issue with TwitterBar as the original poster.

I tried editing the section.php file in the FTP folder Themes > PageLines > Sections > TwitterBar > section.php.

From: (line 36)
 
&#39;<span class="twitter">%s &nbsp;&mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/%s">%s</a></span>&#39;,

To: (line 36)
 
&#39;<span class="twitter">%s &nbsp;&mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/%s" target="_blank">%s</a></span>&#39;,

It didn't seem to have an effect.

The next line has the "pagelines_tweet_clickable" function but I'm not sure where that is located to see if there's something to modify there.





Also tagged with one or more of these keywords: Resolved