When you click on a news article the Page Up link (right bottom) gives this error
What did I do wrong?string(43) "Smarty error: eval: missing 'var' parameter"
What did I do wrong?string(43) "Smarty error: eval: missing 'var' parameter"
Code: Select all
Index: function.anchor.php
===================================================================
--- function.anchor.php (revision 4268)
+++ function.anchor.php (working copy)
@@ -33,7 +33,7 @@
if (isset($_SERVER['REQUEST_URI']))
{
$url = cms_htmlentities($_SERVER['REQUEST_URI']).'#'.$params['anchor'];
- $url = str_replace('&', '&', $url);
+# $url = str_replace('&', '&', $url);
if (isset($params['onlyhref']) && ($params['onlyhref'] == '1' || $params['onlyhref'] == 'true'))
#Note if you set 'onlyheref' that is what you get - no class or title or tabindex or text
echo $url;
Code: Select all
function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); }
print(selfURL());Code: Select all
<a href="{atual_url}#" title="Return to top">top</a>That doesn't tell anything because you use pretty urls and as I stated there is no anchor problem when using pretty urls.aozuas wrote:
Now its working fine. See here a news working example:
http://www.drsamirhaje.com/news/11/59/
is there a reason why you're not using them in the first place?Mesmer wrote: For the time being I've switched on Pretty URL's and that worked.