Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,276 through 12,300 (of 32,521 total)
  • Author
    Search Results
  • #144460

    In reply to: Display index + topics

    Stephen Edgar
    Keymaster

    In that case create a page and use the single forum shortcode multiple times.

    <h3>Index 1</h3>
    [bbp-single-forum id=1]
    <h3>Index 2</h3>
    [bbp-single-forum id=2]
    <h3>Index 3</h3>
    [bbp-single-forum id=3]

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

    #144452
    Robin W
    Moderator

    This is doable with some code, but obviously no-one has thought it critical enough to code it – sorry !

    #144444
    adressler
    Participant

    Hi Robin,
    I was able to export users from Lotus into a new users table. The table structure is:

    users {
       user_id INT(11) PRIMARY KEY AUTO INCREMENT
       display_name VARCHAR(250)
       user_nicename VARCHAR(50)
       user_login VARCHAR(60)
    }

    Data sample:

    
    +-------------------------------------------------------------------------------+
    |  user_id  |   display_name   |   user_nicename   |  user_login                |
    +-----------+------------------+-------------------+----------------------------+
    |   555     |     Jane Doe     |     jane-doe      |  old_123456789abcde12345   |
    +-----------+------------------+-------------------+----------------------------+
    

    You will notice I was not able to export any email addresses, or passwords from Lotus. I linked up my custom converter and was able to import users successfully into BBPress without the need to include a bogus email or password. In the WP database, all of these “old” users have an auto-generated password, and no email address. Now, at least all of these old user display_names are showing next to the posts they authored (instead of all “anonymous”).

    Is it still possible to write a loop to link these old user accounts to the newly registered users even though there’s no email addresses? I’m okay with the forum working the way it is now, but if there’s a way to link newly registered accounts with the old ones, I’d sure like to try. I’m guessing the only way to do it is to match by the old user display_name, which, from what I can tell, is unique to the users db; no two people have the same name. It would just depend on people remembering the name they used to registered on the old site (some people are registered as “John and Jane Doe”). And if someone signs up who coincidentally has the same name as an old user, there could be some confusion.

    I just had a thought, what about a checkbox during registration like “Attempt to link my old DynamiteOnline account”, and when checked it would try to link up the names?

    You’re right, nothing is “simple”.. lol. I really appreciate your ideas here, and thanks so much for your time.

    Aaron

    #144436
    Robin W
    Moderator

    This warning is contained in three templates all in
    wp-content/plugins/bbpress/tempates/default/bbpress/

    form-forum.php
    form-reply.php
    form-topic.php

    You can create a folder in the root of your theme called ‘bbpress’ and copy these three themes to it, and then alter this text to read whatever you like, or remove it.

    Or you could add the following code to your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Your account has the ability to post unrestricted HTML' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    Just make ‘new text’ whatever you want.

    or you could probably get you function to do something, but I don’t offhand know what you’d need to do.

    #144429

    In reply to: Display index + topics

    Stephen Edgar
    Keymaster

    It ‘is’ possible… The problem is once you have 10, 20, 50, 100 topics…

    How do users ‘easily’ navigate or find your ‘Index 2’ forum.

    Index 1
    Topic 1.1
    Topic 1.2
    ...
    Topic 1.20
    ...
    Topic 1.30
    ...
    Topic 1.50
    ...
    Topic 1.100
    
    Index 2

    So it ‘is’ possible with custom templates but becomes a horrible experience for users trying to navigate your site.

    #144427
    shpitzyl
    Participant

    Look at this blog post:
    http://themekraft.com/blog/customize-profile-and-group-menus-in-buddypress/

    I haven’t checked it, so if it doesn’t work, you can always use css.

    put this line in bbpress.css in your child theme:
    #forums-personal-li {display:none;}

    #144420
    Lave
    Participant

    Hi, I’m using WordPress 3.8.1 with bbPress.
    Looking for a plugin that will allow me to reply to posts by email.
    I found this post and use this plugin but it causes an error

    Reply to Posts via Email


    https://github.com/rmccue/bbPress-Reply-by-Email.

    Error:

    
    Warning: require_once(/home/power90/public_html/wp-content/plugins/bbsub/vendor/postmark-inbound/lib/Postmark/Autoloader.php): failed to open stream: No such file or directory in /home/power90/public_html/wp-content/plugins/bbsub/library/bbSubscriptions/Handler/Postmark.php on line 9 Fatal error: require_once(): Failed opening required '/home/power90/public_html/wp-content/plugins/bbsub/vendor/postmark-inbound/lib/Postmark/Autoloader.php' (include_path='.') in /home/power90/public_html/wp-content/plugins/bbsub/library/bbSubscriptions/Handler/Postmark.php on line 9 
    
    #144414

    In reply to: Custom freshness links

    Stephen Edgar
    Keymaster

    You probably just need to target the CSS to only there forum titles:

    #bbpress-forums ul.forum-titles {
    	background: none;
    	margin: 0;
    	list-style: none;
    }
    #144413

    In reply to: Tags

    Stephen Edgar
    Keymaster

    This all depends where and how you are customizing your site, that particular piece of code is if you are for example making yourself a custom sidebar.php template for your site and you wanted to add it there.

    #144411

    In reply to: Tags

    batmanfan
    Participant

    Thanks Stephen. that’s great. Now, I’m still a bit newbie to this coding thing. Would you kindly guide me where (which field) to add this code to?

    <?php wp_tag_cloud( array( ‘smallest’ => 12, ‘largest’ => 16, ‘number’ => 16, ‘taxonomy’ => bbp_get_topic_tag_tax_id() ) ); ?>

    Thank you so much.

    #144410

    In reply to: Tags

    Stephen Edgar
    Keymaster

    In the theme here on bbpress.org they are the ‘default’ sizes, it is just a sidebar with the shortcode [bbp-topic-tags].

    If you want to add custom sizes to a custom template part then something like this is a goo d start:

    <?php wp_tag_cloud( array( 'smallest' => 12, 'largest' => 16, 'number' => 16, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>

    #144407

    In reply to: PM button in posts

    Stephen Edgar
    Keymaster

    Should this be in an own file (named how?) and added to my childtheme’s subolder bbpress, or should I place the code somewhere in an existing file?

    Any of these methods will work 😉

    That said I’d download the gist from https://gist.github.com/ntwb/9887310 and extract the file and upload it as a plugin for your site.

    It needs a bit more work in that it shouldn’t be displayed for the current user or anonymous users.

    When I get a chance I’ll update that gist with those updates.

    #144400
    Robin W
    Moderator

    Ok, on your first :

    This is to do with your theme and it’s page templates, not bbPress directly.

    what you will need to do is create a bbpress.php file and into that put the page layout

    see

    Step by step guide to setting up a bbPress forum – Part 1

    for creating a bbpress page to use

    Then see

    http://brookswebdesign.net/how-to-create-a-wordpress-template-with-left-sidebar/

    for creating a left hand sidebar.

    On your second, this is either

    related to your theme and how it is displaying content. Switch to a default theme such as twentytwelve for a moment and see it is it then displaying – in default all with not be indented.

    or

    maybe because you are using threading on dashboard>settings>forums>reply threading

    Let me know which, and I’ll take a lokk to see how to get all to ident

    #144398
    Robin W
    Moderator

    see

    Layout and functionality – Examples you can use

    From memory I think $args[‘sep’] = “>” would be what you are looking for

    so for instance

    function mycustom_breadcrumb_options() {
           $args['sep']    = '>>';
         
        return $args;
    }
     
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'
    

    would give a double chevron.

    If that doesn’t work, come back and I’ll look it up.

    #144397
    blastblast
    Participant

    Hello all,

    I would like to embed a Youtube video in a normal forum post response. However, only the link show you.

    For example, when you paste a Youtube link on Facebook, a player appears allowing the viewers to be able to watch the video on the page simply by pressing play.

    Is there some shortcode I should use? Is there a way I can do this without changing the code?

    Thank you

    #144392
    Majijiboo
    Participant

    Hello,

    I used CSS to remove certain parts of my breadcrumb and now need to remove certain separators (ex: “>”) between the words. Unfortunately all the separators have the same class, so is there a way to code bbpress so some separators are shown and others are not? Please see image below for example. Thanks.

    Link to image

    #144390
    Robin W
    Moderator

    bbPress uses your theme’s page templates to wrap the code in, so you will need to use a page from your theme that doesn’t have a sidebar, and rename this.

    see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want

    So once you know which page template file you need, copy this and rename the copy to bbpress.php

    Place this file in the root of your theme ie wp-content/themes/%mytheme%/bbpress.php where %mytheme% is your theme’s name.

    come back if any of that is not clear, and I’ll try and help further !

    #144388
    lizat
    Participant

    I want to change the template used for my forums index and the forum itself – currently it is using a default that has a sidebar that I don’t want.

    I think they live in …/plugins/bbpress/templates/default/bbpress. So I can create new ones in my child theme if I only knew which to copy?

    Is there a list anywhere of which is what…. the codex doesn’t seem to have it. Right now I need to know the ones for:

    • Forums Index page
    • Forum list of threads page
    • Thread Page

    Thank you

    liz

    #144387
    Majijiboo
    Participant

    Create a file called functions.php which would be in your Child theme and then place the following text in your file and then place the code mentioned above and then you should be good to go.

    <?php //Opening PHP tag

    #144384

    In reply to: PM button in posts

    Magic-Komplex
    Participant

    I’d like to use this as well, but not sure how to implement this. Should this be in an own file (named how?) and added to my childtheme’s subolder bbpress, or should I place the code somewhere in an existing file?

    #144382

    In reply to: increase font size

    Robin W
    Moderator

    think its as simple as lacking the hash (#) at the start

    ie

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    font-size: 12px ;
    

    Come back if that doesn’t work and I’ll look further.

    If it does, let me know and I’ll change the docs !

    #144375

    In reply to: Tags

    Stephen Edgar
    Keymaster

    Let’s try it here with code and codes

    Here is the tag code : https://bbpress.org/forums/topic-tag/code/ <-That works perfectly
    Here is the tag codes : https://bbpress.org/forums/topic-tag/code/ <-That works perfectly
    Here is the search code : https://bbpress.org/forums/search/code/ <-That works perfectly
    Here is the search codes : https://bbpress.org/forums/search/codes/ <-That works perfectly

    is there a way to set up so all the tags appear on a page? e.g. Tags Page? Thanks.

    You would need to start modifying your bbPress templates, have a read of some of the docs on the codex that @Robin-W has pointed out to you already.

    #144373
    Stephen Edgar
    Keymaster

    You just need to add the following sbnippet of code to your themes functions.php file:

    
    function custom_bbp_list_forums() {
      $args['separator'] = '<br />';
      return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_list_forums' );
    #144369
    Stephen Edgar
    Keymaster

    This time, it converted the users, all of the topics, and about 220,00 replies, then started just outputting dashes again. What does it mean when it starts outputting dashes? What is the program doing?

    As I stated above it can be for many reasons and is a bug/error that we have not been able to isolate to fix, we have not found a way to trigger the bug allowing us to reproduce the bug and create the fix. It is a random thing as I outlined in my previous reply.

    I opened a new window and re-started the conversion from that window, but instead of picking up where it left off, it started converting topics again. Am I going to have two copies of each topic in the BBPress forums now? Should I reset the forums again?

    If you want the importer to resume from where it left off you need to make sure you don’t check the checkbox in the following screenshot, if you do check it then it will start again from the start and you will end up with two of everything.

    Instead of using “reset forums,” can I just empty some of the MySQL tables?

    This should be sufficient for most cases and because bbPress uses custom post types it shares the same wp_posts and wp_postmeta tables with WordPress and any other plugin or themes custom post types. It should be quite fast and behind the scenes it is actually doing direct MySQL queries to remove only the bbPress forums, topics, replies and topic tags from the posts, postmeta and taxonomy tables.

    I know it can be frustrating getting this to work as I have been were you are now and is the reason I started using bbPress. I went through the same problems trying to import from phpBB to bbPress, I eventually got it working and started learning PHP and now as a novice PHP programmer I try my best to help others migrate their forums to bbPress and improve bbPress as best I can and it’s not easy and for an old dog learning new tricks I reckon I’m doing alright.

Viewing 25 results - 12,276 through 12,300 (of 32,521 total)
Skip to toolbar