Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,801 through 20,825 (of 32,499 total)
  • Author
    Search Results
  • #90213
    rohan_shenoy
    Member

    Thanks Kevin.

    Right now, there is no bb_capabilities meta_key for every user. Therefore, I must create it using PHP/SQL code it seems!

    #90212
    Gautam Gupta
    Participant

    Here’s the SQL:

    UPDATE bb_usermeta SET meta_value = 'a:1:{s:6:"member";b:1;}' WHERE meta_value = 'a:1:{s:8:"inactive";b:1;}'

    Change bb_ if you have any other table prefix. Also change " to the correct one.

    #89927
    zaerl
    Participant

    No please pagan. Don’t choose another forum software. I am here for you and you know what? I will work for you for free. I will spend hours in a plugin that will be useful only for you. Normally I get 20€/h when I write code but you are special.

    Don’t hurt my feelings. Don’t say that I’m not able to do anything (for free).

    #89618
    WimTibackx
    Member

    I might not have been very clear on that. Foremost I want to fork WordPress and turn it into a fast, modern and elegant cms. At the same time I want to fork WordPress and bbPress to run as plugins on that cms. I just used the backpress name in my post to avoid using WordPress two times.

    I’m personally not that interested in a standalone forum, but in a forum that integrates on my normal website easily and a normal website that is modern, fast and easily extendible. The current WP codebase might have the fast-part but it isn’t modern and it isn’t easily extendible (ok, it’s better then phpBB for example but more object oriented code wouldn’t do bad at all).

    rohan_shenoy
    Member

    Hi guys,

    I just successfully converted my forum from MyBB to bbPress.

    However, I realized that most of the members are now Inactive! Can someone tell me an easy way to set their roles to Member. I know that I can personally edit their profiles and update their roles, but I can’t do it over 2000 times :(

    Thanks.

    #90124

    In reply to: function bb_auth

    but there is nothing in the function definition for an argument 'logged-in'

    how did you get that?

    #89924
    _ck_
    Participant

    I’ve decided this is not something I want to get into. Way too much work for one specific solution and multi-input fields like birthday are going to be very complicated.

    The sites you see this on already have full-time programmers while you don’t know how to code at all so you are going to constantly rely on begging for free help from others.

    Since you are using WordPress integrated I recommend you just use an existing plugin for it to do this instead.

    #90123

    In reply to: function bb_auth

    Ben L.
    Member

    bb_auth() can be called with 'logged_in' as the $scheme to check if a user is logged in.

    #87841
    chrishajer
    Participant

    Yes, if the updates work as designed. We always were running the trunk version, but for some reason, the updates didn’t always work. I’m not even sure when they run. But the new code appears here automatically.

    #90122

    In reply to: function bb_auth

    @Ben

    Didn’t get your point. I can’t see that in file either functions.bb-pluggable.php

    #89131
    Gautam Gupta
    Participant

    Do you load WordPress’ wp-load.php in bbPress?

    #90121

    In reply to: function bb_auth

    Ben L.
    Member

    There’s also bb_auth( 'logged_in' ) if you aren’t checking if the user can be in bb-admin.

    #90027

    In reply to: bb_get_posts_rss_link

    Gautam Gupta
    Participant

    It is used for the bb_get_uri function (which generates the URL).

    rohan_shenoy
    Member

    It is fixed in trunk, you can copy the changes to your install from here – https://trac.bbpress.org/changeset?new=2383%40%2F&old=2381%40%2F

    Thanks a lot Gautam :)

    On second thought,

    Can you please tell me why the error arised? I had not edited any php file. All I did was fiddled with database!

    #87838
    chrishajer
    Participant

    Heh – the update finally took place automatically. We added that revision to the header a while back, but the code was not being updated here.

    Also, We’re actually running 2442 here – the note I added to the version was the current revision. I should have jumped ahead one when I checked the code in. So, trunk and here are the same thing, despite the meta header.

    #83802
    astaganaga
    Member

    Love it

    Folks,

    please don’t derail this thread with nonsense about another forum software, we’re still trying to sort this one ;-)

    #90119

    In reply to: function bb_auth

    function bb_auth( $scheme = 'auth' )
    { // Checks if a user has a valid cookie, if not redirects them to the main page
    }

    I’m guessing it “Checks if a user has a valid cookie, if not redirects them to the main page”

    First link on google

    #90117

    You’re not an idiot mate, but this is where bbPress starts to struggle a bit – especially with no documentation.

    You want to make a call to the Database directly via SQL (SQLECT * FROM blah blah blah), but thre is no quick fix. You can use the $bbdb class to connect to the database.

    If your’e still struggling, do a hunt for $bbdb with here on google. Remember that search on this site su… has many inbuilt features that are not bugs ;-)

    #90131
    gjoseph
    Member

    You can edit the post.php file of your theme: find the line with post_author_avatar_link:

    Replace <?php post_author_avatar_link(); ?>

    by <?php post_author_avatar_link(132); ?>

    for example.

    #90115

    Yeah, basically the global variable you’re using $forum/$topic/$posts etc. have been codedin such a way that they can only be iterated trhough once.

    You’ll need ot make a separat SQL/data call for each bit of info that you need.

    #90084
    saare2000
    Member

    thanks for the help. I started by maiking a new theme and almost blank css, but got stuck exactly where I need to modify the front-page.php and couldn’t find anything concrete from Docs.

    seems like instead of

    ?php if ( $topics ) : ?

    there should be something like

    ?php if ( $topics || $category-id ) : ?

    … am I correct?

    #90108

    In reply to: logout variable

    Thats the link, just hardcode it. It doesn’t need to be processed by PHP at all. Just add it to your HTML code.

    And yeah, the formatting change is a bug we’ve been stuck with for weeks. It’s not being worked on.

    #90107

    In reply to: logout variable

    Gautam Gupta
    Participant

    You have to edit logged-in.php, that would contain the logout link. login_form functions includes that file if the user is logged in, otherwise login-form.php.

    #90104

    I get the idea that bbpress isn’t being actively worked

    Nope, it is :)

    …and that this Mat individual wants to abandon this project

    Nope. Matt wants to convert it to a WordPress plugin.

    Is this the person who made wordpress really great?

    He’s one of the 500+ people that have contributed to WordPress.

    Is this a good reason not to continue using bbpress? Is bbpress going to die out if Mat doesn’t work on it?

    If bbPress works for you, then use it :)

    If it doesn’t, then don’t.

    bbpress is open source software, it’s not going to die. As long as you’re ok with a minimum year between releases, and a project lead who refuses to answer any questions or pass on any information (and most people are) then you’re fine with bbpress.

Viewing 25 results - 20,801 through 20,825 (of 32,499 total)
Skip to toolbar