Recent Topics

1 Aug 21, 2009 09:43    

My b2evolution Version: 3.3.1-stable

I added the "Simple Sidebar Links list" widget to my sidebar, and I'm trying to figure out how to make links that I post to this sidebar open in a new window.

I was hoping there would be an option in the widget settings to make this happen, or a box I could check when posting the link itself, but I couldn't find anything.

Any ideas?

3 Aug 23, 2009 04:44

Well, normally it wouldn't be a big deal except that they are external links and I want them to open in new windows so that users can close those windows when they're done with them and be back at my site.

Also, opening new windows does not use that much memory, so unless the user is running a really old computer, I doubt it would be a problem.

In any case, thanks for the response.

4 Aug 23, 2009 05:12

By the way, I already ran across that topic before, but it didn't seem to have what I was looking to find.

However, I searched for a string of code that was quoted in one of the posts in that topic, from the file "_itemlight.class.php" located in inc >> items >> model (v.3.3.1).

On line 814, the line:

$r .= '<a href="'.$url.'">'.$title.'</a>';


I changed to read:

$r .= '<a href="'.$url.'" target="_blank">'.$title.'</a>';

Now everything works great.
Thanks.

5 May 09, 2012 18:49

Great solution. Thanks!

6 May 09, 2012 19:58

lllusion wrote:

Great solution. Thanks!

core hacking is not the best option for such a simple hack


Form is loading...