Recent Topics

1 Mar 20, 2010 03:58    

My b2evolution Version: 3.3.3

For the Linkblog links that appear on the right side of the other blogs, is there a way to make them use the "Target=_Blank" clause, to open a new browser window? This way, clicking a link does not navigate away from my blog.


2 Mar 20, 2010 11:20

There's gotta be like tens of different ways to achieve that, i ll give you two;

1.Open all links in new windows in entire linkblog;

If  ($Blog->ID ==1){
// "1" being ID of your linkblog
  .attr("target", "_blank");</script>
<?php } ?>

2.Open only linkblog links in new window, and keep the sidebar, header etc links as is.

Assuming linkblog itself is a widget, it should be able to have its very own widget class, even if it doesnt, you can still use the class or id of the div that you have inserted your linkblog widget into.(ex: #content)

<script type="text/javascript">       
        $(".linkblog_widget_class").click(function() {   
  ;return false;         

Obviously those above are jquery hacks, so, needless to say, you will need to load jquery first, and put these hacks into your right before the last closing tag

Form is loading...