HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


XMPP chat module error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#70405 (In Topic #14901)
Avatar

Well-settled

Hey there,

I just decided to install the XMPP module into 7.1 beta1. I haven't been using it I just decided to test it out.

I get this error:

A parameter, MESSAGES_PHP, is referenced in the template, CHAT_SCREEN, but not passed

I fixed it by changing the file /site/pages/modules_custom/chat.php

Lines 150-152 changed to this:

Code

$messages_php=find_script('messages');
$password_hash=$GLOBALS['FORUM_DRIVER']->get_member_row_field(get_member(),'m_pass_hash_salted');
return do_template('CHAT_SCREEN',array('_GUID'=>'867a0b050c050c81d33482d131783eb0','MESSAGES_PHP'=>$messages_php,'PASSWORD_HASH'=>$password_hash,'ROOM_ID'=>$room_id,'CHAT_SOUND'=>get_chat_sound_tpl(),'ROOM_ID'=>$room_id,'DEBUG'=>$debug,'OPTIONS_URL'=>$cs_post_url,'ROOM_NAME'=>$id,'YOUR_NAME'=>$yourname,'SUBMIT_VALUE'=>$posting_name,'INTRODUCTION'=>'','TITLE'=>$title,'LINKS'=>$links));

BTW your codebox thing didn't automatically put line breaks in when I pasted the code and highlighted it and clicked the codebox button to put it in the box. And when I went to the lines and hit enter, the preview shows up when I hover over with <BR /> tags in it rather than showing how it actually looks in the preview itself. Makes me wonder what the final post will look like.

Thank you! ocPortal is looking really good these days =)
Back to the top
 
Posted
Rating:
#70426
Avatar

Thanks, big help, I've now implemented fixes for these.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#70460
Avatar

Well-settled

That is awesome  :thumbs:

Thank you for being so quick.

I noticed another thing that's happening with the XMPP, is if I move away from the page, or click log out, it doesn't seem to take me out of the chat and seems to cause any future connections to the ejabberd server (2.1.8) to not authorize. These include not only the ocPortal users but also the internal ejabberd users, they will get an error saying Not authorized when trying to log in. I believe logging in as the same user and visiting the chat lobby fixes it, or restarting the ejabberd server. I am not quite sure how to fix this.

Regarding the editor, I also noticed when I pasted in a big chunk of code (not just code but any text into the editor) the vertical scroll bar did not show up. But I am guessing you would have figured this out by now and probably fixed it.

Just thought I should mention them =)

Truly amazing stuff going on here.
Back to the top
 
Posted
Rating:
#70486
Avatar

That XMPP thing is unfortunate. We came to the conclusion it was much too complex and buggy to support so we won't be doing any further work on that.

However I have found the WYSIWYG problem on Firefox in 7.1 beta, and that'll be fixed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: