Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,726 through 5,750 (of 32,505 total)
  • Author
    Search Results
  • #179560
    akgt
    Participant

    Im wanting to add a forum to my wordpress site, I dont know how much it will grow but i want it to be flexible, i’m not a coder or designer, I only know the basics,

    I know in the past bbpress had a lot of issue and was lacking in features but i’m assuming this must be possible now.

    Im wanting a good looking full featured forum as good as any stand alone forum(xenforo, phpbb, mybb).

    can this be done ?
    if so how ?
    How can I add the extra feature without bloating the site ?
    Can i download any pre made bbpress.css ?

    any good example

    #179556
    Robin W
    Moderator

    ok, untested but try

    wp-content/plugins/bbpress\templates\default\bbpress\form-search.php

    copy to your PC and

    line 17

    <input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />

    change to

    <input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="search_submit" value" />

    save this file to

    ie wp-content/themes/%your-theme-name%/bbpress/form-search.php

    where %your-theme-name% is the name of your theme

    #179554
    hopecenter
    Participant

    @Robin W — Thank you for sending me the CCS code. It worked. Yes, I know how to move files by FTP to edit on a PC. You’re help would be greatly appreciated.

    #179545
    Robin W
    Moderator

    in the file

    bbpress\includes\common\shortcodes.php and amend the ‘bbp-single-forum’ shortcode

    #179543
    Robin W
    Moderator

    1. you have two css declarations that are affecting

    #main-col .elements-box ul li, #main-col .post ul li {
      list-style: inside none square;
      padding-left: 0;
    }

    and

    #main-col .elements-box ul ul li, #main-col .post ul ul li {
      list-style: inside none circle;
    }

    if you are not interested in having circles or squares anywhere on your site out this in your css.

    #main-col .elements-box ul li, #main-col .post ul li {
      list-style: none !important ;
     }
    #main-col .elements-box ul ul li, #main-col .post ul ul li {
     list-style: none !important ;
    }

    2. whilst some styling can be done, it would take an change to a template to achieve what you want for search. If you are familiar with moving files using FTP and editing files on your PC, come back and I’ll help further

    3. Can’t see that as it only shows to those logged in.

    #179531
    Stephen Edgar
    Keymaster

    So the regex we use #([\s>])@([0-9a-zA-Z-_]+)#i in bbp_make_mentions_clickable()

    The ([\s>]) is checking for a whitespace character before the @ symbol

    The code here below is from using TinyMCE and as you noted @atmojones there’s some non-breaking spaces html entities for the instances when an an even number of spaces preceede the @ symbol:

    The root cause is every second space is swapped out with nbsp; which makes sense from a HTML perspective, where this takes place I’m not so sure of, it’s either in TinyMCE directly, or WordPress via wp_spaces_regexp() in wptexturize() (I think it’s the former)

    The workaround for bbPress and I suspect BuddyPress also, would be to check for both ([\s>]) and nbsp; preceding the @ symbol

    Here’s the results of swapping ([\s>]) for ([\s>;]) (Adding a check for just the semi-colon):

    #179530
    Stephen Edgar
    Keymaster

    Testing one space @atmojones
    Testing two spaces @atmojones
    Testing three spaces @atmojones
    Testing four spaces @atmojones
    Testing five spaces @atmojones
    Testing six spaces @atmojones

    The resulting code from the above:

    
    <p>Testing one space <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing two spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing three spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing four spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing five spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing six spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
     </p>
    

    The above doesn’t really show the code, multiple spaces are stripped:

    #179529

    In reply to: bp_send_email help

    Stephen Edgar
    Keymaster

    I suggest you post this on https://buddypress.org/support as the function bp_send_email() is a BuddyPress function 🙂

    #179523

    In reply to: Forum style / setup

    Thomas_k
    Participant

    @robin-W,

    Hi Robin,

    First, thanks for the useful BBP Style Pack plugin. Everything works fine but when i enable the Alternate Template 1 it doesn’t change the layout. What am i doing wrong? Do i need to add code to a template or something?

    Thomas

    #179514
    verenar
    Participant

    Hi,
    I have a membership side with different forums and I show the forums with the “(bbPress) Forums List” widget and the answers with [bbp-topic-index].

    I want to show a forum and its ansers only for a some users. Where in the code I have to do the difference?

    Thanks in advance!

    #179512
    timsilva_
    Participant

    I dealt with some of these issues about a year ago. I was migrating from SMF 2* to bbPress and I had tons of issues with formatting in posts and missing data. I ended up hiring Michael Z Noble (http://wwww.michaelznoble.com/ – The 4 w’s is intentional 😉 ) to write a custom migration script to help me through all of these issues (as well as transfer a bunch of data like signatures, up/down votes, thread view counts, avatars, etc, into various bbPress/BuddyPress plugins/functions). The utf8mb4/utf8mb4_unicode_ci/character set issues were particularly tough for me to get through. I ended up switching to a new host that had a newer version of MySQL in order to successfully complete the migration. In short, if you aren’t a senior dev, hire a dev. 😉

    Best of luck my friend! 🙂

    #179511
    Stephen Edgar
    Keymaster

    If you uncheck the tick next to position: fixed; it will display correctly.

    The file source is from /wp-content/themes/DT/framework/css/css.core.css?ver=4.6.1:

    
    .sticky {
        position: fixed;
        top: 0;
        z-index: 1000;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }
    

    Changing position: fixed; to position: inherit; will fix it for you.

    I suggest you read your themes documentation or contact the theme author for the best way to apply the CSS fix for the DT Framework theme you are using 🙂

    #179510
    vizcano
    Participant

    Yes @netweb that is the correct post.
    i just made it sticky again.

    the thing is that normal and super sticky work fine.

    i dont understand anything about the codes thats why i cant find the problem by myself 🙁

    Thanks.

    #179505
    Stephen Edgar
    Keymaster

    Not so much what I need, it is what you need to help work out what the issue is 😉

    At a quick glance it looks like the bootstrap.css is overwriting the bbPress CSS styles.

    Can you make the topic a “sticky” again please:

    This is the forum correct? EDIT: Removed URL

    Robin W
    Moderator
    #179496

    In reply to: Forum List

    deepthyxavier
    Participant

    Thank you for your response.
    Solved the problem by changing the code in plugins/bbpress/includes/common/widgets.php
    made a small change around the line no: 586

    	
    
  • <div class=”user-avatar”><?php bbp_author_link($widget_query->post->ID ); ?></div>
    <div class=”forum-title”>
    post->ID ); ?>”><?php bbp_forum_title( $widget_query->post->ID ); ?>
    <div class=”user-name”><?php bbp_author_link($widget_query->post->ID ); ?></div>
    <div class=”date-time”><?php bbp_topic_last_active_time( $topic_id ); ?></div>
    </div>
  • Thank You..

