Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,026 through 11,050 (of 32,521 total)
  • Author
    Search Results
  • #150255
    tonydes
    Participant

    @robkk haha I know, the images are absurdly huge! I tried the code but unfortunately it didn’t work 🙁 Honestly I ‘d prefer if none of those avatars were there except for the one in the post. However, I’ll take smaller avatars any day rather than those big pictures!

    #150253
    Robkk
    Moderator

    @tonydes you dont know how much im laughing, its like your forum is bombarded with a gallery of your self portrait. xD

    do you want the started by and freshness authors still if they were just a smaller size??

    and also the notice author image if it was a smaller size??

    but first try this if you dont want any of those avatars, see if this code works.

    .avatar-14 { display: none !important; }

    #150251

    In reply to: Text Color and Font

    Robkk
    Moderator

    Is there some code generator and if not the plugin, I guess I can add it in “Style.css”

    I just need when people posting in forums they have options to change color and size of font. I am unable to find something

    you want a code generator , so that users have an option to change font color and font size, I do not know how to do this, so i cant help much here.

    as for CSS I am not very familiar with that.

    everything in the documentation says all about using css ,and how to, using firebug.

    give me something specific to change the font size and color ,and ILL help you there.

    #150250
    tonydes
    Participant

    So the css editor works, and this code got rid of all my avatars, but I’d like to keep the one in the post itself;

    .bbp-author-avatar {
    display: none;
    }

    Here’s a link to the over sized pictures: http://goo.gl/wmTgBo

    Thanks for taking a look at it! Much appreciated!

    #150249
    Robkk
    Moderator

    dont reply on the other topic you made

    pretty much just copying the same thing from this

    Finding .css style file

    give me a link to your site

    so i can see if its a special code in your template making the avatars huge
    if its a .avatar css rule making all the avatars on your site big
    or if i could find something else.

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    thats not a good idea , it will be lost next upgrade.

    #150247
    Robkk
    Moderator

    give me a link to your site

    so i can see if its a special code in your template making the avatars huge
    if its a .avatar css rule making all the avatars on your site big
    or if i could find something else.

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    thats not a good idea , it will be lost next upgrade.

    #150245

    In reply to: Menu link to Profile

    Robin W
    Moderator

    ok try this, which should tidy most usernames

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/
    <?php global $current_user;
          get_currentuserinfo();
    $string = $current_user->user_login ;
         //Lower case everything
        $string = strtolower($string);
        //Make alphanumeric (removes all other characters)
        $string = preg_replace("/[^a-z0-9_\s-]/", "", $string);
        //Clean up multiple dashes or whitespaces
        $string = preg_replace("/[\s-]+/", " ", $string);
        //Convert whitespaces and underscore to dash
        $string = preg_replace("/[\s_]/", "-", $string);
        return $string;
    echo $string . "";      
    ?>/edit/">
    
    #150231
    tonydes
    Participant

    @Robkk Thanks for the response, but I moved the file to both locations, and edited the css but nothing worked. I used this code to resize the images:

    #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums p.bbp-topic-meta img.avatar {
    width: 20px !important;
    height: 20px !important;
    }

    I’m pretty sure my theme does not use a conventional style sheet so I may have to edit this in the root folder?

    #150214

    In reply to: Uninstalling BBPress

    Stephen Edgar
    Keymaster

    None of those plugins standout as something that would cause the issue, though I expect most likely it is one of them…

    You state:

    When the bbPress plugin is deactivated, I can not. Instead what I see is a page that displays:

    And then:

    I disabled then deleted bbPress and still saw the error reported above. I then re-installed and re-enabled bbPress and the error went away.

    If you can’t access /wp-admin with bbPress disabled, how exactly are you re-activating bbPress?

    #150213

    In reply to: Uninstalling BBPress

    KevinBCarney
    Participant

    Sorry. I forgot to include that.

    Quite a few.

    Active:
    Akismet
    AtContent
    Captcha
    CommentLuv Premium
    Contact Form 7
    Duplicate Post
    Flamingo
    Google Plus Authorship
    Google XML Sitemaps v3 for qTranslate
    Greg’s High Performance SEO
    MaxButtons
    Mingle Forum
    nrelate Related Content
    Open external links in a new window
    OptimizeMember
    Smart Google Analytics Code
    Wordfence Security
    WordPress HTTPS
    WP-Optimize

    Inactive:
    404 Redirected: Conflicts with MingleForum, not yet deleted
    bbPress
    Debug Bar: Installed by my hosting provider
    Developer: Installed by my hosting provider
    Hello Dolly
    Long Depreciated Notices: Installed by my hosting provider
    P3 (Plugin Performance Profiler)
    Post Duplicator
    Social Sharing Toolkit
    Use Google Libraries: Installed by my hosting provider
    WordPress SEO

    #150212

    In reply to: Text Color and Font

    desiamerican26
    Participant

    Hi robkk,

    Thanks for your fast reply. I am not too good with CSS format.

    I just added “Adding CSS” plugin and was trying to see some code to work with it, but unable to do it.

    Is there some code generator and if not the plugin, I guess I can add it in “Style.css”

    I just need when people posting in forums they have options to change color and size of font. I am unable to find something like and as for CSS I am not very familiar with that.

    Thanks
    Nik

    #150210

    In reply to: Uninstalling BBPress

    KevinBCarney
    Participant

    Stephen… Thank you for your reply.

    Here is my current issue.

    When the bbPress plugin is activated, I can access my website via zippe.biz/wp-admin.

    When the bbPress plugin is deactivated, I can not. Instead what I see is a page that displays:

    Error 500
    The server encountered a syntax error, and could not complete your request.
    Website owner? check your code, and your debug log, you may find a ‘parse’ error in there.
    Visitor? Try and reload it in a few minutes.

    I disabled then deleted bbPress and still saw the error reported above. I then re-installed and re-enabled bbPress and the error went away. I then disabled bbPress and the error returned.

    I have no idea what to do next. My hosting provider is working on this as well as we’re not sure where to focus our attention.

    Any help you can provide will be greatly appreciated.

    #150209

    In reply to: Uninstalling BBPress

    Stephen Edgar
    Keymaster

    @kevinbcarney The Deleting Conversion Table… Failed is nothing to worry about, this is just cleaning up and removing the extra database table if you had previously imported forums.


    @jordanpinski
    wrote

    “My issue with the plugin is the ‘edit’ feature on posts doesn’t work”

    Could you clarify what you mean by this, editing WordPress Posts or bbPress topics/replies?

    Rob is also correct above (presuming you do want to delete all bbPress data)

    • Run “Reset Forums”
    • Deactivate bbPress
    • Uninstall bbPress plugin

    I’ve just tested this and I have no issues accessing the dashboard after performing the above steps.

    Caveat: You are correct that the bbp_keymaster role is still assigned to the user in wp_usermeta, though this should not block access for you to WordPress’ dashboard, there is a tweak to the uninstall/deactivation for bbPress 2.6 listed here in #2580. I also came upon another issue that I’m updating a patch for now, but again, none of this should be stopping yopu from accessing the dashboard after deactivation and/or uninstall.

    As Rob wrote, what other plugins are you using that may conflict with this? It could be any plugin role or capability related and/or other plugins that extend bbPress functionality.

    #150205

    In reply to: Text Color and Font

    Robkk
    Moderator
    #150197
    lizbeck
    Participant

    Hi all,

    I just installed bbpress using the shortcode to display the forums on my frontpage, but I don’t think the lists are displaying as intended. In the part2 instructions it says the default look is:

    But, by default my forum is displaying as a list: http://pubs.hamlin.org/tech/

    I’d be happy to use the default view if I could make it work. Does anyone have an idea of what’s going on here? I’m using the twentyeleven theme.

    Thank you in advance for your help!
    – Liz

    #150193

    In reply to: Menu link to Profile

    Mathijs Lemmers
    Participant

    It’s been a long time but I have a problem with the last provided code. It should would perfect, were it not that my username contains a space. And the code doesn’t change a space to a dash.

    Could the code above be modified to achieve this?

    Thanks so much in advance!

    #150184
    Robkk
    Moderator
    #bbpress-forums fieldset.bbp-form textarea {
    margin: 0 0 8px;
    border: 1px solid #222;
    }

    try this css code

    #150177

    In reply to: Full Width Forum Help

    aussiestar14
    Participant

    hey,
    unfortunetly the plugin didn’t do the trick…

    so here is the actual bbpress.php:

    <?php
    /**
    * Template Name: Full Width
    *
    * Full width page template with no sidebar.
    *
    * @package Oxygen
    * @subpackage Template
    */

    get_header(); // Loads the header.php template. ?>

    <?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>

    <div class=”bbpress-wrap”>

    <div id=”bbpress-content”>

    <?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>

    <div class=”hfeed”>

    <?php if ( have_posts() ) : ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>

    <?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>

    <?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>

    <div class=”entry-content”>

    <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>

    <?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>

    </div><!– .entry-content –>

    <?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>

    <?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>

    </div><!– .hentry –>

    <?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>

    <?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>

    <?php endwhile; ?>

    <?php endif; ?>

    </div><!– .hfeed –>

    <?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>

    </div><!– #content –>

    <?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>

    </div><!– .content-wrap –>

    <?php do_atomic( ‘close_main’ ); // oxygen_close_main ?>

    </div><!– #main –>

    <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>

    <?php get_sidebar( ‘subsidiary’ ); // Loads the sidebar-subsidiary.php template. ?>

    <?php do_atomic( ‘before_footer’ ); // oxygen_before_footer ?>

    <div id=”footer”>

    <?php do_atomic( ‘open_footer’ ); // oxygen_open_footer ?>

    <div id=”footer-content” class=”footer-content”>

    <?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?>

    </div>

    <?php get_template_part( ‘menu’, ‘subsidiary’ ); // Loads the menu-subsidiary.php template. ?>

    <?php do_atomic( ‘footer’ ); // oxygen_footer ?>

    <?php do_atomic( ‘close_footer’ ); // oxygen_close_footer ?>

    </div><!– #footer –>

    <?php do_atomic( ‘after_footer’ ); // oxygen_after_footer ?>

    </div><!– .wrap –>

    </div><!– #container –>

    <?php do_atomic( ‘close_body’ ); // oxygen_close_body ?>

    <?php wp_footer(); // wp_footer ?>

    </body>
    </html>

    Robin W
    Moderator

    One I’ve been playing with

    bbp additional shortcodes

    Robkk
    Moderator

    how to show 5 recent topics on homepage like bbpress.org??

    is it just the recent topics widget, or and edited version of the bbpress index shortcode??

    #150172
    ttmt
    Participant

    Hi all

    I’m using the default bbPress to which I have added custom css – nothing crazy just some colour changes etc.

    Everything seems to working fine apart for the user settings page.

    The avatar shows with the navigation underneath.

    The information about post started shows and I can edit the user details.

    ‘Your Posts Started’ doesn’t show any posts.

    If I checked the page source it shows the code but it’s offset to the right of the window and just shows it as empty boxes.

    #150171
    Robkk
    Moderator

    copy content-single-forum.php into your child theme then add

    <?php if ( bbp_allow_search() ) : ?>
    
    		<div class="bbp-search-form">
    
    			<?php bbp_get_template_part( 'form', 'search' ); ?>
    
    		</div>
    
    	<?php endif; ?>

    above

    <?php bbp_breadcrumb(); ?>

    #150160
    palmdoc
    Participant

    Anyone using the Google Doc Embedder?
    https://wordpress.org/plugins/google-document-embedder/

    I use it to embed PDFs in forum posts and it works fine.
    It’s just that I and users often forget the format of the shortcode so I wonder if it is possible to have a button in the editor to aid one in creating the shortcode?
    [gview file='URL']
    Is it difficult to do so?

    Thanks

    #150158

    In reply to: Full Width Forum Help

    Vikram Singh Rana
    Participant

    Hey I had the same problem and wanted my forum to have a full width looks. I visited your threat and used the code about but it didn’t worked for me. I have tweaked it and it is working for me now. I had the same problem of topics disappearing.

    Please use this code, it should work perfectly fine.

    <?php
    
    /**
     * bbPress - Forum Archive
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    get_header(); ?>
    
    	<?php do_action( 'bbp_before_main_content' ); ?>
    
    	<?php do_action( 'bbp_template_notices' ); ?>
    
    	<div id="bbpress-forums">
    
    	<?php bbp_breadcrumb(); ?>
    
    	<?php bbp_forum_subscription_link(); ?>
    
    	<?php do_action( 'bbp_template_before_single_forum' ); ?>
    
    	<?php if ( post_password_required() ) : ?>
    
    		<?php bbp_get_template_part( 'form', 'protected' ); ?>
    
    	<?php else : ?>
    
    		<?php bbp_single_forum_description(); ?>
    
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>
    
    		<?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( !bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php endif; ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bbp_template_after_single_forum' ); ?>
    
    </div>
    
    	</div><!-- #forum-front -->
    
    	<?php do_action( 'bbp_after_main_content' ); ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    #150153

    In reply to: Random Topic Link

    Stephen Edgar
    Keymaster

    Ha! Yes, I was messing about with that yesterday thinking it would solve the issue here but it does not 😉 If you add the bbPress views widget to a sidebar you will see all those views in the gist you linked above, you can also add the shortcode [bbp-single-view id="single-random-topic"] to a page it it will display the ‘topic’ list template with a single random topic.

    So it can do all that ^^^, but it will not work as a ‘button’ so you can’t have a button with ‘Click this for a random topic’ 🙁

    Something like this should work though:

    https://gist.github.com/ntwb/ca87b9b75a42215b2889

    
    function ntwb_bbpress_random_single_topic() {
        if ( bbp_has_topics( array( 'orderby' => 'rand', 'posts_per_page' => 1 ) ) ) {
     
            while ( bbp_topics() ) : bbp_the_topic();
     
                ?>
                <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a>
                <?php
     
            endwhile;
        }
    }
    // Hook into action
    add_action('bbp_template_before_lead_topic','ntwb_bbpress_random_single_topic');
    // Add it as a shortcode [ntwb-bbpress-random-single-topic]
    add_shortcode('ntwb-bbpress-random-single-topic', 'ntwb_bbpress_random_single_topic');
    

    I’m hooking it into just before the ‘lead topic’ (bbp_template_before_lead_topic) in the example above but you could hook that anywhere you would like.

    I also add it as a shortcode [ntwb-bbpress-random-single-topic] for use that way.

    Make any changes you want to the HTML, I am just doing it as a HTML a anchor link with the permalink bbp_topic_permalink() and the link title as the topic title bbp_topic_title(). Change all that HTML code to a button, remove <?php bbp_topic_title(); ?> and replace with Random Topic or whatever takes your fancy.

Viewing 25 results - 11,026 through 11,050 (of 32,521 total)
Skip to toolbar