file: /search.php
Code:
// breadcrumbs and page title
$navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Breadcrumb_Search') . urldecode(stripslashes($search->searchTerm));
$navwhere['link1'] = getmyurl('search', urlencode($search->searchTerm));
$main_smarty->assign('navbar_where', $navwhere);
$main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Breadcrumb_Search') . urldecode(stripslashes($search->searchTerm))); Code:
function get_search_clause($option='') {
if(!empty($this->searchTerm)) {
// make sure there is a search term
$words = $this->searchTerm;
$words = urldecode($words); Code:
if ($URLMethod == 1) {
... cutted
If ($x == "tag") {return my_pligg_base."/search.php?search=" . urlencode($var1) . "&tag=true";}
If ($x == "tag2") {return my_pligg_base."/search.php?search=" . urlencode($var1) . "&tag=true&from=" . urlencode($var2);}
}
if ($URLMethod == 2) {
... cutted
If ($x == "tag") {return my_pligg_base."/tag/" . urlencode($var1);}
If ($x == "tag2") {return my_pligg_base."/tag/" . urlencode($var1) . "/" . urlencode($var2) . "/";} Code:
{if $templatelite.get.search neq ""}
<h2 class="title">{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes|urldecode}</h2>
{/if}
{if isset($templatelite.get.q)}
<h2 class="title">{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes|urldecode}</h2>
{/if} Code:
<div class="search">
{if $templatelite.get.search neq ""}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2|urldecode}
{else} for me this works now... it's an ugly hack but the whole pligg code seems to be one as well! at least regarding internationalization...







Linear Mode




