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

Simple Machines Forum Integration

Post a bug fix, a new feature, a theme ...

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

Post a reply
31 posts • Page 1 of 3 • 1, 2, 3

Postby DarkOmega » Tue Jan 02, 2007 2:12 pm

This will integrate PFC (PHP Free Chat) into your simple machines forum. I saw a couple of requests to have this plugged into smf so here it is. Please remember this is a first attempt and I currently have only tested this out on two of the forums I work on.

This installs perfectly for me, but this does not mean it will for you. Please keep in mind certain things on your forum may cause an error with this.

Don't forget to customize the pfcconfig.php in the PFChat folder, I marked everything you would want to change.

You can get the modification at
http://custom.simplemachines.org/mods/index.php?mod=603

Tested on smf 1.1 and smf 1.1.1

I am now looking into setting up a PFC user info box somewhere on the main forum but dont know when I will have time to work on it next so keep an eye out.

Enjoy ;)
Last edited by DarkOmega on Tue Jan 02, 2007 2:14 pm, edited 1 time in total.
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby klaus » Tue Jan 02, 2007 10:55 pm

DarkOmega, thanks for your hard work, but mod can't be downloaded... can you give us an optional link?
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby DarkOmega » Wed Jan 03, 2007 12:57 am

Sorry I thought they would have approved them a lot sooner than this.

-EDIT-

Its been about a month and a half since I sent this mod to SMF for approval. I inquired about it a few times, got no response, no feedback nothing. People on SMF started posting and sending me emails and posts about downloads, bugs, etc, on top of the ones I get here.

The point is I have been uploading any fixes to 2 separate locations, and posting on more than 3 forums. I would like to centralize all of this just to make it easier on myself.
For any further information, downloads or help please go to:
http://www.omegadesigns.net/support
Thanks
Last edited by DarkOmega on Tue Feb 13, 2007 2:08 pm, edited 1 time in total.
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby Scriptsentails » Wed Jan 03, 2007 3:26 am

Wow, props for this. I've been waiting for something like this. Good job and keep up the work. :D
Scriptsentails
New member
 
Posts: 4
Joined: Tue Jan 02, 2007 6:48 am
Top

Postby klaus » Wed Jan 03, 2007 7:01 am

Great! Thanks
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby klaus » Wed Jan 03, 2007 8:54 am

I just found the best next two features you could add to this excelent mod:

1 - Permissions! As you know, integrating this into a forum means giving access to it's members only. However, every1 can use it if visiting the right page. That's why adding your mod to the global permissions table would be a very nice feature.

Here's a step by step guide on how to do it:
http://www.simplemachines.org/community ... ic=59366.0
http://www.simplemachines.org/community ... ic=19136.0

2 - Also, it would be good to avoid nick changes. For this you can go here:
http://www.phpfreechat.net/forum/viewtopic.php?id=73
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby DarkOmega » Wed Jan 03, 2007 11:17 am

Well like I said its a first attempt, a work in progress so to speak, I do plan on adding more features later on. Currently the forum does not block all access to the chat room from guests, however the chat button itself is hidden to guests so they wont even know you have one :) . I was more worried about the install though, how did it go, did everything work out ok?
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby DarkOmega » Wed Jan 03, 2007 1:43 pm

woop found a slight bug, This installed ok on 2 of my forums and didnt work on a third. I found the problem in pfcconfig.php I changed this:

require_once("../SSI.php");

to this:

require_once dirname(__FILE__)."../../SSI.php";

and it fixed the problem. I changed this in the download but if you already got it then this is the fix for it.
Last edited by DarkOmega on Wed Jan 03, 2007 1:44 pm, edited 1 time in total.
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby klaus » Wed Jan 03, 2007 6:05 pm

Yes, I had the same problem and changed that to the complete url and worked.
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby klaus » Wed Jan 03, 2007 10:06 pm

DarkOmega wrote:I am now looking into setting up a PFC user info box somewhere on the main forum but dont know when I will have time to work on it next so keep an eye out.

Enjoy ;)

I think you know this already, but complete code for this is already on the phpfreechat pack.

Found another bug: $params["title"] does not work. Maybe variable already in use? It always display "My Chat"
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby klaus » Wed Jan 03, 2007 10:09 pm

Also the $params["frozen_nick"] = true; works and avoids members to change nick :)
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby DarkOmega » Thu Jan 04, 2007 12:25 am

klaus wrote:I think you know this already, but complete code for this is already on the phpfreechat pack.

Yea I know but the problem is getting it to work properly with smf.

klaus wrote:Found another bug: $params["title"] does not work. Maybe variable already in use? It always display "My Chat"

Works fine for me, did you try going to /PFChat/data/private and deleting the cache folder then refresh your browser? I personally delete the chat and logs folders as well so if you already deleted the cache folder and it didnt work then try deleting all three and see if that works.

klaus wrote:Also the $params["frozen_nick"] = true; works and avoids members to change nick

Thanks I will add that in but I will leave it deactivated. The reason for this is that I believe it will cause issues for people who have different accounts on your forum and share the same computer. I didn’t want to jump too far ahead of myself without knowing the consequences =)
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby klaus » Thu Jan 04, 2007 7:23 am

$params["title"] working now. It was indeed a cache issue.
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Postby DarkOmega » Sun Jan 07, 2007 7:20 pm

-UPDATE- (1/7/07)

A list of users in the chat room will now show up in the SMF Info Center

The SMF Who list will now display the user as being in the Chat Room if that's where they are.

I uploaded the mod to the above links
DarkOmega
Member
 
Posts: 20
Joined: Tue Jan 02, 2007 1:06 pm
Location: Averill Park, NY
  • Website
Top

Postby klaus » Sun Jan 07, 2007 10:25 pm

Thanks a lot DarkOmega!

Please don't forget the adding of your mod to the global permissions table in the next release.

Thanks again!

BTW, nice avatar, lol.
klaus
Member
 
Posts: 16
Joined: Thu Dec 14, 2006 9:26 am
Top

Next

Post a reply
31 posts • Page 1 of 3 • 1, 2, 3

Return to Contributions (v1.x)

Who is online

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