There is a problem where if there are too many spaces in the source where you include the template, the template will be rendered as a link. To fix, edit vault/class/bbcode.php. Find:
Code:
$args = $this->strip_front_back_whitespace(substr($text, $parampos + 1, strlen($text) - $parampos - 1), 1);
}
$vault->fetch_instance('string');
$templatename = $this->strip_front_back_whitespace($vault->string->substr($text, 0, $parampos), 1);
$templatelow = $vault->string->tolower($templatename);
Replace with:
Code:
$args = trim($this->strip_front_back_whitespace(substr($text, $parampos + 1, strlen($text) - $parampos - 1), 10));
}
$vault->fetch_instance('string');
$vault->fetch_instance('encode');
$templatename = $this->strip_front_back_whitespace($vault->string->substr($text, 0, $parampos), 10);
$templatelow = $vault->string->tolower($vault->encode->encode($templatename, TEMPLATE_SPACE));
In vault/class/bbcode/template.php, find:
Code:
$vault->url->affix_prefix($fetch);
$fetch['title'] = $vault->string->tolower($fetch['title']);
Replace with:
Code:
$vault->fetch_instance('encode');
$vault->url->affix_prefix($fetch);
$fetch['title'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
Bookmarks