Release Notes

  • Removed Iframe
  • Chat Room list will appear in Side bar
  • Chat User's photo will be shown on click on the username
  • Option to limit the number of Private Message per user
  • Option to limit the number of Chat Rooms
  • Added how many chat messages to show after refresh...
  • not 100% sure, as i you 2 column on most of site, but i bet if you look in the index file, under $params if you changed the array:

    ''sidebar' => elgg_view('chat_pfc/sidebar'),  to  'sidebar_alt' => elgg_view('chat_pfc/sidebar'),'

    it would probably do it, would then have to add:

    'priority' => 123  (where ever to priority is that you want)

  • Thanks for the quick reply. I tried that and it removed my channel list from the sidebar, but failed to add it to sidebar_alt. I'm not sure how to add the priority setting in the code, as channel list doesnt appear in 3c settings. My sidebar_alt currently has no ordering settings applied, in case that was preventing it from appearing, but no luck. Any other ideas? Thanks, again.

     

     

  • give me some time, will set up 3 column on mine and see whats up......and you are using 1.8.3.2 not 1.8.8.2?

  • ok, i got it, not saying this is the right way, but it works 1st put this in your chat_pfc start file in the function chat_pfc_init{........

    elgg_extend_view('page/elements/sidebar_alt', 'chat_pfc/sidebar');

    }

    2nd your chat_pfc index file:

    $params = array(
        'content' => $content,
        'title' => $title,
            'sidebar_alt' => elgg_view('chat_pfc/sidebar'),
            'priority' => 710,
        'filter_override' => elgg_view('chat_pfc/nav', array('selected' => $vars['page'])),
    );

    then set your priorities in river_column_activity for the other modules anything about 710, like 720 and 730

     

  • Thank you so much! Worked great. Great plugin, thanks! Recommended.

  • Only one issue... it added it to sidebar_ alt on every page, not just chat_pfc. How would I correct that?

  • figured that was to easy.......

    if (elgg_is_active_plugin('chat_pfc') && elgg_get_context() == 'chat_pfc'){

    elgg_extend_view('page/elements/sidebar_alt', 'chat_pfc/sidebar');

    }

    ???? maybe, if not will set mine back up and try again

     

  • i have no doubt there is a much easier way, but trying to learn how all this works and like messing around with the code.  will be interested to see what the easier way is

  • I tried it and it removed it from sidebar_alt completely. Then, I tried /rehash, but nope. Then I tried flushing/upgrade,clearing history and my css broke. Perhap I entered it wrong? My code looked as follows in start.php

    function chat_pfc_init() {
    //global $CONFIG;
    elgg_extend_view('css/admin', 'chat_pfc/admin');

    if (elgg_is_active_plugin('chat_pfc') && elgg_get_context() == 'chat_pfc'){

    elgg_extend_view('page/elements/sidebar_alt', 'chat_pfc/sidebar');

    }


    elgg_register_page_handler('chat_pfc','chat_pfc_page_handler');

    Thank you for all your help. It's greatly appreciated.

  • just had it working, let me set mine back up and send the complete function code

     

  • function chat_pfc_init() {
    //global $CONFIG;
    elgg_extend_view('css/admin', 'chat_pfc/admin');
    elgg_register_page_handler('chat_pfc','chat_pfc_page_handler');
                    
    $item = new ElggMenuItem('chat_pfc', elgg_echo('chat_pfc'), 'chat_pfc');
    elgg_register_menu_item('site', $item);

    elgg_register_menu_item('topbar', array(
            'name' => 'chat_pfc',
            'href' => "chat_pfc/",
            'text' => elgg_view_icon('speech-bubble-alt'),
            'title' => elgg_echo('chat_pfc'),
            'priority' => 600,
    ));
    if (elgg_is_active_plugin('chat_pfc') && elgg_get_context() == 'chat_pfc'){

    elgg_extend_view('page/elements/sidebar_alt', 'chat_pfc/sidebar');

    }



    }

  • I had it above the page_handler, probably what broke the css. It isn't breaking the css now. But, it's still showing the channel list on each page even with the "if". I copied your code and replaced it. The only othe sidebar_alt modules that follow the user are online members and online friends. Perhaps it is registering as a similar module? I'm only guessing.

     

  • hmmmmmm. cause it is working on mine just as you want, did you clear your cache?

     

  • Yeah. No luck. Shows on every page, at the top of the ordering.

  • clueless then, works for me perfect....check it out:

    vsc.dyndns.org/cwp/elgg-1.8.3

    username: guest

    password: welcome

     

  • Yeah. I'm not sure, either. Looks perfect on your site. I'm confused as to what could be causing it on mine then. I will keep trying. Thanks for helping me get this far. Let me know if you think of anything.

  • I have seen on lots of websites this freephpchat they do not have any copyright URL.

    My question is how I can remove that?

  • It can be removed by editing chat_pfc/vendors/phpfreechat/src/pfcglobalconfig.class.php on line 398 to  var $display_pfc_logo = false; as long as you follow the guidelines found at http://www.phpfreechat.net/license

  • @costakisc... I figured out my problem. I'm using the "pagehandler hijack" plugin to set a couple pagehandles, and chat_pfc was one of them. Adjusted to meet my pagehandle and "voila" it automagically worked. Thanks again for your help!

  • @Tommy  thank you so much for the reply, I changed that true to false and clear chache & run upgrade but still I can see the freephpchat URL is there in the chat :(

    Please help

  • It has always worked for me. I would suggest clearing your browser caches, perhaps?

  • Or, you probably have to "/rehash".

  • phpFreeChat cannot be initialized, please correct these errors:

    • 'title' parameter must be a charatere string
    • 'theme' parameter must be a charatere string

     

    i got this after install anyhelp would be nice

  • @GamersKinect

    You have to edit the plugin settings first.

  • @costakisc

    thank you for your timely helps... (I was on vacation)

Thuvalpakshi

I will do it because I think I can

Project Info

Stats

  • Category: Communication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 8630
  • Recommendations: 30

Other Projects

View Thuvalpakshi's plugins