Connect with us

Plugins

Gallery Plus

Published

on

You may notice on some of our posts a gallery of images. We are using the built in WordPress up-loader, and when there are a few images we use the gallery insert button. But we are fans of jQuery and are using Thickbox.

As you know the basic gallery insert with attach the gallery images and link them to an image attachment page. Instead we installed the Gallery Plus plugin by Justin Hawkwood.

This plugin alone will add the ability under the Settings — options to add a “title” attribute in the <a> link and a rel attribute of “lightbox”.

Now I do have some site’s with lightbox installed, and I am a fan of the script, but I didn’t want to use the Scriptaculous script. And I do know that there is a Lightbox script based on jQuery.

Anyway… since I am using the Thickbox script on this site, the plugin needed a little tweaking:

There are two files contained in the download: gallery-plus.php & options.php, both with need to be edited. Lets start with the options.php:

Find.

update_option('gallery_plus_overlay', $_POST['gallery_plus_overlay']);

Add the 2nd line below, like this.

update_option('gallery_plus_overlay', $_POST['gallery_plus_overlay']);
update_option('gallery_plus_overlay2', $_POST['gallery_plus_overlay2']);

Next Find.

$gallery_plus_overlay = stripslashes(get_option('gallery_plus_overlay'));

Add the 2nd line below, like this.

$gallery_plus_overlay = stripslashes(get_option('gallery_plus_overlay'));
$gallery_plus_overlay2 = stripslashes(get_option('gallery_plus_overlay2'));

This is where it gets tricky. Find these next lines.

<tr valign="baseline">
<th scope="row"><?php _e('"rel" value in &lt;a&gt; tag:') ?></th>
<td><select name="gallery_plus_overlay">
<option value="none"<?php if ($gallery_plus_overlay == 'none') echo ' selected="selected"'; ?>>none</option>
<option value="lightbox"<?php if ($gallery_plus_overlay == 'lightbox') echo ' selected="selected"'; ?>>lightbox</option>
</select> Specify which, if any, javscript image overlay package to use. THIS PLUGIN DOES NOT INSTALL ANY OVERLAY PACKAGES.<br /><em>Note: Only applies when <strong>Link type</strong> is set to "image".</em>
</td></tr>

And Add these lines above.

<tr valign="baseline">
<th scope="row"><?php _e('Insert "class=..." Attribute In Link:') ?></th>
<td><select name="gallery_plus_overlay2">
<option value="none"<?php if ($gallery_plus_overlay2 == 'none') echo ' selected="selected"'; ?>>NONE</option>
<option value="thickbox"<?php if ($gallery_plus_overlay2 == 'thickbox') echo ' selected="selected"'; ?>>thickbox</option>
</select> <em>Note: Only applies when <strong>Link Images To Full Resolution</strong> is on.</em>
</td></tr>

It should look like this:

<tr valign="baseline">
<th scope="row"><?php _e('Insert "class=..." Attribute In Link:') ?></th>
<td><select name="gallery_plus_overlay2">
<option value="none"<?php if ($gallery_plus_overlay2 == 'none') echo ' selected="selected"'; ?>>NONE</option>
<option value="thickbox"<?php if ($gallery_plus_overlay2 == 'thickbox') echo ' selected="selected"'; ?>>thickbox</option>
</select> <em>Note: Only applies when <strong>Link Images To Full Resolution</strong> is on.</em>
</td></tr>


<tr valign="baseline">
<th scope="row"><?php _e('"rel" value in &lt;a&gt; tag:') ?></th>
<td><select name="gallery_plus_overlay">
<option value="none"<?php if ($gallery_plus_overlay == 'none') echo ' selected="selected"'; ?>>none</option>
<option value="lightbox"<?php if ($gallery_plus_overlay == 'lightbox') echo ' selected="selected"'; ?>>lightbox</option>
</select> Specify which, if any, javscript image overlay package to use. THIS PLUGIN DOES NOT INSTALL ANY OVERLAY PACKAGES.<br /><em>Note: Only applies when <strong>Link type</strong> is set to "image".</em>
</td></tr>

Now lets edit the gallery-plus.php file:

Find.

'overlay' => get_option('gallery_plus_overlay'),

Add the 2nd line below, like this.

'overlay' => get_option('gallery_plus_overlay'),
'overlay2' => get_option('gallery_plus_overlay2'),

Next Find.

<a href=\"$full_image_href[0]\"" . (($overlay != 'none') ? ' class="' . $overlay . '"' : '') . ($atagtitle ? " title=\"".trim(htmlspecialchars($attachment->post_title, ENT_QUOTES ))."\"" : '') . "><img src=\"$thumbnail_link[0]\" title=\"".trim(htmlspecialchars($attachment->post_title, ENT_QUOTES ))."\" alt=\"".trim(htmlspecialchars($attachment->post_excerpt, ENT_QUOTES))."\" width=\"$thumbnail_link[1]\" height=\"$thumbnail_link[2]\" class=\"attachment-thumbnail\" /></a></{$icontag}>";

And change the $overlay to $overlay2, like this.

<a href=\"$full_image_href[0]\"" . (($overlay2 != 'none') ? ' class="' . $overlay2 . '"' : '') . ($atagtitle ? " title=\"".trim(htmlspecialchars($attachment->post_title, ENT_QUOTES ))."\"" : '') . "><img src=\"$thumbnail_link[0]\" title=\"".trim(htmlspecialchars($attachment->post_title, ENT_QUOTES ))."\" alt=\"".trim(htmlspecialchars($attachment->post_excerpt, ENT_QUOTES))."\" width=\"$thumbnail_link[1]\" height=\"$thumbnail_link[2]\" class=\"attachment-thumbnail\" /></a>
</{$icontag}>";

