Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,076 through 13,100 (of 32,585 total)
  • Author
    Search Results
  • #140837
    artkahlich
    Participant

    I have observed precisely the same problem on my Android Motorola Droid HD Maxx. In my case I defined a page containing the [bbp-forum-index] shortcode for the Forums top level. If I go to that page in either of the latest versions of IE or Firefox, I get a nice page showing the Forum categories. Using my Android phone, I get a page containing the single word ‘Forums’. As the OP noted, if I go directly to a Forum category or topic all is well.

    My WordPress version is 3.8, bbPress version is 2.5.2. I am using a copied and modified version of the TwentyFourteen theme.

    #140834
    KeonD
    Participant

    How do I link a user’s forum profile from their name in their comment. So far I’ve got this code in functions.php but it doesn’t seem to work:

    function force_comment_author_url($comment)
    {
    // does the comment have a valid author URL?
    $no_url = !$comment->comment_author_url || $comment->comment_author_url == ‘http://’;

    if ($comment->user_id && $no_url) {
    // comment was written by a registered user but with no author URL
    $comment->comment_author_url = ‘http://www.examplesite.co.uk/forums/users/=’ . $comment->username;
    }
    return $comment;
    }
    add_filter(‘get_comment’, ‘force_comment_author_url’);

    Please can somebody tell me where I’m going wrong?

    #140823
    mawk
    Participant

    Hello, thanks for your attention.

    I’m currently using some code in my functions.php to show my sub-forums on a separate line, which is better than having them clustered together.

    They also show the amount of new topics and replies within parenthesis, example;

    Other
    General (2, 5)
    Real Life (8, 5)
    Humour (7, 9)

    Where “Other” is a forum and the others is sub-forums, and you can see the amount of topics and replies within the (x, topics, y replies).

    What I need/want is to move the (x, topics, y replies) to the same place it shows, but only on the same line as the sub-forum, as the parent-forum.

    Image example: http://imgur.com/ssonCD2

    Is there any code I could put in my functions.php which would support this, or a plugin I could look at? This shouldn’t be hard to do, but yet my Google Search Adventure has reached it’s end (for now, at least).

    Thanks for every bit of help.

    #140822
    Rob Beschizza
    Participant

    Done!

    I can also report that switching the databases to a ramdisk is quite easy and has sped things up quite a bit. Though my earlier report was a little optimistic — it was going to take a couple of weeks. With the ramdisk, though, it really does seem to be headed for a few days work.

    Overnight, it got to 30,000 of 500k rows, but then it started showing hyphens instead of “Converting replies” in the reporting windows, Like so:

    ------------------------------------------------------------------------
    ------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------
    ----------------------------------------------
    Converting replies (26750 - 26999)
    Converting replies (26500 - 26749)
    Converting replies (26250 - 26499)
    Converting replies (26000 - 26249)
    Converting replies (25750 - 25999)
    

    The hyphens are added a a rate of one per delay time, by the looks of it, at the top.

    A peek at the database has it at _bpp_converter_step 10 still, and _bpp_converter_start at 27000

    Has the conversion croaked or is this part of the process? Should I manually increment _bpp_converter_start a little and restart the convertion? (I had to do that a couple of times as it was converting topic titles)

    #140814
    Stephen Edgar
    Keymaster

    You could disable bbPress subscriptions if you want to stay with ‘Subscribe2’
    https://codex.bbpress.org/forum-settings/#forum-features

    Subscriptions Allow users to subscribe to forums and topics

    #140811
    Stephen Edgar
    Keymaster

    You’ll want to add a CSS rule to your themes CSS

    .bbp-topics ul.super-sticky,
    .bbp-topics ul.sticky {
    background-color: #ffffe0 !important;
    }

    Changing #ffffe0 for the HEX color of your choice.

    #140799

    In reply to: “link” button

    Stephen Edgar
    Keymaster

    I also do not know what changes you have made so until you update both WordPress & bbPress you are basically out of luck.

    This is the reason why you should never change the core files in WordPress or bbPress.

    I would suggest you create yourself a test install of WordPress locally, add your theme and plugins and compare the changes and start to implement the changes you need in an upgrade friendly way such as child themes and custom additions to functions.php etc.

    #140784

    The problem I see is the table name: bb_forums

    It should be running these queries on the old bb_tagged table.

    These queries are part of a relatively ancient upgrade routine, dating back to database version 220 in bb_upgrade_220(). Are you able to see what your bbPress database version was before this upgrade started?

    icu0755
    Participant

    Hello.

    If you have a look into the templates form-user-register.php and form-user-login.php you could see they are almost the same beside do_action placement.

    <?php do_action( 'register_form' ); ?>
    
    		<div class="bbp-submit-wrapper">
    
    			<button type="submit" tabindex="<?php bbp_tab_index(); ?>" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>
    
    			<?php bbp_user_register_fields(); ?>
    
    		</div>
    <div class="bbp-submit-wrapper">
    
    			<?php do_action( 'login_form' ); ?>
    
    			<button type="submit" tabindex="<?php bbp_tab_index(); ?>" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>
    
    			<?php bbp_user_login_fields(); ?>
    
    		</div>

    Is it possible to move <?php do_action( 'login_form' ); ?> out of the bbp-submit-wrapper in the next releases? This will greatly help to have the same markup for these templates using the wordpress hooks system.

    BR, Vladimir Ivanov

    #140773
    e-motion
    Participant

    OK, so here is what I get when upgrading database to v1.2:

    The upgrade process seems to have failed. Check the upgrade messages below for more information.
    Attempting to go to the admin area without resolving the listed errors will return you to this upgrade page.
    Beginning upgrade…
    >>> Modifying database: circuit_circuit (localhost)
    >>>>>> Table: bb_forums
    >>>>>>>>> Dropping index: PRIMARY
    >>>>>>>>>>>> SQL ERROR! See the error log for more detail
    >>>>>>>>> Adding index: PRIMARY
    >>>>>>>>>>>> SQL ERROR! See the error log for more detail
    >>>>>>>>> Dropping index: forum_slug
    >>>>>>>>>>>> Done
    >>>>>>>>> Adding index: forum_slug
    >>>>>>>>>>>> Done
    ...
    SQL ERROR!
    >>> Database: circuit_circuit (localhost)
    >>>>>> ALTER TABLE <code>bb_forums</code> DROP PRIMARY KEY;
    >>>>>> Incorrect table definition; there can be only one auto column and it must be defined as a key

    (same for each table)

    Something wrong with my sql import?

    If I click Retry, I get this:

    Nothing to upgrade. Get back to work!

    And admin page loads as usual.

    #140770
    e-motion
    Participant

    Forum is quite small, around 5’000 posts.

    I am trying to reproduce those errors for some time now, but only now I was able to get an error. It’s like something is wrong with my system, as it is too random…
    I have lowered post data limit to 128M instead of 1G (it was so high to allow large sql dump upload).
    The error is:

    Repair any missing information: Continue
    
    WordPress database error: [Unknown column 'forums.fid' in 'field list']
    SELECT convert(forums.fid USING "utf8") AS fid,convert(forums.par_board_id USING "utf8") AS par_board_id,convert(forums.ntopic USING "utf8") AS ntopic,convert(forums.nposts USING "utf8") AS nposts,convert(forums.fname USING "utf8") AS fname,convert(forums.description USING "utf8") AS description,convert(forums.forum_order USING "utf8") AS forum_order,convert(forums.status USING "utf8") AS status FROM bb_forums AS forums LIMIT 0, 100
    No forums to convert
    Starting Conversion
    #140769
    Stephen Edgar
    Keymaster

    Try running the repair tool ‘Remap existing users to default forum roles’
    https://codex.bbpress.org/repair-forums/

    #140766
    netfux
    Participant

    Thank’s Thank’s Thank’s! You did it… I put the following code in custom theme css:

    #bbp-forum-709 .bbp-forum-topic-count,
    #bbp-forum-709 .bbp-forum-reply-count,
    #bbp-forum-709 p.bbp-topic-meta {
    display: none;
    }
    #bbp-forum-1085 .bbp-forum-topic-count,
    #bbp-forum-1085 .bbp-forum-reply-count,
    #bbp-forum-1085 p.bbp-topic-meta {
    display: none;
    }

    #bbp-forum-700 .bbp-forum-topic-count,
    #bbp-forum-700 .bbp-forum-reply-count,
    #bbp-forum-700 p.bbp-topic-meta {
    display: none;
    }
    #bbp-forum-702 .bbp-forum-topic-count,
    #bbp-forum-702 .bbp-forum-reply-count,
    #bbp-forum-702 p.bbp-topic-meta {
    display: none;
    }
    #bbp-forum-1032 .bbp-forum-topic-count,
    #bbp-forum-1032 .bbp-forum-reply-count,
    #bbp-forum-1032 p.bbp-topic-meta {
    display: none;
    }
    #bbp-forum-1045 .bbp-forum-topic-count,
    #bbp-forum-1045 .bbp-forum-reply-count,
    #bbp-forum-1045 p.bbp-topic-meta {
    display: none;
    }
    ———

    I guess there is a cleaner way to put it, but now it’s working. I also needed the thumbnail and info above dissapear so I found the p.bbp-topic-meta code was it…

    The only thing that I need now is to know how can I center those forum titles at the center of the page, also center the height between lines…

    Thank’s

    #140757
    Robin W
    Moderator

    If you want to put some rules at the top of your main forum display page, then create a normal wordpress page, type your rules in the content and then at the end put

    [bbp-forum-index]

    Put that page in your menu, and it will show the rules before showing the forum list

    #140756
    Stephen Edgar
    Keymaster

    Try the ‘Remap existing users to default forum roles’ repair tool

    https://codex.bbpress.org/repair-forums/

    Also try resaving your permalink structure.

    #140751
    Stephen Edgar
    Keymaster

    One other thing I can’t ever get to work is “Purge all information from a previously attempted import”. I’ve let it run for over 48 hours in the past, and it was “Deleting previously converted data” with a number up into the tens of millions before I gave up on the process, and never actually starts converting. Has anyone else experienced similar issues?

    This is a known issue as we have two different caching methods we use, and in particular if one is used and not the other this goes on forever, hopefully I will have a fix in the near future for this, as a workaround do as you have and just ‘reset’ bbPress.

    It is odd that it stalls, stopis etc at a different point during the reply imports, typicaly it stops because of some mysterious reason on the same reply (or topic) and it appears to be some ‘malformed’ content in that particular post (I can’t prove this though and is not specific to SimplePress) 😉

    When it stalls if you click ‘Stop’ then bump the value of _bbp_converter_start by one, then click ‘Start’ again it should continue on from where it left off skipping that troublesome reply.

    (A side issue can be you actually get logged out of WordPress so it also pays to open/refresh another admin page to ensure you are still logged in)

    #140749
    Stephen Edgar
    Keymaster

    Basically your users shouldn’t be logging into to backend in the first place, thus they should never see that to be even tempted.

    You can add a login widget to a sidebar or create a page with a shortcode, up to you which way depending on how you want your site to look etc.

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

    #140746
    Stephen Edgar
    Keymaster

    Would I be better with a ‘site-wide’ forum rather than the private All Residents group?

    I think this is now sorted based on your reply.

    Can I make a site-wide forum private?

    Same this is now sorted.

    How do I modify the formatting of the forum postings?

    If you want custom templates then follow the steps outlined here to make copies of the templates in your theme so they don’t get overridden when you update bbPress.

    https://codex.bbpress.org/theme-compatibility/

    Where do I look to troubleshoot the ‘threading’ function?

    You state you are using ‘bbPress 2.2’, threaded replies were introduced in bbPress 2.4 so you should upgrade to the latest bbPress 2.5.2. You can then enable them in bbPress settings per https://codex.bbpress.org/forum-settings/#forum-features

    #140743
    Stephen Edgar
    Keymaster

    So far no go. Only my admin user can click on these.

    This is correct and is by design, users should only be using the ‘front end’ user interface and not the ‘back end’

    Also check the codex docs here to help you on your way 🙂

    Codex

    #140742
    Stephen Edgar
    Keymaster

    Maybe try making a copy of your themes page.php or page-no-sidebar.php or page-sidebar.php depending on the type of template you want your forums to display with and rename the file to bbpress.php in the root of your themes folder.

    #140740
    Stephen Edgar
    Keymaster

    If you want widgets above your topic list you will need a theme that supports putting a sidebar at the top of your page, otherwise will one of the shortcodes work?

    #140738

    In reply to: Text Area not Visible

    Stephen Edgar
    Keymaster

    You can make a copy of bbPress’ templates and put theme in a subfolder bbpress in your theme and edit the templates to any style you wish 😉

    https://codex.bbpress.org/theme-compatibility/

    #140736

    In reply to: Forum Icons ?

    Stephen Edgar
    Keymaster

    That example I used was using the Glyphicons Font

    Probably taking a look at this will give you a rundown on what you can use in CSS with before, after & content

    CSS Content

    #140730
    Stephen Edgar
    Keymaster

    You could add some custom code with a filter before and after the tags section and apply some custom CSS rules using:

    bbp_theme_before_topic_form_tags & bbp_theme_after_topic_form_tags

    Or make a copy of form-topic.php in your themes /bbpress folder and edit the template to exactly how you would like it.

    https://codex.bbpress.org/theme-compatibility/

    Stephen Edgar
    Keymaster

    I am pretty sure it is a theme issue your having in that it is not playing nice with bbPress for some reason.

    You could try adding a template wrapper for bbPress.

    Make a copy of your page.php or page-sidebar.php theme template file and rename it to bbpress.php in the root folder of your theme.

    Have you looked to see if there are any resources on your themes support site for using bbPress?

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