Dears Members.
Fix Number: 02
Fireboard: 1.0.3 (Realease)
File(s):fireboard.php
BUG:
- The first page load twice.
Procedure:
1 - Make backup of your files and database of Joomla and Fireboard.
1 - Make Download of the file attach. (fireboard.zip)
2 - Unzip the file of fireboard.zip
3 - Go the folder. (With a program of FTP or JoomlaXplorer)
Joomla_root/components/com_fireboard
Change the file
fireboard.php by in attached.
Only Information.
Changes:
File fireboard.php
In line 18.
Insert this code.
| Code: |
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': ''),
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
|
and line 245 change this code:
| Code: |
if ($new_fb_user != 1)
{ //get session information, update last time timestamp.
$inactivePeriod = ($fbSession->lasttime)+1800;
if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET allowed='na', readtopics='' where userid=$my->id"«»);
$database->query();
setcookie("fboard_settings[prevvisit]", $fbSession->lasttime, time() + 31536000, '/');
// do not reload the page if user is posting :: TODO: check if it cab be replaced by mosRedirect
if ($func != "post"«») {
echo 'setTimeout("window.location.reload( true )",100);';
}
}
$database->setQuery("UPDATE #__fb_sessions SET lasttime=$systime where userid=$my->id"«»);
$database->query();
|
To;
| Code: |
if ($new_fb_user != 1)
{ //get session information, update last time timestamp.
$inactivePeriod = ($fbSession->lasttime)+1800;
if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET allowed='na',lasttime={$systime}, readtopics='' where userid={$my->id}"«»);
$database->query();
setcookie("fboard_settings[prevvisit]", $fbSession->lasttime, time() + 31536000, '/');
// do not reload the page if user is posting :: TODO: check if it cab be replaced by mosRedirect
if ($func != "post"«») {
mosRedirect($self_url);
die();
/* echo 'setTimeout("window.location.reload( true )",100);';*/
}
}
$database->setQuery("UPDATE #__fb_sessions SET lasttime={$systime} where userid={$my->id}"«»);
$database->query();
}
|
Attention!!
This change won't be definitive for the next realease, we are studying a better solution for this BUG. They put this correction will do with that your Fireboard doesn't show this BUG.
Waiting our next realease.
Cu, Trorram