Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,101 through 25,125 (of 32,481 total)
  • Author
    Search Results
  • #63643
    tribsel
    Member

    dont be sorry, I am really thankful and glad for any suggestions or tips :)

    #71595
    TrishaM
    Participant

    Hi John – thanks for the code. I copied it exactly & pasted it into my topic.php (except for the styles) but it still didn’t work for me, so I removed the requirement to log in to vote, with still no luck. Hovering changes the stars color, but clicking does nothing at all.

    Do you think it’s likely that there’s a conflict with another plugin that might be causing it to not work? I’m using the following plugins (in addition to bbRatings):

    Akismet

    Bozo Users

    BBCode lite

    BBCode buttons toolbar

    BBPress signatures

    BBPress smilies

    Topics Per Page

    bbPress tweaks

    Human test for bbPress

    Moderator new post notification

    The only one I think I could do without is the smilies, but I really want to keep the others more than the ratings if I can’t figure out how to get it working……P.S. Two days since I posted on mdawaffe’s blog and still no response…..I just get the impression that he doesn’t want to support this any more……

    #63642
    johnhiler
    Member

    The JQuery issue sounded like it might be related to the WordPress integration?

    https://bbpress.org/forums/topic/favorites-broken-alpha-6

    Sorry if these links aren’t quite dead on – I haven’t seen this behavior before, so grasping at straws a bit! :-)

    #63637
    tribsel
    Member

    Hi, I have exactly the same problem. Do you have any ideas what could cause this? It is problem with theme obviously, because when I switch to default one, everything works. I just have no idea what could i break to do this error. Didnt touch anything important as far as I know :)

    btw – another thing which doesnt work is redirect – like when you forget to enter topic title and then press submit. You will get some error in default green layout (not inside my theme) and displayed link “back” leads to forum homepage, not to the topic post form – where it should… :(

    #71594
    johnhiler
    Member

    Here’s the code from my topic page template – hope it helps!

    <div style=”width:400px”>

    <div style=”float:left”>Average Rating:</div>

    <?php bb_rating(); ?>

    <div style=”float:left”> Your Rating: </div>

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

    <?php bb_rating_dingus(); ?>

    <?php else : ?>

    You must log in to vote.

    <?php endif; ?>

    <br clear=”all”/>

    <?php bb_rating_count($topic->topic_id); ?>

    </div>

    #73638
    esemar
    Member

    That’s a good idea, I haven’t looked at the release candidates for BBpress… learned long ago to let other people get messy on the bleeding edge of technology :)

    What’s the chance that the data format will change when the real version 1 is release, anyone?

    #71593
    TrishaM
    Participant

    Hi John – sorry for the delay in responding…….I have the following in my topic.php file

    <div id="rating">Average Rating For This Topic:
    <?php if ( function_exists( 'bb_rating' ) ) bb_rating(); ?>
    <br />Rate This Topic Yourself:
    <?php if ( function_exists( 'bb_rating' ) ) bb_rating_dingus(); ?>
    </div>

    You can see it in action at:

    http://www.travel-writers-exchange.com/Forum/topic/what-if-the-domain-i-want-is-taken

    But I think you do have to be logged in to see/use it – I’m always logged so I can’t remember ;)

    #73583

    I’m seeing a similar issue to dmbware. Install looks ok until I paste the code in from the plug-in and then I can’t log into WPMU. I remove the code from wp-config and I’m OK. Can’t log into bbpress though and it says my password for admin can’t be reset.

    #71110

    With version 1.0-rc-1 and the default template (or if the current template includes <?php bb_topic_admin(); ?>) and you are logged in with the proper credentials for moving a post you should see the “Move this topic…” dropdown. With Kakumei it appears under the Reply form.

    Lines 49-55 of kakumei’s topic.php:

    <?php if ( bb_current_user_can( 'delete_topic', get_topic_id() ) || bb_current_user_can( 'close_topic', get_topic_id() ) || bb_current_user_can( 'stick_topic', get_topic_id() ) || bb_current_user_can( 'move_topic', get_topic_id() ) ) : ?>

    <div class="admin">
    <?php bb_topic_admin(); ?>
    </div>

    <?php endif; ?>

    #73658

    mcmc, the title of your topic says bbPress and WPMU, but your question is about BuddyPress.

    If you’ve got a BP question, head on over to buddypress.org and ask us over there. :)

    #73490

    Add this to your bb-config.php

    define('WP_AUTH_COOKIE_VERSION', 1);

    #71647

    Log out of everything, kill the cookies, log in via the bbPress side. I had that once or twice, and it was all down to cookie corruption :/

    #73580
    dmbware
    Member

    I have followed video integrating the database with ease. I now have your plug in for WP. I have copied the lines of code and have pasted them into my WPconfig file. What I have noticed with this code, I cant log out off bbpress, and every time I go back to wordpress it logs me out !

    Any step by step directions on the integration would much appreciated !

    #13038
    Rhys Wynne
    Participant

    Hi!

    I have filled in the plugin request form, but I’m completely clueless with SVN. I’ve downloaded TortoiseSVN and uploaded my plugin to the trunk folder (as a zip), but can’t see it on the site. Where do I go from here? Thanks :)

    qccpa
    Member

    Thanks, PRB10 — this resolved my issue.

    #73636

    In reply to: Installation Error

    qccpa
    Member

    Forgot to add… I installed bbPress through HostMonster, and the version used is v0.9.0.4, and the PHP version used by HostMonster is 5.2.9.

    Now, I just tried something suggested in another thread with the exact same problem, and I have fixed this issue.

    So, here goes gm10gm10:

    1. locate a file named .htaccess inside your ROOT DIRECTORY.

    2. open this file to edit using the means offered to you by your hosting provider or FTP

    3. locate a command line which may look like what follows (mine differed from commands in this thread: https://bbpress.org/forums/topic/warning-cannot-yet-handle-mbcs-in-html_entity_decode-in-home2):

    –> the command *may* look like this: AddHandler application/x-httpd-php4 .php

    4. Be mindful that variation on the code may be needed, make a copy of what was written than change it to look like this:

    AddHandler application/x-httpd-php5 .php

    AddHandler application/x-httpd-php .php4

    5. It appears that it needs to be able to read php5 — Mind you, my host provider states PHP v. 5.2.9 so there should be not problem.

    In any case, I hope this helps.

    Regards, pat

    #64575

    In reply to: Plugin localization?

    bump

    Yes, I can’t help but wonder why some of the most used plugins for bbPress (yeah, _ck_’s) are not localized? I looked into the code and saw that they use __() and _e() calls but lack the text domain so they can’t be translated in the usual way…

    _ck_, did you hear that?? ^^

    bbPress plugins altogether have poor localization – maybe the framework isn’t clear?

    #73540
    citizenkeith
    Participant

    Here are the working plugins that I’m using with RC1:

    • Allow Images 0.7.1
    • bb-chunk 0.1
    • BBcode Buttons Toolbar 0.0.9
    • BBcode Lite 1.0.3
    • bbPress signatures 0.2.0
    • bbPress Smilies 0.0.8
    • bb Topic Views 1.6.4
    • BBVideo 0.24
    • Censor 0.1
    • Change Number of Front Page Topics 0.1
    • Check For Updates 0.0.2
    • Hidden Forums 0.0.8
    • Human Test for bbPress 0.9.1
    • Move It 0.14
    • Post Count Plus – Dynamic.Titles & More! 1.1.11
    • Quote 0.2 with add-ons by fel64
    • Simple Onlinelist 1.5
    • Strike 0.1
    • Unread Topics 0.4
    • Wiki Post 0.1.5

    Plugins that AREN’T working:

    • Admin add user 1.3
    • Approve User Registration 0.3

    #73539
    deadlyhifi
    Participant

    Working Plugins:

    • Human Test for bbPress 0.9.1
    • Report Post 0.1.4
    • Super Search 0.0.3
    • C*nsor 0.1
    • bbPress Smilies 0.0.7
    • BBcode Lite 1.0.3
    • BBcode Buttons Toolbar 0.0.9
    • Allow Images 0.7.1

    #73569
    websydaisy
    Member

    Well, I totally can’t figure it out. I took the ultimate cop-out hack and in front-page.php, I removed

    <?php new_topic(); ?>

    and replaced it with ADD NEW

    <a href="http://www.endsofearth.com/forum/?new=1">ADD NEW</a>

    which works just fine, so I am happy with it.

    #10598
    Callum Macdonald
    Participant

    I’ve just synced cookies on bbPress 0.9.04 and WordPressMU for the second time. I’ve read a few places that it doesn’t work or is difficult, so I wanted to share my solution. It’s really very easy. I wrote it up in a blog post:

    http://www.callum-macdonald.com/2009/05/17/bbpress-09-and-wordpressmu-27/

    It was remarkably simple (at least to me) to get it all working. Summary of steps:

    1) Set all _KEY values to the same in WordPress and copy to bbPress.

    2) Repeat for _SALT values.

    3) Set COOKIE_DOMAIN and COOKIE_PATH

    4) Settings > WordPress Integration > Show manual config settings, copy into bb-config.php.

    5) From 4, change the authcookie value to wordpress_logged_in_

    Step 5 won’t work exactly on WordPress standalone because it uses a hash in the cookie name. You can probably check the WordPress cookie in your browser and set it manually. Or maybe it’ll “just work”.

    Then I whipped up a plugin to set / unset the other 2 WordPress cookies on bbPress login / out. It only works for WPMU right now. Somebody could probably improve it to work for WordPress. Code here:

    http://www.callum-macdonald.com/download/wpmu-cookies.php-0.1.zip

    This might be useful to somebody… :-)

    #73554
    Sam Bauers
    Participant

    Oh, I forgot, add this to your bb-config.php

    define('WP_AUTH_COOKIE_VERSION', 1);

    When you upgrade to WordPress 2.8 later, you will need to remove that line.

    #10417

    Topic: bbSocialize

    in forum Plugins
    kingscast
    Member

    Looking forward to using this plugin.

    For those of us who are a little slow on the PHP stuff, what and where do you have to insert code into profile.php?

    Thanks for your help

    #10418
    gm10gm10
    Member

    During installation, when I tried to access the intended URL, I got the following error code. What do I need to correct?

    Any help in layman’s language is much appreciated in advance.

    gm

    Warning: require_once(../bb-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/xxxxxxxxxxxxxxxxxxxxx/admin.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required ‘../bb-load.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/xxxxxxxxxxx/public_html/xxxxxxxxxxxxxxxxxxxxxxx/admin.php on line 4

    _ck_
    Participant

    Here is an untested variation of Mark’s WP plugin for bbPress, it’s a little more sophisticated in that it tries to return the person back to the topic they were in if it exists or if they were starting a topic, to the forum they were posting in.

    <?php
    /*
    Plugin Name: Moderation Notification
    Author: _ck_
    */

    add_action( 'bb_post.php', 'moderation_notification', 999);
    add_action( 'bb_head', 'moderation_notification_alert', 999);

    function moderation_notification($post_id) {
    if (empty($post_id)) {return;} // invalid post
    $post = bb_get_post($post_id);
    if ($post->post_status==0) {return;} // not moderated

    if ($post->post_position>1) {
    $link = get_topic_last_post_link($post->topic_id); // return them to the last known good post in the topic
    } else {
    $link = get_forum_link($post->forum_id); // return them to the forum that they posted in since there's no valid topic yet
    }

    $link=add_query_arg('moderated','true',$link); // set the flag

    wp_redirect($link);
    exit;
    }

    function moderation_notification_alert() {
    if (!isset($_GET['moderated'])) {return;}
    $out = <<<EOF
    <script type="text/javascript">
    <!--
    alert ("You post was successfully processed, \n\n however it was placed on hold and will appear once a moderator verifies that it is not spam.\n\n Please be patient and do not resubmit your comment.");
    //-->
    </script>
    EOF;
    echo $out;
    }

    ?>

    You can see the notice by putting ?moderated=true on one of your urls

    I don’t recommend trying to purposely cause spam to test it because akismet might flag you globally as a spammer and you’ll end up being bozo’ed across multiple forums/blogs.

Viewing 25 results - 25,101 through 25,125 (of 32,481 total)
Skip to toolbar