Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,326 through 25,350 (of 32,522 total)
  • Author
    Search Results
  • #72967
    bruinfelix
    Member

    I even have managed to insert the ‘buddypress admin-bar” (with some functionality, not all!) in my theme :-)

    So, it still has need some any further development ….

    _ck_
    Participant

    Here’s a mini-plugin that will allow higher roles to skip akismet, if you turn the throttle bypass on for any member, they will also bypass akismet with this:

    <?php

    /*
    Plugin Name: Skip Akismet
    Description: Allow moderators, admin and specified roles to bypass Akismet filter
    Author: _ck_
    */

    // add any other custom roles to this list
    $skip_akismet=array('moderator','administrator','keymaster');

    add_action('bb_init','skip_akismet');

    function skip_akismet() {
    global $bb_current_user,$bbdb;
    if (empty($bb_current_user->ID)) {return;}
    $capabilities=$bbdb->prefix."capabilities";
    $role=reset(array_keys($bb_current_user->data->$capabilities));
    if (in_array($role,$skip_akismet) || bb_current_user_can('throttle') || bb_current_user_can('moderate')) {
    remove_action( 'pre_post', 'bb_ksd_check_post', 1 );
    remove_filter( 'bb_new_post', 'bb_ksd_new_post' );
    remove_filter( 'pre_post_status', 'bb_ksd_pre_post_status' );
    }
    }

    ?>

    #72925
    Tecca
    Participant

    Oh, how dumb of me. I just needed to remove &amp;#8212 ; from the line. =)

    EDIT: Apparently the code above keeps changing even between backticks.

    #73007
    _ck_
    Participant

    ah it needs the topic id, sorry, try this

    <?php  remove_action('topicmeta','bb_polls_pre_poll',200); bb_polls_pre_poll($topic_id); ?>

    #73006
    Dave
    Member

    Thanks ck, much appreciated. I’m glad you like it. Thanks for all the great work on bbpress.

    It very nearly works :-) The polls show up correctly, but also this error:

    Warning: Missing argument 1 for bb_polls_pre_poll(), called in /home/content/b/l/o/blogdave/html/forums/bb-templates/blank2rbbpress/topic.php on line 11 and defined in /home/content/b/l/o/blogdave/html/forums/bb-plugins/bbpress-polls/bb-polls.php on line 47

    #73005
    _ck_
    Participant

    Very nice clean layout, I like it alot.

    The poll puts itself by default wherever the topicmeta is, however you can change that. Just a guess, untested, try putting this near the top of your topic.php template:

    <?php  remove_action('topicmeta','bb_polls_pre_poll',200); bb_polls_pre_poll(); ?>

    #5160
    #72989
    chrishajer
    Participant

    svn is short for “subversion” a version control system:

    http://en.wikipedia.org/wiki/Subversion_(software)

    “The latest SVN” means checking out the latest version of the code using the software called subversion. You can do that instead of downloading and unzipping, and it makes upgrades and modifications easier as well.

    #72893
    _ck_
    Participant

    There isn’t any site “larger than recommended” for bbPress ;-)

    There is a bbPress site with nearly 2 million posts and another with 8 million users, so there aren’t any limits.

    I’ll look at the approve plugin and see how hard it is to make work with 1.6

    #72869

    Thanks _ck_,

    It worked perfectly!

    #57461
    bruinfelix
    Member
    #72839

    Awww Jeeeaaaah…. :D

    #72977
    _ck_
    Participant

    A fixed list of avatars would be easy to do, you just upload them yourself into a folder you decide and then have php do a glob of the files in that directory and present them to the member as a form with a radio select. Whatever they chose gets written by name to the user metadata.

    Then you just need simple code in the display post template to show their chosen avatar.

    It would be much safer and faster than other avatar methods.

    #72966
    bruinfelix
    Member

    I started with the ‘default’ buddypress theme, that comes with the package, as i may think it is more generic and easier to study on how things are done ;)

    And thats why i choose the ‘blue’ things .. ;)

    But, first thing first .. Just altering and tweaking the buddypress them a lot right now, and the next step whould be the bbpress theme, so it matches ;)

    #72965
    zeronix
    Member

    Thats great to hear.

    I also love the original theme but selected the Facebuddy because it looks more professional.

    Maybe you try it out and use it too.

    Anyways, if you´d convert one of these themes you´d be my god :)

    #72964
    bruinfelix
    Member

    Currently i’am working on a own BuddyPress theme, based on the original theme provided by the BuddyPress developers. And yes, it will include a matching bbPress theme ;)

    http://wordpress-blog.nl

    #72868
    _ck_
    Participant

    I’ve hardcoded it in the javascript.

    edit it and change

    function edOver(element) {element.style.color="#000080"; element.style.backgroundColor="#ddd";}
    function edOut(element) {element.style.color="#000000"; element.style.backgroundColor="buttonface";}

    to whatever color you’d like

    _ck_
    Participant

    Merlin that code looks vaguely familiar ;-)

    deadlyhifi
    Participant

    …it does keep the paging intact but counts for all the forums (fora?), even the excluded one(s).

    To get round this requires amending the function bb_latest_topics_pages() in functions.bb-template.php.

    $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT('topic_id') FROM '' . $bbdb->topics . '' WHERE 'topic_open' = 1 AND 'topic_status' = 0 AND 'topic_sticky' != 2 AND 'forum_id' != 3;');
    // AND 'forum_id' != 3 - filters out forum 3 on front page paging count.

    #72892
    deadlyhifi
    Participant

    Thanks for the reply _ck_.

    I’m actually using it on a larger site than recommended ;) and we have pretty strict forum policies so ban people for 24 hours when they slip up using the Ban-Plus plugin. The problem is people just set up another account and instantly start posting again.

    We recently had a spammer, a human one who would deliver actual advice to a discussion, but then follow it with links to escort agencies and the like. We banned him but he just signed up again – 5 times in a row!

    The 24 hours approval rate would solve all these problems. Just need to find some time!

    #5125

    I’m trying to customize bbcode buttons on one of my sites (I’ll provide the link upon request for fear of offending anyone).

    My questions…

    I set the text color to grey and would like it to hover black. I’m not sure how to do this without a style sheet.

    Also, when I click one of the buttons – this / appears beside it. How can I make that not happen?

    Thanks,

    The plugin is really great and I look forward to using it more.

    #5155
    alehawk
    Member

    Hi!

    I normally use VBulleting forum, several of my sites runs it but I algo use wordpress in some sites and for a new one I was looking for something in the middle betweeen forum and blog and I thing I got it with bbpress.

    I know it isnt like WordPress but I like it.

    To the point, in VBulletin I got a automatic thread tagger, it will add tags automatically to the posts, it works just fine, you can exclude words like TO, FOR, THE, etc.

    I guess something like that is missing here. I dont know how to code it.

    Tnx!

    #72939

    Still got them.

    I’m not a php newbie.

    Not an expert, but in a comfortable place in the middle :D

    I think I’ve pretty much got over all the bugs in the system.

    If anyone wants my style of integration – this is what I did:

    Installed bbPress in root/forums/

    in header.php of forum template put the following before everything else:

    <?php include('../lib/includes/header.php');//Website template ?>

    in header.php of your own website:

    $forumexplode = explode('/', $_SERVER);

    if($forumexplode == "forums")

    {

    bb_feed_head();

    ?>

    #You can also put in here you own, relative path style sheets from the main website.

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

    <?php if('rtl' == bb_get_option('text_direction')) : ?>

    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

    <?php endif;

    bb_head();

    }

    else

    {

    ?>

    Anything you want to load from normal relative path (if not forums)

    <?php

    }

    ?>

    </head>

    <body id="<?php ($forumexplode == "forums" ? bb_location() : ""); ?>">

    in footer.php of forum template put the following after everything else:

    <?php include('../lib/includes/footer.php');//Website template ?>

    I also prefixed all the forum template’s XHTML id tags with forum_ so they won’t mess with my website’s structure.

    After you’ve done all that, you’re free to style your forum via the css file in the templates directory like you would normally, as well as the structure via the other files.

    And your website, via your own stylesheets.

    Or you can load everything from either stylesheet as long as you remember to load them from their relative path in the header.

    Hope this helps someone ;P

    Peace everyone, hope bbPress will release a version soon which will be easier to integrate.

    Because my system doesn’t really allow for easy user authentication integration on the rest of the website. Can be circumvented via regular user auth integration but that’s more work.

    SMF (Simple Machines Forum) has ssi.php file which you just load into any page and everything is integrated right there and then. Maybe in future versions?

    Me.

    #72942
    Vizworld
    Member

    No luck, still redirects with the ?123412341234 added… Deleting cookies hasn’t helped either.. Tried it about 6 times now :-(

    #72941
    _ck_
    Participant

    First see if it’s just your browser remembering the old redirect by adding something like ?123 on your /bb-admin/ url

    ie. http://example.com/forums/bb-admin/?123

    also try deleting the cookies again for your site

Viewing 25 results - 25,326 through 25,350 (of 32,522 total)
Skip to toolbar