Search Results for 'code'
-
Search Results
-
I have a fresh bbPress install and want to import everything possible from my phpBB version 3.2.4 installation. The import runs and step 8 is importing lots of anonymous topic authors.
However, why aren’t my users importing? Based on other posts I ensure no topics/threads are attributed to founders/moderators/admins. (I created a single founder account and downgraded everyone else).
I see some references to a 3rd party import script, and other references saying its not needed. Can someone help? It’s Jan 15 2020 and I have the latest bbPress. Note sure hot to proceed.
Excerpt from log:
6.No forum subscriptions to import 5.All forum parents imported100% 5.Calculating forum hierarchy (0 through 11 of 11)0% 4.All forums imported100% 4.Converting forums (0 through 16 of 16)0% 3.No passwords to clear 2.No users to import 1.Skipping sync-table clean-up
Hi, When a moderator edits a Topic in the WordPress Dashboard, there’s a section near the bottom with the Replies in it. However it also reveals user’s email and IP addresses.
Is there a way to hide the emails and IP’s in this section for moderators?
I’ve already hidden IP’s on the front end for mods by editing some code related to the loop-single-reply.php (more info here, thank you Robin).Or, is there a way to make the Replies box that appears there turned off by default for moderators, under the screen options?
Thank you, Sam
Topic: bbpress search codding…
Is there a way to search for topics within that forum ??
For example
Dogs (Forum 1)
Cute puppies (topic 1)
My dog (topic 2)
Cat vs Dog (Topic 3)Cat (forum2)
Cute Cats (Topics 1)
My cat (topic 2)
Cat vs dogForum 1 and 2 Nested Cats vs. Dogs.
Is there a way to search only topics (topci 1-3) within dog forum ??I personally think bbpress is very good and I respect all the developers here.
You can’t speak English without knowing the code. I still read and post posts through the translator.
Would you please kindly let me know?
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();
Topic: bbpress search (languege)
Hello I am a bbpress fan. Personally I think it’s a really cool plugin.
Nonetheless, I want to use the search form in the bbpress.org sidebar.So I used search-form using the code in the sidebar through the bb-base theme answered in last topic.
However, I can’t search in Chinese, Japanese, etc. other than English and numbers.
I do not live in an English-speaking country. So I searched for 3 days to solve the problem but couldn’t find the answer.
What I want is to search for a topic in the forum or to find a reply in an answer.
Can you tell me how to modify bb-base (sidebar search) to search in other languages ..?
Or is there another alternative?
Help the esteemed bbpress developer ..