Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,426 through 11,450 (of 32,504 total)
  • Author
    Search Results
  • #148685
    noirdesign
    Participant

    hej,

    When someone enters example XML in an anser like:
    <Binary>0E02800001000000000000000B0004C003010000000000000000000000082D0000000000000000004EFF140000000000FFFFFFFF0600000058000000000000000000061208000010000000003C0000000000000000000000803A011480FAFFFF0000000000000000B09B741280FAFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>

    There are no more line breaks and the sidebar seems to go over the content area.

    or within the code tag:

    <Binary>0E02800001000000000000000B0004C003010000000000000000000000082D0000000000000000004EFF140000000000FFFFFFFF0600000058000000000000000000061208000010000000003C0000000000000000000000803A011480FAFFFF0000000000000000B09B741280FAFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
    

    it alters somehow the html structure of the page.
    Can I somehow fix that?

    You can see the falty Topic and answer here:
    http://www.apw-wiegand.de/support-forum/topic/apw-und-windows-7/

    I’m using bbPress Version 2.5.4 on WordPress 3.9.1

    Thanks in advance,
    Eric

    #148670
    Leonyipa
    Participant

    Is there any Spoiler BBCode plugins available for BBPress?

    #148669
    Robin W
    Moderator

    for no. 1, add this code to your functions file

    //display last topic title in freshness for forums
    function display_title ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) {
    $anchor = '<ul><li><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title) . '</a></li></ul><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    return $anchor ;
    }
    add_filter ('bbp_get_forum_freshness_link', 'display_title', 10, 6 );

    Having coded it, I like the way it displays, and will be adding to the forums on one of the sites I support – one of the reasons I support this forum is that I learn and get ideas from others 🙂

    #148668
    Robin W
    Moderator
    #148667
    Robin W
    Moderator

    for no. 2

    add

    #bbpress-forums div.bbp-forum-title h3, #bbpress-forums div.bbp-topic-title h3, #bbpress-forums div.bbp-reply-title h3, #bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
      color: #666 !important;
      font-size: 16px !important;
    }
    
    

    to your style.css

    #148665
    Leonyipa
    Participant

    where should I add the code to?

    #148664
    Stephen Edgar
    Keymaster

    This is one way…

    
    function ntwb_bbp_theme_before_topic_form_notices() {
    	?>
    	<div class="bbp-template-notice">
    		<p>Something here...</p>
    		<p>Something else...</p>
    	</div>
    	<?php
    
    }
    add_action( 'bbp_theme_before_topic_form_notices', 'ntwb_bbp_theme_before_topic_form_notices' );
    

    And another is to modify the form-topic.php template.

    #148663
    Stephen Edgar
    Keymaster

    Quickest way in your child theme remove the nickname form the form-user-edit.php template.

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

    Functions files and child themes – explained !

    #148654
    sebgates
    Participant

    Hi, I have a question about forum migration. I need to migrate a Drupal 6 forum into BBPress. I see Drupal 7 migration is supported http://codex.bbpress.org/import-forums/. I have some questions:

    Can this migration be easily done from Drupal 6?
    Can I pay a BBPress professional to do it?

    Robin W
    Moderator

    in the meantime, you can move it in your style.css

    Layout and functionality – Examples you can use

    #148648
    Robin W
    Moderator

    Yes,

    If you have a forum page ie a wordpress page that has [bbp-forum-index] in it, (ie you’ve use method 2 rather than method 1 in this link

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

    then go into edit on your forum page

    Switch to text from visual and put

    Create a new topic before the [bbp-forum-index] to get it at the top or after it to put it at the bottom.

    or you could use

    [bbp-topic-form] after the [bbp-forum-index]

    or

    [bbp-topic-form forum_id=$forum_id] to display a single forum topic form.

    Lots of possibilities.

    If you don’t have a set wordpress forum page, then you can create one, see method 2 in the link above

    #148642
    Stephen Edgar
    Keymaster

    Do you have any static pages set in Dashboard -> Settings -> Reading (/wp-admin/options-reading.php), if you have a page here for the ‘Home’ and it has long text as it’s title that can cause the issue you see.

    I am pretty sure you need to create a bbPress template for your theme, make a copy of page.php and rename it bbpress.php.

    It looks like there are some similar questions in the theme support forums but I cannot see the answers as I am not a registered owner of the theme.

    http://support.skywarriorthemes.com/search/?q=bbpress

    #148638
    Stephen Edgar
    Keymaster

    There is two parts to this:

    1. The ‘moderator’ role cannot be currently set to only disable moving topics to another forum currently, to change this though a couple of tweaks to the form-topic.php template would achieve this end result.

    2. There is also a bug where moderators can move a topic to a group forum that they are not a member of that we are looking into in #2639

    #148637

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    Thanks extra sets of eyes with all of this ‘import’ stuff is always handy, boat loads of data all just starts to look the same after a while 😉

    Indeed, ‘Reset Forums’ will remove everything bbPress, as long as you also check the ‘Delete Imported Users’ they will also be removed.

    The wp_bbp_converter_translator is not explicitly required, if your site can create this table bbPress uses it as part of the import process, if not it will just use the ‘out of the box’ WordPress database tables. It also gets deleted when resetting the forums. It also relates to the bugs I found yesterday that I am working on fixing and as I stated above I am pretty sure your imports are not using wp_bbp_converter_translator as if you were you wouldn’t have had any stickies.

    As to redirects you shouldn’t need that table for those, depending on your old phpBB permalinks
    some simple right up to some advanced .htaccess will get you what you want.

    A week or so back whilst messing about with splitting and merging topics I happened upon a WordPress feature for 301 redirection of old URL’s to new URL’s. I am yet to try this as it has only popped into my head as I wrote the previous paragraph that this may be something that could work so that imported topics and replies include full redirect support.

    So much so I just gave it a whirl, if I store and old topic slug e.g. viewtopic.php?f=3&t=9 I can query on the fly that topics new post ID and 301 redirect to it’s new permalink e.g. phpbb-v3-standard-topic 😉

    It still doesn’t quite work though due to some URL weirdness presumably with one or a combination of the .php, ? and & characters, I am quite sure we can do something here though 🙂

    LeafyGrove
    Participant

    I was wondering where can I find the forum ID’s? Trying to use the single forum shortcode, but dunno where the ID’s are. (Wish they were listed in Forum > All Forums via a ID column).

    #148625

    In reply to: Resizing Avatars

    Rescue Themes
    Participant

    I was able to locate bbp_single_user_details_avatar_size in bbpress/templates/default/bbpress/user-details.php which eventually lead me to the following function that accomplishes what I needed (resizing the avatar):

    
    function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
        $author_avatar = '';
        if ($size == 14) {
            $size = 24;
        }
        if ($size == 80) {
            $size = 110;
        }
        $topic_id = bbp_get_topic_id( $topic_id );
        if ( !empty( $topic_id ) ) {
            if ( !bbp_is_topic_anonymous( $topic_id ) ) {
                $author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
            } else {
                $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
            }
        }
        return $author_avatar;
    }
    
    /* Add priority (default=10) and number of arguments */
    add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
    add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
    add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);
    

    Increase avatar size in bbpress

    #148615
    Zdev1
    Participant

    Two days ago i had an update showing for BBpress, and after I updated my forum page stopped showing. I can get to some of the forums via the ‘recent replies and topics’ on the sidebar, but when clicking on the FORUM link from my main menu, this is all that is showing.

    Warning: array_merge(): Argument #2 is not an array in /home/content/p3nexnas05_data01/83/2102083/html/wp-content/plugins/bbpress/includes/common/functions.php on line 1344

    WP Version – Version 3.9.1
    BBpress Version – Version 2.5.4

    #148613
    Robin W
    Moderator

    ok try

    Deactivate bbpress tweaks
    Dashboard>plugins>bbpress tweaks>deactivate

    Go into widgets
    Dashboard>appearance>widgets

    And look at the bottom of the left hand side. You’ll see an “inactive sidebar”, with your entries on
    Below this is an “inactive widgets”
    Drag all the entries from the inactive sidebar to the inactive widgets area.
    This then allows wordpress to delete the sidebar
    I normally log out and in again at this stage – probably not needed, but I’ve never bothered to check
    Then basically reverse the above
    Re-enable bbpress tweaks
    You see the bbpress sidebar returns
    Drag the entries back from the inactive widgets area to the sidebar

    As soon as you’ve got the site vaguely going again, you need to STOP !!!! YES STOP!!!!!!!!!!

    Then take a breath, and create a test site – you cannot continue to develop your site in live, and you need a child theme. So you’ll need to read.

    Functions files and child themes – explained !


    https://codex.bbpress.org/creating-a-test-site/

    Once you have a test site, you can change things there first and then when you are happy put it into live.

    #148611

    In reply to: Sidebar not appearing

    Robin W
    Moderator

    The problem is that there are so many themes out there, all of which do ‘clever’ things with layout that it is impossible to give a set of instructions.

    However you are using a paid theme with support, so you need to refer to them.

    You question should look like

    I’ve just installed bbpress forum software, and I want to use this in a page with a sidebar. To do this I need to copy and rename a theme page template that has a sidebar – basically I need to rename it bbpress.php and put it in my themes folder.

    Can you either let me know which template file in your theme has a sidebar, or where within an existing template (having copied and renamed it) I would put something like

    <?php get_sidebar(); ?>

    #148608
    dutchpuzzle
    Participant

    WordPress 3.8.3 running Headway theme 2.0.15
    bbPress Version 2.5.4

    Link: http://www.herefordequestrian.co.uk/forums/

    I tried following your instructions: “In dashboard>pages, go to add new page. Call this ‘Forums’ or whatever you want your menu item to be. Then in the content section, you may want to have some introductory words “welcome to the forum” etc. then add the following bbpress short code [bbp-forum-index]
    Save this page.”……. but it didn’t make any difference, so I deleted the page.

    I can’t work out what template my current pages with sidebar are called.
    I therefore can’t work out how to add the sidebar to the page.
    Can you advise?
    Thanks

    #148607

    In reply to: How to add a @username

    Robin W
    Moderator

    ok, put the css in your style.css.

    then maybe try this code in your functions.php file

    add_action( ‘bbp_theme_after_reply_author_details’, ‘mentionname_to_bbpress’ );
    function mentionname_to_bbpress () {
     $user = get_userdata( bbp_get_reply_author_id() );
     if ( !empty( $user->user_nicename ) ) {
     $user_nicename = $user->user_nicename;
    echo '<ul><li><font class=bbp-user-nicename>' ; 
    echo “@”.$user_nicename.’</font></li></ul>’ ;
     }
     }
    #148604
    Stephen Edgar
    Keymaster

    Give this a try:

    The following page has two links, one an introduction, the next a bit more detailed.

    Theme Compatibility

    What you need to do is find the template in your theme that you want to use, typically this is page.php but depending on your theme you may have to look at what other templates are included in your theme.

    Essentially make a copy of the page.php file and rename it buddypress.php in your theme folder.

    #148598

    In reply to: Forum index

    Robkk
    Moderator

    there is a little bug on this
    that i could fix in the future

    whenever i subscribe to a forum
    it shows the menu on subscribed forums in the subscriptions area in your profile
    (it showed up on the forums area in my buddypress extended profiles)

    easy fix is to turn off subscriptions to forums and topics in bbpress forum settings

    ill try to find a css way to fix this , if not ILL look up another way


    @netweb
    i might put this into the codex if i fix all the nooks and crannies

    #148595
    Stephen Edgar
    Keymaster

    This is more of a theme issue, maybe create a support topic in your themes support forums?

    Also this is the BuddyPress login and not the bbPress shortcode…

    See what I did here? I had a quick look at your site and like you couldn’t see an easy fix so I came up with some alternatives places for you to look 😉

    #148590

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    Stickies – the issue here seems to be that the phpBB stickies and announcements have all been imported as ‘super stickies’. There is actually a lot more than 20 posts (my estimate in the original post was waaay out – there was actually about 100 when I went in to un-stick them). These might have been fine had they imported as normal stickies – but having them as super-stickies had a hug impact on forum pages load times.

    Hmmmm… I see where your coming from, not sure what to do about this though, I think we should continue to support ‘stickies’ as part of the import process, I’ll have a think about this some more.

    User import – I thought at the time that it was probably a conflict with username and/or ID but having looked at the posts I’ve adopted, they are all from different users. I have 62 forum topics/replies under my name but looking at the live site, the original authors of these are all different users which makes no sense to me. What’s more is, I haven’t adopted all of the users posts, just like one or two from each user…

    I think this will come down to ‘data integrity’ the queries are quite accurate so if the results are inconsistent I can only really think that.

    Can you check via MySQL a couple of those if your happy playing with MySQL that is?

    …Following on, I now wonder if these are posts that should have been assigned to the ‘Anonymous’ user because I think I may have deleted that user at some point not realising it was a result of the import… I’ll add it back in and see if it fixes my problem.

    That is one possibility though if as you say they are inconsistent a bit more debugging will be needed. Adding the user ‘back in’ so to speak most likely won’t help as the existing topics/replies are already assigned to the admin user.

    I didn’t realise that adding a moderators only forum was that easy… I’ve been working with RobinW to integrate the bbp-private-groups plugin, maybe I don’t need that after all.

    I didn’t realise from those posts this is what your intentions were 😉

    Repair Tools – our forum has imported 72 Forums, 71,007 Topics, and 564,453 Replies. It’s a fairly large one, but I think I’ve heard of larger forums being imported into bbPress…

    Yes, there have been a handful (I can count them on one hand ) larger that this that I know of, but again theoretically it should not be an issue.

    That said because phpBB does not support ‘threaded replies’ there is nothing to be gained by running the repair tool ‘Recalculate the position of each reply’, so for now just avoid that tool.

    User login – I haven’t used a plugin for this, I’ve written it myself. It just does a simple ajax call using the admin-ajax and then calls wp_signon() to attempt to log you in. It’s a fairly simple one, I just need to know which hooks bbPress is using to run the conversions on and hopefully I can just call that action before/after trying to log them in.

    I’ll put this on my ‘todo’ list, which is open up bbPress source and read the inline docs, bbPress is extremely well documented source code, so feel free to beat me to that. 😉

Viewing 25 results - 11,426 through 11,450 (of 32,504 total)
Skip to toolbar