#179493
Stephen Edgar
Keymaster

The theme used here on bbpress.org is called bbpress-org, the theme used on buddypress.org is called buddypress-org, I see a pattern emerging, the theme used on codex.bbpress.org is called codex-bbpress-org, the theme used on codex.buddypress.org is called codex-buddypress-org, there is a pattern here :shakes fist: ;P

Along with the above, each of those themes is a WordPress child theme, the parent theme is named bb-base, as you can see below per the announcement blog posts all the above parent and child themes and plugins used on all the sites were “open sourced” back in March 2014

Open Sourcing bbPress.org

Open Sourcing BuddyPress.org

The above posts also link to the source repos, there is also a new child theme that is now used on the bbPress 2.x powered https://wordpress.org/support/ forums and an even newer evolution of this theme is being worked on for the updated redesign of the WordPress forums, you can even sneak a peak at the new design by visiting this URL: https://wordpress.org/support/?new-theme=1

The updates to all of the above and the migration of the WordPress Support Forums to bbPress 2.x, rather 2.6-alpha is one of the reasons bbPress 2.6 isn’t out yet, it’s because we’re making sure bbPress 2.6 will be the best it possibly can be, and by deploying it on wordpress.org and the ensued battle testing of it that has been taking place we’ve got a few things to do before we can say bbPress 2.6 is ready to be released.

