Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,876 through 28,900 (of 32,458 total)
  • Author
    Search Results
  • #58142

    In reply to: bbSync

    slexaxton
    Member

    The fix that I made to that function has been tested now and it seems to work, but the fact of the matter is that it could have very well just broke that function all together. I think everything works to my satisfaction now though, so I probably wont worry about it until I run into some more problems. The only thing that gives me hope in that respect is that previously, that if statement was failing. meaning that the user was not a bb_user:

    if ( !( is_object($user) && is_a($user, 'BB_User') ) )

    so it would create new capabilities for the user (incorrectly at that). But when I changed it to wp_User, for some reason that if statement catches and just returns without creating the new capabilities that break access permissions. I don’t know why this works after looking into the code, but until I see negative side effects, I might turn a shy eye (<— i dont think thats a real saying…).

    Also, on the topic of redundant database entries, I think since we have the integration set up from the WP comment box, it wouldnt be incredibly difficult to simply take out the one database call (somewhere in the wordpress code never-never-land) that actually posts the comment to the database. So we’re not inputting a box from bbpress, but we would effectively stop wordpress comments from being saved to the database since we never actually look at them. This of course wouldn’t work if you were merely copying database entries in order to post the comments as posts in bbPress, but I dont think thats what you’re doing. It probably is two separate database INSERT calls, and I bet we can take the wordpress one out, and have identical functionality (assuming we took out wordpress comments and exclusively use felbbreplies()). It’s merely an optimization though, and unless the user base is larger than any of us probably are going to have it might not matter… I’ll look into it tonight when I get home, and let you know.

    sorry for the long post

    -Alex

    #61117
    richsad
    Member

    OK I fixed it. It looks like we took some bad advice. There was a post saying to make wpmu and bbpress get along I should add:

    if ( isset( $bb->wp_table_prefix ) ){

    $bb->usercookie = ‘wordpressuser’;

    $bb->passcookie = ‘wordpresspass’;

    }

    to the config.php

    That is the code that was messing things up. Without it admin works fine as keymaster and I see no other problems yet.

    #58139

    In reply to: bbSync

    slexaxton
    Member

    This has been scarcely tested, but I think I have a fix for my bug… weird…

    in the bb-includes/capabilities.php file there is a function at the bottom that looks like this:

    function bb_give_user_default_role( $user ) {
    if ( !( is_object($user) && is_a($user, 'BB_User') ) )
    return;
    $user->set_role('member');
    }

    I changed it to look like this:

    function bb_give_user_default_role( $user ) {
    if ( !( is_object($user) && is_a($user, 'wp_User') ) )
    return;
    $user->set_role('member');
    }

    Instead of checking to see if the bb_user existed, we wanted to check to see if the wordpress user existed, assuming we merged our user table. For some reason, this seems like a bug in the bbPress code. Shouldn’t that be a variable prefix to begin with?

    #58138

    In reply to: bbSync

    slexaxton
    Member

    Hey fel, sorry for the delay in replying. I did it the less cool way you mentioned. Just changed the template to call my own modified function with an extra parameter passed to it (the amount of posts in the topic -1). Pretty simple, but worked like a charm. You probably couldnt modify that stuff through your plugin, but you could do some magic by just writing some felfunctions that mostly do that same stuff as wordpress’s functions and then add them to the plugin. idk.

    I do have a weird bug that im trying to figure out, I think crowspeaker had a similar one. I actually think his bug might be two separate bugs.

    I can post back and forth and see comments yadadaada, everything works EXCEPT:

    If I make a post in wordpress as an administrator, I lose my administrator powers in the forum (the forum only). I get the extra capabilities(member) thing. I just delete that database entry and i can go full on again. I havent quite tracked the culprit down yet, but ill let you know. For now I can just hack it and delete that entry after every post if it exists. rofl. dont ever do that though.

    #61090

    In reply to: 9rules.com

    kineda
    Member

    Clips is sweet. I might just have to drum up a nice variation of it for Kineda. :)

    #49636

    In reply to: Emoticons For bbPress?

    petitpoulain
    Member

    i see the emoticons but cant click them ;_;

    i tried making this but didnt work yet :/

    https://bbpress.org/forums/topic/emoticons-for-bbpress?replies=55#post-819

    #61127
    petitpoulain
    Member

    A quick solution is changing where is “kakumei” to “mytheme” on all files.

    But hope a better solution, i tried that too and didnt work :(

    https://bbpress.org/forums/topic/theme-not-found-default-theme-applied?replies=8#post-4407

    #2505
    petitpoulain
    Member

    I installed on localhost. When i first try to change the theme it works, and them i have this message “Theme not found. Default theme applied.”, and can’t change anymore.

    I looked to the link themes and they are wrong, pointing to

    <br>

    ?theme=c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress/bb-templates/kakumeia/&_wpnonce=117154f828

    how can i fix it and remove that ‘c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress’ part?????

    #61104
    Sam Bauers
    Participant

    Assuming you are actually talking about bbPress, the best solution I can think of is to make your cookies expire a long time in the future. Then you just need to login once for each user as long as the cookie is there. Anonymous posting doesn’t sound like a solution as you probably still want to know who owns which messages.

    To set the cookies to expire after ten years, save this to a file called “_loginExpiry.php” in my-plugins:

    <?php
    function bb_login($login, $password) {
    if ( $user = bb_check_login( $login, $password ) ) {
    bb_cookie( bb_get_option( 'usercookie' ), $user->user_login, strtotime("+10 years") );
    bb_cookie( bb_get_option( 'passcookie' ), md5( $user->user_pass ), strtotime("+10 years") );
    do_action('bb_user_login', (int) $user->ID );
    }

    return $user;
    }
    ?>

    #61110
    fel64
    Member

    Yeah, one of the divs at the bottom has to be moved – it’s not inside the right if then flow. I wonder if anyone ever made a trac ticket; this has come up loads.

    #61109
    chrishajer
    Participant

    Start here:

    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Ffreakinasheville.com%2Fforum%2F%3Fnew%3D1

    In the process of making your design valid XHTML, I suspect you will find the reason for this problem.

    One thing that’s weird right off the bat is you have two div id="main" in the pages that work, but only one in the page that looks messed up. IDs should be unique, so maybe one would be main-page and one would be main-forum, or something, but why is it missing on the page that is messed up?

    I think you’re right that it’s an issue with a div.

    #61108
    petitpoulain
    Member

    Solved!

    I deleted the

    $bb->usercookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
    $bb->passcookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
    $bb->cookiedomain = 'http://www.chrismise.com';
    $bb->cookiepath = '/blog/';

    and worked :P

    #61103
    fel64
    Member

    > media-wiki

    Why are you asking here about mediawiki?

    For bb, you need to overwrite the pluggable functions responsible for logging dudes in. They’re all in bb-includes/pluggable.php, and you overwrite them as you would a wordpress pluggable: https://codex.wordpress.org/Pluggable_Functions

    #61107
    petitpoulain
    Member

    the right links

    http://www.chrismise.com/blog

    http://www.chrismise.com/blog/bbpress

    Now i cant login to my blog too(but i solved changing the pass thought phpmyadmin o_O)

    :( . Must have done something wrong.

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://www.chrismise.com/blog'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = 'http://www.chrismise.com/blog'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    /* Stop editing */

    $bb->usercookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
    $bb->passcookie = 'wordpressuser_2de49fc36f5359dc455c4965686f06d3';
    $bb->cookiedomain = 'http://www.chrismise.com';
    $bb->cookiepath = '/blog/';

    #2502
    #58135

    In reply to: bbSync

    fel64
    Member

    Well that’s one error message down!

    Have you tried adding $bb_roles to your list of globals in config.php?

    #2501
    Randy Walker
    Participant

    Hello,

    WordPress lets you install wordpress like so:

    WordPress @ http://example.com/wordpress/

    but maintain your blog at http://example.com/blog/

    Currently, I have my bbpress like so: http://example.com/wordpress/bbpress/ so that I don’t have to worry about cookie issues… but I would like the forums to be accessible at http://example.com/forums/

    How can I do this? :) Thanks

    #58134

    In reply to: bbSync

    joe12south
    Member

    And this when trying to leave a comment via WordPress:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: array_filter(): The second argument, ‘Array’, should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php:271) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390

    #58133

    In reply to: bbSync

    joe12south
    Member

    Got this when saving a post after replacing my “bbsync.php” file:

    Warning: array_filter(): The second argument, 'Array', should be a valid callback in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 271

    Warning: Invalid argument supplied for foreach() in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php on line 275

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/capabilities.php:271) in /home/content/a/d/m/adminsportzzz/html/wp-includes/pluggable.php on line 390

    hrivard
    Member

    Hello,

    I need to make a special CD-version of some site that relies on bbPress (the rest is static).

    Those snapshots have to be placed onto CDs (or DVD-ROMSs or usb keys, it’s to be decided)

    so that http server and bbPress start directly off that read-only media. Web server with bbPress and DB server have to start off CD (or DVD) once CDROM is inserted into computer on Win and MacOS X. It seems that this special web server can be used for such task:

    dvd web server

    Have anybody done smth simliar with bbPress and CDROMs?

    #61073

    In reply to: CSS

    kahm1
    Member

    Yes, I added all of the code to the style CSS, but it looks exactly the same.

    #50217

    I copied the above plugin text to my html editor, saved as reverse.php and uploaded it to /my-plugins and activated it – but nothing happened! Ideas? :/

    #61087

    In reply to: about the license

    Sam Bauers
    Participant

    bbPress is released under the GPL v.2

    Unless you plan to redistribute (i.e. give away or sell) your modified code, you are under no obligation to release your modified source code.

    #61072

    In reply to: CSS

    Graeme
    Member

    Did you copy all of the rules?

    You should have copied all of these rules:

    /* Default table structure
    =================================== */

    /* 100% is a good starting width for most tables - this is a forum! */
    table { width: 100% }

    /* Login form (header.php)
    =================================== */

    .login {

    }

    .login p {

    }

    .login label {

    }

    .login #submit {

    }

    p.login {

    }

    form.login input {

    }

    /* Breadcrumbs (most templates)
    =================================== */
    .bbcrumb {

    }

    /* Notice (profile.php)
    =================================== */

    .notice {

    }

    .notice p {

    }

    /* Front Page
    =================================== */

    #front-page #hottags {

    }

    #front-page #discussions {

    }

    /* hot tags! */
    .frontpageheatmap {

    }

    #front-page #main h2, #forum-page #main h2, h2.post-form, #userlogin, #currentfavorites, #register {

    }

    #front-page #discussions ul {

    }

    .sticky {
    background-color: #ffffd0;
    }

    /* Topic Page (topic.php)
    =================================== */

    /* wrapper for topic */
    .infobox {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    }

    ul.topicmeta {
    display: block;
    margin-left 1.0; padding-left: 0em;
    }

    .topicmeta li {
    display: list-item;
    list-style: square inside;
    }

    #topic-info h2 {
    border: 0px;
    margin: 0px;
    }

    #topic-info {
    float: left;
    }

    #topic-tags {
    top: 1.0em;
    margin-top: 2.0em;
    float: right;
    }

    /* .nav used by topic.php & tag-single.php */
    .nav {

    }

    .nav span {

    }

    .nav span, .nav a {

    }

    #thread {

    }

    #thread li {
    margin-bottom: 1.0em;
    }

    #thread li ol, #thread li ul {

    }

    #thread li ol li, #thread li ul li {

    }

    /* following are used by post.php */
    .threadauthor {
    margin-left: -0px;
    overflow: hidden;
    width: 115px;
    position: absolute;
    }

    .threadpost {
    margin-left: 130px;
    width: 370px;
    background-color: #f5f5f5;
    padding: 10px;
    }

    .poststuff {
    font-size: 0.8em;
    border-top: 1px solid #e5e5e5;
    }

    .num, #forumlist small {

    }

    .postform {
    background: #f0f0f0;
    padding: 1em;
    margin-bottom: 1em;
    }

    .postform textarea {
    height: 12em;
    margin: 5px 0;
    padding: 5px;
    width: 96%;
    display: block;
    }

    .postform label { display: block; }

    .rssfeed { line-height: 20px; padding-left: 23px; background: url( "images/feed-icon-16x16.png" ) center left no-repeat; }

    #manage-tags {

    }

    #manage-tags li {

    }

    .submit {

    }

    .topiclink {

    }

    .topictitle {

    }

    #topic-move {
    margin-bottom: 1.0em;
    }

    /* Content - specific to the main content div
    =================================== */

    #content .frontpageheatmap a {

    }

    #content .infobox li {

    }

    #content .nav a {

    }

    #content .nav a:hover {

    }

    #content a:visited {

    }

    /* Profile Page
    =================================== */

    #profile-menu {
    padding-top: 0.5em;
    list-style: none;
    border-bottom: 2px solid #ccc;

    }

    #profile-menu ul {
    }

    #profile-menu li {
    font-size: 1.1em;
    background-color: #eee;
    padding: 4px 7px;
    margin: 0px;
    display: inline;
    position: relative;
    top: -3px;
    }

    #profile-menu li.current {
    background-color: #ccc;
    }

    #userinfo {

    }

    #userinfo dt {

    }

    #userinfo dd {

    }

    #useractivity {

    }

    .user-recent {

    }

    .user-recent .alt {
    background-color: transparent;
    }

    .user-recent ol {

    }

    .user-recent ol li {

    }

    /* Profile Edit
    =================================== */

    fieldset {

    }

    legend {

    }

    fieldset table {

    }

    fieldset table td {

    }

    fieldset p {

    }

    /* Other
    =================================== */

    #front-search {

    }

    #latest td, #forumlist td, #favorites td {
    border: 1px solid #f5f5f5;
    }

    #forumlist tr td div.nest {

    }

    #latest tr:hover, #forumlist tr:hover, #favorites tr:hover {

    }

    #latest th, #forumlist th, #favorites th {
    background-color: #e9ede8;
    border: 1px solid #f5f5f5;
    }

    #latest, #forumlist, #favorites {

    }

    .alt {
    background-color: #f9f9f9;
    }

    .bozo {

    }

    .alt.bozo {

    }

    .deleted {

    }

    .alt.deleted {

    }

    #60976
    tbronson
    Member

    It seems to be a user thing. I’d been posting from a user that’d been established in WordPress. I updated it to Key Master in bbPress, so it should have all powers. But I found that, apart from tags, I couldn’t delete a post either, same no permission message (same as noted by Jolaedana above). So I logged out and logged in as Superadmin, the default account from bbPress installation, and voila, I can do everything, add tags, delete posts.

    That doesn’t solve the problem. I haven’t tested to see what happens with other users, both already registered from WP and registered through bbPress. But it’s a workaround for me, and a…clue. :)

Viewing 25 results - 28,876 through 28,900 (of 32,458 total)
Skip to toolbar