Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,876 through 13,900 (of 32,503 total)
  • Author
    Search Results
  • #136349
    strangelife
    Participant

    Hi,

    A couple of reasons why the shortcodes won’t work.

    1. Make sure the bbpress plugin is installed an activated.
    2. The theme strips out the any use of shortcodes in the write panel.

    Have you tried using the shortcodes in the “Text” panel rather than the “Visual” box?

    ~ Matt

    Morgensonne
    Participant

    Hi John James,

    Thank you for this information. Good to know.
    The Codestyling Localization plugin really seems to be very strict. I do not need it necessarily. Anyway, I work better with the poedit.

    Morgensonne

    The warning in Codestyling Localization is too strict. Both bbPress and BuddyPress allow for loading translation files in the core languages location: wp-content/languages and as a result, do not call load_plugin_textdomain but instead load_textdomain with the correct filters.

    Does the CS plugin allow you to override their error reporting? I remember that plugin being pretty robust.

    #136343
    Ocelot0526
    Participant

    On this page http://codex.bbpress.org/shortcodes/ they say “To use any of the shortcodes simply insert the desired shortcode into any WordPress page.”

    So far I’ve tried these three

    [bbp-forum-index]
    [bbp-single-forum id=1]
    [bbp-topic-index]

    nothing happens except they show up as text. Why?

    #136342
    Volvon
    Participant

    It was my theme, so if anyone finds this page via a search engine, it probably isn’t to do with bbppress itself, more likely your theme CSS messing it up a bit. Every theme is different so your problem might be different that mine. But don’t go messing round with BBpress, that seems fine, I went though most of the code and Css for it! lol

    solhuebner
    Participant

    Try adding

    function subscribed_by_default() {
    	echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked",false);</script>';
    }
    
    add_action('bbp_theme_after_topic_form_subscriptions', 'subscribed_by_default');
    add_action('bbp_theme_after_reply_form_subscription', 'subscribed_by_default');
    

    to your functions.php

    #136332
    Sven
    Participant

    Howdy everyone,

    I want to migrate an old bbPress forum 1 to bbPress 2.3.2. I used the importer tool to import the old topics an so on. But I am missing the attachments and the user-avatars. The attachments shortcode is shown, but not the image and no avatar. Can anyone help me please?

    Wordpress 3.5.1 and bbPress 2.3.2

    Kind regards,
    iGoras

    #136324
    mafton
    Participant

    Hey guys
    i am using one bbp theme and it uses “search-topics.php” file for searching among topics but unfortunately is shows private message as results as well.
    any idea of how i can achieve this by changing the code ?

    thanks for your help

    Volvon
    Participant

    Hello,

    I am having an issue with the forum. The original posts are fine, but any replies made to the OP and the avatar is small, and misaligned along with the username not being formatted correctly either.

    See for yourself here: http://www.amazing-auroras.eu/forums/topic/moved-reply-to-hi/

    I use WP User Avatar, but I de-activated it, deleted it, de-activated BBP, all made zero difference, so I am not sure it is related, especially as the original post in forums displays everything correctly, it is only replies that have the issue.

    I have searched through this support forum for days without finding a fix.

    I have also gone through most code that I think might affect it but have not found anything.

    I cannot find the code that says the avatar should be smaller in replies, is this normal for BBP or is my theme making this happen?

    So any ideas even if you can tell me if it is a theme issue, BBP issue, or whatever. I am totally at a loss where to look now.

    #136315

    Topic: Gravatar

    in forum Plugins
    SickSquirrelTwo
    Participant

    I want to have users host their avatar at Gravatar. How do I link to my avatar there via my line of code? I did an md5 hash for my avatar to test. Which plugin do I use to link that line of code?

    #136314
    Stephen Edgar
    Keymaster

    No there is not, bbPress does not support attachments.

    Edit: If the image was part of the original post with using the BBCode [img] then that IS imported as part of the post, if the image was an attachment to the post then it is not imported.

    #136313
    Stephen Edgar
    Keymaster

    Your going to have to use $args['separator'] = ' '; (Either a blank space or empty) and then use some CSS to style the bbp-forum-list element.

    #136307
    Nykess
    Participant

    Thank you for your reply. What I would like to do is this:

    • Subforum 1 (0, 0)Subforum 2 (0, 0)
    • Subforum 3 (0, 0)Subforum 4 (0, 0)
    • Subforum 5 (0, 0)Subforum 6 (0, 0)
    • etc.
    #136299
    Techknowledgic
    Participant

    Hey

    maybe this question is repeated and I read like 2-3 topics about this but I didn’t find that helpful for my case. I just wanna change the colors like the header border instead of being grey I want it to become blue. I am not so bad with css so I may be able to do it but I just need to know which file should I work with and what code should be changed

    Thanks!

    #136297
    Techknowledgic
    Participant

    Hey

    I am facing an problem which is everyday around 2 new users register to my forum and they are with weird names like wisjidyyus and jwjteeasa and many other names. The problem is that I have statcounter and histats and google analytics and the new users are not counted or seen by the stats and the registration page is in my website and not WP and has the stats code. so how can the users register to my website without visiting it? is it a bug or what?

    Thanks

    #136296
    janhoos
    Participant

    Hey guys!

    I’ve added a custom role to BBpress with this piece of code in a functions.php file in my theme:

    function add_custom_role( $bbp_roles ) {
    $bbp_roles[‘my_custom_role’] = array(
    ‘name’ => ‘ACN Lid’,
    ‘capabilities’ => bbp_get_caps_for_role(bbp_get_participant_role()) // i just want them to have the same capabilities as moderators

    );

    I also have a private forum that only this member can access. Right now it works through a member groups plug-in that shields it. But it still let the off limits posts show up in search results.

    So I want to try and work within the BBpress system of private and hidden forums. Making the forums private won’t solve a thing, because for some weird reason, participants can also view that… Why is that?

    But oh well! I’d like to include the list of capabilities found in the capabilities.php file with this custom role. Instead of the custom role taking the capabilities from the participant. I want to make the members only forums hidden, and make the ACN lid role be able to see the hidden forums.

    How do I change the above code, to make it use the following capabilities:
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => false,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => false,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => false,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    #136291
    Stephen Edgar
    Keymaster

    You kind of only have two options, the default bbPress behaviour like this:

    • My Parent Category/Forum
    • My 1st Child Forum (78, 425), My 2nd Child Forum (18, 107)

    Or using the <br /> as the separator:

    • My Parent Category/Forum
    • My 1st Child Forum (78, 425)
    • My 2nd Child Forum (18, 107)

    Each element is returned as a whole so My 1st Child Forum (78, 425) and My 2nd Child Forum (18, 107) CANNOT be broken down further for multiple columns like this (which I think you are alluding to:

    • My Parent Category/Forum
    • My 1st Child Forum78425
    • My 2nd Child Forum18107
    #136289

    In reply to: Add forum roles

    janhoos
    Participant

    Is there a way to give a custom role a custom set of capabilities?

    Like the ones found on the capabilities.php file?

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => false,
    ‘throttle’ => false,
    ‘view_trash’ => false,

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_forums’ => false,
    ‘edit_others_forums’ => false,
    ‘delete_forums’ => false,
    ‘delete_others_forums’ => false,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => false,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => false,
    ‘delete_topics’ => false,
    ‘delete_others_topics’ => false,
    ‘read_private_topics’ => false,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => false,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => false,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,

    Using the code above, I don’t know where to put the capabilities.

    #136288
    Nitac
    Participant

    I’d like to know if you have any success with this, i posted a similar issue here but i havent had any luck rectifying it.

    The last time test i tried i got to >300k (forum has ~400k) posts after the convertor stalled and requiring a restart a couple of times, until the most recent time tried to restart I got this error in the output window:

    Repair any missing information: Continue
    WordPress database error: [Table 'db_name.pbpbb_posts' doesn't exist]
SELECT convert(posts.post_id USING "utf8") AS post_id,convert(topics.topic_id USING "utf8") AS topic_id,convert(posts.forum_id USING "utf8") AS forum_id,convert(posts.topic_id USING "utf8") AS topic_id,convert(posts.poster_ip USING "utf8") AS poster_ip,convert(posts.poster_id USING "utf8") AS poster_id,convert(posts.post_subject USING "utf8") AS post_subject,convert(posts.post_text USING "utf8") AS post_text,convert(posts.post_time USING "utf8") AS post_time FROM pbpbb_posts AS posts LEFT JOIN pbpbb_topics AS topics USING (topic_id) WHERE posts.post_id != topics.topic_first_post_id LIMIT 304200, 100
    Starting Conversion

    Im currently running this on AWS (Amazon Servers) and had upgraded to the server to something with a bit more grunt but its not helping.

    Ive also discovered, not sure if this is related, that none of the replies that are imported are assigned to a forum or a topic and when viewing a topic only the first post appears and none of the related replies.

    looking forward to response.
    mchl

    #136282
    Nykess
    Participant

    After giving it some thought, how can I edit this code so that it puts the subforums into two or three columns instead of one column only?

    function custom_bbp_list_forums() {
      $args['separator'] = '<br />';
     
      return $args;
    }
     
    add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_list_forums' );
    #136276
    stunna42
    Participant

    bbPress Version 2.3.2 & WP 3.6

    Hello! Sorry for the newbie question 🙂 I’d like to customize the registration experience for my instance of bbpress. Specifically, I’d like to specify the content:

    1. In addition to the username and password fields on the sign-up page
    2. In the “you are now registered email” users get
    3. In the forgot your password page
    4. In the forgot your password email

    Is this possible? If so, how? Thanks again!

    Note: I know we can specify custom URI’s…but using the registration short code creates a page with the following content…I’d like to change that text etc. “Your username must be unique, and cannot be changed later. We use your email address to email you a secure password and verify your account.”

    #136271
    janhoos
    Participant

    Hey guys!

    I have an agenda plug-in where users can show they are attending a certain event. I’d like to display the user role (member, aspiring member) behind the name.

    But I can’t seem to find the short code for a users role? Is there any? If not, is there a way to display them?

    #136266
    Anand
    Participant

    OK. I figured out the problem.

    The code should be:

    function custom_logged_in_topics($have_posts){
        if (!is_user_logged_in()){
            $have_posts = null;
      	    echo 'Login to see replies';
        }
        return $have_posts;
    }
     
    add_filter('bbp_has_topics', 'custom_logged_in_topics');
    add_filter('bbp_has_forums', 'custom_logged_in_topics');
    add_filter('bbp_has_replies', 'custom_logged_in_topics');

    Got from earlier thread. (That code was not working because of backtick instead on ‘ or “)

    #136259
    Anand
    Participant

    Hello All,

    I am trying to hide all the replies for anonymous or public. I added the following code:

    
    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = 'true';
    return $show_lead;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    
    function remove_forum_replies_guest() {
    	if ( !is_user_logged_in() ) {
    		remove_action('bbp_before_has_replies_parse_args', 'bbp_replies') ;
    	} 
    }
    
    add_filter('bbp_has_replies_query',  'remove_forum_replies_guest');

    It removes all the replies not only for public (non-logged in visitors) but also from logged in users.

    Any help will be appreciated.

    #136250
    Stephen Edgar
    Keymaster

    If any of the emails need to link to either wp-login.php or /wp-admin then based on these two lines from your .htaccess file ‘something’ will happen 😉 I am not familiar enough with .htaccess and mod_rewrite to know this stuff of the top of my head 😉

    RewriteCond %{REQUEST_URI} ^/wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/wp-admin$
Viewing 25 results - 13,876 through 13,900 (of 32,503 total)
Skip to toolbar