Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,901 through 28,925 (of 32,499 total)
  • Author
    Search Results
  • #61137
    chrishajer
    Participant

    Do you have the allow-images plugin? Just curious.

    I think it’s related to this (still unresolved):

    https://bbpress.org/forums/topic/cant-put-code-between-backticks-after-upgrade?replies=4#post-8736

    #61118
    SimOnline
    Member

    I have this problem as well, but haven’t added the code mentioned above to my config file. I’ve added another user as a key master, and that one can add forums, but I’d really want the original admin to be able to do that. Any suggestions?

    #58156

    In reply to: bbSync

    vitovarducci
    Member

    I’m not sure what I’m doing wrong.

    I filled out all of the proper synchronization options and everything registered correctly.

    But when I go to migrate from bbpress post, I receive this error:

    WordPress database error: [Table 'db218346346.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts

    WordPress database error: [Table 'db218346346.wp_bbpress_post_posts' doesn't exist]
    SELECT * FROM wp_bbpress_post_posts

    How do I fix this?

    Thank you for your help!

    #61134
    andrew79
    Member

    Yeah,

    Here’s my forum

    http://smi.robertdesilva.com/forum

    Yupe I’m using the backticks …. `

    This is what I’m trying to do

    <img src="http://somewebsite.com/someimagefile.jpg" />

    Thanks,

    Andrew

    #58154

    In reply to: bbSync

    fel64
    Member

    Nice one jaz. I’ll try it (note that I never had this problem) and add it tonight I hope. Has anyone else had this problem, can they try it?

    Hehe, slex, at least it’s alright now. Do you actually know what caused your loss of privileges? It may be important.

    Re. database redundancy, I’d say no. It’s a one-time database hit and I feel somewhat better letting the comments actually sit in the database, so that once someone’s had enough of bb or bbsync they still have _something_. But if you can code a neat implementation, I’ll gladly branch the code.

    #61162
    iamfyrestorm
    Member

    I’ve done a little more troubleshoot, although it’s gotten me nowhere, but I’ll post it here in the event that someone may be able to help me:

    Line 81 in the bb-includes/default-filters.php file is:

    bb_register_view('no-replies', __('Topics with no replies'), array('post_count'=>1));

    I did a search in the files and “bb_register_view” pops up in 3 files:

    default-filters.php

    functions.php

    template-functions.php

    #58153

    In reply to: bbSync

    jazbek
    Member

    You didn’t scare me, but you made me laugh.. :)

    #2516
    iamfyrestorm
    Member

    I’m doing a fresh install of bbpress. I’m not linking it to wp.

    I’m getting this error:

    Fatal error: Call to undefined function: __() in /home/2816/domains/ridetoremedy.com/html/community/bb-includes/default-filters.php on line 81

    My config file is correct. It’s linking to the same db as wp (simply because there’s no reason to use a different db if I can just prefix the tables differents, i.e. bb)

    Any help would be appreciated. I don’t want to have to go to a different forum system, but I really thought this would be easier than it’s turning out to be.

    Thanks :)

    #58151

    In reply to: bbSync

    slexaxton
    Member

    EDIT:THIS IS NOT A VALID POST IT WAS USER ERROR (aka im dumb)

    I may have spoke too soon. I dont know what caused it, but i lost all keymaster functionality. Nothing gets added to the database, but it doesnt recognize me as an admin. I even reverted back to old code, and keymaster has no “keymaster” capabilities, even though the database clearly shows the entry that says it does.

    I’ll let you guys know if I find out the problem. :(

    #58149

    In reply to: bbSync

    jazbek
    Member

    Yeah, I think that did it. I just tested a post as a regular user and it worked without any errors. I am short on time right now so if anyone else has a chance to try it out, that’d be cool. Here’s all I did (all in felsyncpost()):

    1) added $bb_current_user to the globals

    2) commented out line 36

    3) added $bb_current_user = $current_user; in its place.

    Try it out. :)

    #61131
    chrishajer
    Participant

    Can you wrap it in a backtick, which on a US keyboard is on the upper left, on the same key as a tilde, next to the number 1?

    Like this:

    <img ...

    (that img tag is wrapped in backticks to make it appear)

    #58148

    In reply to: bbSync

    fel64
    Member

    Jazbek, you may well be right. I believe my original reason for that code was that I ran into problems with bb not properly initialising the user and that $bb_current_user would not be set (hence, no posting either). However, if that fix works then I may well have made a mistake then (or in remembering). Would be lovely.

    #2509

    Topic: forgetIT

    in forum Showcase
    livibetter
    Member

    Hi there,

    After I saw a British tv show “IT Crowd”, I decided to create a forum for all IT workers over the world. You are welcome to join even you are not a IT person like me.

    The name of this forum is “forgetIT“. Yes, forget IT, you read it correctly.

    Huh? I said forget IT. :)

    If you have any suggestions or ideas for this forum, please let me know. I am learning.

    #58146

    In reply to: bbSync

    jazbek
    Member

    slex, i just noticed that the code in my reply was screwed up and fixed it just now. i put a link to trac for the line where the user is being set, might want to re-read.

    #58144

    In reply to: bbSync

    jazbek
    Member

    Actually, I figured out when in the felfunctions the “member” capability was being set (you may already know this) – line 36

    I thought that maybe the globals should be changed to

    global $bb_current_user;

    instead of

    global $current_user;

    That seemed to work when I was posting in wordpress as an admin, but I just tried posting with another user account and got an SQL error, so no dice. I have some other stuff to work on right now, but will come back to this later. Maybe the global $bb_current_user needs to be set to the $current_user instead of doing

    bb_set_current_user( $current_user->ID );

    ?

    #61130

    In reply to: WPMU + 404 error

    jazbek
    Member

    my rewrite rules for the document root where wordpressmu is installed are (note, my bbpress is installed in the /discuss directory):

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d [OR]

    RewriteCond %{REQUEST_URI} ^/discuss(.*)$

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

    then, in my bbpress directory, i put in my .htaccess:

    Options +MultiViews

    if the +MultiViews thing doesn’t work for you, there’s something else you can put in there (only needed if you want to use the pretty-permalinks). Described here:

    https://bbpress.org/documentation/faq/#pretty-permalinks

    #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;
    }
    ?>

Viewing 25 results - 28,901 through 28,925 (of 32,499 total)
Skip to toolbar