Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,476 through 14,500 (of 32,519 total)
  • Author
    Search Results
  • #132194
    Spudnic
    Participant

    I Tried:

    add_filter( 'bbp_get_user_profile_url', 'my_custom_author_link' );
    function my_custom_author_link( $user_id ){
        return get_author_posts_url(false, $user_id);
    }

    get_author_link(); appears to have been depreciated.

    So using:

    add_filter( 'bbp_get_user_profile_url', 'my_custom_author_link' );
    function my_custom_author_link( $user_id ){
    return get_author_posts_url( $user_id, false );
    }

    I am able to get to:

    http://localhost/wordpress/author/

    which is sooo close to what i need.

    I need it to return http://localhost/wordpress/author/$user_name

    #132182

    Add this to your functions.php. Reload your site and then remove the code. It only needs to be executed once:

    `
    update_option( ‘_bbp_forums_per_page’, 100 );
    `

    #132181

    You can use the bbp_get_user_profile_url filter. Something like:

     

    
    add_filter( 'bbp_get_user_profile_url', 'my_custom_author_link' );
    function my_custom_author_link( $user_id ){
        return get_author_link(false, $user_id);
    }
    

    (Not tested, but should help you get on track)

    #132167
    Artisantopia
    Participant

    WordPress V3.5.1
    BuddyPress 1.6.5
    bbPress 2.2.4

    I have just moved my group forums from BuddyPress and added a sitewide forum as per these instructions http://codex.buddypress.org/user/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/

    Everything is working except for 1 thing.

    Any user with a forum role of Participant cannot see the opening topic post in any thread. They can see all replies. It doesn’t matter if they created it or another user did, they can’t see the opening post.

    If I change their role to Moderator they can see the opening post. But, I don’t want everyone to have moderator rights.

    I tried changing the capabilities of Participant (using capability manager plugin), but that didn’t work either.

    Can someone please HELP!!!

    thank you

    #132163
    stickFinger
    Participant

    Hi moebi

    I came here from a google search regarding subforuns in bbpress.

    Even before I install wp+bp+bbpress i´d love to know if you have news on this. For the kind of community i´m planning subforuns is a must 🙂

    Also looking at your code, i´ve found in my group.php

    ` */
    public function remove_forum( $forum_args = array() ) {

    // Bail if no forum_id was passed
    if ( empty( $forum_args[‘forum_id’] ) )
    return;
    ` where public function is line 610 and so i´m a bit lost.

    Any help would be appreciate.
    Thanks

    #132161
    Gettinitdone
    Participant

    I am looking to display additional profile fields I created with s2member.

    I opened user-profile.php.

    I think I need to write more of these lines and edit them to call on the additional s2member profile fields:

    <p class=”bbp-user-description”><?php bbp_displayed_user_field( ‘description’ ); ?></p>

    <?php endif; ?>“

    I have not yet located the s2member code to add to above code.  If anyone has accomplished this, please let me know.

    #131812
    stevendo
    Participant

    After digging into the source code of search, I found that it uses SQL’s LIKE for searching. So…no fulltext search.

    I searched on the Web and it looks like Sphinx can give me a solution, though it requires extra setup and configuration. MySQL 5.6.4 will add supports of fulltext search for InnoDB as well.

    SydneyDesigner
    Participant

    I’m testing bbPress 2.3-rc1 with BuddyPress 1.7-rc1 on WP3.5.1 and may have encountered an issue with bbp_get_topic_id().

    Can bbp_get_topic_id() be used to get the main topic id from a Buddypress group>forum>topic+replies page?
    If yes, then how? (a quick code line example please)
    If not then how else should this be done?

    Thank you.

    Fee
    Participant

    The ‘Private: …’ is added by WP in wp-includes/post-template.php inside of the function get_the_title(). bbpress uses this function in it’s own function bbp_get_forum_title() to generate the title -> ‘Private:’ is appended first time. When the theme now calls the_title() ‘Private:’ is appended again.

    I adjusted bbp_get_forum_title() now: Add two filters, the first removes the ‘Private:’ from all Breadcrumbs and so on, the second appends ‘Private Forum:’ to the forum title.

    function bbp_get_forum_title( $forum_id = 0 ) {
    $forum_id = bbp_get_forum_id( $forum_id );
    add_filter( 'private_title_format', function(){ return '%s'; } );
    $title    = get_the_title( $forum_id );
    add_filter( 'private_title_format', function(){ return __( 'Private Forum: %s', 'bbpress' ); } );
    return apply_filters( 'bbp_get_forum_title', $title, $forum_id );
    }

    Could one of the devs please take a look if this would be an option for you? I hardcoded it for now…

    #131727
    Kaenim
    Participant

    Hi everyone. I’m in the process of migrating my website from phpBB to bbPress. In modifying the template, I feel like I’m pretty limited to what I can change without getting into modifying core files.

    Basically, this is what my phpBB forum looks like –

    And this is how my bbPress looks like right now –

    I want to retain the look of the former, but in the archive-forum.php template file, the only code that is being called in that area is “bbp_get_template_part( ‘content’, ‘archive-forum’ );”

    It looks like bbp_get_template_part() is calling the entire thing, whereas I’m used to phpBB giving me individual tags – I guess their equivalent to what you’d call shortcodes? – for the category name, the forum name, number of posts etc to place them precisely where I want them in the template.

    So what am I missing? What file can I modify, or what functions could I call, that would allow me that same level of control?

    Hopefully this is coherent. I’m pretty new to using bbPress – and BuddyPress, and WordPress… – so I feel a bit mentally fatigued from learning these systems, lol. Any help would most certainly be appreciated. Let me know if anything needs clarification, and thanks in advance to anyone who reads this wall of text. Cheers.

    #131704
    Sam Rohn
    Participant

    make a new page and add the register shortcode to that page, then add the url for that page to the widget

    `[bbp-register]`

    more shortcodes here

    https://codex.bbpress.org/shortcodes/

    #131701
    allg33k
    Participant

    What’s the short code you used? I’m haveing a simular issue. I can see this page: http://mydomain.com/?post_type=forum and my individual forums. But not http://b1ker.com/forums

    #131689
    lincolnthree
    Participant

    Okay, a little more information. It seems like there are 914 topics in the bb_topics table, and when i query for the last topic that was imported, I find it:

    mysql> SELECT * FROM bb_topics WHERE topic_title like '%How get the original%' ORDER BY topic_start_time DESC;
    +----------+---------------------------------------------+-------------------------------------------+--------------+-------------------+-------------------+------------------------+---------------------+---------------------+----------+--------------+------------+--------------------+--------------+-------------+-----------+
    | topic_id | topic_title                                 | topic_slug                                | topic_poster | topic_poster_name | topic_last_poster | topic_last_poster_name | topic_start_time    | topic_time          | forum_id | topic_status | topic_open | topic_last_post_id | topic_sticky | topic_posts | tag_count |
    +----------+---------------------------------------------+-------------------------------------------+--------------+-------------------+-------------------+------------------------+---------------------+---------------------+----------+--------------+------------+--------------------+--------------+-------------+-----------+
    |      914 | How get the original Request URI from JSF ? | how-get-the-original-request-uri-from-jsf |          650 | ceefour           |               650 | ceefour                | 2012-08-04 11:25:22 | 2012-08-04 19:27:20 |        1 |            0 |          1 |               3909 |            0 |           3 |         4 |
    +----------+---------------------------------------------+-------------------------------------------+--------------+-------------------+-------------------+------------------------+---------------------+---------------------+----------+--------------+------------+--------------------+--------------+-------------+-----------+
    1 row in set (0.00 sec)

    However, when I query for something else that should exist. One of the newer posts that was not imported: (http://ocpsoft.org/support/topic/get-encoded-url-in-filter) I come up with nothing:

    mysql> SELECT * FROM bb_topics WHERE topic_title like '%get encoded%' ORDER BY topic_start_time DESC;
    Empty set (0.00 sec)
    
    mysql> 

    How is it that this topic clearly exists and shows up on the website, but it would not exist in the bb_topics table? Answering this seems like it would lead to the root cause of this migration problem.

    Thanks again for all of your help,

    Lincoln

     

    #131679
    eddiemoto
    Participant

    On an interesting side note, I added the short code for the index and it seems to work. Is this the proper way or did it just work because it was a shortcode.

    (Worked for the default theme, not Canvas. Canvas just displays some non-formatted HTML)

    Jerry
    Participant

    I have the same problem- firefox only. On user profile pages Topics Started and Replies Created do not appear- only the title. I added this code from a bbPress forum (3 months, 3 weeks ago) to my WP style.css file:

    .bbp-user-section {
    overflow: auto;
    }

    and this code:

    #bbpress-forums .bbp-user-section ul.bbp-topics {float: left !important;}

    and both together and no change

    I have spent time on the forums, but maybe there is a solution somewhere that I missed.

    Thank You

    WP 3.5.1
    bbPress 2.2.4
    Thematic Theme

    #131640
    Stephen Edgar
    Keymaster

    You can use a widget in your sidebar https://codex.bbpress.org/widgets/
    Or create a page with some shortcodes https://codex.bbpress.org/shortcodes/

    #131633
    mchelles
    Participant

    No if I use that code, no 404. To clarify, the 404 is when you click on the “View Posts” Link, not the profile page itself. I think I need a loop to call the author ID, which is where I am getting stuck.

    Thanks for any ideas you may have!

    #131390
    Stephen Edgar
    Keymaster
    #131385
    IPBri
    Participant

    I have tried to upgrade my install of bbpress from 1.0.2 to 1.2 (so I can migrate to the plugin version) several times now and I only get a white page. I verified my versions…

    Wordpress 3.5.1
    PHP – 5.3.3
    MySQL – 5.1.61

    I disabled all my bbpress plugins, copied over all the files, made sure my template files (custom theme) and my bb-config.php file were still there. I only get a white page after the upgrade. Page source says there is zero code in the page. I have seen other posts with this problem, but have not seen a resolution to the issue.

    Am I missing something?

    #131381
    horiamar
    Participant

    I tried to use the bit of code postet here above by Anointed.
    I put it in the functions.php file of my buddypress theme.
    It didn’t have any effect…

    On the other hand, I found a plugin that does the job, but just partially:
    https://wordpress.org/extend/plugins/orbisius-bbpress-enhancer/
    (Orbisius bbPress enhancer)

    This plugin works fine, but it allows me to change only the COMMENTS authors, not also the REPLIES authors.

    (forums in bbPress consist hierarchically in: FORUM > TOPIC > COMMENT > REPLY)

    I Would be grateful if any coding specialist among you would tell me what to do with the codes above, to get them working (for comments AND replies).

    #131367
    hariharakumar
    Participant

    I have installed bbpress forum on my blog http://www.geekspage.org/ , created new forums and topics. I can view topics and forums, but i cant see forum index page.

    I have created a new page with name Forums to see if it works, but it didnot help.

    Used the shortcode [bbp-forum-index] it works on other pages but it did not work on Forums page. I have created a test page and used the shortcode it works fine, here is the test page link test. Shortcode didnot work on Forums page, here is the link forums

    I dont know what to do please help me.

    #131360
    Lynq
    Participant

    Do you still get a 404 using this code: http://pastebin.com/i6g8VCE4

    venom_
    Participant

    Hi! I have solution of this problem.
    Open file `/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php` and find there this lines of code:
    `
    function bp_core_set_avatar_constants() {
    global $bp;

    if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
    define( ‘BP_AVATAR_THUMB_WIDTH’, 50 );

    if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
    define( ‘BP_AVATAR_THUMB_HEIGHT’, 50 );
    `
    Just replace 50 to required size.

    P.S. Sorry for my English…

    #131255
    #131247
    Stephen Edgar
    Keymaster

    There is a new shortcode and widget for bbPress stats in the upcoming bbPress 2.3

Viewing 25 results - 14,476 through 14,500 (of 32,519 total)
Skip to toolbar