|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
I just put that file on my site (1.0.3 stable) and it seems to be running much faster and not loading twice - thanks 
|
|
azenis (User)
Senior Boarder
Posts: 55
|
Logged
|
|
|
Nige
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
Prutkar wrote:
If line 265 is not there with timeout code, but it is at line 257, of course, replace it and that should do it.
Prutkar,
I replaced line 257:
| Code: |
echo 'setTimeout("window.location.reload( true )",100);';
|
(Line 257 has javascript tags, that goes around 'setTimeout("window.location.reload( true )",100); but they are being stripped by this forum and I get them to show here.)
with:
| Code: |
global $mosConfig_live_site;
$database->setQuery("UPDATE #__fb_sessions SET lasttime=$systime where userid=$my->id"«»);
$database->query();
mosRedirect($mosConfig_live_site.$_ENV["REQUEST_URI"]);
|
However, the problem I have now is that the first time I click on my menu for Fireboard, the page refreshes but does not go to Fireboard. As an example, if I'm on my homepage (front page), I click on my menu item for Fireboard, the page refreshes back to the same homepage with the same domain URL. I click on my menu for Fireboard a second time, and then it goes to Fireboard. Every subsequent click on the menu goes to Fireboard.
Do you know what the problem is?
Thanks for your help!
|
|
curt (User)
Fresh Boarder
Posts: 13
|
Logged
|
|
|
Last Edit: 2007/09/19 16:39 By curt.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
danialt wrote:
Can you check with this file, if it is working?
Joomla 1.5 RC2 and FB 1.0.3 - seems to be working woot!
latest posts module turned on, only post topic plugin is not working but that's a different issue 
|
|
pedrohsi (User)
Senior Boarder
Posts: 70
|
Logged
|
|
|
Last Edit: 2007/09/19 17:52 By pedrohsi.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
Curt, Prutkar,
You guys better check out Danial's earlier post for the real solution, see:
...com_fireboard/Itemid,38/func,view/id,8718/catid,66/limit,10/limitstart,30/#23582
Cheers,
Michel
|
|
|
Logged
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
techlab wrote:
Curt, Prutkar,
You guys better check out Danial's earlier post for the real solution, see:
...com_fireboard/Itemid,38/func,view/id,8718/catid,66/limit,10/limitstart,30/#23582
Cheers,
Michel
Michel,
Are you referring to the post from "danialt"? I did as he suggested (replaced my fireboard.php with his file). So far, so good.
|
|
curt (User)
Fresh Boarder
Posts: 13
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
I tried the new fireboard.php from danialt and it seemed to fix the double refresh....
But after 15 mins or so when trying to go to forum from my homepage I got this error...
Firefox can't find the server at www.sitename.comhttp.
and in the address bar was www.sitename.comhttp://www.sitename.com/forum
Notice the repetition.....so something is wrong.
Problem stopped when i replaced the original fireboard.php
|
|
|
Logged
|
|
|
Last Edit: 2007/09/20 16:47 By ianrispin.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 3 Weeks ago
|
|
Michel,
I tried it on Firefox and got something similar:
"Unable to connect
Firefox can't establish a connection to the server at mysite.com.
Try Again"
It's unable to connect because the URL changed to:
mysite.com/index.php?option=com_fireboar...=showcat&catid=9
The URL changed from "http" to "https". I don't know why and I don't have SSL. Every time I click on "Try Again", I get the same message.
This is so bizarre.
Also, I think that when I go back to my site on IE7 a day later and click on my menu item for Fireboard forum, the homepage (front page) refreshes. I have to click it again to get to the forum. I need to confirm this.
|
|
curt (User)
Fresh Boarder
Posts: 13
|
Logged
|
|
|
Last Edit: 2007/09/20 20:44 By curt.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 2 Weeks ago
|
|
|
Is it possible to get the code parts? I want to inject these parts manual in my fireboard.php, because mine is already an edited version.
Thanxx
|
|
|
Logged
|
|
|
Last Edit: 2007/09/21 16:56 By GODComplex.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months, 2 Weeks ago
|
|
|
I'd like the code parts as I've modified my fireboard.php as well...would make integration quite a bit easier.
-Greg
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Loads forum page then reloads once again? 11 Months ago
|
|
Add the following right at the top after the
// Dont allow direct linking
defined ('_VALID_MOS'  or die('Direct Access to this location is not allowed.'  ;
| Code: |
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': ''),
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
|
Around about line 250
Was: | Code: |
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);';
}
}
|
Now: | Code: |
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);';*/
}
}
|
|
|
|
Logged
|
|
|
Last Edit: 2007/10/11 00:43 By bpresent.
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|