Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,151 through 4,175 (of 32,481 total)
  • Author
    Search Results
  • #194769
    Robin W
    Moderator

    anything is possible, but this is a chunk of code that you are hoping someone will do for free 🙂

    #194762
    Robin W
    Moderator

    I’m pretty sure it’s a setting in your theme which you should be able to blank, but this will fix it in any case

    put the following in your theme’s custom css

    .fusion-menu-description {
    display : none ;
    }
    #194742
    JosephTersoo
    Participant

    Please is there any plugin or code i can use to set minimum reply length on my forum, i want reply’s to not be less than 60 character. so when any body reply’s with 60 character it tells to person to type not less than 60 character words.
    Please i need this urgently.
    thanks.

    #194732

    In reply to: Single Forums

    lookingahead
    Participant

    HI all……so @Robin-w can you help me do this with that plugin somehow?

    I only want one topic per forum. Just one.

    And that single-topic forum? It will be attached to a hidden group.

    So I’m looking for….a way to bypass the screen that lists “topics” in a forum; there will only be ONE topic PER forum, so having that screen there is unnecessary and confusing to my forum participants. And creates “click fatigue.” They should be able to get to the group front page, click “Forum”…then be brought to the discussion on the only topic that that forum will ever be tied to.

    And each group’s topic will be different. But ONLY one topic per forum, per hidden group.

    Note: I’ll eventually be creating hundreds of individual hidden groups….so I do not want to have to go in and hand code the direct link to the single forum topic for each of these groups, just to bypass a page, each time….

    Soooo……I want the flow to be:
    – [click on ‘My Groups’ which is right next to ‘All Groups’ — it’s at that page]
    – [I then see a group link, in list of groups….so I click on a desired group]
    – [get to that group’s front page]
    – [click on ‘Forum’ option there]
    – [***NOW I should see no other things to choose from — there are no other topics that will be in this forum, so I should not be brought to a page with a list of topics to choose from; instead, I am immediately brought to a discussion, which is a discussion that is covering the only topic that that group is ever going to discuss]

    HOW do I achieve this….???

    I was looking for a widget that was a “discussion” widget that I could use to customize the group front page, but never found one.

    And the “activity stream” is littered with an RSS feed and a search bar, and it doesn’t allow for uploading pictures (WHICH IS CRITICAL)….forums allow to upload pictures. So I’d just use the Activity Stream if it was feasible, which it appears to not be. But hell — if that was easier to modify than skipping a forum ‘topic list’ page….let me know that too, please.

    Thanks in advance for all your assistance; I am desperate to finally solve this, lol….! 😀

    #194719

    In reply to: How add Class on list

    puniler
    Participant

    Sorry, I will re-ask the question.

    Why is this code on the “loop-single-reply.php” enclosed in <li></li>?

    ↓loop-single-reply.php

    <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
        <!--various-->
    </div><!-- #post-<?php bbp_reply_id(); ?> -->
    
    <div <?php bbp_reply_class(); ?>>
        <!--various-->
    </div><!-- .reply -->

    ↓HTML

    <li>
    <div id="post-777" class="bbp-reply-header">
        <!--various-->
    </div><!-- #post-777 -->
    
    <div class="even bbp-parent-forum-212 bbp-parent-topic-383 bbp-reply-position-17 user-id-5 post-439 reply type-reply status-publish">
        <!--various-->
    </div><!-- .reply -->
    </li>

    Where is the code to add the <li></li>?
    I want to rewrite it.

    #194707

    In reply to: How add Class on list

    puniler
    Participant

    My purpose is this. I want to find a code adding a list and add a ClassName.

    Why does the list add to HTML, even though there is no code to add a list to both “loop-replies.php” and “loop-single-reply.php”?

    By the way, what I wrote as “list” so far is “<li></li>“.

    #194706

    In reply to: How add Class on list

    puniler
    Participant

    I am trying to implement the infinite loader on the reply page.

    That’s the plug-in for that:
    Ajax Pagination and Infinite Scroll
    https://wordpress.org/plugins/malinky-ajax-pagination/

    And to use this plugin I need to add ClassName to the list, but I do not know where the list is added.

    Regardless of where I look in the template, I can not find any additional code for the list.

    I would like to find the additional part of the list and add it a ClassName.

    #194700

    In reply to: How add Class on list

    puniler
    Participant

    Thanks for getting back to me.

    Break down the code in question into three.

    (1)
    I found the following code in this directory,
    wp-content/plugins/bbpress/templates/default/bbpress/loop-replies.php

    <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    
    	<li class="bbp-header">
    		<!-- various -->
    	</li>
    
    	<li class="bbp-body">
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    	</li>
    		
    	<li class="bbp-footer">
    		<!-- various -->
    	</li>
    
    </ul>

    (2)
    And the template called in the above code is below.
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    	
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    		
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>	

    (3)
    But I could not find the code for the part of the list below.

    	<li class="★">
    
    	</li>
    
    	<li class="★">
    
    	</li>

    In the output HTML, this list is included, but the PHP template does not show the part of the list.

    Where is the list, how can I rewrite it?

    Thanks.

    #194687

    In reply to: How add Class on list

    Robin W
    Moderator

    so where did this code come from ?

    #194682
    puniler
    Participant

    Hi,

    I want to add Class on “★” by PHP template.

    <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    
    	<li class="bbp-header">
    		<!-- various -->
    	</li>
    
    	<li class="bbp-body"></li>
    		
    	<li class="★">
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    	</li>
    	
    	<li class="★">
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    	</li>	
    
    	<li class="bbp-footer">
    		<!-- various -->
    	</li>
    
    </ul>

    But I do not know the appropriate PHP template.
    I wonder what I should do.
    Thank you.

    #194678
    eigodeasobo
    Participant

    There are 13 comments on my page, and there are 5 display settings.

    Web:http://urx2.nu/LPiR
    Img:http://folio.ink/jzbNpw

    But pagination is not display!!

    This is the HTML:

    <div class="bbp-pagination">
    	<div class="bbp-pagination-count">
    
    		
    	</div>
    
    	<div class="bbp-pagination-links">
    
    		
    	</div>
    </div>

    I just installed an WordPress, and only BBPress plugin activated.

    Why??

    #194675

    In reply to: Bbpress Sidebar Width

    iraarel
    Participant

    Is there any css code for only css to set the widths option?
    And i use jannah 2 theme.

    #194671
    Robin W
    Moderator

    so with wordpress and bbpress installed, you create a forum in the dashboard and then create a page called say ‘forum’ and in the contents put

    [bbp-forum-index]

    save this page, publish it, and then view ot and you will see the forum.

    you could also follow this

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

    #194668
    siparker
    Participant

    Hi,

    The function bbp_get_time_since in includes/common/formatting.php always returns “right now”.

    bbPress Version: 2.6 release candidate 6

    #194667
    eigodeasobo
    Participant

    sorry, I re-wrote that.

    ▼For example:

    topic ID = 100
    -first reply to topic ID 100 = post ID 105
    --first reply to post ID 105 = post ID 106
    -second reply to topic ID 100 = post ID 107
    -third reply to topic ID 100 = post ID 108
    --first reply to post ID 108 = post ID 109
    ---first reply to post ID 109 = post ID 110
    ---second reply to post ID 109 = post ID 111

    ▼I expect the following get:

    Get 0 using 105, 107, 108.
    <?php echo bbp_get_form_reply_to(105); //Get 0 ?>
    <?php echo bbp_get_form_reply_to(107); //Get 0 ?>
    <?php echo bbp_get_form_reply_to(108); //Get 0 ?>

    Get 105 using 106.
    <?php echo bbp_get_form_reply_to(106); //Get 105 ?>

    Get 108 using 109.
    <?php echo bbp_get_form_reply_to(109); //Get 108 ?>

    Get 109 using 110, 111.
    <?php echo bbp_get_form_reply_to(110); //Get 109 ?>
    <?php echo bbp_get_form_reply_to(111); //Get 109 ?>

    I want to obtain the reply ID based on the post ID.

    Thanks.

    eigodeasobo
    Participant

    Hi all,

    How can I get a reply post ID using a specific post ID?

    For example, I want to get 1 using 3.

    0
    |–1
    |–|–2
    |–|–3

    I can not do with the following code:
    <?php echo bbp_get_form_reply_to(3);?>

    How write it?

    Thanks.

    #194648

    In reply to: cPanel Dangers?

    Robin W
    Moderator

    would depend on what he is trying to fix, and how much you trust, and what ‘data’ you site holds that could be embarrassing. If you hold no client info other than say usernames, then you could take a more relaxed attitude.

    I tend to work on test/dev sites rather than live sites, and I like to have both cpanel and ftp access to sites I am working on, but most of what I do is code, and the ability to back out stuff is key.

    suggest you look to build a test/dev site and give him access to that.

    Creating a Test Site

    #194632
    scmsteve
    Participant

    One other issue is how the forum list is generated, it seems it is invalid HTML having text in the

      that is outside the

    • elements.
      <ul class="bbp-forums-list">
      <li class="bbp-forum"><a href="forum-url" class="bbp-forum-link">forum-name (counts)</a>,</li>
      </ul>

      In 2.6 I am getting this:

      <ul class="bbp-forums-list">
      <li class="bbp-forum"><a href="form-url" class="bbp-forum-link">forum-name (counts)</a></li>,
      </ul>

      The seperator of a comma is being put after each li tag instead of inside of it.

    #194630
    scmsteve
    Participant

    Noticed when migrating from 2.5.12 to 2.6 beta 2 (and also in RC1 and RC3), that my custom CSS file in mytheme/css/bbpress.css is no longer being detected.

    I am seeing that here as well… Since your post was never commented on, I don’t know if it was ignored or simply thought irrelevant. Or maybe missed. 🙂

    Looking at the HTML between the old site and a test site running the SVN pull of 2.6, it seems that previously as part of the enqueue_styles() call, it generated:

    <link data-asynced="1" as="style" onload="this.rel=&quot;stylesheet&quot;" rel="stylesheet" id="bbp-default-css" href="https://siteurl/wp-content/themes/mythemename/css/bbpress.css" type="text/css" media="screen">

    Now it is generating:

    <link data-asynced="1" as="style" onload="this.rel=&quot;stylesheet&quot;" rel="stylesheet" id="bbp-default-css" href="https://siteurl/wp-content/plugins/bbpress/templates/default/css/bbpress.min.css" type="text/css" media="all">

    So, it is not looking in the site css folder, but instead pulling from the plugin folder.

    Is this intentional? If not, is there a fix/workaround?

    #194611
    Robin W
    Moderator

    try

    width: 100% !important;

    #194610
    Prashant Chaudhari
    Participant

    Hi!

    I want to hide all the columns (Posts, Topics, Voices, Freshness) except the Forum and Topic.
    Everything is working fine except the column size of Forum column is not changing. Here is the css:

    /* To hide VOICE, REPLY, POSTS and FRESHNESS columns in bbPress */
    
    li.bbp-forum-reply-count, li.bbp-forum-topic-count, li.bbp-forum-freshness {
        display: none !important;
    }
    
    li.bbp-topic-voice-count, li.bbp-topic-reply-count, li.bbp-topic-freshness {
        display: none !important;
    }
    
    li.bbp-forum-info,
    li.bbp-topic-title {
    	float: left;
    	text-align: left;
    	width: 100%;
    }
    
    /* End */
    

    Please help.

    #194609

    In reply to: Forum Topic Loop

    Babblebey
    Participant

    Well just incase other people finds this thread.. My Template Part had bugs too.. Here is the one that worked:

    <?php
    
    /**
     * Single Thread
     *
     * @package bbPress
     * @subpackage Theme
     */
    
      // $threadURL = bbp_topic_permalink(); // Deprecated ////
      // $threadTitle = bbp_topic_title(); // Deprecated ////
      // $threadTIme = bbp_topic_post_date(); // Deprecated ////
      ///////////////// Thread Author Avatar URL ////////////////////////
      $user_id = bbp_get_user_id( $user_id );
      $authorAvatarURL = get_avatar_url( $user_id, 300 );
      ///////////////////////////////////////////////////////////////////
      // $threadVoiceCount = bbp_topic_voice_count(); // Deprecated ////
    
    ?>
    
    <div class="swiper-slide-item">
        <div class="icon-author" style="background-image: url('<?php echo $authorAvatarURL; ?>'); background-image: -webkit-image-set(url('<?php echo $authorAvatarURL; ?>') 1x, url('<?php echo $authorAvatarURL; ?>') 2x);"></div>
        <a href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a></h2>
        <time class="data" datetime="<?php bbp_topic_post_date(); ?>"><?php bbp_topic_post_date(); ?></time>
        <span class="views"><i class="fa fa-comment-alt"></i><?php bbp_topic_reply_count(); ?></span>
    </div>

    The bbPress Functions does not want to be assigned to variable as Unlike the GET_ they do not return values, they echo.

    Thanks.

    #194606

    In reply to: Forum Topic Loop

    Robin W
    Moderator

    bbp_get_template_part( 'bbpress/omna', 'forumthreads' )
    should read
    bbp_get_template_part( 'bbpress/omna', 'forumthreads' ) ;

    you missed a ‘;’ !

    #194605

    Topic: Forum Topic Loop

    in forum Installation
    Babblebey
    Participant

    Hello there,

    Firstly thank you for viewing this thread, really appreciate.

    I am trying to create a topic loop to display in my in development theme. I have created a template part in my theme-directory/bbpress/omna-forumthreads see below:

    <?php
    
    /**
     * Single Thread
     *
     * @package bbPress
     * @subpackage Theme
     */
    
      $threadURL = bbp_topic_permalink();
      $threadTitle = bbp_topic_title();
      $threadTIme = bbp_topic_post_date();
      ///////////////// Thread Author Avatar URL ////////////////////////
      $user_id = bbp_get_user_id( $user_id );
      $authorAvatarURL = get_avatar_url( $user_id, 300 );
      ///////////////////////////////////////////////////////////////////
      $threadVoiceCount = bbp_topic_voice_count();
    
    ?>
    
    <div class="swiper-slide-item">
        <div class="icon-author" style="background-image: url('<?php echo $authorAvatarURL; ?>'); background-image: -webkit-image-set(url('<?php echo $authorAvatarURL; ?>') 1x, url('<?php echo $authorAvatarURL; ?>') 2x);">
        </div><<?php echo $threadURL; ?>"><?php echo $threadTitle; ?></a></h2>
            <time class="data" datetime="<?php echo $threadTIme; ?>"><?php echo $threadTIme; ?></time>
            <span class="views"><i class="fa fa-comment-alt"></i><?php echo $threadVoiceCount; ?></span>
        </div>
    </div>
    

    And i believe this should work, But currently i have issues with the loop that should display it by driving the content from the template part. Here is my loops:

    <div class="swiper-wrapper">
        <div class="swiper-slide">
           <div class="swiper-slide-container">
              <?php
                 if ( bbp_has_topics() ):
                    while ( bbp_topics() ) : bbp_the_topic();
                       bbp_get_template_part( 'bbpress/omna', 'forumthreads' )
                    endwhile;
                 endif;
              ?>
           </div>
        </div>
     </div>

    Now i get a pass error:

    Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in C:\wamp\www\omna\wp-content\themes\omna\page-home.php on line 143

    I have also tried the curly brace {} type of IF & WHILE expressions, still a parse error..

    Please Help.

    #194600
    alriknijdam
    Participant

    I seem to have an error with the page previews as you can see over here. As you can see in the first reply in this link, page preview for WP pages works fine, the problem only occurs with BBpress related urls (second post). In the image below I marked it with red:

    page preview error

    When I disable the GP Premium plugin the preview dissapears and it only shows the title as an url inside a blockquote. BUT looking at the source code the wrong preview is still there. Changing class wp-embedded-content position: absolute; to position: relative; makes it visable again.

    Disabling all plugins, switching to another theme or deleting all custom css is of no influence. WordPress and all plugins are up to date.

Viewing 25 results - 4,151 through 4,175 (of 32,481 total)
Skip to toolbar