Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 6th 2007 edited
     # 1
    Integrates phpFreeChat into Vanilla. Install is extremely easy (no database needed); you should be able to unzip, enable, and go.

    PFC is much easier to use if you also install Set List.

    PFC is part of the Vanilla Friends project.
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 6th 2007 edited
     # 2
    **FIXED** phpFreeChat is now packaged with PFC.

    I really, really wish I could include phpFreeChat with the extension, but it just won't fit in the 100 kB size limit no matter how savagely I hack at it. Maybe the 1.0-final release of phpFreeChat will be smaller, but I rather doubt it. I would need at least 200 kB to cram it all in.
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 7th 2007
     # 3
    I believe one of the board admins will be able to upload a larger file for you squirrel, just ask them ;)
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 7th 2007
     # 4
    Hey, you got your sensible advice in my self-pity.

    Hm. I'll play around with it more and give that a try. Thanks, Stash.
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 7th 2007
     # 5
    Okay, I can get it down under 275 kB without sacrificing any functionality. If any admin can help me upload this, I would be grateful. Thanks!
    • CommentAuthoriternity
    • CommentTimeAug 7th 2007
     # 6
    Help him! Help him! :-)
    •  
      CommentAuthorVaz
    • CommentTimeAug 7th 2007 edited
     # 7
    Upload the file somewhere else and provide a 'full version' download link meanwhilst. PS - cool! I was about to request this someday soon anyway :D I'll try this out later.
    •  
      CommentAuthorVaz
    • CommentTimeAug 7th 2007 edited
     # 8
    I'm having a slight problem. I got it all up but when I visit the page it says:
    "You must be connected to send a message" .. & my message doesnt get sent. How can I correct this?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 7th 2007
     # 9
    I read something in the phpFreeChat install instructions that says on some servers you need to CHMOD 777 all of the phpFreeChat files and directories. You might try that.
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 7th 2007
     # 10
    Okay, I provided a link to the full version. Hope that helps.
    • CommentAuthorChadFenwick
    • CommentTimeAug 7th 2007 edited
     # 11
    Works perfectly. Thanks.

    Would there be a way to make it so only Mods/Admins could create rooms? And disable the X button on the rooms already open. I just want to limit them to the same rooms but still be able to PM eachother if necessary.

    Also would love to have a room only visable to the Mods/Admins, or at least password protected.

    But... I think this basicly has to do with the chats script itself and you might not be able to help.. ^_^

    Edit: Oh, also when you don't have a warning/comment/notify thingy it still shows the yellow box and red icon. Anyway to remove that?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 8th 2007
     # 12
    Chad, I think that everything you're asking for could be done by the PFC extension. The phpFreeChat script is very flexible and it will do damn near anything if you pass it the right parameters.

    Oh, also when you don't have a warning/comment/notify thingy it still shows the yellow box and red icon. Anyway to remove that?

    D'oh. I'll fix that in the next version.
    •  
      CommentAuthorVaz
    • CommentTimeAug 8th 2007
     # 13
    if I install phpfreechat individually it works fine. but when I try and integrate it i still get the problems
  1.  # 14
    Awesome... I'd love to see some features like that... But I'm clueless on how to do it. ^_^
    •  
      CommentAuthorskube
    • CommentTimeAug 9th 2007
     # 15
    This is awesome! But is there a way to show who is currently in the chat room say in the Panel or something? Ideally I would like a small chat ability in the Panel viewable from all pages, but I guess this is not possible.
    •  
      CommentAuthorLussumo Bot
    • CommentTimeAug 9th 2007 edited
     # 16
    Uploaded version 0.9.0 of PFC including the full source.
  2.  # 17
    I've uploaded the full ver to the addons site...you might need to give me a nod whenever you release a new version though..i'm not sure.
  3.  # 18
    Version number changed from 0.9.0 to 0.9.1.
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 9th 2007
     # 19
    Rolled the version and updated the description to match the new source.
    •  
      CommentAuthorskube
    • CommentTimeAug 9th 2007
     # 20
    squirrel, do you think you could lend a hand in trying to get a list online nicknames currently in a chat session. Here's an example: http://www.phpfreechat.net/demo/pfc-1.x/demo/demo31_show_who_is_online-whoisonline.php

    I was thinking of using Nuggets to write the PHP code that would list the users in the chat, but I keep getting an error:
    Notice: Undefined variable: serverid in /extensions/PFC/phpfreechat-1.0-beta11/src/pfci18n.class.php on line 28

    Do you have any ideas?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 10th 2007
     # 21
    skube, What does your code look like?

    It should be as easy as this:
    if ( @include_once($Configuration['PfcPath'] . 'src/pfcinfo.class.php') ) {
    $PfcInfo = new pfcInfo(md5($Context->Configuration['APPLICATION_TITLE']));
    $PfcUsers = $PfcInfo->getOnlineNick(NULL);
    }
    • CommentAuthorithcy
    • CommentTimeAug 10th 2007
     # 22
    does this extension use the LUM_Users table to assign nicks?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 10th 2007
     # 23
    It uses the name of the user in the current session as the nick. No interaction with the DB necessary.
    •  
      CommentAuthorskube
    • CommentTimeAug 10th 2007 edited
     # 24
    This is the code (thx,btw) I use in a Nugget on a different page than the Chat (i.e. Discussions Index)
    <?php
    if (@include_once('/full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfcinfo.class.php')) {
    $PfcInfo = new pfcInfo(md5($Context->Configuration['APPLICATION_TITLE']));
    $PfcUsers = $PfcInfo->getOnlineNick(NULL);
    echo "<ul>";
    foreach($PfcUsers as $u) {
    echo "<li>".$u."</li>";
    }
    echo "</ul>";
    }
    ?>


    However, this is the error I get:
    Notice: Undefined index: childs in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661

    Notice: Undefined index: f890fa7792e4943e9dcc2eee3efa31a2 in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661

    Notice: Undefined index: 773b82d466bb603b2bfc854cff4e3823 in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661

    However, it does list out the users who are currently chatting below the error msg. Is there a way to surpress the errors?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 10th 2007
     # 25
    Yeesh, that sucks. Maybe you can hack pfccontainer.class.php and either comment out line 661 or put in some '@' to suppress the warnings? It's ugly, I know.

    Maybe this is one of the things that needs fixing for their 1.0-final release.
    • CommentAuthorsujang
    • CommentTimeAug 11th 2007
     # 26
    Works great, Thanks.
    Just 1 request; there appears just a blank page when i try to chat wihout signing in. So I would like to know how i can add a senctence and link on that blank page, something like "please click < here > to sign in and have a fun"
    •  
      CommentAuthorskube
    • CommentTimeAug 12th 2007
     # 27
    Commenting out line 661 works, but what does that line do anyway?
    •  
      CommentAuthorsquirrel
    • CommentTimeAug 12th 2007
     # 28
    @skube: It looks like that line is unsetting an index that somehow didn't get set to begin with. Probably it's better to add a '@' in front of the $this.

    @sujang: My solution was to install Page Manager and put the chat inside a tab that is only visible to the roles that have chat permission.
  4.  # 29
    Any luck on getting the announcement box removed when there is nothing to announce? ^_^

    But so far its worked perfectly, no real problems other then that. I'd still like to be able to not allow regular members to open new rooms or close the ones that are default.
    • CommentAuthorzovall
    • CommentTimeAug 24th 2007
     # 30
    @squirrel: Excellent add-on! Works great!

    @ChadFenwick: In default.php, comment out a lines towards the bottom like this:
    // $NoticeCollector->AddNotice($Context->Configuration['PfcNotice']);

    This will get rid of the Announcement box.
  5.  # 31
    Duh... ^_^

    Thanks for that. I really should pay more attention to the script.
    • CommentAuthorcircuit
    • CommentTimeSep 10th 2007 edited
     # 32
    this is a brilliant extension. it works so well. i'm going to try adding a list of chatting users to the panel as well.
    edit: works as above. fantastic.
  6.  # 33
    Yeah, I like the current users in the chat list... But would it be possible to add like a little icon to there name in the "Whos Online" extension? That would be swell.
    • CommentAuthorPhizinza
    • CommentTimeSep 16th 2007
     # 34
    I might of just missed something, but...
    It looks like this would work well if it was at the top of every page, you know with that little minimize thing. So people no matter where they are on the forum can expand that and chat. Is there an option for this? Or how can I get it to display on like the discussions list at the top of the page just below the banner?
    Thanks
    • CommentAuthorcircuit
    • CommentTimeSep 17th 2007
     # 35
    this is a nice idea. maybe you can do it with nuggets?
    • CommentAuthorPhizinza
    • CommentTimeSep 18th 2007
     # 36
    I tried to put it in a nugget, but couldn't figure out how exactly. I tried a couple of different things but they didn't work.. Anyone know how to do this?
    • CommentAuthorcabejon
    • CommentTimeSep 19th 2007
     # 37
    I edited the code and got the Chat tab working also with guest config option, just add this code before the: "// Don't make changes below this line." on line 23 of the default.php file


    // Add a link to the chat page at the top bar (keep in mind guest permissions)
    $Context->Dictionary['Chat'] = 'Chat';
    //Allow guests? 1 for yes 0 for no
    $eChatConfig['AllowGuests'] = '0';

    if(isset($Menu) && $Context->Session->UserID > 0 && $eChatConfig['AllowGuests'] == 0) {
    $Menu->AddTab($Context->GetDefinition('Chat'), $Context->GetDefinition('Chat'), GetUrl($Configuration, 'extension.php', '', '', '', '', 'PostBackAction=PFC'), $Attributes = '', $Position = '50', $ForcePosition = '50');
    }
    elseif(isset($Menu) && $eChatConfig['AllowGuests'] == 1) {
    $Menu->AddTab($Context->GetDefinition('Chat'), $Context->GetDefinition('Chat'), GetUrl($Configuration, 'extension.php', '', '', '', '', 'PostBackAction=PFC'), $Attributes = '', $Position = '50', $ForcePosition = '50');
    }



    Its working on my site, but it is displayed only for registered users.

    If you want it to be accessible for all your users, including unregistered, change
    $eChatConfig['AllowGuests'] = '0';
    to
    $eChatConfig['AllowGuests'] = '1';
  7.  # 38
    So I was redirected to this thread for a problem with PFC...

    I have the chat installed and ready to go, but when I open the page, it sits there and displays 'chat loading' for ever. Do you think this is a problem with the phpfreechat or my browser (same thing happens in IE and Netscape)?

    Thanks for you help.

    You can see it at http://moonbeams.us/sacredcircles/extension.php?PostBackAction=PFC

    Use TestTestTest to sign in and testtesttest for the password.
  8.  # 39
    repeated post...sorry!
    • CommentAuthorPhizinza
    • CommentTimeSep 29th 2007
     # 40
    Still no luck getting it to appear like a shout box at the top of every page?
    • CommentAuthorPhizinza
    • CommentTimeOct 4th 2007
     # 41
    one last bump...
    • CommentAuthorflozi
    • CommentTimeOct 15th 2007 edited
     # 42
    I Installed Vanilla 1.1.3 and the PFC - Chat extension.

    If I want to post something on the PFC Chat - Field, I always get the message
    "You must be connected to send a message".

    I'm not shure what to do. I tried to give 777 - access to all PFC - Files and folders, but it did not help ...

    I saw "VAZ" having the same problem ... could you solutionate that?

    thanks
    Flozi

    PS: you find my application at:

    http://www.icaros.ch/Vanilla-1.1.3/extension.php?PostBackAction=PFC
    • CommentAuthorbmw
    • CommentTimeOct 25th 2007
     # 43
    I've found on my site that you cannot use a single-quote when you are typing. If I go directly to the install of PFC, and not through Vanilla, it works fine.
    • CommentAuthorzovall
    • CommentTimeOct 26th 2007
     # 44
    Has anyone gotten PFC 1.0 Final to work with this extension? I'm running Vanilla 1.1.3 and PFC 1.0 beta 11 (I think it came with this extension). When I try to get it to work with PFC 1.0 Final, the 'Chat loading..' comes up and doesn't go away. Does another parameter (server_script_url) need to be set in default.php? What should it be set to?
    • CommentAuthorbmw
    • CommentTimeNov 1st 2007
     # 45
    I got the same as zovall. I even looked at some of the internal code of phpFreeChat, and nothing jumped out at me. It looks like 90% of this extension creates a new phpFreeChat Object (which, in layman's terms, is the chat window you see). So whatever variables are being passed, they must be read differently from FINAL and BETA 11.

    However, even knowing that, I couldn't hack a fix. I've never worked much with Object Oriented PHP though, I prefer procedural. So that's one strike against me hacking either phpFreeChat or the PFC extension.
  9.  # 46
    hey squirrel,

    thank you for this extension (and at least for your time).

    i only have one question; is there a trick or a snippet of code to get a link (memberbar/o.t. right side) to the userprofiles (vanilla)

    thanks in advance :D
  10.  # 47
    Uploaded version 1 of PFC.
  11.  # 48
    Version number changed from 1 to 1.0.0.
    •  
      CommentAuthorsquirrel
    • CommentTimeJan 15th 2008
     # 49
    Includes the 1.0-final release of phpFreeChat, which now works properly (some paths had changed between 1.0-beta11 and 1.0-final). Sorry for the delay.
    • CommentAuthorscherem
    • CommentTimeJan 16th 2008
     # 50
    @Skube:
    I tried your php code to make a list of who's in the chat, but its not showing any names.

    Any idea as to what may be happening, or did 1.0 break your code?