Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 3,476 through 3,500 (of 20,277 total)
  • Author
    Search Results
  • #174395
    @mercime
    Participant

    @speedyworm BuddyPress uses the theme’s page.php to render the BP components. Have not seen a thesis theme for some time. Do check Thesis’s forums if someone already made the child theme for BP Theme Compatiblity already. If the page.php file of a thesis theme has the proprietary templating system where you cannot see the_title() and the_content() tags within the WP loop, then:
    – create a new thesis child theme for BP
    – copy over the parent theme’s page.php to the child theme
    – change child theme’s page.php so that it contains the_title() and the_content() tags within the WP loop.

    #174383
    noizeburger
    Participant

    @dtabraham
    I’m looking for the same functionality and would prefer, to pass the user role over to a custom xprofile field to integrate it in buddypress search.
    Meanwhile I show the user roles with a function I found in the forums:

    bp-custom.php:

    function pc_get_userrole ($user_id) {
    
    $user = new WP_User($user_id);
    
    $userclean = $user->roles[0];
    
    return $userclean;
    
    }
    
    function get_user_role( $user_id ){
    
      $user_data = get_userdata( $user_id );
    
      if(!empty( $user_data->roles ))
          return $user_data->roles[0];
    
      return false; 
    
    }

    and then echo where you want (in my case I did it in member-header.php):

    <?php echo get_user_role(bp_displayed_user_id()); ?>

    You can take a look here: link to a profile on my site

    greetings

    #174264
    applegateian
    Participant

    Ok so <?php do_action( 'template_notices' ); ?> is referenced in member-header.php

    I have modified edit.php @henrywright-1 – as we’re not using the sub menu of activity, forums, etc.I just have profile and change avatar.

    It’s been a while since this file was edited, but I’m wondering if it’s this line that’s affecting the notices:

    	<?php    bp_profile_group_tabs_exc_empty(); ?>
    

    I’ll try with the default theme too and see what happens.

    #174221
    @mercime
    Participant

    @matejr That’s a tall order. Setting up what you envision would require custom plugins and modifications beyond the scope of these forums. Having said that, you might want to read the following posts which show some solutions used to get a better understanding of the scope of the project you want to take on.
    https://buddypress.org/2013/01/an-online-community-for-educators-built-with-buddypress/
    https://buddypress.org/2012/12/re-thinking-college-admissions-with-buddypress/

    #174209
    Ben Hansen
    Participant

    glad to help!

    #174208
    davejmason
    Participant

    Blimey! That was pretty darn simple. Thanks for that!

    #174201
    Ben Hansen
    Participant

    i think if you want the same forums to show up across the network you network activate if you want them to be individual you enable on the site level.

    #174184

    Yeah, Hugo, first of all, I’d like to say thanks for your reply – I have a few site members on my website and I am trying to create a more socially interactive environment for them. So, I’d prefer to solve problems in a timely fashion, and second, as per your request, I will try swapping out WP themes and see if that doesn’t shed some light on the sit. Btw… I got some custom sibebar widgets. Swapping out themes – even temporarly – won’t make my widgets disappear? or will they keep their settings (with the custom html)?

    #174140

    In reply to: Error to add new group

    Hugo Ashmore
    Participant

    @dbghost2005yahoocom

    It’s not good form to post a question in another thread it causes confusion. In your other threads I did mention basic trouble shooting so can you confirm you have tried deactivating your custom theme and trying with one known to work and that all components are activated and have pages existing for BP to use.

    https://buddypress.org/support/topic/getting-help-for-this-forum/ a quick response to that thread would have been appropriate just to let us know that you understood those basic steps.

    #174128
    Peter Kriegel
    Participant

    Even I have the impression that the bp-custom.php do not run!
    I have tried several codes inside the file Placed in /wp-content/plugins/.
    for example I try to set the landing page for the users to Profile:
    define( 'BP_DEFAULT_COMPONENT', 'profile' );
    or Change the default tab opened when looking at a group to forum
    define( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );
    https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
    … Nothing happens!
    I am realy newbee with that stuff! damm….

    #174085

    In reply to: for help

    @mercime
    Participant
    #174072

    In reply to: Creating New Posts

    @mercime
    Participant

    @seandb2 I’m not aware of any WordPress plugin set up per your requirement. Please post this at the WordPress forums for more assistance https://wordpress.org/support/forum/how-to-and-troubleshooting

    #174071
    @mercime
    Participant

    I’m looking at a video on You Tube and my BuddyPress Setting page looks different. …. I don’t have a Forums tab in my BP Settings window.


    @mark-gordon
    That’s an old video. Forums are now installed via the bbPress plugin https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/

    Have I got a faulty installation? What am I missing? All help welcomed!


    @sencerim
    Since BP 1.7, BP is compatible with most WP themes i.e., if you go to your site’s Members page for example, you’ll see the BP member directory component on that page. If you’re not seeing the Member’s directory using the slug/page name you used for it, try changing to the BP Default theme in Apperance > Themes and navigate to the members directory page or the component pages you have activated.

    #174069
    SebastianTis
    Participant

    Wrong code: On the BP Post Button issue.

    This is the media code, whats wrong why does it show the link of the inserted image. Anyone??

    function bp_post_buttons_inserts($form, $element, $snippetstag) {
    //uncomment and use insert_body instead of insert_body_disabled to hide by default
    // echo(‘<span class=”insert_head”><b>[Insert Media..] </b></span>’);
    echo(‘<div class=”insert_body_disabled bppb_headroom”>’);
    echo(“‘);\”>link“);
    echo(“<a href=\"javascript:insert_tag_url('$form','$element','‘);\” />image“);

    #174067
    SebastianTis
    Participant

    BP Post Buttons Problem

    The line that generates the popup and adds an image includes the img url in the post. Where in this code does it says that the must me added:

    echo(“<a href=\"javascript:insert_tag_url('$form','$element','‘);\” />afbeelding vanuit album“);

    #174059
    Hugo Ashmore
    Participant

    @dbghost2005yahoocom

    Firstly did you not read the sticky post ‘getting help’ ? in that is a bullet point list of information it’s useful to provide (not all necessarily essential) I have also just updated that post with basic troubleshooting steps that everyone overlooks and which we end up repeating again & again. many issues are third party theme related so the most important step is enabling a known good theme e.g ‘twentythirteen’ then check plugins.

    Looking over your posts I don’t see any current ones more then 20 hours old. We ask that people wait 24 hours before bumping posts to gain attention, and also we are just coming out of a weekend so things will be slower and all help here is on a voluntary basis.

    Post titles on tech forums: Please ensure title threads are descriptive of the issue not a generic cry for help, yes we’re aware there’s an issue, so titles like ‘please help, not working’ won’t gain much attention as ones stating what sort of issue is occurring.

    #174030
    Mark Gordon
    Participant

    I seem to be missing stuff, and I don’t know whether it’s me or the plug-in. I’m not seeing a Forums tab in the Settings window, and I’m not seeing anything new at all, post BP installation, when I look at the website itself.

    Should I be seeing more than I am seeing directly after installing BP? If not, why not?

    Cam
    Participant

    While searching threads about a similar issue, I stumbled upon this thread that some guys and I solved over on the WP forums.

    Question:
    Can you log in after one or two failed attempts (with either the sidebar login, or wp-login.php) but then are able to using the default form: wp-login.php?

    If so, I presented a workaround on the WP forums, which I will share here:

    Add the following php code to your functions.php file, your bp-custom.php file, OR a mu-plugin file that you create:

    //fix for cookie error while login.
    function set_wp_test_cookie() {
    	setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    	if ( SITECOOKIEPATH != COOKIEPATH )
    		setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
    }
    add_action( 'after_setup_theme', 'set_wp_test_cookie', 101 );

    This will try to set the test cookie anytime someone visits any page of your site, and it will allow the sidebar form to start working again if wp-login.php and cookies are enabled.

    If you cannot sign in at all (after two or three attempts with wp-login.php), I have not seen a solution yet (was what I was looking around for), but I have seen several threads about people with this issue after the upgrade to 3.7.1.

    Hope this helps, and I hope you all are in the first category. 🙂
    ~Cam

    #174024
    Cam
    Participant

    Question:
    Can you log in after one or two failed attempts using the default form: wp-login.php?

    If so, I presented a workaround on the WP forums, which I will share here:

    Add the following php code to your functions.php file, your bp-custom.php file, OR a mu-plugin file that you create:

    //fix for cookie error while login.
    function set_wp_test_cookie() {
    	setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    	if ( SITECOOKIEPATH != COOKIEPATH )
    		setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
    }
    add_action( 'after_setup_theme', 'set_wp_test_cookie', 101 );

    This will try to set the test cookie anytime someone visits your site, and it will allow the sidebar form to start working again if wp-login.php and cookies are enabled.

    If you cannot sign in at all (after two or three attempts with wp-login.php), I have not seen a solution yet, but I have seen several threads about people with this issue after the upgrade to 3.7.1.

    Hope this helps, and I hope you are in the first category.
    ~Cam

    #173940

    In reply to: iBuddy theme options

    @mercime
    Participant

    please post at theme’s forums https://wordpress.org/support/theme/ibuddy

    #173900
    modemlooper
    Moderator

    Hi @djouonanglandry,

    Thanks for wanting to help users find solutions to enhance or fix their BuddyPress sites but I must ask that you not reply to users topics with requests for payment in exchange for your services.

    This forum is volunteer based, the users here help each other out as BuddyPress is open source and free to use. Volunteer support is a way for the users to give back to the project.

    You can however reply to paid support requests:
    https://buddypress.org/support/forum/bp-jobs-board
    http://jobs.wordpress.net

    Or try one of the many freelance sites.

    #173862
    sethshoultes
    Participant

    Hi Marc,

    I think you have outlined a great feature set here. However, I think this is probably falling on deaf ears, here.

    I am the co-founder of Event Espresso. We spent several thousand dollars to build a working integration with Buddypress a couple of years ago. Unfortunately for us, they rewrote the entire Buddypress system shortly after we released the integration to our beta testers and our integration stopped working. Since that happened, we have not had the resources to build another integration with Buddypress.

    We may look into building another integration someday, once we are done rewriting our own system, but we will need more customers to vote on it and maybe even willing to crowd fund this particular integration. If you are interested in an integration with Buddypress and Event Espresso, please let us know in the Event Espresso support forums.

    #173856
    @mercime
    Participant

    @snsturki Please change your admin username and password immediately. Your site’s security has been compromised. I’ve deleted the admin username and password you posted above. Do not post admin information in this or any forum.

    #173830
    Sergio De Falco
    Participant

    Thanks Paul, I made it :), it’s something really rough, but if somebody needs it here it is:

    <?php
    
    // parametri del database
    $db_host = "localhost";         //Your database host
    $db_user = "database";          //Your database username
    $db_password = "password";      //Your database password
    $db_name = "database_01";       //Your database name
    
    $db = mysql_connect($db_host, $db_user, $db_password);
    set_time_limit(0);
    
    if ($db == FALSE)
    die ("Connection Error.");
    
    mysql_select_db($db_name, $db)
    or die ("Database Error.");
    
    $n = 0;
    $query = "SELECT * FROM <code>wp_posts</code> WHERE post_type = 'topic' OR post_type = 'reply' ORDER BY post_date ASC";
    
    $result = mysql_query($query, $db);
    
    while ($row = mysql_fetch_array($result))
    
    	{
    		unset($user_id);
    		unset($reg);
    		unset($guid);
    		unset($id);
    		unset($post_parent);
    		unset($post_date);
    		unset($nicename);
    		unset($displayname);
    		unset($title);
    		unset($forum);
    		unset($forumurl);
    		unset($post_type);
    		unset($forum_id);
    		unset($acttype);
    	
    		$user_id = $row['post_author'];
    		$guid = $row['guid'];
    		$reg = $row['user_registered'];
    		$id = $row['ID'];
    		$post_parent = $row['post_parent'];
    		$post_date = $row['post_date'];
    		$title = $row['post_title'];
    		$content = $row['post_content'];
    		$post_type = $row['post_type'];
    		$forum_id = $post_parent;
    		
    		$q1 = "SELECT * FROM <code>wp_users</code> WHERE ID = '$user_id'";
    		$r1 = mysql_query($q1, $db);
    		$e1 = mysql_fetch_array($r1);
    		
    		$nicename = $e1['user_nicename'];
    		$displayname = $e1['display_name'];
    		
    		if ( $post_type == 'reply' ) {
    			$q1 = "SELECT * FROM <code>wp_posts</code> WHERE ID = '$post_parent'";
    			$r1 = mysql_query($q1, $db);
    			$e1 = mysql_fetch_array($r1);
    			
    			$post_parent = $e1['post_parent'];
    			$title = $e1['post_title'];
    			$guid = $e1['guid'];
    		}
    		
    		$q1 = "SELECT * FROM <code>wp_posts</code> WHERE ID = '$forum_id'";
    		$r1 = mysql_query($q1, $db);
    		$e1 = mysql_fetch_array($r1);
    		
    		$forum = $e1['post_title'];
    		$forumurl = $e1['guid'];
    
    		if ( $post_type == 'topic' ) {
    			$action = mysql_real_escape_string('<a href="http://www.yoursite.com/users/' . $nicename . '/" rel="nofollow">' . $displayname . '</a> ha iniziato la discussione <a href="' . $guid . '">' . $title . '</a> nel forum <a href="' . $forumurl . '">' . $forum . '</a>');
    			$acttype = 'bbp_topic_create';
    		} else {
    			$action = mysql_real_escape_string('<a href="http://www.yoursite.com/users/' . $nicename . '/" rel="nofollow">' . $displayname . '</a> ha risposto alla discussione <a href="' . $guid . '">' . $title . '</a> nel forum <a href="' . $forumurl . '">' . $forum . '</a>');
    			$acttype = 'bbp_reply_create';
    		}
    		
    		$content = mysql_real_escape_string( $content );
    
    		if ( $user_id > 0 ) {
    			$q1 = "SELECT COUNT(umeta_id) AS conto FROM <code>wp_usermeta</code> WHERE user_id = '$user_id' AND meta_key = 'last_activity'";
    			$r1 = mysql_query($q1, $db);
    			$e1 = mysql_fetch_array($r1);
    			
    			if ( $e1['conto'] > 0 ) {
    				$q = "UPDATE wp_usermeta SET meta_value = '$post_date' WHERE user_id = '$user_id' AND meta_key = 'last_activity'";
    				mysql_query($q, $db);
    			} else {
    				$q = "INSERT INTO <code>wp_usermeta</code> (<code>umeta_id</code>, <code>user_id</code>, <code>meta_key</code>, <code>meta_value</code> ) VALUES ( NULL, '$user_id', 'last_activity', '$post_date' );";
    				mysql_query($q, $db);
    			}
    		}
    		
    		$q = "INSERT INTO <code>wp_bp_activity</code> (<code>id</code>, <code>user_id</code>, <code>component</code>, <code>type</code>, <code>action</code>, <code>content</code>, <code>primary_link</code>, <code>item_id</code>, <code>secondary_item_id</code>, <code>date_recorded</code>, <code>hide_sitewide</code>, <code>mptt_left</code>, <code>mptt_right</code>, <code>is_spam</code> ) VALUES ";
    		$q .= "(NULL, '$user_id', 'bbpress', '$acttype', '$action', '$content', '$guid', '$id', '$post_parent', '$post_date', '0', '0', '0', '0')";
    		mysql_query($q, $db);
    
                    $n++;
    	}
    
    mysql_close($db);
    
    echo "Done! inserted $n activity entries";
    ?>
    

    The action is in italian, you can modify as you want

    #173824
    Paul Wong-Gibbs
    Keymaster

    It sounds like you’ve run the importer that comes with bbPress 2. If BuddyPress and Activity were set up and working prior to you running that data import/migration, I would expect the Activity stream to be populated. If this isn’t the case, perhaps it is a bug. Might be worth a quick look on bbpress.org’s forums to see if the question has been asked before.

    I’m not aware of any scripts or plugins that backfill the data for you.

Viewing 25 results - 3,476 through 3,500 (of 20,277 total)
Skip to toolbar