wlaurito
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Docs] Can’t create document since update to 2.0Hi guys! I tried it with 2.1x but the problem is still there if I use German as my default language. For English (United States) it does work as expected.
- This reply was modified 6 years, 4 months ago by wlaurito.
Forum: Plugins
In reply to: [BuddyPress Docs] Can’t create document since update to 2.0Hi @boonebgorges
thanks for your answer.
well the only thing I see is
<div id="idle-warning" style="display:none;">
After removing the display:none everything is shown, but you the Save buttons are not working =/Here is a screenshot showing the described behavior: https://imgur.com/a/rcU1R
- This reply was modified 6 years, 11 months ago by wlaurito.
Forum: Plugins
In reply to: [BuddyPress Docs] Can’t create document since update to 2.0Thanks for your reply. =)
This is what I get after enabling WP_Debug. Seems harmless no? What do you think?
WARNING: wp-includes/functions.php:1086 - Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:3894) require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include, apply_filters('bp_template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include_theme_compat, do_action('bp_template_include_reset_dummy_post_data'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, BP_Docs_Theme_Compat->create_dummy_post, bp_theme_compat_reset_post, status_header, header NOTICE: wp-includes/functions.php:3894 - Die verwendete Konstruktor-Methode für Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel ist seit Version 0.8.3 veraltet! Verwende stattdessen __construct(). require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _wp_admin_bar_init, WP_Admin_Bar->initialize, do_action('admin_bar_init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Debug_Bar->init, Debug_Bar->init_panels, apply_filters('debug_bar_panels'), WP_Hook->apply_filters, call_user_func_array, Log_Viewer_DebugBar_Integration::integrate_debugbar, Log_Viewer_DebugBar_Panel->__construct, Debug_Bar_Panel->Debug_Bar_Panel, _deprecated_constructor, trigger_error
This is the complete page Source:
https://gist.github.com/Retlawxx/3001308fc08463e8629ea3ad3076cd4c- This reply was modified 6 years, 11 months ago by wlaurito.
Forum: Plugins
In reply to: [BuddyPress Docs] Can’t create document since update to 2.0Thanks for your reply.
This is what I get after enabling WP_Debug. Seems harmless no?
WARNING: wp-includes/functions.php:1086 - Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:3894) require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include, apply_filters('bp_template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include_theme_compat, do_action('bp_template_include_reset_dummy_post_data'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, BP_Docs_Theme_Compat->create_dummy_post, bp_theme_compat_reset_post, status_header, header NOTICE: wp-includes/functions.php:3894 - Die verwendete Konstruktor-Methode für Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel ist seit Version 0.8.3 veraltet! Verwende stattdessen __construct(). require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _wp_admin_bar_init, WP_Admin_Bar->initialize, do_action('admin_bar_init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Debug_Bar->init, Debug_Bar->init_panels, apply_filters('debug_bar_panels'), WP_Hook->apply_filters, call_user_func_array, Log_Viewer_DebugBar_Integration::integrate_debugbar, Log_Viewer_DebugBar_Panel->__construct, Debug_Bar_Panel->Debug_Bar_Panel, _deprecated_constructor, trigger_error
This is the Source:
https://gist.github.com/Retlawxx/3001308fc08463e8629ea3ad3076cd4cThis is the idle-warning tag with children:
<div id="idle-warning" style="display:none;"> <p>Sie haben für <span id="idle-warning-time> </ span> Leerlauf</p> </div> <form action=" "="" method="post" class="standard-form"> </span></p><div class="doc-header"> </div> <div class="doc-content-wrapper"> <div id="doc-content-title"> <label for="doc-title">Titel</label> <input type="text" id="doc-title" name="doc[title]" class="long" value=""> </div> <div id="doc-content-textarea"> <label id="content-label" for="doc_content">Inhalt</label> <div id="editor-toolbar"> <div id="wp-doc_content-wrap" class="wp-core-ui wp-editor-wrap html-active"><link rel="stylesheet" id="editor-buttons-css" href="https://localhost:8080/wp-includes/css/editor.min.css?ver=4.8" type="text/css" media="all"> <div id="wp-doc_content-editor-tools" class="wp-editor-tools hide-if-no-js"><div class="wp-editor-tabs"><button type="button" id="doc_content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="doc_content">Visuell</button> <button type="button" id="doc_content-html" class="wp-switch-editor switch-html" data-wp-editor-id="doc_content">Text</button> </div> </div> <div id="wp-doc_content-editor-container" class="wp-editor-container"><div id="qt_doc_content_toolbar" class="quicktags-toolbar"><input type="button" id="qt_doc_content_strong" class="ed_button button button-small" aria-label="Fett" value="b"><input type="button" id="qt_doc_content_em" class="ed_button button button-small" aria-label="Kursiv" value="i"><input type="button" id="qt_doc_content_link" class="ed_button button button-small" aria-label="Link einfügen" value="link"><input type="button" id="qt_doc_content_block" class="ed_button button button-small" aria-label="Zitat" value="b-quote"><input type="button" id="qt_doc_content_del" class="ed_button button button-small" aria-label="Gel?schter Text (durchgestrichen)" value="del"><input type="button" id="qt_doc_content_ins" class="ed_button button button-small" aria-label="Eingefügter Text" value="ins"><input type="button" id="qt_doc_content_img" class="ed_button button button-small" aria-label="Bild einfügen" value="img"><input type="button" id="qt_doc_content_ul" class="ed_button button button-small" aria-label="Aufz?hlung" value="ul"><input type="button" id="qt_doc_content_ol" class="ed_button button button-small" aria-label="Nummerierte Liste" value="ol"><input type="button" id="qt_doc_content_li" class="ed_button button button-small" aria-label="Listeneintrag" value="li"><input type="button" id="qt_doc_content_code" class="ed_button button button-small" aria-label="Code" value="code"><input type="button" id="qt_doc_content_more" class="ed_button button button-small" aria-label="Weiterlesen-Tag einfügen" value="more"><input type="button" id="qt_doc_content_close" class="ed_button button button-small" title="Alle offenen Tags schlie?en" value="Tags schlie?en"></div><textarea class="wp-editor-area" rows="20" autocomplete="off" cols="40" name="doc_content" id="doc_content"></textarea></div> </div> </div> </div> <div id="doc-attachments"> <label for="insert-media-button">Anh?nge</label> <a href="#" id="insert-media-button" class="button add-attachment add_media" data-editor="doc_content" title="Dateien hinzufügen"><span class="wp-media-buttons-icon"></span> Dateien hinzufügen</a> <ul id="doc-attachments-ul"> </ul> </div> <div id="doc-meta"> <div id="doc-associated-group" class="doc-meta-box"> <div class="toggleable toggle-open"> <p class="toggle-switch" id="associated-group-toggle"> <span class="hide-if-js toggle-link-no-js">Assoziierte Gruppe</span> <a class="hide-if-no-js toggle-link" id="associated-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Assoziierte Gruppe</a> </p> <div class="toggle-content"> <table class="toggle-table" id="toggle-table-associated-group"> <tbody><tr> <td class="desc-column"> <label for="associated_group_id">Welcher Gruppe soll diesem Dokument zugeordnet werden?</label> <span class="description">(Optional) Beachten Sie, dass die Zugriffseinstellungen für dieses Dokument kann durch die Datenschutzeinstellungen der Gruppe w?hlen Sie begrenzt.</span> </td> <td class="content-column"> <select name="associated_group_id" id="associated_group_id"><option value="">Nichts</option><option value="1" selected="selected">Test</option></select> <div id="associated_group_summary"> <a href="https://localhost:8080/gruppen/test/"><img src="https://localhost:8080/wp-content/plugins/buddypress/bp-core/images/mystery-group-50.png" class="avatar group-1-avatar avatar-40 photo" width="40" height="40" alt="Profilbild"></a><div class="item"><a href="https://localhost:8080/gruppen/test/">Test</a><div class="meta">?ffentliche Gruppe / (Mitglieder Typen: 1)</div></div> </div> </td> </tr> </tbody></table> </div> </div> </div> <div id="doc-settings" class="doc-meta-box"> <div class="toggleable toggle-open"> <p class="toggle-switch" id="settings-toggle"> <span class="hide-if-js toggle-link-no-js">Zugriff</span> <a class="hide-if-no-js toggle-link" id="settings-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Zugriff</a> </p> <div class="toggle-content"> <table class="toggle-table" id="toggle-table-settings"> <tbody> <tr class="bp-docs-access-row bp-docs-access-row-read"> <td class="desc-column"> <label for="settings-read">Wer kann das Dokument lesen?</label> </td> <td class="content-column"> <select name="settings[read]" id="settings-read"> <option value="anyone" selected="selected">Jeder</option> <option value="loggedin">Eingeloggte User</option> <option value="group-members">Mitglieder von Test</option> <option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option> <option value="creator">Der Dokumentauthor alleine</option> </select> </td> </tr> <tr class="bp-docs-access-row bp-docs-access-row-edit"> <td class="desc-column"> <label for="settings-edit">Wer kann das Dokument bearbeiten?</label> </td> <td class="content-column"> <select name="settings[edit]" id="settings-edit"> <option value="loggedin">Eingeloggte User</option> <option value="group-members" selected="selected">Mitglieder von Test</option> <option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option> <option value="creator">Der Dokumentauthor alleine</option> </select> </td> </tr> <tr class="bp-docs-access-row bp-docs-access-row-read_comments"> <td class="desc-column"> <label for="settings-read_comments">Wer kann Kommentare zu diesem Dokument lesen?</label> </td> <td class="content-column"> <select name="settings[read_comments]" id="settings-read_comments"> <option value="anyone" selected="selected">Jeder</option> <option value="loggedin">Eingeloggte User</option> <option value="group-members">Mitglieder von Test</option> <option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option> <option value="creator">Der Dokumentauthor alleine</option> </select> </td> </tr> <tr class="bp-docs-access-row bp-docs-access-row-post_comments"> <td class="desc-column"> <label for="settings-post_comments">Wer kann das Dokument kommentieren?</label> </td> <td class="content-column"> <select name="settings[post_comments]" id="settings-post_comments"> <option value="anyone">Jeder</option> <option value="loggedin">Eingeloggte User</option> <option value="group-members" selected="selected">Mitglieder von Test</option> <option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option> <option value="creator">Der Dokumentauthor alleine</option> </select> </td> </tr> <tr class="bp-docs-access-row bp-docs-access-row-view_history"> <td class="desc-column"> <label for="settings-view_history">Wer kann die ?nderungsgeschichte des Dokument sehen?</label> </td> <td class="content-column"> <select name="settings[view_history]" id="settings-view_history"> <option value="anyone" selected="selected">Jeder</option> <option value="loggedin">Eingeloggte User</option> <option value="group-members">Mitglieder von Test</option> <option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option> <option value="creator">Der Dokumentauthor alleine</option> </select> </td> </tr> </tbody></table> </div> </div> </div> <div id="doc-folders" class="doc-meta-box"> <div class="toggleable toggle-open"> <p id="folders-toggle-edit" class="toggle-switch"> <span class="hide-if-js toggle-link-no-js">Ordner</span> <a class="hide-if-no-js toggle-link" id="folders-toggle-link" href="#"><span class="show-pane plus-or-minus"></span><span class="toggle-title">Gruppenordner</span></a> </p> <div class="toggle-content"> <table class="toggle-table" id="toggle-table-folders"> <tbody><tr> <td class="desc-column"> <label for="bp_docs_tag">W?hlen Sie einen Ordner für dieses Dokument.</label> </td> <td> <div class="existing-or-new-selector"> <input type="radio" name="existing-or-new-folder" id="use-existing-folder" value="existing" checked="checked"> <label for="use-existing-folder" class="radio-label">Verwende einen existierenden Ordner</label><br> <div class="selector-content"> <select name="bp-docs-folder" id="bp-docs-folder" class="chosen-select "><option value="">- Keine -</option></select> </div> </div> <div class="existing-or-new-selector" id="new-folder-block"> <input type="radio" name="existing-or-new-folder" id="create-new-folder" value="new"> <label for="create-new-folder" class="radio-label">Neuen Ordner erstellen</label> <div class="selector-content" style="display: none;"> <label for="new-folder">Name</label> <input name="new-folder" id="new-folder"> <div style="clear:both"></div> <div class="folder-type-selector-div cannot-change"> <label for="new-folder-type">Ordnertyp</label> <select name="new-folder-type" id="new-folder-type" class="folder-type"><option value="global">Global</option><option value="me">Pers?nlich</option><optgroup label="Gruppen-spezifisch"><option value="1" selected="selected">Test</option></optgroup></select> </div> <div style="clear:both"></div> <label for="new-folder-parent">übergeordneter (optional)</label> <select name="new-folder-parent" id="new-folder-parent" class="chosen-select folder-parent"><option value="">- Keine -</option></select> <div style="clear:both"></div> </div><!-- .selector-content --> </div> </td> </tr> </tbody></table> </div> </div> </div> <div id="doc-tax" class="doc-meta-box"> <div class="toggleable toggle-open"> <p id="tags-toggle-edit" class="toggle-switch"> <span class="hide-if-js toggle-link-no-js">Schlagworte</span> <a class="hide-if-no-js toggle-link" id="tags-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Schlagworte</a> </p> <div class="toggle-content"> <table class="toggle-table" id="toggle-table-tags"> <tbody><tr> <td class="desc-column"> <label for="bp_docs_tag">Stichworte sind W?rter oder Phrasen, die Ihre Dokumente zu beschreiben und zu organisieren helfen.</label> <span class="description">Stichworte durch Kommas trennen (zum Beispiel: <em> Orchester, Snare-Drum, piccolo, Brahms <!-- em-->)</em></span><em> </em></td> <td> <textarea name="bp_docs_tag" class="the-tags" id="tax-input-bp_docs_tag"></textarea> </td> </tr> </tbody></table> </div> </div> </div> <div id="doc-parent" class="doc-meta-box"> <div class="toggleable toggle-open"> <p class="toggle-switch" id="parent-toggle"> <span class="hide-if-js toggle-link-no-js">übergeordnet</span> <a class="hide-if-no-js toggle-link" id="parent-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>übergeordnet</a> </p> <div class="toggle-content"> <table class="toggle-table" id="toggle-table-parent"> <tbody><tr> <td class="desc-column"> <label for="parent_id">W?hlen Sie ein Elternteil für dieses Dokument.</label> <span class="description">(Optional) ein übergeordnetes Dokument zuweisen bedeutet, dass ein Link zu den Eltern am unteren Rand dieses Dokuments erscheint, und einen Link zu diesem Dokument werden am unteren Rand des Mutter erscheinen.</span> </td> <td class="content-column"> </td> </tr> </tbody></table> </div> </div> </div> </div> <div style="clear: both"> </div> <div id="doc-submit-options"> <input type="hidden" id="_wpnonce" name="_wpnonce" value="b99d1dc52f"><input type="hidden" name="_wp_http_referer" value="/docs/create/?group=test"> <input type="hidden" id="doc_id" name="doc_id" value="36"> <input type="submit" name="doc-edit-submit" id="doc-edit-submit" value="Speichern"> <input type="submit" name="doc-edit-submit-continue" id="doc-edit-submit-continue" value="Save and Continue Editing"> <a href="https://localhost:8080/gruppen/test/docs/" class="action safe confirm">Abbrechen</a> </div> <div style="clear: both"> </div> </div> </div>
Forum: Plugins
In reply to: [Invite Anyone] Users are not added to group after invitationSome help please <3
I have the newest WordPress 4.9.1 and Buddypress 2.9.2 and Invite Anyone 1.3.19.
I removed everything from my functions.php and deactivated every plugin expect buddypress and invite anyone… still the users do not get any invitations. Am I missing something? Any idea @boonebgorges ?I do get this error in the console:
Uncaught TypeError: j(...).autocomplete is not a function at HTMLDocument.<anonymous> (group-invites-js.js?ver=4.7.8:22) at i (jquery.js?ver=1.12.4:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2) at Function.ready (jquery.js?ver=1.12.4:2) at HTMLDocument.K (jquery.js?ver=1.12.4:2)
It actually works by commenting the line causing the problem. Maybe there is bug fix needed? =)
I’ve created an issue here: https://github.com/boonebgorges/invite-anyone/issues/155
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Keep images in custom postsHi @tigroumeow, i definitely could consider purchasing the PRO version of media cleaner, but therefore i need to make sure that the aforementioned issues i have with the non-Pro version would be solved with the PRO version. So any help here or via direct contact would be highly appreciated. May be another way could be to test the PRO version first to see if it fixes my issue? Thank you very much, Walter
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Keep images in custom postsI have no pro license. I can not use the contact form :/
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Keep images in custom postsHi @tigroumeow
Thanks for your answer.
I have a custom post: Subpage.
– There I am using images as featured images or/and in the content with <img src=”…”
– I am also adding files like pdfs, docs for download in the content via <a href=”…”I am not using WooCommerce.
Forum: Plugins
In reply to: [BuddyPress Docs] Hide “Create new doc” for non group admins / moderatorsHi @dcavins
I still have a problem there. If I use the code I’ve posted above then I a non-admin or non-mod can’t access any document. What I actually want is just preventing to create / edit new docs for non-mods or non-admins. But they should still able to view / read them. =/Forum: Plugins
In reply to: [BuddyPress Docs] TranslationIt is working now.. somehow. I have just set it to “German” again. Thanks!
Forum: Plugins
In reply to: [BuddyPress Docs] Show all documentsOkay strange. There are somehow also some docs, which should not be seen by the user. When he clicks on them he gets an error though. Did I miss something?
Forum: Plugins
In reply to: [BuddyPress Docs] Hide “Create new doc” for non group admins / moderatorsThansk @dcavins!
I did the following:function my_docs_create_follow_group_associate_setting( $caps, $cap, $user_id, $args ) { $mod_of = BP_Groups_Member::get_is_mod_of( $user_id ); $admin_of = BP_Groups_Member::get_is_admin_of( $user_id ); if($mod_of["total"] == 0 && $admin_of["total"] == 0) { $caps[] = 'do_not_allow'; } if ( 'bp_docs_create' == $cap && $group_id = bp_get_current_group_id() ) { // In a group, only set this cap if the user can associate a doc with the group. if ( current_user_can( 'bp_docs_associate_with_group', $group_id ) ) { $caps[] = 'exist'; } else { $caps[] = 'do_not_allow'; } } return $caps; } add_filter( 'bp_docs_map_meta_caps', 'my_docs_create_follow_group_associate_setting', 10, 4 );
Forum: Plugins
In reply to: [BuddyPress Docs] Hide “Create new doc” for non group admins / moderatorsYeah I’ve just tried it @dcavins! It works for the group pages, but not for /members/username/docs/ on the profile page. Is there a way I can hide it there too?
Forum: Plugins
In reply to: [BuddyPress Docs] Hide “Create new doc” for non group admins / moderatorsHi @dcavins!
Thanks for your answer.
I’ve added this to my “functions.php”.function my_docs_create_admins_only( $caps, $cap, $user_id, $args ) { if ( 'bp_docs_create' == $cap ) { // Only admins can create docs. if ( bp_current_user_can( 'bp_moderate' ) ) { $caps[] = 'exist'; } else { $caps[] = 'do_not_allow'; } } return $caps; } add_filter( 'bp_docs_map_meta_caps', 'my_docs_create_admins_only', 10, 4 );
Then I’ve tried to change the member to moderator in the group settings of buddypress (wordpress dashboard).
It does not show the button for the moderator. Am I missing something? Or does this work only with group admins not moderators?
Forum: Plugins
In reply to: [BuddyPress Docs] Switch language (Localization)thanks @dcavins