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

Online Users

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
4 posts • Page 1 of 1

Postby andrewbelcher » Tue Mar 07, 2006 12:32 am

I've been working on a phpBB integration. However - I've hit a snag.

I need to access (from a page inside phpBB) the list of online users.

How can I do this? I've not been able to work out how the nicknames are stored or how to extract it and use it...

Cheers
andrewbelcher
Member
 
Posts: 32
Joined: Tue Feb 28, 2006 1:47 am
Top

Postby phpfreechat » Tue Mar 07, 2006 9:17 am

To decode the default file container nicknames format use this code :
Code: Select all
urldecode(base64_decode($encoded_nickname));
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby andrewbelcher » Tue Mar 07, 2006 10:46 am

Ahh - Brilliant! Thankyou! I'm almost there on the integration. Once I've done it I can give you all the code.

While thinking about it - a couple things I've encountered - the themes parameter doesn't seem to actually change the theme, so I've had to replace /default/ with my own theme.

Also when frozen nick is on, you can still use the /nick command to change your nickname...

I also had to change the code in the following way, as otherwise it would output the code outside of the php template that was created... This one may just be my being silly and not finding the way it is supposed to be done:

Just remembered an ammendment I made to a chatroom file:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

chatroom/src/phpfreechat.class.php

#
#-----[ FIND ]------------------------------------------
#

  function printJavaScript( $return = false )

#
#-----[ REPLACE WITH ]------------------------------------------
#

  function printJavaScript( $return = true )

#
#-----[ FIND ]------------------------------------------
#

  function printChat( $return = false )

#
#-----[ REPLACE WITH ]------------------------------------------
#

  function printChat( $return = true )

#
#-----[ FIND ]------------------------------------------
#

  function printStyle( $return = false )

#
#-----[ REPLACE WITH ]------------------------------------------
#

  function printStyle( $return = true )
andrewbelcher
Member
 
Posts: 32
Joined: Tue Feb 28, 2006 1:47 am
Top

Postby fishy » Fri Aug 18, 2006 7:02 pm

how is your integration coming? have you finished? are you close?
fishy
New member
 
Posts: 3
Joined: Fri Aug 18, 2006 6:31 pm
Top


Topic locked
4 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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