vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Add-On Releases - Duckways: Shoutbox | Realtime using NodeJS & Socket.io (https://vborg.vbsupport.ru/showthread.php?t=326640)

In Omnibus 08-10-2018 11:49 AM

Quote:

Originally Posted by Jorandh (Post 2595920)
Thats weird, refresh button is only there as a backup. Socketio is shooting a realtime push to all users with the websocket. Sounds like your port isn't listening right for your socket.

Please check your console in the browser on the page where it shows the shoutbox, or hit me up with an URL so I can check it for you :)

Edit function should work too- make sure you set the permissions for all usergroups (Go to usergroups, click edit behind the group and find the permissions on the edit page).

I have the permissions set correctly and the Web Console isn't showing any errors.
After clicking "Enter" or "Shout" the shoutbox is still white. After clicking "Refresh" the shout appears. Editing doesn't work at all. It simply re-posts the original shout. Again, no error in the console. I'm going to try changing the port first. I'll let you know what happens.

Jorandh 08-10-2018 05:58 PM

Quote:

Originally Posted by In Omnibus (Post 2595922)
I have the permissions set correctly and the Web Console isn't showing any errors.
After clicking "Enter" or "Shout" the shoutbox is still white. After clicking "Refresh" the shout appears. Editing doesn't work at all. It simply re-posts the original shout. Again, no error in the console. I'm going to try changing the port first. I'll let you know what happens.

Thanks, let me know how it goes! I just did a fresh install of the plugin on a brand new vBulletin v5.3.4 setup and it worked right away as is should. Maybe try removing the folder 'node_modules' in core/packages/duckwaysshout/node and then run 'npm install' again from the same location.

Happy to help if it doesn't work out for you. Just leave me the details in a PM or on quack@duckways.com!

Jorandh 08-10-2018 08:35 PM

We just set up a demo here: https://vbulletin.duckways.com/forums/

Demo user 1:
username: demo1
password: DemoUser1!

Demo user 2:
username: demo2
password: DemoUser2!

Demo user 2 has moderation permissions (edit and delete shouts made by others).




We just updated a few components and will upload release 1.0.1 soon.

Jorandh 08-10-2018 09:18 PM

Version 1.0.1 uploaded. This should fix issues like @In Omnibus reported and added some new settings.

Fleiding 08-11-2018 04:49 AM

Quote:

Originally Posted by Jorandh (Post 2595926)
We just set up a demo here: https://vbulletin.duckways.com/forums/

I have to click Refresh every time I posted, edited, and deleted a message.

Safari is showing the following errors in the console:
Code:

[Error] Blocked a frame with origin "https://staticxx.facebook.com" from accessing a frame with origin "https://vbulletin.duckways.com". Protocols, domains, and ports must match.
        Global Code (web_rtc_wrapper.js:260)
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969951664-0 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969953124-1 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969955157-2 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969958179-3 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969962203-4 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969967232-5 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969972253-6 due to access control checks.

I'm still working with my host to get all the required items installed at my web server, because the same thing is happening now on my forum at the moment.

Edit: Is it possible to display new messages on top?

Jorandh 08-11-2018 09:27 AM

Quote:

Originally Posted by Fleiding (Post 2595928)
I have to click Refresh every time I posted, edited, and deleted a message.

Safari is showing the following errors in the console:
Code:

[Error] Blocked a frame with origin "https://staticxx.facebook.com" from accessing a frame with origin "https://vbulletin.duckways.com". Protocols, domains, and ports must match.
        Global Code (web_rtc_wrapper.js:260)
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969951664-0 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969953124-1 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969955157-2 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969958179-3 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969962203-4 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969967232-5 due to access control checks.
[Error] Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://vbulletin.duckways.com is not allowed by Access-Control-Allow-Origin. (socket.io, line 0)
[Error] XMLHttpRequest cannot load https://vbulletin.duckways.com:2096/socket.io/?r_var=1&EIO=3&transport=polling&t=1533969972253-6 due to access control checks.

I'm still working with my host to get all the required items installed at my web server, because the same thing is happening now on my forum at the moment.

Edit: Is it possible to display new messages on top?

Sorry, our server.js wasn't running. I just set it to permanent run using screen. It should now work as aspected.


You should go to the folder "core/packages/duckwaysshout/node/", run "npm install" and then run "node server.js". If you run your website using ssl, please edit server.js to use the SSL certs.

Fleiding 08-11-2018 09:59 AM

After running the command "npm install" I get the following in my terminal:
Code:

npm WARN package.json socket-chat@0.0.1 No repository field.
npm WARN package.json socket-chat@0.0.1 No README data
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json has-binary@0.1.7 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm WARN package.json object-component@0.0.3 No repository field.

Quote:

Originally Posted by Jorandh (Post 2595931)
Sorry, our server.js wasn't running. I just set it to permanent run using screen. It should now work as aspected.

It does! :)

Quote:

Originally Posted by Jorandh (Post 2595931)
If you run your website using ssl, please edit server.js to use the SSL certs.

I edited server.js and have it running successfully but my console is telling me:
Code:

[Error] Failed to load resource: the server responded with a status of 404 () (socket.io, line 0)

Jorandh 08-11-2018 05:14 PM

Quote:

Originally Posted by Fleiding (Post 2595933)
After running the command "npm install" I get the following in my terminal:
Code:

npm WARN package.json socket-chat@0.0.1 No repository field.
npm WARN package.json socket-chat@0.0.1 No README data
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json has-binary@0.1.7 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm WARN package.json object-component@0.0.3 No repository field.


It does! :)


I edited server.js and have it running successfully but my console is telling me:
Code:

[Error] Failed to load resource: the server responded with a status of 404 () (socket.io, line 0)

The last error in your console basically tells you that it wasn't able to connect to socketio. Please make sure you're using the plugin version 1.0.1 which has been added to the first post AND that the port (default now is 2096) is allowed in your firewall :) If not, make sure to add it!

voyger 05-21-2019 07:37 AM

Quote:

Originally Posted by Jorandh (Post 2595926)
We just set up a demo here: https://vbulletin.duckways.com/forums/

Demo user 1:
username: demo1
password: DemoUser1!

Demo user 2:
username: demo2
password: DemoUser2!

Demo user 2 has moderation permissions (edit and delete shouts made by others).
We just updated a few components and will upload release 1.0.1 soon.

hi I am interested on the shoutbox i register to your demo forum
testing the soutbox how can add smile on my shout,should be a button to select smile?

voyger 05-23-2019 03:24 PM

bought and install the shoutbox on my test forum look is working very well
the only snag haven't the auto refresh , is there any chance to implement on near future

thanks for the nice job


All times are GMT. The time now is 08:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,789KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete