• 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

Not change the channel

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

Post a reply
5 posts • Page 1 of 1

Postby shinobi » Tue Dec 14, 2010 3:31 pm

When manually changing the channel so that the initialization parameter $params ["channels"] has a different meaning than what was in the beginning, but in the chat channel is not changing and updating the page does not change the channel too.
That is, the channel is put once - when first initialized. Later, in the background, the channel does not change.

I pass php-debugger on the script, I see that $params ["channels"] is different, but the window still does not change the channel.

Team /rehash is not helping.

method in pfcgui.js
Code: Select all
createTab: function(name, tabid, type){...}

Has wrong variable 'name'.

And to be precise, in a way
privatechat s_07c93b4559ca22b9e70a694d9171f9a1
stored the old values, those that are created when you first load the chat when the plate is shown: "Chat loading ..."


Q: How i can update chat so that was the actual channel? or how to do so when the parameter $params ["channels"] to change data in a folder 'private'
Last edited by shinobi on Tue Dec 14, 2010 4:47 pm, edited 1 time in total.
shinobi
New member
 
Posts: 7
Joined: Mon Dec 13, 2010 12:19 pm
Top

Postby OldWolf » Wed Dec 15, 2010 1:23 am

Have you tried setting it as a dynamic parameter?
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby shinobi » Wed Dec 15, 2010 11:11 am

Yes, i tried it, not help.
When the page refreshes the old settings are stored in
Code: Select all
var pfc_userchan              = <?php $list = array(); foreach($u->channels as $item) {$list[] = $item["name"];} echo $json->encode($list); ?>;

and the new in
Code: Select all
var pfc_defaultchan = <?php echo $json->encode($c->channels); ?>;
Last edited by shinobi on Wed Dec 15, 2010 11:12 am, edited 1 time in total.
shinobi
New member
 
Posts: 7
Joined: Mon Dec 13, 2010 12:19 pm
Top

Postby shinobi » Wed Dec 15, 2010 11:40 am

Maybe when change the channel i can write a script chat commands:
/leav from the old channel and /join a new one?
shinobi
New member
 
Posts: 7
Joined: Mon Dec 13, 2010 12:19 pm
Top

Postby shinobi » Thu Dec 16, 2010 11:24 am

ok. I have two specific questions:
Q1: How in pfcclient.js get the current channels (as array)?
Q2: How to send a command to execute inside pfcclient.js

for example:
Code: Select all
if(oldch != newch){
this.sendCommand('/leave ch '+oldch)
this.sendCommand('/join '+newch)
}

In other words, I can not understand what objects in js, this information is stored and the methods by which to receive it, or from any properties. Please help.
shinobi
New member
 
Posts: 7
Joined: Mon Dec 13, 2010 12:19 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 13 guests

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