#179490
Stephen Edgar
Keymaster

@mikehaceman, thanks for testing this, I’ll update the and test the patch in a few hours

And FWIW an import should also work albeit slower without the wp_bbp_converter_translator table, some hosts don’t allow users to create new tables, so I’ll see if I can figure out why this isn’t working either for you 🙂

#179489
mikehaceman
Participant

Ok it was hanging for too long so here what i found out:

on the patch page (https://bbpress.trac.wordpress.org/attachment/ticket/3026/3026.patch) you made few mistakes:

1. Line 663 KEY meta_join (meta_key, meta_value) ) {$charset_collate};”;
should finish with ” , ” not ” ;”; ” otherwise it will crash error

2. Line 660 PRIMARY KEY (meta_id),
is duplicated so i guess 660 or 661 can be removed

3. when running import after those changes in wordpress, converter is giving error message:

WordPress database error: [Key column ‘meta_id’ doesn’t exist in table]
CREATE TABLE wp_bbp_converter_translator ( value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

Btw… im not a coder. No clue about php im just applying some logic to what i see 😉

#179485
mikehaceman
Participant

Hi @johnjamesjacoby

Thanks for the update. I have downloaded again the alpha and installed it fresh on my website. Unfortunately still the same error message:

Repair any missing information: Continue
WordPress database error: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
No data to cleanStarting Conversion

#179483

Hey @mikehaceman, sorry you are having trouble.

This isn’t usually necessary, but something between your two installations isn’t cooperating, and in these rare cases it unfortunately requires a bit of scrutiny.

WordPress installations since 4.4 and beyond will try to use utf8mb4 for their character set, and utf8mb4_unicode_ci for their collation. Traditionally these are InnoDB tables, but you’re usually free to decide this for yourself.

utf8mb4 tables have reduced maximum key lengths due to the additional bytes required for each character, so the safe maximum length is reduced to 191. It’s possible we haven’t updated our special converter table to handle this, so I’ll check, and update it if that’s the case.

If you wanted, it may be worth going through all databases, all tables, and all columns, and ensure that your encoding & collations are what you expect them to be. (This means in your old forums, and your new ones.)

[Edit: Updated this post to reflect what we’ve updated in bbPress’s converter]

#179480
mikehaceman
Participant

Thank you for the reply. I have downloaded and installed alpha.
When running import im getting error:

Repair any missing information: Continue
WordPress database error: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

I tried to find this error and potential solution. I found someone recommending bbpress toolkit. I have installed it and system info is as follow:

WP version 4.6.1
Theme Twenty Sixteen 1.3
PHP version 5.4.19
bbPress version 2.6-alpha-6091
Active Plugins Name and Version
– p1 bbP Toolkit 1.0.6
– p2 bbPress 2.6-alpha

Any idea ?

#179476
rajwantsingh27
Participant

Turns out that the shortcode has dodgy apostrophes. Once I edited those the shortcode worked:

[bbp-single-view id='popular']

That was a good find. And yes it works now.

Thanks

#179461

In reply to: Capabilities and Roles

Chad R. Schulz
Participant

Yeah, the role of moderator would allow this user to edit topics/replies. Check out the prebuilt roles/caps here.

Also, by giving them the role of author they’d gain access to the back-end of your site for other content (create posts, etc.), as well.

These are two separate roles that do two different things.

#179460
xmatter
Participant

After I renamed the standard “forums root” under Settings > Forums to “forums-old” and added the shortcode to the Forums page, I was able to accomplish a non-sidebar style page.

Viewing 25 results - 5,726 through 5,750 (of 32,505 total)
Skip to toolbar