Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,976 through 3,000 (of 6,788 total)
  • Author
    Search Results
  • #149229
    Robin W
    Moderator

    bbpress will use the default page template for the main index rather than the specific page template set in the page – so your setting in the forum page won’t apply.

    There are several ways around this, but as your plugin is a paid one, I can’t see the code to recommend the best solution.

    So first off I’d post a query onto their support site

    Outstanding Support

    they probably have come across bbpress before and will know the answer. You could tell them that bbpress uses ‘is_bbpress()’ to see if it is a bbpress page, that might help them.

    #149226
    Herophantom
    Participant

    Hello,
    So I just started using bbpress over the weekend and so far I’m really liking it. There is only one issue I’m having that I can’t seem to figure out. I am using this plugin:

    Custom Sidebars Pro


    to allow me the function of different sidebars for different pages. It has worked perfectly for 90% of the forums pages except for the top level forum page. That is the only one that I can’t seem to get to use a sidebar other then the default one. At the moment, what I have done is manually made a page with the same slug as the top level forum page, left it blank except for the option that this other plugin enables to change the sidebars. Have a look at it here:
    http://www.mythechllc.com/forums
    if you look at the public forums page, you will see the side bar is what I want it to be, but if you look at the top level forums page, it reverts back to the default.

    #149195
    Stephen Edgar
    Keymaster

    I’m still not having any issues with my vBulletin 3 databases 🙁

    First up, once the import is finished the progress window should look something like this:

    
    Repair any missing information: Continue
    Conversion Complete
    No threaded replies to convert
    Converting replies (79500 - 79599)
    Converting replies (79000 - 79499)
    ...
    Converting replies (300 - 399)
    Converting replies (200 - 299)
    Converting replies (100 - 199)
    Converting replies (0 - 99)
    Converting topic tags (0 - 99)
    No super stickies to stick
    Calculating topic stickies (0 - 99)
    Converting topics (5000 - 5099)
    Converting topics (4900 - 4999)
    ...
    Converting topics (200 - 299)
    Converting topics (100 - 199)
    Converting topics (0 - 99)
    Calculating forum hierarchy (0 - 99)
    Converting forums (0 - 99)
    Delete users WordPress default passwords (0 - 99)
    Converting users (0 - 99)
    
    Starting Conversion
    

    In particular, do you get to see the Conversion Complete without any errors shown?

    Do you ever (or even know if you can remember) if you see the importer is actually converting topic tags per Converting topic tags (0 - 99) or do you see an error along the lines of WordPress database error: [Table 'vbulletincopy.tagthread' doesn't exist]

    Also @themefurnace what version of vBulletin is it specifically? v3.1? v3.2? v3.81? etc

    #149175
    Stephen Edgar
    Keymaster

    You want to change line #109 in form-topic.php
    https://bbpress.trac.wordpress.org/browser/tags/2.5.4/templates/default/bbpress/form-topic.php#L109

    From:

    
    <?php if ( !bbp_is_single_forum() ) : ?>
    

    To:

    
    <?php if ( ! ( bbp_is_single_forum() || bbp_is_topic_edit() ) ) : ?>
    
    #149162
    Robin W
    Moderator

    ok lets start by seeing if this is a plugin or theme issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.

    #149144
    slayne76
    Participant

    Hi Stephen,
    thanks for the reply. I looked at the trac but it’s not strictly related, since it refers to the spam/trash/admin links on the front end.
    What I noticed instead, (and you can test yourself and let me know) is simply as this: in the backend (wordpress admin area) when a topic is in the trashcan, and you click untrash (the same thing you would do with posts, pages, custom post types when you put the in the trashcan) you get the default nonce wordpress error. You simply “CAN’T” untrash something directly inside wordpress.
    I was hoping that anyone else could try the same and give me confirmation that the issue exists (in the code i posted I was able to indentify the problem as well)

    If you, or anyone else, can confirm there is this issue, I (or you, or whoever wants to) can open a ticket in the trac so it gets fixed asap 🙂

    #149040
    Stephen Edgar
    Keymaster

    I just had a play with this and you are correct, it works for administrators/keymasters but not standard ‘participants’ or ‘anonymous’ users.

    Grab this custom KSES plugin I have here https://gist.github.com/ntwb/7797990

    I just added class to to the pre section as that is where the issue is, pre is allowed but <pre class="whatever"> is not.

    Double check any of the other allowed tags and/or remove ones you don’t want/need.

    Edit: I just double checked against the default bbPress allowed tags and all are there, you may or may not want the table sections, up to you. I also made a note to add class as an allowed tag of pre for bbPress core, I can’t think of a reason for us not to add this by default.

    #149037
    Stephen Edgar
    Keymaster

    @leonyipa Don’t get you bb’s confused, what you wrote way up there and quoted here:

    And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php

    That is the BuddyPress Theme ‘BP Default’, nothing to do with bbPress so make sure you are updating the correct files 😉

    #149004
    foresme
    Participant

    Hello! I’m interested in this to. You can add a sidebar manually to each topic page by going into ‘edit topic’ and selecting the layout option for the page that has a sidebar.

    However, I would like to know if there’s a default option to have sidebars for ALL topic pages, without adding the sidebar one by one…

    #148997
    Robin W
    Moderator

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.

    #148986
    Leonyipa
    Participant

    yes, but it doesn’t work 🙁

    I also found the code is in
    /public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.css

    I directly change the number of

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    max-width: 100%;
    }
    However, no matter what number I change to, it still doesn’t work.
    The width of the image still remain 100%

    #148969
    acornale
    Participant

    Problem solved! Thought I’d write the solution here in case anyone has the same problem.

    In order to get the feeds coming through on the home page, the forum had to be public. However, I wanted the forum post content to be private and I wanted the user to be prompted to log in.

    The solution was simple…

    I created a custom content-single-topic.php template and added the following logic:

    <?php if ( is_user_logged_in() ) { ?>

    // display all the post content here

    <?php } else { ?>

    <p class=”message register”>This forum is accessible to approved users only</p>
    <p class=”message”>Please log in to continue.<br></p>
    <?php wp_login_form(); ?>

    <? } ?>

    —-

    I dont know what I didn’t think of this earlier. The logic is simple… all forums are public by default but you must be logged in to view the forum topic content. If you’re not logged in, it asks you to log in and then redirects you to the right topic page.

    #148935
    Robkk
    Moderator

    here use this code instead and remember put this into your functions.php in your child theme
    change the numbers to whatever you want

    add_filter('embed_defaults','themename_embed_defaults');
    function themename_embed_defaults($defaults) {
       $defaults['width']=500;
       $defaults['height']=250;
       return $defaults;
    }
    Leonyipa
    Participant

    hi, sorry for the late reply.

    I tried both ways:

    1) changing the Participant role directly

    // Participant/Default
    case bbp_get_participant_role() :
    default :
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,

    // Forum caps
    ‘read_private_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘delete_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘delete_replies’ => true,

    // Topic tag caps
    ‘assign_topic_tags’ => true,
    );

    break;
    }

    after I changed it, nothing happened :/

    and
    2) making custom role, but it says:

    Parse error: syntax error, unexpected ‘roles’ (T_STRING), expecting ‘(‘ in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/capabilities.php on line 216

    
    216: function add_new roles( $bbp_roles )
    217: {
    #148924
    Leonyipa
    Participant

    I also found the code is in
    /public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.css

    I directly change the number of

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    max-width: 100%;
    }

    However, no matter what number I change to, it still doesn’t work.
    The width of the image still remain 100%

    #148923
    Leonyipa
    Participant

    Thanks very much @Robkk!!

    The youtube video worked!!! I have been looking for the solution for a long time, thanks!
    The maximum width of youtube video works really well!!

    However, when I change the code to height, it doesn’t work 🙁

    Also for the image, I edited the css
    because I am using BBPress Default Theme, it doesn’t have a .css and tell me to edit function.php instead
    And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 100%;
    height: auto;
    }

    but no matter what I change the number, it is still set to 100%.
    Did I add the code to the wrong place? or it’s not working?

    #148862
    ninjaunmatched
    Participant

    Okay…. So in this example do you need to have the else statement there at all? (Does IF require it?) Or is there a way to just say else use what is default without haivng to find the correct class of whatever you are altering?

    #148856
    ninjaunmatched
    Participant

    I know it does cascade but if you are not familiar with writting the code to STYLE over attribiutes you can go looking for lines that alter font sizes. One way you could try is to get Notepad++. This text editer is just the greatest. Never edit code without it or something like it. You can use it to search for code. In this case I would try to search for “font-size:” within the CSS file being referred to in this thread. It will find every line where the font-size is being changed.

    Trying it now it finds 28 hits in the bbpress.css file I have in one of my sites. This I think will get you started. May not be the best way though. Just looking at the hits I can see some of the IDs or Classes also have a SPAN tag in them. Whichs tell me that the default span font settings would also have to be changed.

    I’m not sure where your HTML knowledge is but the SPAN tag when used is like a commenting or caption section (sort of) for text and it tends to be in a smaller font.

    for example:

    While jumping around the hits I see this:

    li.bbp-header div.bbp-topic-content span#subscription-toggle,
    li.bbp-header div.bbp-topic-content span#favorite-toggle,
    li.bbp-header div.bbp-reply-content span#subscription-toggle,
    li.bbp-header div.bbp-reply-content span#favorite-toggle {
    float: right;

    You may be able to get the look you want by just changing any

    font-size:

    entry you find but if things or some things still look too small for you then that span tag may be what you need to change to get it the way you want.

    Now I’m still just maybe a intermediate in my kowledge of things. I know what I was taught by learning myself and having taken Wed Design and Development I and II at a local college. But I am no developer. So I can read through css and understand what is going on. But because of the cascading way of CSS you can make changes that will not stick due to a higher level attribute being set so you have to play detective which wastes alot of time.

    I do agree though as the responses are too vague. Looking for the same answer I find this thread and so I am sharing what I have done so far to figure this one out. I did find something that mentions being able to use an IF statement on the themes main style sheet (CSS file) that will find all bbpress related entries and change whatever attribute you designate which in this case would be the font size. Now someone mentioned this in this thread without stating how which is close to pointless if the intention is to help you solve it. At least when you make the suggestion state it in a simple way so its understood by all. I ran into this code during my research on it but I am currently here. I will copy paste the code if I can find it again. By now I assume you found the answer but for anyone else that runs into this thread. (which by the way showed up on top of a google search in like its own special section).

    #148840
    Stephen Edgar
    Keymaster

    So to be clear, you feel that if I were to implement a work around for ‘last active time’ or wait to install BBPress version 2.6 that I can confidently run BBPress on a forum that size?

    Indeed, as you stated you need a fairly robust server though it sounds like you already have that. As bbPress 2.6 continues development I’d suggest you set yourself up a test install on your local PC and do some benchmarks and test the vBulletin importer as ~6.5 million posts will take a bit of time to import and familiarising yourself with how this works is worth knowing so you know what has to be done before you switch over your live site.

    Is ‘last active time’ really the bottle neck? As I understood this issue, it had to do with bbPress sharing the DB table with the WordPress posts.

    Yes, ‘last active time’ is the primary bottleneck as by default we sort topics based on the latest reply in a topic, though if a topic has no replies this is slotted in also.

    The full technical details of this are here https://bbpress.trac.wordpress.org/ticket/1925, it is not the easiest read and as there are two potential methods discussed. Primarily because of this ticket is why bbPress 2.6 is running late as there is a boat load of testing to be done to make sure we don’t break backwards compatibility.

    Lastly, do you have a target date for v2.6?

    3 weeks late 😉

    #148821
    Robin W
    Moderator

    In essence if I understand it you want to change the

    reply/edit/merge/trash/close/trash/reply links that come up with a topic or reply so that only some show, and others are in a dropdown list.

    is that correct?

    if so then

    my goal with this is to call each admin link individually and make only 2 or 3 to be visible
    (reply,edit,maybe quote link from gd bbpress tools)

    simply requires you to filter for those you want to display

    open up

    bbpress/includes/replies/template.php

    and you’ll see the admin links function line starting at line 1811

    On lines 1840 to 1848 you’ll see the default links are added.

    So lets create a function to just have the first two

    you’ll see a filter in line 1841 (‘apply_filters’) and we can hook to that

    so

    //change admin links displayed
    function change_admin_links ($r) {
    $r['links'] = apply_filters( 'rw_reply_admin_links', array(
    				'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r )
    			), $r['id'] );
    return $r['links'] ;
    }
    add_filter ('bbp_reply_admin_links', 'change_admin_links' ) ;
    
    

    just leaves us with edit and move.

    This also gives you the ability to add a new link, with say your dropdown list.

    You’ll also see that this function checks if it is a topic on line 1825, and you’ll need to similarly create a function for that – I’ll leave you to work that one out.

    Come back if you need more help, and when you crack this, can you post the finished code to this site so we can see what it looks like.

    #148815
    Schpil
    Participant

    Hi!

    Is this the file? : bbpress-functions.php
    Is this its location? : /public/www/wp-content/plugins/bbpress/templates/default

    Where exactly do I drop the lines into the file?

    thanks for your help!

    #148814
    feb992
    Participant

    Don´t work… the forum index load in full width but the subforum, topics… load whith the default themeplate.

    I´m create a page themeplate in full widht and rename it bbpress.php and I configure the permalinks, the forum works, but don’t load how I need

    Thanks 🙂

    #148758

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    /edit.php?post_type=topic

    reset and still nothing changed.

    they were on postname I put to default and back to postname, and nothing happened.

    I tried it once before too. I wonder if all the browsers are just being slow in refreshing, but the only way to test it out if that is if someone goes to my site registers and tries to post in the forums. If they see something posted, then its my computer not the internet, browser, or server. For some reason my computer is not updating or something.

    Robin W
    Moderator

    long answer I’m afraid and in two parts

    part 1 – setting the user permission to allow delete topic and delete reply

    delete is easy, making it only trash is in part 2 !

    Basically you’ll need to change a couple of capabilities of the participant role

    see

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    you see the abilities delete topics and delete replies (as distinct from delete others topics and delete others replies)

    Whilst you could amend the participant role, I haven’t documented that, so easiest is just for you to create a new role and give it the participant capabilities plus the ‘delete topics’ and ‘delete replies’. This article explains how

    Custom Capabilities

    add this code to your functions file – see

    Functions files and child themes – explained !

    part 2 – changing the function, so that delete is only shown for keymasters

    This code will only allow a keymaster to permanently delete a topic

    add the following to your functions file

    add_filter ('bbp_get_topic_trash_link', 'topic_dont_delete');
    add_filter ('bbp_get_reply_trash_link', 'reply_dont_delete');
    
    function topic_dont_delete( $args = '') {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_topic_trash_link' );
    
    		$actions = array();
    		$topic   = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) );
    
    		if ( empty( $topic ) || !current_user_can( 'delete_topic', $topic->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_topic_trash( $topic->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash',   'topic_id' => $topic->ID ) ), 'trash-'   . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    		
    		if ( bbp_is_topic_trash( $topic->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete',  'topic_id' => $topic->ID ) ), 'delete-'  . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-topic-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    				// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    	
    	function reply_dont_delete( $args = '' ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_reply_trash_link' );
    
    		$actions = array();
    		$reply   = bbp_get_reply( bbp_get_reply_id( (int) $r['id'] ) );
    
    		if ( empty( $reply ) || !current_user_can( 'delete_reply', $reply->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash',   'reply_id' => $reply->ID ) ), 'trash-'   . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete',  'reply_id' => $reply->ID ) ), 'delete-'  . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-reply-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    		// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    

    I haven’t fully tested this code as my test site is in some disarray whilst I test something else, so you’ll need to check that it works

    #148745

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    I know you’ve done themes already, but you need to test if it works on a default theme with just twentyfourteen and the bbpress plugin. If it doesn’t then something in your site is screwed up 🙂

    I just did that with twentyfourteen, because I don’t have twenty twelve on it, and this is what it says with under that just reply box and buttons with no content, just like avada theme, but avada does not even show the below text.

    Your account has the ability to post unrestricted HTML content.

Viewing 25 results - 2,976 through 3,000 (of 6,788 total)
Skip to toolbar