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?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
(SOLVED!)Loads forum page then reloads once again? (1 viewing) (1) Guest
Go to bottom Favoured: 7
TOPIC: (SOLVED!)Loads forum page then reloads once again?
#23588
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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)
Junior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Nige
 
The administrator has disabled public write access.  
#23602
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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:1]
echo 'setTimeout("window.location.reload( true )",100);';
[/code:1]

(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:1]
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"]);
[/code:1]

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)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/19 16:39 By curt.
 
The administrator has disabled public write access.  
#23621
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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)
Junior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/19 17:52 By pedrohsi.
 
The administrator has disabled public write access.  
#23626
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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
techlab (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Robotech Genesis
Logged Logged
 
 
The administrator has disabled public write access.  
#23636
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#23764
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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
ianrispin (User)
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/20 16:47 By ianrispin.
 
The administrator has disabled public write access.  
#23801
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/20 20:44 By curt.
 
The administrator has disabled public write access.  
#23936
Re:Loads forum page then reloads once again? 1 Year, 2 Months 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
GODComplex (User)
Junior Boarder
Posts: 65
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/21 16:56 By GODComplex.
 
The administrator has disabled public write access.  
#24037
Re:Loads forum page then reloads once again? 1 Year, 2 Months ago  
I'd like the code parts as I've modified my fireboard.php as well...would make integration quite a bit easier.

-Greg
grmi64 (User)
Junior Boarder
Posts: 92
graphgraph
User Offline Click here to see the profile of this user
Gender: Male grmi64 Location: Cobb, CA Birthdate: 1964-12-20
Logged Logged
 
The administrator has disabled public write access.  
#27177
Re:Loads forum page then reloads once again? 1 Year, 1 Month 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:1]
$self_url = sprintf('http%s://%s%s',
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': ''),
$_SERVER['HTTP_HOST'],
$_SERVER['REQUEST_URI']
);
[/code:1]
Around about line 250
Was:[code:1]
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);';
}
}[/code:1]
Now:[code:1]
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);';*/
}
}[/code:1]
bpresent (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Location: AU
Logged Logged
 
Last Edit: 2007/10/11 00:43 By bpresent.
 
 
The administrator has disabled public write access.  
Go to top