traktor
Forum Replies Created
-
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureCreate a chat.php file in the forum root (where app.php is) with the following content:
<?php define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header('_Chat_'); $template->set_filenames(array( 'body' => 'aboltus.html', )); make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); // add mchat global $phpbb_container, $user, $auth, $template; if ($phpbb_container->has('dmzx.mchat.settings') && $auth->acl_get('u_mchat_view')){ // We use the page_index() method to render mChat so we need to enable mChat on the index page only for this request $user->data['user_mchat_index'] = 1; $phpbb_container->get('dmzx.mchat.settings')->set_cfg('mchat_index', 1, true); $phpbb_container->get('dmzx.mchat.core')->page_index(); $template->assign_var('MCHAT_PAGE', 'mchat_on_faq_page'); } page_footer(); ?>Create aboltus.html file in {forum\styles\prosilver\template\} with content:
<!DOCTYPE html> <html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1" /> {META} <link href="{T_FONT_AWESOME_LINK}" rel="stylesheet"> <link href="{T_STYLESHEET_LINK}" rel="stylesheet"> <link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet"> <!-- IF S_CONTENT_DIRECTION eq 'rtl' --> <link href="{T_THEME_PATH}/bidi.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet"> <!-- ENDIF --> <!-- IF S_PLUPLOAD --> <link href="{T_THEME_PATH}/plupload.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet"> <!-- ENDIF --> <!-- IF S_COOKIE_NOTICE --> <link href="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet"> <!-- ENDIF --> <!--[if lte IE 9]> <link href="{T_THEME_PATH}/tweaks.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet"> <![endif]--> <!-- EVENT overall_header_head_append --> {$STYLESHEETS} <!-- EVENT overall_header_stylesheets_after --> </head> <body id="phpbb" class="nojs notouch section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}"> <!-- EVENT overall_header_body_before --> <div id="wrap" class="wrap"> <!-- EVENT overall_header_page_body_before --> <div id="page-body" class="page-body" role="main"> <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> <!-- ENDIF --> <!-- EVENT overall_header_content_before --> <!-- IF MCHAT_PAGE == 'mchat_on_faq_page' --> <!-- INCLUDE @dmzx_mchat/mchat_body.html --> <!-- ENDIF --> <!-- EVENT overall_footer_content_after --> </div> <!-- EVENT overall_footer_page_body_after --> </div> <script src="{T_JQUERY_LINK}"></script> <!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.5.1.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF --> <script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script> <!-- INCLUDEJS forum_fn.js --> <!-- INCLUDEJS ajax.js --> <!-- IF S_COOKIE_NOTICE --> <script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script> <script> if (typeof window.cookieconsent === "object") { window.addEventListener("load", function(){ window.cookieconsent.initialise({ "palette": { "popup": { "background": "#0F538A" }, "button": { "background": "#E5E5E5" } }, "theme": "classic", "content": { "message": "{LA_COOKIE_CONSENT_MSG}", "dismiss": "{LA_COOKIE_CONSENT_OK}", "link": "{LA_COOKIE_CONSENT_INFO}", "href": "{UA_PRIVACY}" } }); }); } </script> <!-- ENDIF --> <!-- EVENT overall_footer_after --> {$SCRIPTS} <!-- EVENT overall_footer_body_after --> </body> </html>edit file: /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_mchat.php
<iframe id="w3all_phpbb_mchat_iframe" name="w3all_phpbb_mchat_iframe" style="height:300px;width:1px;min-width:100%;*width:100%;border:0;" scrolling="no" src="<?php echo $w3all_url_to_cms . '/chat.php#w3allmchatif'; ?>"></iframe>File archive: https://drive.google.com/drive/folders/1ct3Ris8FNhQJMpZSlXKveMTycJoKYJcb?usp=sharing
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureEverything turned out better than I expected. However, there is no flexibility in the code (plugin) to connect the chat to WordPress. Code minimization and the flexibility of integrating bbphp and wordpress are also relevant.
Hey! I’ve got the reply, that seem moderators here removed … awesome result, after all this discussion. But the scroll do not work? And you gived up the toogle button?
Site guests can only watch, registered users – full access to the chat (there is also a button to send a message in the chat – to support mobile devices).
p.s i see the scroll work fine, it do not work when you move from mchat to forum, when you click into forum link or some other link that display another phpbb page, that is not mchat
Access to the forum is organized in a different way – direct link (link). Forced measure due to user registration only in wordpress.
Currently, it is relevant to completely remove <div id = ”page-footer” class = ”page-footer” role = ”contentinfo”> <div id = ”mchat-legend”> <div id = ”page-header”> in the widget wordpress chat due to lack of need.
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedure1. wp-admin/widgets.php
2. Display the phpBB mChat into a widget -> Display mChat only to logged in users? No
3. wp-admin/options-general.php?page=wp-w3all-options
4. phpBB mChat integration -> Yes
5. Activate [w3allcustomiframe] shortcode -> Yes
6. open site
7. viewing the html code of the sitehow to remove completely div block?
<div id=”page-footer” class=”page-footer” role=”contentinfo”>
<div id=”mchat-legend”>
<div id=”page-header”>
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureThe widget is displayed in the chat frame. How do I remove (hide) div blocks from the html code of the frame and leave only the chat code ?
<div id="mchat-legend"> <div id="page-footer" class="page-footer" role="contentinfo"> <div id="page-header">Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureChat is inserted by the widget.
How to clear or hide?<div id="mchat-legend"> <div id="page-footer" class="page-footer" role="contentinfo"> <div id="page-header">Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureMade simpler: added height: 600px to files wp_w3all_phpbb_mchat.php and wp_w3all_phpbb_mchat_short.php;
<iframe id = "w3all_phpbb_mchat_iframe" name = "w3all_phpbb_mchat_iframe" style = "height: 600px; width: 1px; min-width: 100%; * width: 100%; border: 0;" scrolling = "no" src = "<? php echo $ w3all_url_to_cms_mchat;?>"> </iframe><iframe id = "w3all_phpbb_mchat_iframe" name = "w3all_phpbb_mchat_iframe" style = "height: 600px; width: 1px; min-width: 100%; * width: 100%; border: 0;" scrolling = "no" src = "<? php echo $ w3all_url_to_cms. '/app.php/mchat#w3allmchatif';?>"> </iframe>Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedure[w3allphpbbmchat] – This shortcode does the same as the “Display the phpBB mChat into a widget” widget.
How to display only the chat in a widget without a logo and menu, similar to how it is done on your page https://www.axew3.com/www/wordpress-rc/sample-page/?Optional: what is needed on line 51 in the file filecustom_js_css.php ?
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedurebut you should have no php errors for the mchat widget now.
in case it display or not due to population of mentioned table.
I’ve now activated it into a test, and go fine, isn’t it in your side?did you updated the file class.wp.w3all-phpbb.php as linked in last post?
Updated file class.wp.w3all-phpbb.php – now displayed, no errors. 🙂
Now how to display only chat as a widget?
Similar to https://www.axew3.com/www/wordpress-rc/sample-page/Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureWhat you have to do to fix the issue is the follow:
access ACP -> TAB Users and Group
Then choose the menu Groups -> Groups permissionsNow choose a group, and submit, on next page
click Advanced permission, change a value into something (like Can save drafts) and click Apply permissions.So phpBB populate the needed table with proper values.
Done. How to check the result via phpmyadmin?
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureclass.wp.w3all.widgets-phpbb.php
if(in_array("u_mchat_view",$user_caps)){ // can view chat? $ucan_view_chat = true; } else { $ucan_view_chat = true; }Warning: unserialize() expects parameter 1 to be string, array given in /home/public_html/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all.widgets-phpbb.php on line 193
Warning: in_array() expects parameter 2 to be array, bool given in /home/public_html/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all.widgets-phpbb.php on line 194
- This reply was modified 5 years, 8 months ago by traktor.
Forum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedure-rw-r–r– 1 qwerty qwerty 6582 Aug 8 21:13 class.wp.w3all-admin.php
-rw-r–r– 1 qwerty qwerty 167790 Aug 8 21:13 class.wp.w3all-phpbb.php
-rw-r–r– 1 qwerty qwerty 13634 Aug 26 09:10 class.wp.w3all.widgets-phpbb.php
-rw-r–r– 1 qwerty qwerty 27 Aug 8 21:13 index.php
drwxr-xr-x 2 qwerty qwerty 4096 Aug 8 21:13 languages/
-rw-r–r– 1 qwerty qwerty 78596 Aug 8 21:13 readme.txt
drwxr-xr-x 2 qwerty qwerty 4096 Aug 8 21:13 views/
-rw-r–r– 1 qwerty qwerty 70087 Aug 8 21:13 wp_w3all.phpForum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedurePHP version 7.3.21
WordPress Plugins Status of installed plugins.
Broken Link Checker (broken-link-checker) – Version 1.11.14 Active
BulletProof Security (bulletproof-security) – Version 4.1 Active
Compress JPEG & PNG images (tiny-compress-images) – Version 3.2.1 Inactive
Email Users (email-users) – Version 4.8.8 Inactive
Filenames to latin (filenames-to-latin) – Version 2.7 Active
Force Regenerate Thumbnails (force-regenerate-thumbnails) – Version 2.0.6 Inactive
Geolocation IP Detection (geoip-detect) – Version 3.1.1 Active
Google XML Sitemaps (google-sitemap-generator) – Version 4.1.1 Active
hideShowPassword (wp-hide-show-password-master) – Version 2.1.0 Active
Image Cleanup (image-cleanup) – Version 1.9.2 Inactive
Innovation Core (innovation-core) – Version 1.0 Active
Kama SpamBlock (kama-spamblock) – Version 1.8 Active
Loco Translate (loco-translate) – Version 2.4.2 Active
Mistape (mistape) – Version 1.3.8 Active
Passwordless Login (passwordless-login) – Version 1.1.1 Active
Quotes Collection (quotes-collection) – Version 2.5.2 Active
Really Simple CAPTCHA (really-simple-captcha) – Version 2.0.2 Active
RSS for Yandex Turbo (rss-for-yandex-turbo) – Version 1.28 Active
RusToLat (rustolat) – Version 0.3 Active
Sabai (sabai) – Version 1.4.7 Active
Sabai Discuss (sabai-discuss) – Version 1.4.7 Active
SEO Friendly Images (seo-image) – Version 3.0.5 Inactive
Snow Storm (snow-storm) – Version 1.4.5 Inactive
Terms Descriptions (terms-descriptions) – Version 3.3.8 Active
The Events Calendar (the-events-calendar) – Version 4.7.3 Active
The Events Calendar PRO (events-calendar-pro) – Version 4.5 Active
Tiled Galleries Carousel Without Jetpack (tiled-gallery-carousel-without-jetpack) – Version 3.1 Active
User Role Editor (user-role-editor) – Version 4.56 Active
Wordfence Security (wordfence) – Version 7.4.10 Active
WordPress w3all phpBB integration (wp-w3all-phpbb-integration) – Version 2.3.9 Active
WP-Polls (wp-polls) – Version 2.75.5 Active
WP-UserOnline (wp-useronline) – Version 2.87.5 Active
WP No Category Base (wp-no-category-base) – Version 1.1.1 Active
WP Retina 2x (wp-retina-2x) – Version 5.6.1 Inactive
WP User Avatar (wp-user-avatar) – Version 2.2.7 ActiveForum: Plugins
In reply to: [WP w3all phpBB] w3all WordPress phpBB mChat integration procedureWarning: unserialize() expects parameter 1 to be string, array given in /home/public_html/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all.widgets-phpbb.php on line 193
Warning: in_array() expects parameter 2 to be array, bool given in /home/public_html/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all.widgets-phpbb.php on line 194
What other options are there?
Forum: Plugins
In reply to: [Passwordless Login] Your token has probably expired. Please try again.To find the problem, you must enter this code in functions.php
add_filter( ‘wp_mail’, ‘my_wp_mail_filter’ );
function my_wp_mail_filter( $args ) {
$args[‘message’] .= “\r\n”;
$args[‘message’] .= “— Hello”;
return $args;
}- This reply was modified 7 years, 6 months ago by traktor.
Forum: Plugins
In reply to: [Passwordless Login] change onetimeHello.
I believe that the best solution was to put the plugin settings in a separate menu.
🙂