Narasopa Media
home | blog | contact

Moving Description in NextGen Gallery

So, this is in response to Freaq’s question on the post Adding Title and Description to Nextgen Gallery Thumbnails. He had a site and he wanted to display the image description in the sidebar, not in the main embedded gallery.

To his credit, I couldn’t figure it out off the top of my head, so he hired my programming team to look into it, and he is kind enough to have given us permission to post the solution we came up with publicly so that if any of you need it it’s here…

Left sidebar page
wp-content\themes\THEME\l_sidebar.php

In left sidebar page we have changed div id from “desc” to “gallery_desc”.

Image Browser page
wp-content\plugins\nextgen-gallery\view\imagebrowser.php

In image browser page we added below mentioned code.

<div id="gal_title" style="display:none;"><b><?php echo ucfirst($image->alttext) ?></b></div>
<div id="gal_desc" style="display:none;"><p><?php echo ucfirst($image->description) ?></p></div>
<script language="javascript" type="text/javascript"> document.getElementById('gallery_desc').innerHTML = document.getElementById('gal_title').innerHTML+document.getElementById('gal_desc').innerHTML;
</script>

In place of

<div class="ngg-imagebrowser-desc"><h6><?php echo $image->description ?></h6></div>

Here we are putting the title & description in hidden div tags, and after loading the page, we allocate these values to left panel div tag having id “gallery_desc”.

Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • NewsVine
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Live
  • Google Bookmarks
  • Yahoo! Buzz

GigTrak Feature Requests

I recently took over the management and development of GigTrak.com – a great booking resource for small to midsized musicians in the US.

My intention is to rapidly and constantly add new features to the site – things that we all need as musicians. I know what I need (and I’ll share full upgrade plans […]

Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • NewsVine
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Live
  • Google Bookmarks
  • Yahoo! Buzz

Reverse Google Marketing

I’ve recently started writing and reviewing for BlogCritics.org – check out my first product review…

Book Review: Reverse Google Marketing by Wendy Stevens

Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • NewsVine
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Live
  • Google Bookmarks
  • Yahoo! Buzz

Adding Redirects to Contact Form 7

As you probably know by now, I use Wordpress on a lot of different sites – I really think that it is a miraculous piece of software. Recently I’ve been approached by quite a lot of people in the home based business community who are doing Google Adwords advertising on their sites, and need […]

Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • NewsVine
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Live
  • Google Bookmarks
  • Yahoo! Buzz

Creating High Conversion Website Buttons

In the endless search for pushing the conversion of sales letters and opt-in pages higher and higher, I’ve come across a couple of secrets in my time that have almost invariably made a positive difference in conversion. One of those involves the way that your call to action button is styled. Not to […]

Share and Enjoy:
  • Facebook
  • Twitter
  • MySpace
  • Digg
  • del.icio.us
  • NewsVine
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Live
  • Google Bookmarks
  • Yahoo! Buzz