Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,801 through 8,825 (of 32,505 total)
  • Author
    Search Results
  • #161981
    davelr1
    Participant

    Is there any way instead of allowing the tag, just strip the code out?

    #161974
    DevynCJohnson
    Participant

    @robkk , thanks. Actually, I had written some code like that for my website late last night. The result can be seen in action at http://dcjtech.info/forum/articles/operating-systems/linux/ . I even figured out how to migrate the bbpress-simple-view-counts data to my implementation. The migration was easy (a few SQL queries via phpMyAdmin) and not at all complex as other developers thought (https://wordpress.org/support/topic/sync-with-simple-view-counts).

    brinkingyellows
    Participant

    Hello!

    First, I want to say how much I appreciate the BBpress platform. I’ve been using it for over a year now and it has served the site well.

    I have ran into an issue where every single comment ever made on posts now appear below the forums. I’m completely baffled as to how to handle this. It does seem to be a theme issue as this does not happen with the TwentyFifteen theme. Is there a way to remove showing the comments altogether on any forum page (which is preferred actually).

    Has anyone had this same issue? Is there a way to simply have the comments not show up at all in the forums? Is there code that I can place in my functions.php that will make them not appear in the forums?

    Any and all help would be greatly appreciated. As of now, this issue is causing some confusion and making my pages extremely long.

    My site is FREEDOMcgc.com
    Link to where the issue is happening: CLICK HERE

    WordPress Version WordPress 4.2.2
    bbpress Version 2.5.7
    Buddypress Version 2.2.3.1

    #161968
    Benjamin Zekavica
    Participant

    I am use Sahifa from Themeforest. I put all the codes in the Theme.

    #161967
    Hope
    Participant

    Actually I already added ‘style’ to ‘span’, I added the paragraph ‘p’ as you mentioned but still the same issue!

    Here’s the part of the HTML page that is treated in the function but still HTML tags appear in the post:

    <p>
    <span style="text-decoration: underline; color:
    <a class="hashtag" rel="nofollow" href="http://localhost/wordpress/forums/search/?bbp_search=%23000080">#000080</a>
    ;ā€>
    <em>
    <strong>
    <span style="font-size: 12pt;font-family: arial,helvetica,sans-serif">test</span>
    </strong>
    </em>
    </p>

    Again, have I missed something?

    Thanks for your help
    Hope

    #161963

    In reply to: shortcodes meeaning

    Robkk
    Moderator

    its all self explatory really.

    you can test them out by creating a test page and putting each shortcode into it to see what it does.

    if you need help finding ids of bbPress post types install this plugin, then look in the certain post types section.

    like say forums , you go to the WordPress back-end and go to forums> all forums and you will see all the forums post id to use for these shortcodes. It would be close to the same procedure for topics and replies.

    https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/

    #161962
    Robkk
    Moderator

    i tried to make this and failed at it.

    you can look for tutorials on the web for creating this type of thing like this.

    bbPress Recent Replies Shortcode

    or you can hire a developer to create this type of functionality for you.

    if you need to post a job at http://jobs.wordpress.net/

    #161958
    Robkk
    Moderator

    you of course pass the ids of the specific forums and categories in each ()

    this for category

    if( bbp_is_forum_category() ) {

    and i think this for forum

    if( bbp_is_forum() ) {

    #161948
    Robkk
    Moderator

    explain to me where you put the code and how you did everything so i could see if you did anything wrong or not.

    and also what theme are you using.

    #161945
    Robkk
    Moderator

    I’d set these to show short excerpts only

    is this an option in your themes settings??

    but im going to assume your theme thinks bbPress is a blog post , adn that you should create a bbpress.php file and remove any unwanted code.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    this plugin will help you find the right file to copy to create a bbpress.php file.

    https://wordpress.org/plugins/what-the-file/

    #161943
    Robkk
    Moderator

    bbPress shouldnt have comments??

    if you havent already create a bbpress.php file and remove any code for WordPress comments.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    this plugin will help find the file you have to make a copy of to create a bbpress.php file

    https://wordpress.org/plugins/what-the-file/

    #161941
    Robkk
    Moderator

    look at the subpages on the left too.

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

    #161940

    In reply to: Hide Date

    Robkk
    Moderator

    this custom CSS should do it.

    span.bbp-reply-post-date {
      display: none;
    }
    #161939
    Robkk
    Moderator

    create a bbpress.php and remove any post meta code like by (author) published (post date)

    basically your theme thinks that the bbPress archive page is a blog post so it structures it like so , it keeps the forum limit low as if it was an excerpt.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    this plugin will help you find the file you would need to copy and create a bbpress.php file from.

    https://wordpress.org/plugins/what-the-file/

    #161937
    Robkk
    Moderator

    you can use this as an alternative if you want.

    https://wordpress.org/plugins/wp-postviews/

    you would have to put this code somewhere in your loop-single-topic.php file in your child theme.

    <?php if(function_exists('the_views')) { the_views(); } ?>

    Maybe replace voice count?? or create a new column?? or just like simple view counts has like this.

    function rk_bbp_postviews() {
      if (function_exists('the_views')) { 
    	
    	echo the_views(); 
      
      }
      
    }  
    
    add_action( 'bbp_theme_after_topic_started_by', 'rk_bbp_postviews' );

    heck you can even use jetpack for post views.

    #161936
    Robkk
    Moderator

    you have to add on to the code.

    the original is this

    // Span
    		'span'             => array(
    			'class'     => true,
    		),

    you would have to edit it like this

    // Span
    		'span'             => array(
    			'class'     => true,
                            'style'     => true,
    		),

    and probably the same thing for the paragraph tag ‘p’ , but for this you will need to just add it on like this.

    // Paragraph
    		'p'          => array(
    			'dir'    => true,
    			'style'     => true,
    		),

    basically any child elements of the tag add it in the function.

    #161922
    snecz
    Participant

    Hello,
    I’m creating own new WordPress theme for my website.
    On the forum page I can see the forum [bbp-forum-index]
    But I can’t see individual topics pages.
    Am I missing any template in my theme?

    #161920
    tiquality
    Participant

    @donutz Hy Peter, where can I Insert the code you wrote?

    My site is in a internal server, and i didnt understand where I insert this code.

    tks!

    #161908
    Hope
    Participant

    Thanks Robkk for your help! I tried the mentioned code but apparently it’s not working properly, I don’t know why! For example, I’m still having:
    <span style=”text-decoration: underline; color: #ff0000;ā€>test
    Although “span” is supposed to be treated in the code.

    Have I missed something?

    Thanks for your help
    Hope

    #161903
    hazedesigns
    Participant

    I have had problems with yootheme on a project but have overcome them by simply ‘overriding’ ALL of the plugin files by copying them into the theme directory – not the directory for the ‘style’ as the warp framework calls it but the theme root directory. It seems you have to provide an override for every file to get all the different views working.

    Just follow the process laid out in the codex:

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

    And remember to override ALL the files!

    #161902
    TheMusicianGirl1
    Participant

    Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!

    1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
    2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
    3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.

    TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.

    You’re welcome!!

    Maya šŸ™‚

    #161898
    Robkk
    Moderator

    you insert this into a child themes function.php file or a functionality plugin

    function rk_show_role_classes($classes) {
        $replyid = bbp_get_reply_author_id();
        $bbp_get_role = bbp_get_user_display_role($replyid);
        $bbp_display_role = strtolower($bbp_get_role);
    	  
      
    	$classes[] = $bbp_display_role;
    	return $classes;
    }
    add_filter( 'bbp_get_topic_class','rk_show_role_classes' );
    add_filter( 'bbp_get_reply_class','rk_show_role_classes' );

    this custom css you can put in your child themes style.css file or a custom css plugin.

    
    #bbpress-forums .bbp-body .keymaster div.bbp-topic-content, 
    #bbpress-forums .bbp-body .keymaster div.bbp-reply-content,
    #bbpress-forums .bbp-body .moderator div.bbp-topic-content, 
    #bbpress-forums .bbp-body .moderator div.bbp-reply-content {
    background: #f8f8f8 url(images/team-member.png) top right no-repeat;
    }

    now for this to work exactly like the other site , you can download this image from here, by right clicking save image as, then uploading the image to your child theme in a folder called images. Make sure its named “team-member”

    #161897
    Robkk
    Moderator

    sorry i forgot about this.

    but since you have a full width forum try adding all this CSS to have bbPress look better.

    .bbpress-forums .col-2cl .main {
    
    	padding-right: 0;
    
    }
    
    .bbpress .site,
    
    .bbpress .site-header,
    
    .bbpress .site-content .entry-header,
    
    .bbpress .site-content .entry-content,
    
    .bbpress .site-content .entry-summary,
    
    .bbpress .site-content .entry-meta,
    
    .bbpress .page-content {
    
    	max-width: 100%;
    
    }
    
    .bbpress .hentry {
    
    	margin: 0 auto 48px;
    
    	max-width: 100%;
    
    }
    
    @media screen and (min-width: 1008px) {
    
    	.bbpress .site-content {
    
    		margin-right: 0;
    
    		margin-left: 182px;
    
    	}
    
    }
    
    @media screen and (min-width: 1080px) {
    
    	.bbpress .site-content {
    
    		margin-left: 222px;
    
    	}
    
    }
    
    @media screen and (min-width: 1218px) {
    
    	.bbpress .site-content .entry-content {
    
    		margin-right: 0;
    
    	}
    
    }
    
    @media screen and (min-width: 673px) {
    
    	.bbpress .site-content {
    
    		margin-right: 0;
    
    	}
    
    }
    #161895
    Benjamin Zekavica
    Participant

    I have the side timewise on xampp in the localhost mode. If you can exactly say me which files I must insert this code. Is this in the Theme a folder or in the plug-in itself?

    #161893
    Robkk
    Moderator

    link to your site so i can check the source code

Viewing 25 results - 8,801 through 8,825 (of 32,505 total)
Skip to toolbar