Search Results for '+.+default+.+'
-
Search Results
-
WP 5.3.2
Buddypress 5.1.2
Website https://connect.commium.fr/
Theme : Woffice wordpressHi guys,
I’m beginner developper and i have a problem which i’m trying to solve on my website, i created a function to show groups website statistics on their group -> stats tab on group page, the thing work perfectly with an embedded public stats API, but i want to show theses tab on user dashboard too, not only on group -> stats tab, so i tried to copy past the function display() but it didn’t work, the $setting variable and $setting2 variable are NULL..
Someone can help me on this problem please, you can check the code below for more informations :
function stats() { if ( bp_is_active( 'groups' ) ) : class Entreprise_Statistiques extends BP_Group_Extension { /** * Your __construct() method will contain configuration options for * your extension, and will pass them to parent::init() */ function __construct() { $args = array( 'slug' => 'entreprise_statistiques', 'name' => 'Statistiques', ); parent::init( $args ); } /** * display() contains the markup that will be displayed on the main * plugin tab */ function display( $group_id = NULL ) { $setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' ); $setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' ); $group_id = bp_get_group_id(); ?> <script> StatHatEmbed=new function(){function d(){var a=document.getElementsByTagName("script");return a[a.length-1]}function e(a,b){var d=document.createElement("script"),c="//www.stathat.com/embed/"+a+"/"+b.s1;b.dev&&(c="//localhost:8081/embed/"+a+"/"+b.s1);b.s2&&(c+="/"+b.s2);b.s3&&(c+="/"+b.s3);c+="?w="+b.w+"&h="+b.h+"&tf="+b.tf;b.style&&(c+="&style="+b.style);b.dev&&(c+="&dev=1");b.title&&(c+="&title="+b.title);d.src=c;d.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(d)}function f(a){return[a.s1, a.s2,a.s3,a.w,a.h,a.tf,a.style].join("_")}this.render_graph=function(a){DIV_ID="statd_embed_graph_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("graph",a)};this.render_histogram=function(a){DIV_ID="statd_embed_histogram_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("histogram",a)};this.render_data=function(a){DIV_ID="statd_embed_data_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>"); e("data",a)};this.render_table=function(a){DIV_ID="statd_embed_table_"+f(a);d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("table",a)};this.render_text=function(a){DIV_ID=["statd_embed_text",a.s1,a.u].join("_");d().insertAdjacentHTML("AfterEnd","<div id='"+DIV_ID+"' style='display:none'></div>");e("text",a)};this.render=function(a){a.tf||(a.tf="week_compare");a.kind||(a.kind="graph");switch(a.kind){case "graph":this.render_graph(a);break;case "histogram":this.render_histogram(a); break;default:this.render_graph(a)}}}; </script> <div id="stats"> <script>StatHatEmbed.render({s1: '<?php echo($setting); ?>', w: 760, h: 235, tf:'month_compare', style:'fill', title:'<?php echo($setting2); ?>'});</script> </div> <?php if ($setting == NULL) { echo ("Aucun site internet détecté, merci de contacter l'équipe COMMIUM."); } } /** * Création */ function settings_screen( $group_id = NULL ) { $setting = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting' ); $setting2 = groups_get_groupmeta( $group_id, 'entreprise_statistiques_setting2' ); ?> <input type="text" name="entreprise_statistiques_setting2" id="entreprise_statistiques_setting2" placeholder="Nom d'entreprise"><?php echo esc_attr( $setting2 ) ?></input> <input type="text" name="entreprise_statistiques_setting" id="entreprise_statistiques_setting"placeholder="Code suivi"><?php echo esc_attr( $setting ) ?></input> <?php $settingInfo = $_POST['entreprise_statistiques_setting']; $settingInfo2 = $_POST['entreprise_statistiques_setting2']; } function settings_screen_save( $group_id = NULL ) { $setting = ''; $setting2 = ''; if ( isset( $_POST['entreprise_statistiques_setting']) && isset($_POST['entreprise_statistiques_setting2'] ) ) { $setting = $_POST['entreprise_statistiques_setting']; $setting2 = $_POST['entreprise_statistiques_setting2']; } groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting', $setting ); groups_update_groupmeta( $group_id, 'entreprise_statistiques_setting2', $setting2 ); } } bp_register_group_extension( 'Entreprise_Statistiques' ); endif; // if ( bp_is_active( 'groups' ) ) } echo stats();
Hi All,
In the WordPress log file, I am getting error
[21-Dec-2019 07:42:06 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 for query SELECT
idFROM wp_posts WHERE
post_parentIN () made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters('bbp_template_include'), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, bbp_buffer_template_part, bbp_get_template_part, bbp_locate_template, load_template, require('/plugins/bbpress/templates/default/bbpress/content-single-user.php'), bbp_get_template_part, bbp_locate_template, load_template, require('/plugins/bbpress/templates/default/bbpress/user-topics-created.php'), bbp_get_user_topics_started, bbp_has_topics, bbp_parse_args, apply_filters('bbp_after_has_topics_parse_args'), WP_Hook->apply_filters, call_user_func_array, _bbp_has_topics_query, apply_filters('bbp_has_topics_query'), WP_Hook->apply_filters, call_user_func_array, bbps_lock_to_author, bbps_get_all_premium_topic_ids
Can anyone suggest what might be an issue to this?
Thanks
Topic: Default image topic
Hello, how could you make every forum topic have a default picture?
As I search the site, forum topics are also includedI would like them to have default images the same as every blog entry. 1 and the same picture but how to set it?
hi,
can anyone help me out for the following…why it dosent move after 2nd step…
“Second Step
Now we’re going to create the database tables and fill them with some default data.”
Custom Field doesn’t work with bbpress 2.6 and above
I use custom fields for bbpress topics.
I tried to turn off all plugins and change the theme to default but always receive next javascript error in the console:load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4 POST https://test.3d-kstudio.com/wp-admin/admin-ajax.php 400 send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4 ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:4 ajaxAdd @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9 i.wpList.<computed> @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9 (anonymous) @ load-scripts.php?c=0&load[chunk_0]=hoverIntent,common,hoverintent-js,admin-bar,wp-ajax-response,jquery-color,wp-lists,jquery-ui-sortable,postbox,jquery-ui-position&load[chunk_1]=,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbo&load[chunk_2]=ne,wp-util,wp-backbone,media-models,wp-plupload&ver=5.3.1:9 dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3 r.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,suggest,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.3.1:3
PS. For getting the error the topic must be saved.
Hello, I have a page https://infomiasto.eu/ where I have set various data in htaccess
As set by default: ExpiresDefault “access plus 10 days”
Does this apply to all things on the site, even those individual parts not listed?
I have the following
ExpiresByType font / opentype “access plus 1 month”
ExpiresByType application / javascript “access plus 1 months”
ExpiresByType text / html “access plus 10 minutes”So will this apply to the default also for what is not mentioned, for example, text / javascript?
I have created a theme, and installed bbPress. I followed the getting started instructions in the documentation, and added the [bbp-forum-index] shortcode to my forum page.
Under my theme, no forum appears, nothing at all. However if I activate a default theme the forum shows.
How do I add a forum to a wordpress theme that i created? I couldn’t seem to find anything on the internet to help with that part.
Many thanks
WordPress 5.2.4
bbPress Version 2.6.2