note: I know that this is really just riding the plugin of the lightbox script and telling it to use the thickbox only script, but till it’s added in, this is the way I went about it.

Thanks

Continue Reading
Click to comment

You must be logged in to post a comment Login

Leave a Reply

Plugins

Plugin Review: WP Greet Box

Published

on

Yesterday I found and downloaded the WP Greet Box plugin from Omni Noggin. This plugin could be a very useful tool and keeping visitors from various sites, asking them to subscribe to your RSS feed.

A great feature of this plugin is the ability to allow or disallow a user to remove the banner if they so choose to. Another great example is the different icons and text that show up from where the user come from. For example if this post was to get tweeted by yourself or any reader, and one of your followers clicked on the link, a Twitter icon and the associated text would show up on the post.

So far I am really liking this plugin! I have only had it one day, and haven’t played or tweaked with the options. But, you can add in your own icon’s and text from what ever referral site you like that may not be included in the plugin default. That’s cool!

I am going to have to give this plugin a rating of 5 stars. If you liked this post and you’ve download the plugin, please tweet it & head to WordPress.org and vote for this plugin.

Continue Reading

Plugins

Tested: Twitip ID Plugin

Published

on

There is a really neat plugin named Twitip-ID for WordPress. As you can see, if you have commented on this site I was using this plugin.

While it is still in beta testing I feel that it is a really nice plugin, plus it will automatically put the required field into your comments template without any editing. I choice to to manually input the field for custom css and styling.

This plugin is really awesome and allows for other to employ their Twitter ID for other to follow them, giving a little more incentive for people to comment:).

Custom Fields Taking Over

Custom Fields Taking Over

But I have been having a little problem. The Twitter ID’s are generated and stored into the post’s meta as a custom field. Im not sure if I am the only one affectied by this, but as time passed the custom fields generated by commentators started to take over the drop box, and wouldn’t allow the regular custom fields I use to show.

Another think i would like to touch base on is the fact that even if a comment got cought and filtered through Akismet, the custom field of some spammy email address and aa value close to SncSJHfd6sNSs was still generated and stored in the Database of the post..

So from my perspective, I am going to deactivate this plugin at this time and hope the the next releases with touch base on some of these issues.

Update:

Following a message I posted on the WP Twitip ID forum, Andy Bailey replied:

I am working on an update to the twitip plugin. at the moment it is only at beta stage and I have a few things I want to add or change for a proper release. I will get on it as soon as I can!

Continue Reading

Plugins

Beyond Twitter: Tweetsuite & Tweetbacks

Published

on

Every one is aware of Twitter, I hope. Well there are many, many plugins for your WordPress that you can use. So I am not going to be like every one else and write a post with 3o twitter plugins for WordPress. I am just going to talk about one special plugin that is hitting the WP community.

Tweet Suite: a Twitter-WordPress integration plugin that includes the following features:

  • Server-side (no-JS or remote calls) TweetBacks
  • ReTweet-This buttons for each TweetBack
  • A digg-like Tweet-This Button
  • Automatic Tweeting of new posts
  • A Most-Tweeted Widget
  • A Recently-Tweeted Widget
  • A My-Last-Tweets Widget
  • A My-Favorite-Tweets Widget

You can see it in action at JeanaSays. I may even use this plugin on this site!!

Known Issues:

Seems as though this plugin is not compatible with this Google Analytics plugin. *Thanks to Shayne Sanderson for pointing this out.

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Daequan Loco Net Worth: How Rich is the Streamer Actually?

Daequan Loco Net Worth: How Rich is the Streamer Actually?

Daequan Loco is an American Twitch streamer as well as a Youtuber. Through his expertise in playing the game Fortnite, Loco has been able to establish a large following on Twitch with him currently having over 3.7 million followers on the platform. Moreover, he also plays the games Battlefield V, Maplestory 2, Earthfall, Overwatch, Outlast, […]

Lil Uzi Vert Net Worth: Know Everything About Him.

Lil Uzi Vert Net Worth: Know Everything About Him.

Lil Uzi Vert Net Worth: Know Everything About Him. If you are into hardcore rapping, then you must have heard about Lil Uzi Vert. He is an American rapper and songwriter who rose to fame after his hit single ‘Bad and Boujee’ that ranked number 1 on the US Billboard Hot 100. Lil Uzi was […]

Russell Brunson net worth

Russell Brunson net worth

Russell Brunson net worth Introduction Russell is an autonomous businessman, a digital market pioneer, an author, mentor, and motivational speaker. Throughout his several years of career in numerous internet marketing services, he has earned a chance and has influenced millions. He has created the idea of selling in a software project named ClickFunnels through a […]

Nick Austin (Tik Tok) Height, Age, Wiki, Bio, Net Worth & More

Nick Austin (Tik Tok) Height, Age, Wiki, Bio, Net Worth & More

Nick Austin is an American social media star who is mainly popular on lip-syncing app Tik Tok. Within a short space of time, Austin has been able to gather a huge amount of fanbase on the platform. Austin was born on July 1, 2000, in the United States which makes him currently 19 years of […]

Trending