Force OIOPublisher Banners to Open in New Windows

August 31st, 2008

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

Posted in Blogging, Discussions