• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Bug fix: when reloading the page, the previously joined chan

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby mkoch » Thu Jun 15, 2006 11:24 am

"Bug fix: when reloading the page, the previously joined channels were not joined again as expected."

Is this bug fix commited to SVN? If I reload my page i get the "Missing parameter (/join {channelname})" message. This can be reproduced on demo chat on this site.
mkoch
Member
 
Posts: 77
Joined: Tue Feb 21, 2006 5:08 pm
Location: Brussels/Denmark
  • Website
Top

Postby phpfreechat » Thu Jun 15, 2006 12:59 pm

Ok, the bug was not completly fixed, now it's ok with this patch (is on the subversion):
Code: Select all
Modified: trunk/themes/default/templates/pfcclient.js.tpl.php
===================================================================
--- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-15 11:50:12 UTC (rev 583)
+++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-15 11:56:43 UTC (rev 584)
@@ -302,11 +302,13 @@
            echo "this.sendRequest('".$cmd."', '".addslashes($ch)."');n";
          }
        // the last joined channel must be the last entry in the parameter list
-        for($i=0; $i<count($u->channels); $i++)
+        $i = 0;
+        foreach($u->channels as $ch)
        {
-          $ch = $u->channels[$i]["name"];
+          $ch = $ch["name"];
          $cmd = $i < count($u->channels)-1 ? "/join2" : "/join";
          echo "this.sendRequest('".$cmd."', '".addslashes($ch)."');n";
+          $i++;
        }
        foreach($u->privmsg as $pv)
          echo "this.sendRequest('/privmsg', '".addslashes($pv["name"])."');n";
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby mkoch » Thu Jun 15, 2006 4:28 pm

I see this now works in demo.

I updated my SVN but still not works for me.

It re-joins the room, but it is blank I can no longer type anything in it.
Last edited by mkoch on Thu Jun 15, 2006 9:28 pm, edited 1 time in total.
mkoch
Member
 
Posts: 77
Joined: Tue Feb 21, 2006 5:08 pm
Location: Brussels/Denmark
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 17 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub