Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,026 through 10,050 (of 32,519 total)
  • Author
    Search Results
  • #155201

    In reply to: Import from vBulletin

    Stephen Edgar
    Keymaster

    Indeed passwords are 100% converted and working now, I also removed that from the codex article 🙂

    With the updated importer “Buzz” will be set as a “category”, with bbPress 2.5.4 “Buzz” would have been imported as a “forum”.

    #155199

    In reply to: Replies can't be seen

    Stephen Edgar
    Keymaster

    Apologies, that first reply above was spam 🙁

    I presume you ran each of the repair tools after import? (Tools -> Forums), if you haven’t ran these, run each of them and you might be all set without going into the database.

    If you have run the repair tools then at this stage I can really only suggest you dive into the database again to have a look at what is going on….

    Some tips:

    – bbPress 2.x uses custom post types, in the wp_posts table you should see three post types forum, topic and reply in the post_type column.
    – If you look at one of your replies in the wp_posts table you should be able to get the post ID of the parent topic by looking at the post_parent value of the reply your investigating.

    #155195

    In reply to: Import from vBulletin

    Chad
    Participant

    Thanks for your reply @netweb

    So password conversion works in the import, but the codex doc still says otherwise?

    Side note while testing, I noticed forum links like this

    Permalink: http://www.mydomain.com/blog/forums/forum/buzz/press-stand/

    I don’t understand why there’s /forums/forum/buzz.. ?

    “Buzz” is set as category, press-stand as forum. Buzz has no parent but is a parent to press stand.

    #155181

    In reply to: Import from vBulletin

    Stephen Edgar
    Keymaster

    1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.

    Indeed this is now fixed to work with vBulletin’s default YouTube BBCodes:
    Specifically the two following BBCodes are the only ones supported (many vB forums used to use custom BBCodes and this was primarily the main issue here)

    
    // Replace '[video=youtube;$1]$2[/video]' with '$2"
    // Replace '[video=youtube_share;$1]$2[/video]' with '$2"
    

    For example [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=MfW2UJMIQvQ[/video] will be replaced with just the YouTube link http://www.youtube.com/watch?v=MfW2UJMIQvQ, bbPress (and WordPress) will automatically embed the video using the direct URL.

    2. All ‘Ordered Lists’ will be displayed as numerical lists.

    This is also fixed

    3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’

    This is fixed also 🙂

    #1 If I create the exact bbcodes in BBPress prior to the import, I assume this would rectify this area correct?

    Yes, modify your custom BBCodes to either a) Match the supported vBulletin BBCode above or b) completely strip the vBulletin BBCode so just the YouTube link remains 🙂

    I have updated the codex article and removed quite a few things that were listed there that are now fixed including full support to convert user passwords and the items in red in this image are fixed and/or supported 🙂

    With that said “some” of these features are not in the currently shipped bbPress 2.5.4 such as Forum and Topic subscriptions and guest/anonymous topic and reply support, I’m going to post an announcement here on the site in the coming day or two on the improvements and where and how to get this test release.

    #155179
    ITGeist
    Participant

    I came up with writing my own solution.
    I’ve put that right after <?php do_action( ‘bbp_theme_before_topic_title’ ); ?>.
    It checks if I wrote @pd@ in the thread title and adds based on other keywords images to the title and replaces it.

    $sTitle = bbp_get_topic_title();
    $bIsPred = strpos($sTitle, "@pd@");
    
    if($bIsPred === false) 
    {
       <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
    }
    else
    {
       // check for other keywords in sTitle
    }
    #155133

    In reply to: Similar to PHPBB

    Robkk
    Moderator

    see if this helps

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    download the .zip file and upload the loop-forums.php file to your bbpress folder in your child theme.

    you create a category by create selecting new forum in the WordPress backend and changing the type to category.

    to put forums under each category make sure all the forums you want under a specific category has the parent as that category

    the docs should help out alot for learing how to use a child theme for your bbPress installation

    Codex

    #155058
    Robkk
    Moderator

    @korobochkin

    in the trac they are trying to add this feature and at least an option to disable it.

    -started 2010 -last reply 3 months ago
    https://bbpress.trac.wordpress.org/ticket/1430

    if you do not want pingbacks and trackbacks remove any code that is for the comments section when you create a bbpress.php and see if that fixes it.

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

    #154819
    Robkk
    Moderator

    @elenams

    i thought i replied to this one..

    pretty much the plugins stlye.css file will get you headed into styling bbPress the way you want it.

    you copy the style.css file from the bbPress plugin folder and put it into a folder called css in your child theme then edit the new style.css file from there.

    if its just small changes you can also put it into a custom css plugin of your choice.

    more information on styling bbPress.

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

    bbPress Styling Crib

    Step by step guide to setting up a bbPress forum – part 2

    Robkk
    Moderator

    this is not CSS its mostly PHP

    from what it looks like just copy the templates the userpro plugin author gave you and place it a folder called bbpress in your child theme. the url to it should be wp-content/themes/avada-child/bbpress.

    more info about bbpress theme compatibility

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

    info on creating a child theme

    https://codex.wordpress.org/Child_Themes

    #154772

    In reply to: Truncated usernames

    Robkk
    Moderator

    font-color: black;

    or

    color: black;

    more on styling bbPress

    Step by step guide to setting up a bbPress forum – part 2

    bbPress Styling Crib

    Robkk
    Moderator

    thats not CSS at all …most of its PHP

    it seems like you just put the PHP files that the userpro plugin author gave you and put it into a directory named bbpress in a child theme and it should work fine from there.

    so the url to the directory should be wp-content/themes/avada-child/bbpress

    if you havent created a child theme , here hows to

    https://codex.wordpress.org/Child_Themes

    more about bbPress theme compatibility

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

    #154686
    Robkk
    Moderator

    anything in the style.css file really.

    more info on styling bbPress.

    Step by step guide to setting up a bbPress forum – part 2

    bbPress Styling Crib

    reading the rest of the docs wont be bad to read either 🙂

    Codex

    #154866
    FADmark
    Participant

    Hi,

    Topics and Replies that have been edited are showing duplicate entries for each actual revision. Example (see the 3rd post): http://cancergrace.org/topic/webmaster-tests

    See the 3rd post – it should only be showing 3 revisions, but they are listed twice for some reason. Nothing has changed on my end and I don’t believe I added any hacks to this part of the code, other than some CSS.

    I’m not exactly sure when this started, but I believe it may have been when my WPMS was updated to 4.0.1, while running bbP 2.5.4-5380.

    Thanks for any tips on how I might resolve this.

    -Mark

    #154791
    foresme
    Participant

    Hello!

    Paragraphs in posts have stopped working.

    The paragraphs or new lines I create in the editor don’t show up when I submit the post. Instead, all the text is merged together, making it much harder to read.

    Does anyone clever have some sort of magical solution to this very frustrating problem?

    Thank you my friends!

    ———————————————————–

    I wonder if it has anything to do with a recent fix I used for the forum search….

    I added “bbpress.php” into my child theme. This file can be downloaded here: https://gist.github.com/mattyza/1b01583441b11c8d04d0

    Add the following code into my “functions.php” file: https://gist.github.com/mattyza/f210cadb7f70188d513d

    #155145
    Stephen Edgar
    Keymaster

    The bbPress Codex is back up and runninng for the users listed in @JJJ’s post abbove, a couple more tweaks are needed to fix a couple of outstanding issues.


    @robkk
    I’ve added you as an Administrator, @robin-w you are also an Administrator now 🙂

    If you have any questions please drop by the #bbPress Slack channel 🙂 https://chat.wordpress.org

    #155142
    Stephen Edgar
    Keymaster

    You are correct, the string Last comment, Topics/Replies are NOT bbPress strings, these strings will be in either the theme you are using with custom bbPress templates or a plugin you are using.

    As a side note, WordPress 3.9 and bbPress 2.5 and above versions no longer need define(‘WPLANG’, ‘tr_TR’); in wp-config.php, and coming in WordPress 4.1 you can select your language from in WordPress settings 🙂

    The biggest advantage of the above is translations will be included when you update WordPress or bbPress, the only condition to receive the language packs automatically is that the language pack is 100% translated, if that is the case then translations are automatically delivered. 🙂

    It would be amazing if you could help get the Turkish locale 100% for bbPress 🙂 If you use BuddyPress that would also be awesome, WordPress is already 100% 🙂

    https://translate.wordpress.org/languages/tr

    #155140
    kannued
    Participant

    When I imported bbpress forums into wordpress, some posts had html code remaining. This is very simple code like <p></p>, . Is there a plugin that will clean up this simple html code in the posts?

    #155139

    In reply to: Photo in Latest posts

    Robkk
    Moderator

    @icaroferreira

    if you were trying to post more than 2 links in your reply , this site site wont allow it as a SPAM prevention measure because of the latest SPAM attack.

    if you ever need to post more than 2 links just paste the url without the http://

    i can just highlight and search it in google.

    as for your site being in maintenance it is really hard to help.

    i suggest you use the inspecter tools in your browser

    select the author name both under the topic title and in the freshness section

    see in the source code if there is even an image with some something like img src by the name

    if there is

    check and see if the small avatars are hidden with CSS and most likely change display:none; to dipslay:inline;

    if the image is not even in the source code by the author names.

    contact the userpro plugin author and see if they will help you install the template right if that was the problem.

    #155135

    In reply to: Similar to PHPBB

    Robkk
    Moderator

    see if this helps, copy the link and search google

    github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    download the .zip file and upload the loop-forums.php file to your bbpress folder in your child theme.

    you create a category by create selecting new forum in the WordPress backend and changing the type to category.

    to put forums under each category make sure all the forums you want under a specific category has the parent as that category

    the docs should help out alot for learing how to use a child theme for your bbPress installation

    Codex

    #155119
    Serch1
    Participant

    Well, what I want in wordpress is:

    
    add_action('delete_user', 'delete_posts_and_attachments');
    function delete_posts_and_attachments($user_id) {
        $args = array (
            'numberposts' => -1,
            'post_type' => 'any',
            'author' => $user_id
        );
        // get all posts by this user: posts, pages, attachments, etc..
        $user_posts = get_posts($args);
    
        if (empty($user_posts)) return;
    
        // delete all the user posts
        foreach ($user_posts as $user_post) {
            wp_delete_post($user_post->ID, true);
        }
    }

    But where and how can I delete posts from bbpress? any help will be appreciated :\

    izzyian
    Participant

    Thank you so much I found that the following css fixed my problem while using the 1st functions if then statement code

    a.bbp-backto-forum {
        margin-right: 8px;
    }
    #subscription-toggle, #favorite-toggle {
        display: block;
        float: right;
        padding-right: 8px !important;
        padding-top: 0 !important;
    }
    Robkk
    Moderator

    well also put this if statement around the link so that it woulnt show in the users topic favorites/subsritions/started lists

    <?php if ( bbp_is_single_topic() ) : ?>
    
    <a class="bbp-backto-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>
    	
    <?php endif; ?>

    the link looking a little off maybe because the developer of your theme customized it so that the css would affect it like this

    div.forum-head-reply-tools a {

    so that any link would be affected the same

    maybe removing the class in the code i gave you would fix that??

    so maybe like this

    <?php if ( bbp_is_single_topic() ) : ?>
    
    <a href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>
    	
    <?php endif; ?>
    #155109
    Robkk
    Moderator

    I’ve typed a reply to you and submitted it but bbpress isn’t displaying it. If I try again it tells me I’ve already submitting that comment but it isn’t showing up?? Is this a bbpress bug or is my comment awaiting approval or something? Is there a limit to adding links in the post? I had 3.

    no its not a bug its a spam prevention measure since the spam attack only 2 links can be posted now.

    if you need to link us with more than 3 just post the url without the http://

    i can just highlight and google search it.

    this is for the padding.

    #bbpress-forums li.bbp-body ul.forum, 
    #bbpress-forums li.bbp-body ul.topic {
    overflow: hidden;
    padding: 8px;
    }

    the tiny avatar CSS is ok but just so you know if it was any bigger the css will make the image distort and look blurry.

    you can change the avatar size in the templates if you go to the loop-single-topic.php file and find something similar to 'size' => 14 i think in your case it would be 16 maybe

    and change that number to 24

    you should also do this to the loop-single-forum.php file too.

    also add this additional CSS so you can remove the voice count number making everything awkward

    .bbp-body li.bbp-topic-voice-count {
    display:none;
    }

    to remove it in the templates go to loop-single-topic.php

    and remove this

    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>

    #155108
    Robkk
    Moderator

    its the ip address of the current user

    to know for sure search this in google: whats my ip address?

    and then it should show it there

    the ip addresses only show for admin users

    its there so you can ban the users that are spam , human/bots

    you can ban them using WordPress comment blacklist in settings>discussion

    bbPress uses some of those settings too.

    use this css to remove it.

    span.bbp-author-ip {
        display: none !important;
    }
    #155096
    bcrider
    Participant

    Thanks again Robkk

    I was able to successfully replace the loop-single-topic.php file in my theme with the stock bbpress version and voila, large avatars are removed as I desired and they’ve been replaced with the stock smaller ones. Awesome!

    Searching the support forums here I was also able to find this code and add it to my Custom Code section which allowed be to play with the size of the avatar too. Awesome again!

    .bbp-body .bbp-topic-title img.avatar,
    .bbp-body .bbp-topic-freshness img.avatar,
    .bbp-template-notice img.avatar,
    .bpp-author-avatar img.avatar {
    width: 24px;
    }

    I think one of the last pieces I need to fix before converting my phpbb3 forum to bbpress is adjusting the padding on the Forum list and Topic list pages.

    http://splitboard.com/talk2/

    The padding is much larger than I desire, I’d like the padding to be as minimal as possible which will allow for more content on the screen without scrolling.

    Can you please help me adjust the padding to be closer to the stock bbpress styling, like here?

    As you can see, the topics are much narrower.

    Thanks!

    Let me know if there’s already a topic on adjusting the padding or if I should start a new thread.

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