Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,301 through 14,325 (of 32,519 total)
  • Author
    Search Results
  • #134004
    Robin W
    Moderator

    Kate t

    Thanks for posting this, saved me hours of trying to work out which file I needed to change, and how to code it.

    For those that want to add fields to their users, as well as Kate’s Meta pro, the following link shows how to add and use custom field, and the combination of these two made it quick and simple

    Adding and using custom user profile fields

    I also added the ability within BBpress for the user to change their location within the built in profile amend by changing Form-user-edit.php (located in web/wp-content/plugins/bbpress/templates/default/bbpress

    The following was added after line 125
    <?php bbp_edit_user_display_name(); ?>
    BBpress version 2.3.1

    <div>
    			<label for="town"><?php _e( 'Town', 'bbpress' ); ?></label>
    			<input type="text" name="town" id="town" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'town' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
    		</div>
    #134000
    ZachMatthews
    Participant

    All right, and I am now making progress.

    I made a complete copy of page.php within the /wp-content/themes/pinboard/ directory. I then created a blank file and titled it “forums.php” (with an ‘s’ on forums). I copied the complete text of the page.php file into the forums.php file and started tweaking.

    This is the code I have so far:

    <?php get_header(); ?>
    	<div id="container">
    		<section id="content"  <?php pinboard_content_class(); ?>>
    			<?php if( have_posts() ) : the_post(); ?>
    				<article class="onecol" id="post-<?php the_ID(); ?>">
    					<div class="entry" >
    						<header class="entry-header">
    							<<?php pinboard_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php pinboard_title_tag( 'post' ); ?>>
    						</header><!-- .entry-header -->
    						<div class="onecol">
    							<?php the_content(); ?>
    							<div class="clear"></div>
    						</div><!-- .entry-content -->
    						<?php wp_link_pages( array( 'before' => '<footer class="entry-utility"><p class="post-pagination">' . __( 'Pages:', 'pinboard' ), 'after' => '</p></footer><!-- .entry-utility -->' ) ); ?>
    					</div><!-- .entry -->
    					<?php comments_template(); ?>
    				</article><!-- .post -->
    			<?php else : ?>
    				<?php pinboard_404(); ?>
    			<?php endif; ?>
    		</section><!-- #content -->
    		<?php if( ( 'no-sidebars' != pinboard_get_option( 'layout' ) ) && ( 'full-width' != pinboard_get_option( 'layout' ) ) ) : ?>
    			<?php get_sidebar(); ?>
    		<?php endif; ?>
    	</div><!-- #container -->
    <?php get_footer(); ?>
    

    That spreads the forums page out to the appropriate onecolumn width and also completely fixes the profile page. It looks like the entry headers are being called from another php file, so I need to do some more tweaks, but here’s the result as is:

    http://www.itinerantangler.com/blog/podcasts/boards/

    If I can get it fully tweaked up I’ll post how here. I know others were looking to do this.

    #133998
    ZachMatthews
    Participant

    Thanks for the replies guys. Jared no it does not. The theme is pretty popular – Pinboard. I am seeing other Pinboard users with the same issue, too.

    What I have done is followed the instructions here to carve out a separate forums.php page which is working as intended and rendering the bbPress plugin separate from the rest of the site.

    That is allowing me to tweak the code for just this one section, but I haven’t worked out how to force it over to the .onecol layout yet. Worse, it looks like this layout issue persists through various sub-parts of the forum software, such as profile pages.

    #133994

    That shouldn’t go in bbPress. Never modify the plugin, everything gets lost when you update.

    It should go in your theme’s functions.php file.

    #133990
    web2010
    Participant

    I am creating forums where a specific user [plus me being the site administrator] will be the only moderator per forum, not all forums. How do I do this?

    I have installed:
    WP 3.51
    Members plugin
    bbpress
    bbPress2 BBCode
    bbPress WP Tweaks

    Thank you

    deboerdave
    Participant

    Workaround in place:

    i am using the “Redirection” plugin as a work around for now.

    The broken “forum” will go to the top of the forums regardless of where you are at
    and am making a new page to use the latest topics shortcode in to direct the broken “topic” link to (so it at least has some sense in where it brings the user to).

    would rather remove these lines though.

    #133980
    NewSha
    Participant

    Thank you for your reply John!
    Excuse me my stupidity, but I don’t really get how to implement this code.
    Could you explain to which file in “wp-content/plugins/bbpress” should I add this piece of code?
    Should I download any extra plugins?
    Thanks!

    #133970
    Sachin Mishra
    Participant

    Hi,

    I am using DAP on my website. I tried to install bbpress 2.3.1 along-with DAP. As I installed bbpress, it takes me to an error page saying “You don’t have permissions to access this page”. Though I logged in as superadmin. I tried deactivating all my plugins. I checked the htaccess file as well but there is only the default code for permalinks. But nothing is working.

    Any suggestions?

    Thanks,
    Sachin

    #133969
    Tbermudas
    Participant

    Hello

    I have the same problem also with the default theme. @johnjamesjacoby you can see an example here:

    http://triangulodelasbermudas.net/editor/forums/topic/prueba-de-paste/

    I have detailed in the replies the version of bbpress and you can see the result when copy from any web and paste to publish. The same problem when you apply any format like bold, italic…

    The reply created with bbpress 2.3.1 is with the visual editor activated via adding the code to theme functions.php:

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    With bbpress 2.2.4 all works fine.

    #133959

    In reply to: Topics Disappeared

    Sounds pretty strange. First things I’d do:

    • Check which accounts might have moderator/super admin access
    • Check trash/spam
    • Check access logs, see if someone removed them</lill of>

    All of bbPress’s trash/delete actions perform capability checks against the currently logged in user, so it’s impossible for an unauthorized user account to delete content inside of WordPress.

    It’s also possible someone deleted all of the forum content without your knowledge, using the “Reset Forum” tool under Admin > Tools > Forums > Reset Forum

    #133955
    Nate
    Participant

    Jared,
    Here’s an example: I just ran a bunch of test posts on a private forum, and they all parsed fine, with two exceptions.

    First, the blockquote function isn’t working. It moves it forward in the Visual editor, but doesn’t parse at all.

    Second, I decided to create a bulletted list, and this was the result.
    <span style=”line-height: 13px;”>slkdfjsdklajf</span>
    (bullet) sdafkaldjfklsad
    (bullet) sdafkasldfsjda

    So two of the three bullets parsed, but in the top one, it didn’t parse and the code itself surfaces instead.

    #133943

    What is the exact code?

    #133942
    Nate
    Participant

    I need it to parse and it isn’t parsing (it will work intermittently, but when it does, if you go in to edit, it only displays the code block). Extremely frustrating and new to the latest update .

    #133940

    I’m confused. Are you posting HTML that you want to _parse_ or are you posting HTML that you want in a code block like:

    
    <html>
       <title>Howdy!</title>
    </html>
    
    #133939

    I’d make sure your theme (or a plugin) isn’t disabling wpautop

    https://codex.wordpress.org/Function_Reference/wpautop

    #133925
    Nate
    Participant

    And yet ANOTHER problem: If you go in to EDIT a post, the edit box itself only shows the code you posted, and not the rendered HTML.

    #133924
    Nate
    Participant

    To clarify: The post I just made wasn’t a copy and paste. I simply used the toolbar to format my post, and it just displays the code on the following page.

    #133923
    Nate
    Participant

    I’m the keymaster but its affecting everyone. And it’s your traditional HTML, nothing fancy. A few span codes, but nothing is rendering at all.

    In fact, and probably an even bigger problem: I just posted to the site from the VISUAL tab, and the resulting post was pure code! This has only started happening since switching to 2.3.1, and I’m also using your new plugin.

    #133907

    What user role are you? What HTML are you posting? Are you putting this code int he visual tab or the text tab (pre 2.3.1)?

    #133889

    Plugin that will add back the visual tab to the editor: bbPress Enable TinyMCE Visual Tab

    No code required. Just activate and you’re done.

    #133883

    Copy:

    wp-content/plugins/bbpress/templates/default/css/bbpress.css

    to:

    wp-content/themes/[YOUR-THEME]/css/bbpress.css

    And that’s all it takes πŸ™‚

    bbPress will auto-detect the CSS file in your theme and use that instead of it’s own.

    #133877
    w4rrenz
    Participant

    Hey guys,

    Looking for a bit of help with integrating bbPress into a theme called Directory.

    I’ve set it up, installed plugin and created forum – on my forums page I don’t have any forum listing, not even “There are no forums” comes up.

    I looked to do the work around method which was to use the shortcode on a page, but this breaks the page and still shows nothing – when I say it breaks the page I get no footer if I choose the full width template, or I get the same as the link below if I choose default template.

    So obviously the issue lies in the theme’s template not interacting well with bbPresses setup, how would I go about setting up a page template that’ll work with bbPress?

    http://www.moiravillage.info/dev/forums/forum/moira-community/

    That is the bbPress forum page

    WP Version 3.5.1
    bbPress 2.3.1

    Any help would be hugely appreciated!

    Thanks,

    Warren

    #133870
    ronangelo
    Participant

    On line 889 of your theme’s styles.css you have a style that hides the replies

    .reply {
        display: none;
    }

    Just remove it.
    Or you could add this code if you have a custom css option.

    #bbpress-forums .reply {
        display: block;
    }

    At this moment there is not a shortcode that will do this. I assume you meant “Create New Topic”?

    You could easily create a link that goes to the editor on whatever forum you want.

    Such as linking to http://yoursite.com/forums/forum/some-forum/#new-post.

Viewing 25 results - 14,301 through 14,325 (of 32,519 total)
Skip to toolbar