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?
Go to bottom Post Reply Favoured: 8
TOPIC:
#29460
Re:Loads forum page then reloads once again? 8 Months, 1 Week ago  
What I have done now, with leigh's help is - my fireboard.php from line 262 to 269 looks like this:
Code:

// do not reload the page if user is posting :: TODO: check if it cab be replaced by mosRedirect
if ($func != "post"«») {

mosRedirect($_SERVER['REQUEST_URI']);
die();
/*
echo 'setTimeout("window.location.reload( true )",100);';
*/


As of now, it is working fine... have to wait and see if I get any complaints from other users. Anyway, it was an intermittent problem, so it may take some time before I can confirm the fix.

Best regards
moonray (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#31267
Re:Loads forum page then reloads once again? 7 Months, 3 Weeks ago  
Does anyone have a final working fireboard.php file with theses edits they can share - or does the one in SVN already have this fix?

Thanks

Greg
gwmbox (User)
:) I like Smilies :)
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
 
-------------------------------------
Computer Nut and Web Designer
 
The administrator has disabled public write access.  
#31284
Re:Loads forum page then reloads once again? 7 Months, 3 Weeks ago  
There is only one edit, I think

in fireboard.php file find

Code:


{ //grant them 30 minutes of inactivity; then recheck privileges and try to send them back where they came from
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();
}


replace it with this (changes are in red color)

{ //grant them 30 minutes of inactivity; then recheck privileges and try to send them back where they came from
$database->setQuery("UPDATE #__fb_sessions SET lasttime=$systime, 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" {
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '',
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
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();
}
Prutkar (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/11/16 12:56 By Prutkar.
 
 
The administrator has disabled public write access.  
#31453
Re:Loads forum page then reloads once again? 7 Months, 3 Weeks ago  
OK I think I have added all that all fine and the double load issues appears fixed. However every now and then I get an error as it tries to load http://www.mydomain.com/http://www.mydomain.com/comp.....

Clicking back on the browser (FF2 and IE7) and then reselecting the menu item it works fine - any ideas why it is doing this - note I am using also Joomsef 1.5.1.

Thanks

Greg
gwmbox (User)
:) I like Smilies :)
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
 
-------------------------------------
Computer Nut and Web Designer
 
The administrator has disabled public write access.  
#31470
Re:Loads forum page then reloads once again? 7 Months, 3 Weeks ago  
I did not observe this behavior on my server, but can be that yours sometimes sets up those two $_SERVER variable (or at least one of them) incorrectly. If you believe that this code is in fact code causing the error, well, we can adjust code to search and remove second incorrect portion, which most probably will be present in $_SERVER['REQUEST_URI'] variable:

$new_URI = str_replace("http://".$_SERVER['HTTP_HOST'], "", $_SERVER['REQUEST_URI']);
$new_URI = str_replace("https://".$_SERVER['HTTP_HOST'], "", $new_URI);

$self_url = sprintf('http%s://%s%s', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '', $_SERVER['HTTP_HOST'], $new_URI );
mosRedirect($self_url);
Prutkar (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/11/18 12:27 By Prutkar.
 
 
The administrator has disabled public write access.  
#31489
Re:Loads forum page then reloads once again? 7 Months, 2 Weeks ago  
Thanks will give that a try. Are you able to attach your edited working fireboard.php file so I can compare it with mine.

Cheers

Greg
gwmbox (User)
:) I like Smilies :)
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
 
-------------------------------------
Computer Nut and Web Designer
 
The administrator has disabled public write access.  
#31541
Re:Loads forum page then reloads once again? 7 Months, 2 Weeks ago  
OK.


I have been trying to get these patches to work for weeks and finally think i got it working - without the glitches.

I had the problem others have had that with the basic patch I had an occasional
(perhaps 1 in 20) glitch where the URL created looked like:
http://www.mysite.com/http://www.mysite.com/forum

I used the patch code provided by prutkar earlier in this thread PLUS
his idea to search the URL string and strip out the excess copy of the base URL.

I wrote my own code for this last bit...here is the complete patch with my addition highlighted in red:

if ($inactivePeriod setQuery("UPDATE #__fb_sessions SET lasttime=$systime, 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);';
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '',
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
if (strripos($self_URL,"http:" != 0)
{
$self_url=substr($self_url,strripos($self_URL,"http:");
}

if (strripos($self_URL,"https:" != 0)
{
$self_url=substr($self_url,strripos($self_URL,"https:");
}

mosRedirect($self_url);
die();
}
}
ianrispin (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/11/18 21:00 By ianrispin.
 
The administrator has disabled public write access.  
#31561
Re:Loads forum page then reloads once again? 7 Months, 2 Weeks ago  
Hmm ok I tried that but got an error.

Parse error: syntax error, unexpected T_STRING in /home/myname/public_html/components/com_fireboard/fireboard.php on line 255

It would be great if one of the devs could provide an official fix please - one that can be accessed by all, maybe release a FB1.0.3a or 1.0.4 or as requested release an official fireboard.php fix.

Thanks

Greg
gwmbox (User)
:) I like Smilies :)
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
 
Last Edit: 2007/11/19 01:32 By gwmbox.
 
-------------------------------------
Computer Nut and Web Designer
 
The administrator has disabled public write access.  
#32266
Re:Loads forum page then reloads once again? 7 Months, 1 Week ago  
Completely confused. Can someone please post the complete fireboard.php after fixing double page load and incorrect url issue.

Thanx a bunch from me and from those who are gonna download it too..

Regards,
Carty..
some1sxi (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#32896
Re:Loads forum page then reloads once again? 7 Months, 1 Week ago  
Any progress on this or is it on hold like anything else?
Putte (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop