Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,926 through 13,950 (of 32,585 total)
  • Author
    Search Results
  • #136420

    In reply to: Membership counter

    Stephen Edgar
    Keymaster

    That site is the old bbPress 0.9/1.x version… The bbPress 2.x plugin does not support number of or users online.

    For the other stats you can use the bbPress shortcode [bbp-stats] To display the forum statistics on any page or the widget for your sidebar.

    #136404
    jezza101
    Participant

    I wanted to enable a WP shortcode I have written within bbpress, it seems the common way to do this is to use do_shortcodes($content) on the post, this works fine and I’ve seen it in a number of published plugins.

    The problem with this is that it enables all shortcodes including the bbpress ones such as login, stats etc. In fact a number of published plugins suffer from this issue (oops).

    The best solution I’ve come across is using the whitelist plugin:
    http://wordpress.org/plugins/bbpress2-shortcode-whitelist/

    But I was wondering if anyone had any other ideas?
    Could a new bbpress action for registering shortcodes be added? Then any plugin author just has to register their own new one and not have to worry.
    My other idea is to do a find/replace on “[” before my do_shortcodes call, switch them to something else, and then switch them back after, but leaving my own shortcodes unchanged.

    Anyone else had this prob? Anyone using a plugin that hasn’t taken this into consideration?! (try adding a bbpress shortcode to a post and seeing what happens!)

    #136392
    Ünsal Korkmaz
    Participant

    If you willing to use https://wordpress.org/themes/firmasite theme for bbpress, i can make customization for it.

    Default forum example: http://demo.theme.firmasite.com/forums/ (You can change style from top-left icon)

    There is a customized version of bbpress style: http://social.theme.firmasite.com/forums/

    Before i start to build your theme, you have to provide some things:
    ▶ Your custom website design ideas. All details. You cant change this one after i start to build your theme.
    ▶ All design assets if you need any. (logo,images etc)
    ▶ Your preferred custom/premium bootstrap skins. Yes, you can select multiple and change whenever you want! (Please dont request more then 5) You can create yourself or buy from: http://codecanyon.net/category/skins/bootstrap
    ▶ Your preferred custom/premium icon font pack. (I can include my premium icon pack for your theme. Example icons: http://shop.theme.firmasite.com/premium-icons/ )

    I can finish this in 10~days with 3 revision for 700$ and 1 year bug fix support. You can pay from paypal. If you want to keep your theme up-to-date after 1 year, you can pay 200$ per year.
    You can contact me from http://unsalkorkmaz.com/iletisim/

    #136388

    In reply to: Import Forums error

    MediaSVI
    Participant

    Ok Steve I got the forum all imported and install and looked over it and for the most part it worked out great things imported nicely.

    I think your added code to the Convert VB.php file will come in handy to others.

    Thanks for your help.

    #136358
    mst
    Participant

    Thank you @lynq for the initiative writing this up 🙂

    If you like to show the sub-forum description you could use get_post() and modify the code from @lynq to fetch it.

    Something like this:

    $get_sub_desc = get_post( $sub_forum->ID );
    $show_sub_desc = $get_sub_desc->post_content;

    then add $show_sub_desc to the output.

    #136357
    Nitac
    Participant

    Ive managed to get a full forum migration to complete. After upgrading our server and trying on my local machine (mac laptop) i thought i’d have a try on my local machine at work (iMac with decent processor & ram), and after ~6.5hrs the whole forum had been migrated over.

    After speaking with a couple of people it turns out that wp_insert_post has a memory leak, and could be causing the import process to slow down and eventually stall on a large migration. I’m happy for anyone to jump in and clarify whether this may be the case and expand on this.

    After the migration I ran all the ‘repair forum’ functions and it assigned all the topics and replies to their correct parents.

    Hope this helps.

    Thanks

    strangelife
    Participant

    Hi Everyone!

    For my main forum homepage or the archive i want to display different forums into sections rather than having a list of forums that is the bbpress default.

    So this is the code used to display all the forums,

    <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    
    	<?php bbp_get_template_part( 'loop', 'single-forum' ); ?>
    
    <?php endwhile; ?>
    

    So how would i add some arguments to this to display certain forums from there ID’s?

    Also on the main page i want to show 5 recent topics, i believe the loop code is this,

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    	<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    
    <?php endwhile; ?>
    

    If anyone has managed to use a custom loop using the above code to display 5 recent topics or a custom WP_Query, i’ll be very grateful if you could show some example code.

    Kind Regards
    ~ Matt

    #136352

    In reply to: Forum Page Layout

    strangelife
    Participant

    Hi,

    Your best bet would be to create a custom page template for your WordPress theme where you basically display the header and footer without the sidebar.

    Create three custom templates, sidebar, left sidebar and right sidebar, for your default page.php file in your wordpress theme make it so it doesn’t have any sidebars. Then by default bbpress will use this page to display the forum.

    #136351
    strangelife
    Participant

    You can use the following css,

    th.bbp-forum-info {
    	text-align: left;
    	width: 85%;
    }
    th.bbp-forum-topic-count, td.bbp-forum-topic-count {
    	text-align: center;
    	width: 5%;
    }
    th.bbp-forum-reply-count, td.bbp-forum-reply-count {
    	text-align: center;
    	width: 5%;
    }
    th.bbp-forum-freshness, td.bbp-forum-freshness {
    	text-align: center;
    	width: 5%;
    }

    ~ Matt

    #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,
    );

Viewing 25 results - 13,926 through 13,950 (of 32,585 total)
Skip to toolbar