Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,976 through 24,000 (of 32,570 total)
  • Author
    Search Results
  • #77793
    Sam Bauers
    Participant

    @DennisH

    I didn’t say “trivial” to be snarky. It is actually a trivial amount of code. Probably no more than a few lines.

    I’m working on a plugin that will do it comprehensively. Just waiting for the plugin repository to catch up with requests.

    #77064

    In reply to: bbpress and memcache?

    Sam Bauers
    Participant

    @usera

    You can setup a new memcached instance to avoid clashes with wordpress, but if you are sharing user tables then it shouldn’t matter.

    If you add another memcached instance on a different port you can point bbPress to it by adding this to bb-config.php (default IP and port shown here)…

    $memcached_servers = array( 'default' => array( '127.0.0.1:11211' ) );

    #31513
    pikatore
    Member

    I have a problem, i don’t know what to do. I am using the crystal theme, which instead of having:

    <?php if ( bb_forums() ) : ?>

    it has

    <?php if ($forums) : ?>

    compared to the default theme.

    I want subforums to be hidden on the front page. How do i modify code to do this?

    Olaf Lederer
    Participant

    right no session at all :)

    @rareexample, just use the cookies created by bbpress (using firefox it’s easy to discover the cookies)

    #15343
    Vannak Eng
    Participant

    Hi,

    I modified the default theme of bbpress and it worked fine at first but lately it shows the number like “6d53″ on the top of header. when i view the source code i see it is ‘<body id=”front-page”>6d53’. Please help to advise on that.

    Regards,

    Vannak

    #78131

    In reply to: Announcement Forum

    agibbins
    Member

    Oh sorry, I thought you meant settings within the admin panel. Yes, I’ve edited the script and edited the templates as instructed.

    global $read_only_forums,$bb_current_user, $bb_roles;

    // edit users (and forums) by NUMBER below until an admin menu can be made

    //$read_only_forums=false; // true = stop ALL members from starting topics in ALL forums

    //$read_only_forums=false; // true = stop ALL members from replying to topics in ALL forums

    $read_only_forums=array(5); // which forums should ALL members NOT be able to start topics

    //$read_only_forums=array(9,15,22); // which forums should ALL members NOT be able to reply to posts

    //$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums

    //$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums

    //$read_only_forums= array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums

    //$read_only_forums = array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums

    $read_only_forums=array(‘moderator’,’administrator’,’keymaster’); // these types of users can always start/reply

    $read_only_forums=__(“Sorry, only moderators can start topics in this forum.”);

    $read_only_forums = __(“Posting in this topic has been restricted.”);

    // stop editing here

    #78130

    In reply to: Announcement Forum

    johnhiler
    Member

    The instructions in the readme file should mention the settings?

    * Until an admin menu is created, edit read-only-forums.php and change settings near the top as desired

    * Add the read-only-forums.php file to bbPress’ my-plugins/ directory and activate.

    https://bbpress.org/plugins/topic/read-only-forums/installation/

    #78171
    Tomcraft1980
    Member

    Thx for the immidiate answer!

    That saves me a lot of time! =)

    Kind regards

    Tom

    #78170
    chrishajer
    Participant

    You can call that directory whatever you want. There should be no plugin that has the installation directory hard-coded. (I’ve never seen one in any case.) You can call it ‘discussions’ or ‘abcdefzyx’ or ‘forum’ or ‘forums’ and it should not matter.

    #78127

    In reply to: Announcement Forum

    agibbins
    Member

    Thanks jonhiler. Problem is, this seems a tad buggy.

    I’ve restricted a forum so no one but moderators+ can post in it, but at the bottom of the forum theres still: “New Topic in this Forum” for users. How can I remove this?

    I also get errors like this:

    Warning: in_array() expects parameter 2 to be array, null given in /forum/my-plugins/read-only-forums.php on line 62

    #31520
    Tomcraft1980
    Member

    Is there for any reason a dafault directory name which should b used for installation? For example /forums because some early plugins use this name hardcodet?

    Currently my forum is installed in /forum and I ask myself if I should change it to /forums

    Any suggestions?

    #78161
    gerikg
    Member

    It depends on the theme. Go into your theme folder in BBpress and open header.php. Figure out where the links are being created. Then just insert an html tag (no need for php) `<a href=””> blah</a> etc etc Just make sure you have the correct surrounding tags. Sometimes they use

    <li> </li>

    and throw in class=""..

    An easy way to do it on WPMU is create a page the same as the directory. If it’s in http://www.website.com/forums then create a page call forums.

    #31518
    nataliya1977
    Member

    Hello!

    I create e social network on WordPress MU+Buddypress+bbpress.

    I want to create a button “Home” in header of bbpress to unite my social network and forum. And in header of Buddypress create a button “Forums”. How can I do it?

    I’m not a programmer and I don’t know php-code veru well.

    Help me!

    #30616
    nataliya1977
    Member

    Hello!

    I need a plugin, which can change header and footer in bbpress.

    I create a social network. I use for it WordPress MU+Buddypress+bbpress.

    I want to create a button “Home” in header of bbpress to unite WordPress MU and bbpress. And vice-versa I want to create a button “Forums” in header of Buddy Press.

    I’m not a programmer and I don’t know php-code very well.

    How can I do these changes?

    Thanks

    #77207

    Yes, it’s an issue with bbPress. It’s an issue with WordPress too. It’s an issue that means you need more memory. The memory limit (see the WP Codex for more on WP_MEMORY_LIMIT) means you need to increase your blog’s PHP memory limit. Why they call it limit and not something that implies ‘adding’ I don’t know.

    Which usually means your webhost hasn’t allocated enough to run WP/BB. Which means it’s actually an issue with your webhost that MAY be work-aroundable with manual tweaking.

    While you’re welcome to try BB_MEMORY_LIMIT (which is the logical name for it), I don’t think it exists.

    If you actually read the links I gave you, you’d know that PerishablePress (a fantastic resource) mentions you may be able to increase memory limits by editing wp-config.php like so:

    <?php
    @ini_set("memory_limit","16M");

    Try that on bb-config.php and see how it works.

    You’re probably going to need to dig into your php settings to see how much memory you’ve got right now, and how much you have to play with. You’ll need to savvy up on your error logs too, to see where it’s barfing.

    #77205

    No, it’s a known issue with WP and php memory, so I’m not surprised to see it crop up with bb as well.

    Read here:

    http://www.narfstuff.co.uk/2008/03/14/php-memory-and-wordpress/

    http://perishablepress.com/press/2008/02/19/improve-site-performance-by-increasing-php-memory-for-wordpress/

    But seeing as you don’t know how to do that now, I suspect you’ll need to talk to your webhost for help. If you have a good host, they’ll help you out :)

    #77792

    @sambauers Could you post that “trivial” code that allows for a BB login box in WP that will redirect back to the page after login?

    This is where I think Shallow Integration has the upper hand. I have the bb login on the bb side, and the WP in-line login on the WP side, and no matter where my peeps log in from, there they are. All I do is redirect registration to the WP side, which kicks them back to the main WP page. And that’s okay, since 92% (I love stats) of visitors start there anyway.

    As for includes on bbpress … Actually smilies, which are built into WP, would be nice, but they’d have to be easy to customize and expand. Some people like a million, some people like 10. Avatar upload isn’t going to happen unless Automattic dumps Gravatar. Quote ‘options’ would be a nice plugin.

    #78045
    Olaf Lederer
    Participant

    Go for the second, otherwise you have to move to a new one very soon.

    I guess the prices for the servers are not very different :)

    or take the first with more memory…

    #77791
    Gautam
    Member

    a. Private message

    b. Avatar upload

    c. Memberlist

    d. Quote option in topics

    e. Smilies

    I prefer them to be as plugins, not integrated within bbPress. If we need to update some part of code of those features, we could just update the plugin not the full forum board. The plugins can also be managed by individuals, not by the creators of bbPress.

    You rarely have to do any template edits to use the plugins, all possible of add_action and add_filter

    #77790
    DennisH
    Member

    @sambauers Could you post that “trivial” code that allows for a BB login box in WP that will redirect back to the page after login?

    BTW: I have deep integration.

    #78136
    Olaf Lederer
    Participant

    By default mage tags are not allowed too.

    create you own plugin and use this code

    function allow_img_tag($tags) {
    $tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array());
    return $tags;
    }
    add_filter('bb_allowed_tags', 'allow_img_tag');

    You can the same kind of function for your header elements

    #77788
    Navin
    Member

    I really love bbPress, but still wished some features existed by default. I know it’s doable via plugins, but default features are more cool, you can always turn it off. I really dislike the fact that some of the solutions I have seen on this forum, are related to “integrate your forum with WordPress, and use this plugin and it will work”, no, I don’t like that. bbPress should be able to do stuff on its own, without WordPress.

    I don’t want to install WordPress for the sake of making some things work. I have been a WordPress user for so many years already, but still I refuse to do that. I have managed to convert my forum, which was originally SMF into bbPress (SMF > phpBB > bbPress), that was a lot of work, but I’m really happy I did that.

    bbPress is by default very EMPTY, very very very empty. I was not used to a forum, with so less features and options. My users didn’t like it. I managed to add a lot of features via plugins. Now my users are a bit happy, I’m also very happy.

    The best part I love so far is, that making changes not always is so difficult compared to SMF or phpBB. phpBB is the last forum software on this planet I’d want to use, OMG so difficult to make changes. SMF is one of the best out there, but has some limits due to their copyright system.

    Some things I’d really love to see happening anytime very soon:

    1. A codex page, with detailed instruction about the codes, just like its big brother WordPress has, at least a start, so we, the webmasters, can do more cool stuff

    2. More features by default, such as:

    a. Private message

    b. Avatar upload

    c. Memberlist

    d. Quote option in topics

    e. Smilies

    These are some very basic options.

    I’m sure bbPress will be one of the most professional forum software out there one day, it’s not so far yet, but I see it happen.

    That’s why I’m a proud user of this software.

    #77787
    Sam Bauers
    Participant

    @DennisH

    If you have cookies and users integrated it is a pretty trivial amount of code required to force logins to occur on either the bbPress login page or the WordPress login page. It’s also possible to redirect the profile editing pages either way. If you want to list author posts from WordPress on the bbPress Profile page I can’t think of any solution for that except customising your theme with direct queries or using WordPress API if you are deep integrating.

    The only way to get bbPress activity listed in WordPress is via “bbPress Live”. It’s currently broken in WP 2.8 due to widget changes there, but I am planning to fix it one of these days. Again, you could also write custom queries to the bbPress tables in your theme.

    #77061

    In reply to: bbpress and memcache?

    Sam Bauers
    Participant

    We don’t use memcache to store user sessions, user sessions are stored in the browser cookie.

    There is a memcache capable object cache though which is built in to bbPress via BackPress. To enable it (with default memcache settings) all you need to do is add this to your bb-config.php:

    define( 'BB_OBJECT_CACHE_TYPE', 'memcached' );

    Note that this will not work if you are using the memcache object cache in WordPress, and you have WordPress deep integrated into bbPress.

    #78155

    In reply to: Posting error

    johnhiler
    Member

    Woah, did you hack the core? (i.e. edit something besides a plugin)

    I strongly suggest you restore the core code and find another way to fix the earlier problem! If you post details of the earlier problem, we can try to troubleshoot it for ya here.

Viewing 25 results - 23,976 through 24,000 (of 32,570 total)
Skip to toolbar