Force OIOPublisher Banners to Open in New Windows

August 31st, 2008 by Mack

3407 I found this very odd that it did not come as a standard option for the OIOPublisher plugin for Wordpress.  I personally hate when a click leads me to another page in the same window or tab.

In olden days before the invention of tabs, I could see where it was annoying to have to close 10 different windows.  Today, new windows essentially mean tabs and a click just means I am interested to see what else you have to offer.  It does not mean I wanted to leave the current site I was browsing.

Sorry, I just thought that image was too funny not to include.

OIOPublisher Edits to force New Windows or Tabs

Open wp-content/plugins/(yourfoldername)/include/output.php

Find around line 451

PHP:
  1. $output .= "<a$nofollow href=\"".$url."\"$hide><img class=\"oio-img-position\" alt=\"\" src=\"".$b->item_url."\" style=\"width:".$oiopub_set->$bz->width."px; height:".$oiopub_set->$bz->height."px;\" /></a>\n";

Change to

PHP:
  1. $output .= "<a$nofollow href=\"".$url."\"$hide target=\"_blank\"><img class=\"oio-img-position\" alt=\"\" src=\"".$b->item_url."\" style=\"width:".$oiopub_set->$bz->width."px; height:".$oiopub_set->$bz->height."px;\" /></a>\n";

Find around line 481

PHP:
  1. $output .= "<a rel=\"nofollow\" href=\"".$url."\"><img class=\"oio-img-postition\" alt=\"\" src=\"".$image."\" style=\"width:".$oiopub_set->$bz->width."px; height:".$oiopub_set->$bz->height."px;\" /></a>\n";

Change to

PHP:
  1. $output .= "<a rel=\"nofollow\" href=\"".$url."\" target=\"_blank\"><img class=\"oio-img-postition\" alt=\"\" src=\"".$image."\" style=\"width:".$oiopub_set->$bz->width."px; height:".$oiopub_set->$bz->height."px;\" /></a>\n";

Save and Upload, Your done.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Mixx
  • Reddit
  • Technorati

Related Post

2 Responses

  1. By Steven Wilson on Sep 1, 2008 | Reply

    I love the slogan friends dont let friends use internet explorer.
    I fix alot of computers for friends,and family,and one of the first things I tell them is do not use IE,and I install either opera or firefox for them.

  2. By Mack on Sep 1, 2008 | Reply

    Yeah I am not a big fan of IE either. I try to avoid it at all cost, but it is hard when your a website owner/designer.

Leave a Reply