Forum
Welcome, Guest
Please Login to access forum.
HACK: Great boost for K2 SIG pro users (1 viewing) 
Go to bottom
TOPIC: HACK: Great boost for K2 SIG pro users
#1136
MessageDJ
Fresh Boarder
Posts: 5
User Offline
HACK: Great boost for K2 SIG pro users Karma: 0  
SMACK it Presents

This hack enables Jsitemap to crawl to all your K2 Simple Image Gallery photos, and gives your image crawling an amazing boost

open

/plugins/content/jw_sigpro/jw_sigpro/tmpl/YOURSIGTEMPLATE/default.php (check the SIG settings for Layout template for image galleries)

find (around line 24)

Code:

<img class="sigProImg" src="/<?php echo $transparent; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;background-image: url('/<?php echo $photo->thumbImageFilePath; ?>');" />
change to:
Code:

<img alt="<?php echo JText::_(‘YOUR_SITE_NAME').' '.$photo->captionTitle; ?>" title="<?php echo JText::_(‘YOUR_SITE_NAME').' '.$photo->captionTitle; ?>" class="sigProImg" src="/<?php echo $photo->thumbImageFilePath; ?>" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;" />
change "Title description for images sitemap" in Sitemap settings from Auto to Alt. result: all images in the SIG pro will be indexed by Google as: YOUR_SITE_NAME TITLE
  • Remember to give your images a unique name, you don’t want all your images to be indexed as “Title”
  • This hack will probably be deleted after SIG upgrades
  • We are not responsible for any damage using this hack, it is not tested for security nor the security and working of the K2 core, and 3rd party compo's
demo: http://www.smackit.nl/index.php?option=com_jmap&view=sitemap&format=images&xslt=1&lang=nl
 
Logged Logged  
  The administrator has disabled public write access.
      Topics Author
    emo
HACK: Great boost for K2 SIG pro users
MessageDJ
    thread link
thread linkthread link Re:HACK: Great boost for K2 SIG pro users
John Dagelmore
Go to top