Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,551 through 6,575 (of 32,519 total)
  • Author
    Search Results
  • #174033
    j_mo
    Participant

    Solved it! I had to get the ID of the ‘topic’ custom post type and pass it to bbp_topic_reply_count

    <?php if ( 'topic' == get_post_type()  ) : ?>
    
    				<?php $topic = get_the_ID(); ?>
                        		<article class="bit-4 newsPost grid-sizer grid-item">
                                	<div class="eventInner homePost">
                                        <p class="postLabel">Discussion</p>
                        				<h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1>
                                        <p class="postedOn"><?php the_date('d M Y'); ?>, <?php bbp_topic_reply_count(  $topic_id = $topic ); ?></p>
                                		<p><?php echo get_excerpt(); ?></p>
                                    </div>
                            	</article>
    						<?php endif; ?>
    #174030
    officerofthewatch
    Participant

    Hi I’m hoping someone can give me some direction. I should start by saying i’m not a big coder or developer so apologies if this is really simple to solve. Every post in BBpress is accompanies by the user date on the left hand side. On the initial post in a topic this user data column is wide enough to contain all of the relevant data.

    On subsequent posts the column is indented and becomes too narrow to display everything. For an example of this issue on the site I’m developing view

    https://officerofthewatch.co.uk/Officers-Mess/topic/officer-of-the-watch-help-wanted/

    You will note on the second post by ‘aquabon’ the ‘send a message’ text is partially cut off.

    Is there anyway to increase this column width to match that of the original poster?

    #174029
    tech55541
    Participant

    Hello,
    I still need some code to change these 2 items, if you could help me come up with something, that would be great.

    #174028
    j_mo
    Participant

    Thanks

    Is there a show_topic_ID() or something?

    #174015
    tech55541
    Participant

    Hello,
    I am using this plugin.
    https://wordpress.org/plugins/wp-smtp/

    I am trying to change the sender name and sender email address for BBPress. I have successfully done this for BuddyPress, but all the code I have tried for BBPress or all the code I have seen in older topics, is not doing it for me.

    Can you please recommend some code that I can change the sender name and sender email address?

    Thanks.

    j_mo
    Participant

    Hi there,

    I am currently working on my first bbPress site and thoroughly enjoying it! I have one issue though…

    On my home page I have a list of 8 latest posts on the site. They include news (standard WP posts), events (custom post type) and bbPress topics and are displayed with query_posts().

    I am trying to display the reply count of topics but can’t using bbp_topic_reply_count(), it simply returns 0.

    <?php if ( 'topic' == get_post_type()  ) : ?>
    	<article class="bit-4 newsPost grid-sizer grid-item">
        	<div class="eventInner homePost">
            	<p class="postLabel">Discussion</p>
                	<h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1>
                    	<p class="postedOn"><?php bbp_topic_reply_count(); ?> comments, starting on<?php the_date('d M Y'); ?></p>
                        	<p><?php echo get_excerpt(); ?></p>
            	</div>
        </article>
    <?php endif; ?>

    Am I missing something? Can someone help please?

    Thanks

    #173996

    In reply to: Topic & Reply count

    incakola100
    Participant

    Hi guys @robin-w

    I really don’t get it.

    I changed the <?php bbp_list_forums()?> in to

    <?php bbp_list_forums(array (
    'show_topic_count' => false,
    'show_reply_count' => false,
    'separator' => '',
    ));?>

    In the bbpress plugin folder and tried it in the theme folder. Both Didn’t work. What am I doing wrong?

    Got it to work in the functions.php

    #173988
    Robkk
    Moderator

    @sidebarissue

    The bbPress sidebar that you see having the issue, is from your theme. bbPress does not have code in it for a bbPress specific sidebar.

    You haven’t checked and made sure to see if it was in your theme by switching/testing a default theme.

    I still haven’t tried switching to the twentytwelve theme because I don’t want to lose all of my settings for my current theme.

    You can try your current theme and a WordPress default theme in a local installation on your cpu to see where the sidebar is coming from.

    https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/#local-installation

    #173975
    Robin W
    Moderator

    you’ll need to create a role with those capabilities

    see

    https://codex.bbpress.org/custom-capabilities/

    #173973
    Pascal Casier
    Moderator
    #173969
    Pascal Casier
    Moderator

    Hi Marc,
    I didn’t try any of them, but these are some possibilities:
    1) installing bbPress on the us_US and then downloading the nl_NL bbPress translations and adding them in the bbPress folder (https://codex.bbpress.org/getting-started/bbpress-in-your-language/)
    OR
    2) Go MU and have the main site in us_US and create a subsite in nl_NL
    Pascal.

    #173948
    Robkk
    Moderator

    Well not a bbPress specific plugin, but there are a few plugins that can work with custom post types (bbPress uses custom post types).

    A plugin I found and tested is called NS Featured Posts, but like I said many other plugins could possibly work too.

    After installing the plugin make sure to go to Settings > NS Featured Posts and make sure to add the topic custom post type from bbPress in the plugin’s settings.

    Now we can go to Topics > All Topics and see a new column that says Featured. Make sure to click the checkbox near the topic you would want to feature.

    Now we are going to make a custom view to display these featured topics in a topic list, and also be able to display them in pages with a shortcode.

    Add this php code snippet into your child themes functions.php or insert this snippet into a custom plugin like functionality.

    This function displays about 10 featured topics on a single page, change 10 to whatever you want.

    function rkk_register_featured_view() {
     bbp_register_view( 'featured', __( 'Featured Topics' ),  array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes', 'posts_per_page' => '10', 'max_num_pages' => '1'), false );
    }
    add_action( 'bbp_register_views', 'rkk_register_featured_view' );

    Now in a custom page or widget area that has a widget text area that can handle shortcodes, insert this shortcode.

    [bbp-single-view id='featured']`

    #173942
    Pascal Casier
    Moderator

    In MYSQL with phpmyadmin you would be able to do it. If you would need to add e.g. 4 hours, the idea would be :

    WARNING: Backup your database before doing things
    WARNING: This is just a starting point, not a real query to launch on your DB

    UPDATE poststable SET postfield = DATE_ADD(postfield, INTERVAL 4 HOURS)
    WHERE postfield < '2016-04-01 08:20:00';

    So in the WHERE you need to put the datestamp when you have done the timezone switch.

    Pascal.

    Pascal Casier
    Moderator

    Hi,
    You will have to go with

    {
     position: relative ;
     top : 0px ;
    }

    Pascal.

    Valery Kondakoff
    Participant

    The issue seems to be related to ‘bbl-author-avatar’ class. But I still can not find any reasons, why avatar suddenly ‘jumps’ to the upper left on small screens…

    The only (ugly) workaround I found until now is to hide avatars on the small screens:

    @media screen and (max-width: 375px) {
        .bbp-author-avatar {
          display: none; 
        }
    }

    Any other ideas? Thank you.

    #173904
    Robkk
    Moderator

    @bethannon1

    You can put this bbPress default themes CSS from the plugin into a folder called css in your child theme and edit the css file to your liking.

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

    #173899
    Bet Hannon
    Participant

    Hi Pascal! Thanks for your quick reply!

    Unfortunately, no — these forums are locked down to only approved users.

    The CSS is in /plugins/bbpress/templates/default/css/bbpress.css, line 896:

    /* =Stickies
    -------------------------------------------------------------- */
    
    .bbp-topics-front ul.super-sticky,
    .bbp-topics ul.super-sticky,
    .bbp-topics ul.sticky,
    .bbp-forum-content ul.sticky {
    	background-color: #ffffe0 !important;
    	font-size: 1.1em;
    }
    

    I need to change that background color. But I’m not a CSS ninja, and I’m not sure how to override that !important from the default plugin CSS. This is when adding a 2nd !important to trump the first would be handy. 🙂

    Pascal Casier
    Moderator

    Hi, you see this message because your debug is on. This specific message is not a real a minor issue, but it could mean you have somewhere access control issues.

    See https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/

    Pascal.

    #173892
    Bet Hannon
    Participant

    I need to override the default CSS color for
    .bbp-topics-front ul.super-sticky, .bbp-topics ul.super-sticky, .bbp-topics ul.sticky, .bbp-forum-content ul.sticky

    But the default color declaration has an !important in it. What’s the best way to fix this so my color will display? I know I could hack the plugin CSS, but that’s not the best option. 🙂

    #173884
    Stephen Edgar
    Keymaster

    Yeah, I’m actually thinking it might be best to require the user (me) to manually move the images directory from the old site to the new site. Then, maybe just use the xenForo URL to the image to display it in the post. It “should” be safe since xenForo reduced the images based on admin settings when they were originally uploaded. Just some random thoughts from a guy not looking at import code. 😉

    I can add a “generic” that would change [ATTACH=full]872[/ATTACH] to generic URLhttps:/example.com/attachment/872, you could then manually change thehttps:/example.com/attachment/part of that to anything you want for examplehttp://surveyorconnect.com/attachments/` and have that folder on your server serve up the attachments from there?

    I’m wondering if https://bbpress.dev4press.com would actually cure some of the bbcode issues automatically.

    We actually use a pretty comprehensive BBCode library already during import it converts a huge amount of common BBCode code to native HTML for us, I think you’d find there are only a handful of custom BBCode’s not covered by this library and is why I add them manually.

    p.s. I haven’t packaged up a new release with the changes just yet, but you can always get the latest version (with the above updates) from:

    https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters/XenForo.php

    At the bottom of that page is a link to download the file in “original format” and that will get you the file, the link is dynamic and changes each revision so that’s why no direct link.

    #173877
    skilletin
    Participant

    Thanks for your reply!

    I have already found a solution to one of the other topics there for the same problem. At fault was the code inside Function.php – the function who exclude pages from search results. I remove it and now everything working fine. Thanks!

    #173873
    Wendell
    Participant

    I’m not quite sure what to do with attachments as bbPress import system does not yet support attachments ¯\_(ツ)_/¯

    Yeah, I’m actually thinking it might be best to require the user (me) to manually move the images directory from the old site to the new site. Then, maybe just use the xenForo URL to the image to display it in the post. It “should” be safe since xenForo reduced the images based on admin settings when they were originally uploaded. Just some random thoughts from a guy not looking at import code. 😉

    I’m wondering if https://bbpress.dev4press.com would actually cure some of the bbcode issues automatically.

    Also I’ve added support for YouTube, Daily Motion and Vimeo BBCode conversion

    Sweet!

    I’ve added some styling to the quotes now, so it wraps that quotes in “blockquote” and cites the authors name, e.g “wendellh wrote:”

    That’s perfect. The post and member numbers are really just useless information at that point anyway. I don’t see any real importance in providing the links back to the quoted posts either. I mean, it would be really cool, but not a big deal.

    Ah, I didn’t know about these types of posts, I’ve now done this, for topics/threads replies/posts that were “soft deleted” these are now imported with bbPress/WordPress “pending” status.

    Thank you!

    #173865
    Pascal Casier
    Moderator

    Okay, next step (based on previous issues), in between every step, try the email sending:
    – Disable the asynchronous plugin
    – Switch to a default theme like Twenty Fourteen
    – Make sure you have NO custom code that you added in your template or function.php that could block

    Pascal.

    #173860

    In reply to: Sub Forum List Style

    Pascal Casier
    Moderator

    Hi,
    You probably better work on the li directly:

    #bbpress-forums .bbp-forums-list li {
    }

    Did you have a look at https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#1-change-how-the-forum-list-displays ?

    If you need something more, please paste the link of the site here and explain what you are looking for.

    Pascal.

    #173857
    Stephen Edgar
    Keymaster

    Probably the most noticeable issue after the import are the attachments. They are basically a number with opening and closing ATTACH bbcodes.

    I’m not quite sure what to do with attachments as bbPress import system does not yet support attachments ¯\_(ツ)_/¯

    I could add some code to “hide” the BBCode whilst still keeping it as a refernce?

    Also I’ve added support for YouTube, Daily Motion and Vimeo BBCode conversion

    Then there are the quotes to other posts. These simply just come in as text and the post IDs don’t match those in bbpress. In xenForo, the quoted posts link back to the post that was quoted.

    I’ve added some styling to the quotes now, so it wraps that quotes in “blockquote” and cites the authors name, e.g “wendellh wrote:”

    For now we can’t link to the quoted post, this is on my radar to do but requires some pretty big changes, maybe bbPress 2.8.

    I’ve also noticed that soft deleted posts (only viewable by mods and admins) in xenForo are coming in as public posts.

    Ah, I didn’t know about these types of posts, I’ve now done this, for topics/threads replies/posts that were “soft deleted” these are now imported with bbPress/WordPress “pending” status.

Viewing 25 results - 6,551 through 6,575 (of 32,519 total)
Skip to toolbar