Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,376 through 16,400 (of 32,508 total)
  • Author
    Search Results
  • #112989
    SK
    Participant

    Thanks guys!

    @martin_style: Not quite sure what you mean by “once time load slow, but not loading multiple times”

    @jaredatch: How do I nuke the sidebar?

    I lied. I am not using

    .bbp-forum #primary {
    display: none;
    }

    I am using a plugin that replaces primary sidebar with a bbpress specific sidebar.

    But I have 2 sidebars, and I am hiding the 2nd sidebar with CSS

    .bbp-forum #secondary {
    display: none;
    }

    So this is the one that I need to remove.

    I am guessing that instead of fiddling with the Theme, it might be easier to patch the plugin. Here’s what it does at the moment:

    function vp_sidebars_widgets($data)
    {
    // if bbpress enabled and main sidebar requested
    if ($this->is_bbp && $this->is_main_sidebar)
    {
    // switch sidebar if bbrepss sidebar has some widgets in it
    if (!empty($data[$this->sidebar_id]))
    {
    if (isset($data['sidebar-1']))
    {
    // uses sidebar-1 as main sidebar in most themes
    // set forum sidebar as main sidebar
    $main_sidebar_key = 'sidebar-1';
    }
    else
    {
    // get first sidebar which should be main in most themes
    foreach ($data as $k => $v)
    {
    if (strpos($k,'inactive')===false)
    {
    $main_sidebar_key = $k;
    break;
    }
    }
    }

    // replace main sidebar with bbpress sidebar
    if (isset($main_sidebar_key))
    {
    $data[$main_sidebar_key] = $data[$this->sidebar_id];
    }
    }

    // reset main sidebar request
    $this->is_main_sidebar = false;
    }

    // return modified widgets array
    return $data;
    }

    #113014

    In reply to: trunk

    I don’t see the issue. The CSS is there.

    ul.bbp-has-subforums ul.bbp-forums-list

    You’re not going to be able to do what is on the ubi form without a custom theme, because of how it’s setup.

    #113005

    Install bbPress 2.0.2 (the plugin) – it will do all of this out of the box :)

    #112997

    In reply to: Remove toast/notice

    If you are using bbPress 2.1 by chance, you can drop this into your theme’s functions.php and it should do what you want.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    function ja_return_blank() {
    return '';
    }

    If we provided a configuration for every request received we would have 347374 configurations and be years from a future release.

    Instead bbPress is built extremely flexible so *you* can do these things as you see fit.

    #43977

    Topic: Modifying colors

    in forum Themes
    mizu no oto
    Member

    Greetings from Vancouver, B.C.

    I’ve installed the BBPress plugin and want to modify the ‘light blue’ and ‘yellow’ text block colors on the following page.

    http://participatorydemocracy.ca/forums/forum/test-forum

    I followed plugin >> bb press >> bbp-twentyten >> css >> bbpress-rtl and bbpress.css

    Using Firebug I located in the css where (I thought) I would modify the colors but when I looked in both bbpress-rtl and bbpress.css there was no matching code, at least that I could find.

    Same for . . .

    http://participatorydemocracy.ca/forums

    which I want to modify the header to match the rest of the website.

    Any suggestions would be grateful . . .

    #108247
    jmatthewgore
    Participant

    Ohhhhh… lol. I see what you mean :) Perhaps I’m not quite as awake this morning as I thought. Thanks again! I’ll check.

    – Matt

    #108246

    I just tell you to look at that menu on Notepad++. you should choose Unix format, then save the file and upload it again on the server. this should fix your problem in my opinion

    EOL is end of line. Different OS uses different codes for EOL, we have Windows format, Mac format and Unix format. often is possible that is you save the text file with windows format it will look nice under windows os but may appear as a single long line for linux.

    notepad++ can help with that and correct your problem. you introduced the problem as soon as you edited the file and saved it with windows EOL

    #108245
    jmatthewgore
    Participant

    Thanks again, rvencu :)

    I do have a Linux host… a CentOS based VPS (managed). Beyond that, I’m afraid that your suggestion is Greek to me. I don’t really know anything about editing the EOL Conversion (or what it is).

    However, I can safely say that I’ve experienced my fair share of php errors on this server, and previous ones have not been listed as “line 1”. Also, aside from this comment form showing up, my whole install of wordpress and buddypress/bbPress works just fine, so I’m not sure I understand why changing this line would be a particular problem anyway… maybe it’s just a syntax error?

    But are you saying that you don’t see any obvious problem with the code I pasted above?

    Many Thanks,

    Matthew

    #108242
    jmatthewgore
    Participant

    Just so we’re clear, this is what I’m doing in the page.php code. I change this:

    <?php

    suffusion_before_end_post();

    comments_template();

    ?>

    to this:

    <?php

    suffusion_before_end_post();

    if (!stristr($_SERVER,’/lm-forums/’)) { comments_template(); }

    ?>

    #108241

    actually you need to replace exactly the whole string (including semicolon) with the second one (no semicolon at the end)

    also make sure that you do not mix ” with ‘ anywhere

    it is not that complicated to fix it. if you can’t just paste the code here including the surrounding lines so I can see it.

    #43976
    SK
    Participant

    I find the bbp-template-notice

    This forum contains 5 topics and 7 replies, and was last updated by author 5 days ago.

    quite annoying.

    How do I remove such notices?

    #112959
    SK
    Participant

    #1 Would love to see that as well.

    #2 Loved these little things in phpBB and missing in bbpress

    #3 have you tried:

    https://wordpress.org/extend/plugins/bbp-signature/

    https://wordpress.org/extend/plugins/bbpress-bbcode/

    bbPress.org plugin repo is useless for bbPress plugin, but you could check out https://wordpress.org/extend/plugins/tags/bbpress

    These plugins are WP plugins for bbPress, and you can install from WP Admin just like normal WP plugins

    #43972
    SK
    Participant

    I’m technically illiterate so need some help understanding this.

    On the bbPress pages, I am using CSS to hide sidebar…something like

    .bbp-forum #primary {
    display: none;
    }

    My question is: Is the sidebar is still loaded (on server, in browser) and just not displayed, or do I by simply styling it out of view also save some time on page loading?

    #112968

    Thanks! Just what I was looking for :)

    I’m using 2.1 truck and I get classes such as bbp-has-subforums and bbp-parent-forum-4.

    #108806
    thedzigner
    Participant

    Sad panda indeed :)

    Ah well, at least I’m not alone in this issue. I hit a few bumps in trying to implement BuddyPress, and felt like I was alone in my issues.

    It’s a sort of strange consolation to know you duplicated my problem.

    #112967
    #112463
    Ratspeed
    Member

    Just having started looking at all the how-to’s on dealing with modifying bbpress’ look and feel, I’m really questioning that YouTube link’s method.

    He copied a bunch of files into the existing theme’s folder rather than making a child theme folder. After that, he copied a ton of code from one functions.php to WP’s function.php…

    Sorry, but that just looks really rickety of a setup if you ask me, and I barely know anything about this yet.

    #43944
    Ratspeed
    Member

    Where is bbPress’s style sheet?

    Simple question, yes, but after having looked through all the child theme stuff, I’m expecting a very complex answer.

    I’m simply trying to change the size and shape of the login widget’s text fields. It’s not fitting in my theme’s sidebar. (The theme that I use is Dandelion v268.) This has turned into a long-winded goosechase of installing and uninstalling theme files, templates, changing obscure comment fields, etc. I simply want the style sheet and change bbp-username’s style. That’s all. Help? :(

    #43942
    MTPrower
    Member

    I have WordPress with bbPress 2.0 installed as a plugin. I’m looking for some basic functionality:

    1. The ability to upload an avatar from the front-end, so the WordPress back-end can remain hidden

    2. Topic and forums icons that can change depending on whether the user has read the topic(s) yet

    3. Signature and custom bbcode support.

    I can’t seem to be able to add any real functionality to bbPress simply because bbPress isn’t the stand-alone version. There is no page to activate bbPress plugins that I downloaded, so what do I do? Without plugins, bbPress is nearly useles…

    Hello,

    I’m using the bbPress Forum list widget and [bbp-forum-index] Shortcode.

    I’ve changed these lines to list by title:

    wp-content/plugins/bbpress/bbp-includes/bbp-forum-template.php

    Line #88

    ‘orderby’ => ‘menu_order’,

    changed for:

    ‘orderby’ => ‘title’,

    wp-content/plugins/bbpress/bbp-includes/bbp-core-widgets.php

    Line #387

    ‘orderby’ => ‘menu_order’,

    changed for:

    ‘orderby’ => ‘title’,

    https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Pairmybeer
    Member

    here is the complete error:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/content/07/9148507/html/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php on line 123

    Pairmybeer
    Member

    Created page – support – and assigned it as the forum base. Then added the short codes:

    [bbp-forum-index]

    [bbp-single-forum id=$forum_id]

    [bbp-topic-index]

    [bbp-topic-form]

    [bbp-single-topic id=$topic_id]

    [bbp-topic-tags]

    And get a fatal error when trying to view page http://blog.webactivedirectory.com/support/

    Created a new page customer-support with the same short code and renders exactly as planned. http://blog.webactivedirectory.com/customer-forums/

    Switch the forum base to “customer-support” on the settings page and that page has fatal error and support page renders correctly.

    I played with the short codes and pages do not get fatal error when only using:

    [bbp-forum-index]

    [bbp-topic-index]

    But the page does not render correctly.

    Am I missing something completely?

    #112917

    You’re wrong. :) They are most certainly related. Most likely that your install thinks it lives in a different directory, .htaccess rules, rewrite rules, or something similar.

    #112882
    Venkat84
    Member

    Thank You Jaredatch, So nice to hear that :)

Viewing 25 results - 16,376 through 16,400 (of 32,508 total)
Skip to toolbar