"darknova, post: 89667":Hi!
after the member number on my site passed the 1000 number the counter stooped working
now I have 1033 members and 19999 free space out of 20000 left : !?
any thoughts!
THANKS!
"darknova, post: 88810":READ READ READYou have one to many } (ends)
use notepad++ open in it and click after "{" that will show you with the read line where the other "{" (end of the code)
I checked all the code and still have not found the f**king unexpected '}'

//Show todays date
function show_today_date(){
$get_month = date('n');
$get_day = date('N');
$days_names = array("".T_("MONDAY")."", "".T_("TUESDAY")."", "".T_("WEDNESDAY")."", "".T_("THURSDAY")."", "".T_("FRIDAY")."", "".T_("SATUDAY")."", "".T_("SUNDAY")."");
$months_names = array("".T_("JANUARY")."", "".T_("FEBRUARY")."", "".T_("MARCH")."", "".T_("APRIL")."", "".T_("MAY")."", "".T_("JUNE")."", "".T_("JULY")."","".T_("AUGUST")."", "".T_("SEPTEMBER")."","".T_("OCTOBER")."", "".T_("NOVEMBER")."", "".T_("DECEMBER")."");
$date = date('Y ');
$date .= $months_names[$get_month-1];
$date .= date(' j d. ');
$date .= $days_names[$get_day-1];
return $date;
}//End date
Open your lang file exp. english.php and add this code:
//Yars Months
$LANG["JANUARY"] = "january";
$LANG["FEBRUARY"] = "february";
$LANG["MARCH"] = "march";
$LANG["APRIL"] = "april";
$LANG["MAY"] = "may";
$LANG["JUNE"] = "june";
$LANG["JULY"] = "july";
$LANG["AUGUST"] = "august";
$LANG["SEPTEMBER"] = "september";
$LANG["OCTOBER"] = "october";
$LANG["NOVEMBER"] = "november";
$LANG["DECEMBER"] = "december";
//Week days
$LANG["MONDAY"] = "monday";
$LANG["TUESDAY"] = "tuesday";
$LANG["WEDNESDAY"] = "wednesday";
$LANG["THURSDAY"] = "thursday";
$LANG["FRIDAY"] = "friday";
$LANG["SATUDAY"] = "satuday";
$LANG["SUNDAY"] = "sunday";
Add this code in your: ../theme.php file
.showday {
color:#dadada;
font-family:"Arial Black", Gadget, sans-serif;
font-size:14px;
font-weight:bold;
display:inline;
margin-left: 10px;
}
And add this code in your ../header.php file. place there where you want to show it.
<div class="showday"><?php echo show_today_date();?></div>
div.pagination {
color:#48b9ef;
padding:10px 0 10px 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
text-align:center;
}
div.pagination a {
color:#fff;
padding:2px 5px;
margin:0 2px;
text-decoration:none;
border:1px solid #0174bb;
background-color:#333;
}
div.pagination a:hover, div.pagination a:active {
border:1px solid #0174bb;
color:#333333;
background-color:#eef7fc;
text-decoration:underline;
}
div.pagination span.current {
padding:2px 5px;
border:1px solid #fff;
color:#fff;
font-weight:bold;
background-color:#0174bb;
}
Open backend/functions.php file:
function pager($rpp, $count, $href, $opts = array()) {
$pages = ceil($count / $rpp);
if (!$opts["lastpagedefault"])
$pagedefault = 0;
else {
$pagedefault = floor(($count - 1) / $rpp);
if ($pagedefault < 0)
$pagedefault = 0;
}
if (isset($_GET["page"])) {
$page = (int) $_GET["page"];
if ($page < 0)
$page = $pagedefault;
}
else
$page = $pagedefault;
$pager = "";
$mp = $pages - 1;
$as = "<b><< ".T_("PREVIOUS")."</b>";
if ($page >= 1) {
$pager .= "<a href=\"{$href}page=" . ($page - 1) . "\">";
$pager .= $as;
$pager .= "</a>";
}
else
$pager .= $as;
$pager .= " ";
$as = "<b>".T_("NEXT")." >></b>";
if ($page < $mp && $mp >= 0) {
$pager .= "<a href=\"{$href}page=" . ($page + 1) . "\">";
$pager .= $as;
$pager .= "</a>";
}
else
$pager .= $as;
if ($count) {
$pagerarr = array();
$dotted = 0;
$dotspace = 3;
$dotend = $pages - $dotspace;
$curdotend = $page - $dotspace;
$curdotstart = $page + $dotspace;
for ($i = 0; $i < $pages; $i++) {
if (($i >= $dotspace && $i <= $curdotend) || ($i >= $curdotstart && $i < $dotend)) {
if (!$dotted)
$pagerarr[] = "...";
$dotted = 1;
continue;
}
$dotted = 0;
$start = $i * $rpp + 1;
$end = $start + $rpp - 1;
if ($end > $count)
$end = $count;
$text = "$start - $end";
if ($i != $page)
$pagerarr[] = "<a href=\"{$href}page=$i\"><b>$text</b></a>";
else
$pagerarr[] = "<b>$text</b>";
}
$pagerstr = join(" | ", $pagerarr);
$pagertop = "<p align=\"center\">$pager<br />$pagerstr</p>\n";
$pagerbottom = "<p align=\"center\">$pagerstr<br />$pager</p>\n";
}
else {
$pagertop = "<p align=\"center\">$pager</p>\n";
$pagerbottom = $pagertop;
}
$start = $page * $rpp;
return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}
And replace to this code:
function pager($rpp, $count, $href, $opts = array()) {
$pages = ceil($count / $rpp);
if (!$opts["lastpagedefault"])
$pagedefault = 0;
else {
$pagedefault = floor(($count - 1) / $rpp);
if ($pagedefault < 0)
$pagedefault = 0;
}
if (isset($_GET["page"])) {
$page = (int) $_GET["page"];
if ($page < 0)
$page = $pagedefault;
}
else
$page = $pagedefault;
$pager = "";
$mp = $pages - 1;
if ($page >= 1) {
$as = "<b>« ".T_("PREVIOUS")."</b>";
$prevb .= "<a href=\"{$href}page=" . ($page - 1) . "\">";
$prevb .= $as;
$prevb .= "</a>";
}
else
$nextb .= $as;
if ($page < $mp && $mp >= 0) {
$as = "<b>".T_("NEXT")." »</b>";
$nextb .= "<a href=\"{$href}page=" . ($page + 1) . "\">";
$nextb .= $as;
$nextb .= "</a>";
}
if ($count) {
$pagerarr = array();
$dotted = 0;
$dotspace = 2;
$dotend = $pages - $dotspace;
$curdotend = $page - $dotspace;
$curdotstart = $page + $dotspace;
for ($i = 0; $i < $pages; $i++) {
if (($i >= $dotspace && $i <= $curdotend) || ($i >= $curdotstart && $i < $dotend)) {
if (!$dotted)
$pagerarr[] = "<b>...</b>";
$dotted = 1;
continue;
}
$dotted = 0;
$start = $i * $rpp + 1;
$end = $start + $rpp - 1;
if ($end > $count)
$end = $count;
$text = "$start - $end";
if ($i != $page)
$pagerarr[] = "<a href=\"{$href}page=$i\"><b>$text</b></a>";
else
$pagerarr[] = "<span class=\"current\">$text</span>";
}
$pagerstr = join(" ", $pagerarr);
$pagertop = "<p align=\"center\"><div class=\"pagination\">$prevb $pagerstr $nextb</div></p>\n";
$pagerbottom = "<p align=\"center\"><div class=\"pagination\">$prevb $pagerstr $nextb</div></p>\n";
}
else {
$pagertop = "<p align=\"center\">$prevb $nextb</p>\n";
$pagerbottom = $pagertop;
}
$start = $page * $rpp;
return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}
$showtime = date('Y',$gettime).', '.$month[date('n',$gettime)-1].' '.date('j',$gettime).', '.$dayname[date('N',$gettime)-1].' - '.date('H',$gettime).':'.date('i',$gettime).' hrs.';$dayname = array(''.T_("MON").'', ''.T_("TUE").'', ''.T_("WED").'', ''.T_("THU").'', ''.T_("FRI").'', ''.T_("SAT").'', ''.T_("SUN").'');'.$daysname[date('N',$gettime)-1].'
// Show first 2 items expanded
if ($news_flag < 2) {
$disp = "block";
$pic = "minus";
} else {
$disp = "none";
$pic = "plus";
}
After this code incert this:
$gettime = utc_to_tz_time($array['added']);
$month = array('1', '2', '3', '4', '5', '6', '7','8', '9','10', '11', '12');
$showtime = date('Y',$gettime).', '.$month[date('n',$gettime)-1].' '.date('j',$gettime).' d. - '.date('H',$gettime).':'.date('i',$gettime).' hrs.';
Find this:
" . date("d-M-y", utc_to_tz_time($array['added'])) . "
Replace to this:
( ".$showtime." )
Numbers mean: months names like: 1 = January, 2 = February and etc.
You can inter your languages month name like: february: февраль, vasaris, février...
If your tracker have multilanguage system then:
This:
$month = array('1', '2', '3', '4', '5', '6', '7','8', '9','10', '11', '12');
Change to this:
$month = array(' '.T_("JANUARY").' ', ' '.T_("FEBRUARY").' '); and etc.


