Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,301 through 6,325 (of 32,519 total)
  • Author
    Search Results
  • #175675
    winrarz
    Participant

    It seems to me that this is the problematic code:

    in content-single-topic.php

    		<?php if ( bbp_has_replies() ) : ?>
    			<?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    			<?php bbp_get_template_part( 'loop',       'replies' ); ?>
    			<?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    		<?php endif; ?>

    If I remove this code block, all of the shortcodes start working.

    UPDATE 1:
    More specifically, this is the exact row that the problem appears at:
    <?php bbp_get_template_part( 'loop', 'replies' ); ?>

    UPDATE 2:
    I followed the problem down to..
    in file loop-single-reply.php
    <?php bbp_reply_content(); ?>

    If I remove this line, the shortcodes starts magically working.

    #175674
    winrarz
    Participant

    Hello,

    We have a problem on our site with loading shortcodes on /topic/ pages, as you can see in the link below:
    http://www.futsverige.se/forums/topic/test/

    However, the shortcodes work everywhere else. So the problem seems to be within bbPress suppressing the do_shortcode() calls from the theme.

    Anyone knows what could cause this or point us in the right direction on how to circumvent it?

    Thanks

    Robin W
    Moderator

    was kinda hoping you could say what ‘buggy’ means.

    I suspect that both plugins modify some common pieces of code, so may ‘overwrite’ each other in places.

    Knowing where these places were would help immensely in fixing them for others.

    #175672

    In reply to: smiley emoticons

    Robkk
    Moderator

    @khunmax WordPress has smilies and emoji included in it, but if you need a plugin to customize the images used for each text smiley :) or full text output :smile: , then use WP-MonaLisa. So as long as you just use custom images for the default full text and smiley text to output some custom smilies and images, it will fallback to the normal WP emoji, any custom ones will not fall back.

    https://codex.wordpress.org/Using_Smilies
    https://codex.wordpress.org/Emoji

    In the future you might need to use a search and replace plugin to revsolve any custom smiley outputs that might just output something like :custom_smiley:

    :) 🙂

    #175668
    khunmax
    Participant

    Please excuse the length of this post. It seeks information regarding functionality and best practice.

    FUNCTIONALITY

    I have developed my own functionality plugin for BBpress and would be very grateful if some one could provide me with the functions snippets for the following features:

    1. Creating a header and footer for each individual forum in the index list (ala Style kit template option)

    2. Removing the vertical bar that appears to the left of the sub-forum list when the following code is used:

    #bbpress-forums .bbp-forums-list li {display: list-item !important;}

    3. Removing the commas that appear in the vertical list of the subforums. This looks odd and ugly. My links are style in orange and then at the end of each subforum there is a black comma. Can this comma be removed or can it be styled with css so that its color is the same as the subforum links? If it can be styled what is its unique selector?

    4. The BBP toolkit has an option to remove all of the blue and yellow alert/info boxes. What is the snippet for this function?

    5. The BBp toolkit has an option to only add css to BBP pages. What is the snippet for this function and is it necessary(or a possible conflict) if I chose to run WP minify?

    BEST PRACTICE
    This is the first site I have developed with a forum. What is the best practice regarding admin forum content, forum rules is a relevant example. Should I create a forum dedicated to my admin topics (included form rules), or rather, should I just create topics for admin content and make them super sticky (which I understand means they will appear at the top of every forum)

    Again my humble apologies for the length of this post. And, as always, thanks very much for anyone render their valuable assistance.

    Kind Regards

    Max

    #175667
    khunmax
    Participant

    With Robin’s valuable assistance I now have a created new topic link at the top of each of my forums.

    However one forum is for my use solely and only contains locked topics such as forum rules.

    1. Is there a snippet of code that I can add to my functionality plugin that allows me to selectively remove the create new topic link from atop a specific forum?

    2. And,or, can the create new topic link just be hidden using CSS visibility:hidden, and if so what is the link’s unique selector?

    Thanks in advance for any assistance provided.

    Kind Regards

    Max

    Robin W
    Moderator

    1.

    //This function changes the heading "Freshness" 
    function rew_change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Freshness' ) {
    	$translated_text = 'hello' ;	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'rew_change_translate_text', 20 );
    

    2.

    function rew_create_new_topica () {
    	$text= 'Create New Topic' ;
    	if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) echo '<div style="text-align: center;">  <a href ="#topic">'.$text.'</a></div>' ;
    	}
    
    function rew_create_new_topicb () {
    	echo '<a name="topic"></a>' ;
    	}
    
    add_action ( 'bbp_template_before_single_forum', 'rew_create_new_topica' ) ;
    add_action( 'bbp_theme_before_topic_form', 'rew_create_new_topicb' ) ;
    
    khunmax
    Participant

    There were features in both the BBp Style Pack and BBpress Toolkit that I desired.

    Unfortunately when ever I installed both plugins, my site became buggy. There is a conflict between the two it would seem.

    So I bit the bullet and created my own functionality plugin and used it and WP Custom CSS to create each of the features and styling I desired from the Style Pack and the Toolkit.

    There are just three features that I couldn’t find any documentation for:

    1. Changing the header label Freshness to other wording, and
    2. Creating a “create new topic” link.

    I am aware that the first of these features is also included in Robins other plugin called Latest Post (or something like that) however that plugin also includes another feature that I do not require (as I have coded my own)

    And so my request. Can someone please provide me with:

    1. a function snippet to change freshness to other wording
    2. a function snippet to add a “create new topic” link at the top of a forum

    Thanks in advance for any assistance.

    Kind Regards

    Max

    #175633

    In reply to: Freshness Link

    Fuskeduske
    Participant

    Hi,

    I am using the code

    <div class=”bbp-forum-last-topic-name”>” title=”<?php bbp_forum_last_topic_title(); ?>”>

    <?php bbp_forum_last_topic_title(); ?></div>

    <p></p><?php bbp_forum_last_active_time(); ?>

    But i would like to replace the last topic link, with a link to the reply, i have tried bbp_forum_last_Reply_permalink but it just links to the reply only, and not inside the topic.

    #175632
    #175622
    Zimm
    Participant

    So, really, I have a two-part question. First, I’d like to add some new roles. I’ve read and looked all over the place without any real answer. I know what codes to use per the documentation. That said, I’m not sure which file to place them in and that’s the part I can’t find definitive answers on. If someone could direct me which directory and file to add it to that’d be great. I already know not to do it to the BBpress core files.

    Also, is there a way to assign specific moderators to specific boards. Say a user is a moderator, but I don’t want them to moderate all boards, just specific boards. Is that possible?

    #175616

    In reply to: Per user moderation

    ddennison2016
    Participant

    Hello Robkk,

    I tried the moderation plugin you suggested but it has not been updated in over 3 years so it does not work for me.

    I read here https://codex.bbpress.org/moderation-and-blacklisting/ that discussion settings should be applied for bbpress but that also does not work.

    For whatever reason anyone can immediately post replies without having to wait for moderation.

    Under Settings > Discussion > Before a comment appears – I have the checkbox selected for “Comment must be manually approved” however that does not happen.

    Thanks,
    Dustin

    #175586
    Kolchak
    Participant

    I’m trying to import a phpbb forum with about 50,000 posts into a local dev site.

    It continually stalls at “Converting topics (4900-4999)”

    I’m trying to follow the instructions here:

    Import Troubleshooting


    which say to make a copy of the db and drop all records except within the offending range and try the import again to isolate the problematic row.

    Should I go into phpbb_topics or phpbb_topics_posted to try and look for the offending problem?

    Once I have the right table, do I then delete the first 4899 rows that appear in the db?

    I’m using the latest WordPress and have tried both bbpress 2.5.9 and 2.6alpha.

    Thanks for any help you can give me.

    #175582
    Brandon Allen
    Participant

    It’s important that BuddyPress/bbPress is capable of protecting itself first before resorting to other 3rd-party/premium plugins.

    It is important, and bbPress does protect itself, where appropriate. The forums at this link are public forums, which means that anyone can view them, logged in or not. The MemeberPress plugin is restricting these public forums to logged in users. Since it’s a premium plugin, I don’t have access to the code. My guess, since it seems to do it’s job well on the forums, is that it’s not properly applying the same logic to single topics/replies and search. The result being that there is some data leakage.

    #175574
    Brandon Allen
    Participant

    @newguy Take a look at the bbp_topic_reply_count() and bbp_get_topic_reply_count() functions.

    Brandon Allen
    Participant

    Can’t reproduce using the GeneratePress theme.

    So, I’ll ask again. Are you using any caching plugins? Are you running Memcached/Memcache or Varnish?

    Do you have any plugins in your mu-plugins folder?

    #175568

    In reply to: feeds bug

    Brandon Allen
    Participant

    I’ve tested this, and cannot see where bbPress is translating the <pubDate>. Feeds use mysql2date() to generate the <pubDate>, and they pass false as the translate parameter. It’s been this way since feeds were introduced. Are you or your client using custom feed templates?

    #175564
    Brandon Allen
    Participant

    The importer does save some data under _bbp_converter_* keys in the wp_options table. You can try using those to help. Also, if you turn in use something like this in your wp-config.php file, you’ll get a log of errors in wp-content/debug.log.

    define( 'WP_DEBUG', true ); // turn on debug mode
    if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
    	define( 'WP_DEBUG_LOG', true ); // log to wp-content/debug.log
    }
    #175561
    arnalyse
    Participant

    Hi you guys,

    I’m in the process of importing a rather large vBulletin board. It has around 50’000 topics and more than 3 million posts.

    And I’ve got this one question: does bbPress write out or somehowe save topics, which it couldn’t import? So I can get a glimpse at the problem at hand why a certain vBulletin thread has not been imported?

    A little more background: I’ve done a few test imports, and so far bbPress is doing a terrific job. To keep import time manageable, I modified the vBulletin converter from bbPress to skip replies, which I import with some more complex SQL queries after the bbPress importer has created users and topics.

    Nearly all of my 20’000 users and 50’000 topics get imported, but some vBulletin threads do not shop up with the meta_key named _bbp_old_topic_id. I really tried to spot a pattern there, but had no luck. So I’m hoping there’s a way to gather some more information directly from the bbPress import.

    I’m running bbPress 2.5.9 and WordPress 4.5.2

    #175547
    Robkk
    Moderator

    You can use this kind of custom CSS.

    #bbpress-forums .bbp-forums-list a {
      font-size: 14px;
    }
    
    #175544
    Pascal Casier
    Moderator

    Hi,
    I never checked the embedding, but for uploading files, the 3 products I know of are ‘GD bbpress Attachments’, ‘Image Upload for BBPress’ and ‘bbPress Multi Image Uploader’. Have a look if it would fit your needs. If you use BuddyPress as well, then there is also ‘BuddyPress Forum Editor’.

    For you second question, you could try my bbp-toolkit plugin that has this inside or check https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#22-show%c2%a0only-1-revision-log-on-topics-and-replies

    Pascal.

    #175534
    tian94
    Participant

    Hi guys my website has a forum called. “Characters and creatures”, at the moment when I post the short code to display the forum the default is “Forum” how can I get it to grab what the forum category is use that as the name instead. Thanks!

    http://postimg.org/image/xa5mh7z9d/

    #175533
    ms52390
    Participant

    I have two brief questions:

    Seen here: Example
    My images wont embed using the img button in the editor. If the code looks like: <img src="http://www.rcgroups.com/forums/showatt.php?attachmentid=9064638">
    It only works in FireFox, but not in Safari and Chrome (didn’t try IE).

    Second question:
    Is there a way to (via code changes I assume) to change how the edit log shows for a post? If you look in the above example, the log is ridiculously long. Is there a way to not show previous edit datetimes and by what user?

    #175532
    kcomphlint
    Participant

    @robkk I tried using your code, but it the topic subscribe links seem to not have any effect on the topic-level subscription links.

    #175528
    Robin W
    Moderator

    in your style.css line 1417 you have

    .reply {
      position: absolute;
      right: 0;
      top: 0;
    }
    

    if you take out the

    position: absolute;
    

    that should fix it. It all works, and you get your sidebar as well

    What it might break elsewhere on your site, you’ll need to check !

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