Force OIOPublisher Banners to Open in New Windows
August 31st, 2008 by Mack
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:
-
$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:
-
$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:
-
$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:
-
$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.
Related Post
- Add Mixx to the Wordpress Sociable 2.0 Plugin - You can add a Mixx icon to your Wordpress Sociable plugin in less than 5 minutes. I will provide both manual edits and modified files. Eit ...
- Adding Facebook to Sociable 2.0 For Wordpress - After posting the instructions for adding mixx to sociable 2.0., Matthew Peters from Pandemic Blog requested the needed code for facebook. I ho ...
- How To Add Nofollow to the Wordpress Comments Link - I actually had a damn hard time finding this posted anywhere on the web, so I thought I would share. I don't think I need to tell anyone why thi ...











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.
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.