• 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

Vbulletin Integration?

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
7 posts • Page 1 of 1

Postby dwessell » Fri May 23, 2008 2:24 pm

Hi all,

I'm new to phpfreechat, and fell in love with it.. But alas, I'm a VB forum (www.straightrazorplace.com). I am interested in helping with the process of getting an integration going, if there's interest.

I'm can donate a test VB to play with (All VB licenses comes with the ability to have a test site).. And I can help with coding. While I don't know the login mechanisms of either system, I'll figure it out as we go.

Is anyone interested?

Thanks
David
dwessell
New member
 
Posts: 4
Joined: Fri May 23, 2008 2:20 pm
Top

Postby dwessell » Fri May 23, 2008 11:39 pm

Actually PFC seems so well designed this is a breeze!! The only thing I can't figure out, is how PFC hangs onto a session.. Say I'm in the chat as nick dwessell, then leave, and come back.. It seems to remember that I'm dwessell, and I don't see where..

What I've done is:

if($vbulletin->userinfo['username'] == 'Unregistered'){
$params["nick"] = "guest".rand(1,1000);
}
else{
$params["nick"] = $vbulletin->userinfo['username']; // setup the intitial nickname
}


But if they come in as a guest, then login and come back, it remembers them as a guest.

Admins, feel free to move this to another forum if better suited.

Thanks
David
Last edited by dwessell on Fri May 23, 2008 11:47 pm, edited 1 time in total.
dwessell
New member
 
Posts: 4
Joined: Fri May 23, 2008 2:20 pm
Top

Postby OldWolf » Sat May 24, 2008 2:18 am

http://www.phpfreechat.net/parameters#frozen_nick

If you set that to true, which you're going to want to do to prevent the user from changing their name anyway, it will set the nick based on the file instead of the session.
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 dwessell » Sat May 24, 2008 3:02 pm

Hi Old Wolf,

Can I take it your the main developer? If so, then my congratulations. Very well designed, and probably the easiest API I've ever used.

I'm running into two small issues that hopefully you can point me in the right direction on. One of them being as discussed above.

1) I have set the variable above as you suggested. However, if a user logs into the chat and is not logged into the forums, they are given a guestnick. If they log into the forums, then return to the chat. The chat remembers them as guest. They can rectify this by typing /init. Is there a parameter that I missed that would assist with this behaviour?

http://www.straightrazorplace.com/index.php?pageid=chat

2) I have the php file sitting at my base of www.straightrazorplace.com, or stated differently at the path of /home/xxxxx/public_html/chat.php. I have all of the files sitting at /home/xxxx/public_html/chat.

In chat.php my require_once is fine: require_once "/home/xxxxx/public_html/chat/src/phpfreechat.class.php";

However, I think that I may need to via parameters point towards some other files since chat.php is a directory below the other files.

Thanks for any assistance,
David
dwessell
New member
 
Posts: 4
Joined: Fri May 23, 2008 2:20 pm
Top

Postby OldWolf » Sun May 25, 2008 3:15 pm

No, I'm afraid I'm not the main developer. The founder comes and goes from time to time here. I try to catch the queries in between. :)

1. Did you set the frozen nick? Did you rehash the chat afterwards? (http://www.phpfreechat.net/rehash)

2. I'm a bit sleepy, so I may not be understanding the question, but let's see if this answers it. In theory, you should only have to require the chat class file, create an instance of the class with whatever settings you like as parameters (this should be done before anything is printed), and then where ever you would like the chat to go, give the print chat line. Occasionally other settings are necessary, but if you have a very basic set up, it shouldn't matter where you have the files stored as long as you have the correct require location.

Hope that helps,
OldWolf
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 dwessell » Sun May 25, 2008 3:30 pm

1) Solved problem one, I just won't allow guests to see the page.

2) Mabye I don't have a directory issue.. Can you go to http://www.straightrazorplace.com/index.php?pageid=chat

Try and post a link, and the link is in white, and can't be read. I thought it was because the chat wasn't finding the correct css files, but I could be wrong?

Thanks
David
Last edited by dwessell on Sun May 25, 2008 3:31 pm, edited 1 time in total.
dwessell
New member
 
Posts: 4
Joined: Fri May 23, 2008 2:20 pm
Top

Postby OldWolf » Mon May 26, 2008 4:47 am

You have page links set up to display as white in the CSS of your site. This influences everything on the site, even your chat. :)
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


Topic locked
7 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 2 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