View Single Post
  #2 (permalink)  
Old 06-23-2008, 03:29 PM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
 
Join Date: Jun 2006
Location: PA
Posts: 2,407
Thanks: 171
Thanked 440 Times in 279 Posts
I think I fixed this.. There are 2 parts.. one for the sidebar tags and another for the story tags.
Please note: this will only effect people using search method #4
First
Open yoursite/templates/yourtemplate/sidebar_modules/tags.tpl

Find
Code:
 <a href="{$tag_url[customer]}">{$tag_name[customer]}</a>
Replace it with

Code:
 <a href="{$my_base_url}{$my_pligg_base}/search.php?q={$tag_name[customer]}++&sa=Go&sitesearch=http%3A%2F%2F{$my_base_url}{$my_pligg_base}&flav=0002&client=pub-7688534628068296&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A11&hl=en">{$tag_name[customer]}</a>
Don't forget to replace the Google Publishers ID with your own

Next open yoursite/templates/yourtemplate/link_summary.tpl
Find
Code:
{if $enable_tags eq 'true'}
                {if $tags ne ''}
                    | 
                    <span id="ls_tags-{$link_shakebox_index}"><b><a href="{$URL_tagcloud}" title="Tags" style='text-decoration: none;'>{#PLIGG_Visual_Tags_Link_Summary#}</a></b>: 
                    {section name=thistag loop=$tag_array}
                        <a href="{$tags_url_array[thistag]}" style='text-decoration: none;'>{$tag_array[thistag]}</a>
                    {/section}
                    </span> 
                {/if}
            {/if}
Replace it with
Code:
{if $enable_tags eq 'true'}
{if $tags ne ''}
                    | 
                    <span id="ls_tags-{$link_shakebox_index}"><b><a href="{$URL_tagcloud}" title="Tags" style='text-decoration: none;'>{#PLIGG_Visual_Tags_Link_Summary#}</a></b>: 
                    {section name=thistag loop=$tag_array}
                        <a href="{$my_base_url}{$my_pligg_base}/search.php?q={$tags_url_array[thistag]}++&sa=Go&sitesearch=http%3A%2F%2F{$my_base_url}{$my_pligg_base}&flav=0002&client=pub-7688534628068296&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A11&hl=en" style='text-decoration: none;'>{$tag_array[thistag]}</a>
                    {/section}
                    </span> 
                {/if}
            {/if}
Once again don't forget to change your Google publishers ID..

Let me know how that works..
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote