Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Fix 02 - FB (1.0.3) - Correction of BUG (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Fix 02 - FB (1.0.3) - Correction of BUG
#30443
Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
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
File Attachment:
File Name: fireboard-67b98b7f7b08bdbddcf271a497abeceb.zip
File Size: 7421
Trorram (Moderator)
Lead the Testing and Quality team
Moderator
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sao Paulo - Brazil
Logged Logged
 
Leader the Testing and Quality team BestofJoomla - Fireboard
Comunidade do Joomla no Brasil!
 
The administrator has disabled public write access.  
#30463
Re:Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
Hey bud,

I appreciate the code but there are errors.....

if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET allowed='na', readtopics='' where userid=$my->id";

PLUS, when I downloaded your new version, it didn't have the changes you mentioned on line 245, only the ones on 18. Did you upload the wrong one?

Clinton
djclinton (User)
I'm a personal person
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Dunedin, New Zealand Birthdate: 1972-03-31
Logged Logged
 
The administrator has disabled public write access.  
#30533
Re:Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
Dear djclinton;

I test now, and has changes (Two - Line 18 and Line after Line 245).

I file dont have problem, and nay peoples test this modification.

Tks.
Trorram
Trorram (Moderator)
Lead the Testing and Quality team
Moderator
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sao Paulo - Brazil
Logged Logged
 
Leader the Testing and Quality team BestofJoomla - Fireboard
Comunidade do Joomla no Brasil!
 
The administrator has disabled public write access.  
#30604
Re:Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
post deleted
djclinton (User)
I'm a personal person
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Dunedin, New Zealand Birthdate: 1972-03-31
Logged Logged
 
Last Edit: 2007/11/09 00:03 By djclinton.
 
The administrator has disabled public write access.  
#30615
Re:Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
Dear;

Never replace this code, because BBCODE(Code) script has problem here..

USe the file attached.

Cu, Trorram
Trorram (Moderator)
Lead the Testing and Quality team
Moderator
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sao Paulo - Brazil
Logged Logged
 
Last Edit: 2007/11/08 22:13 By Trorram.
 
Leader the Testing and Quality team BestofJoomla - Fireboard
Comunidade do Joomla no Brasil!
 
The administrator has disabled public write access.  
#30628
Re:Fix 02 - FB (1.0.3) - Correction of BUG 10 Months ago  
Ah cool, that explains a lot.

Cheers mate.

Clinton
djclinton (User)
I'm a personal person
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Dunedin, New Zealand Birthdate: 1972-03-31
Logged Logged
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop