Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,426 through 28,450 (of 32,462 total)
  • Author
    Search Results
  • #55023
    fel64
    Member

    Be careful with modifying code files unless you’re familiar with SVN, you’re going to have troubles upgrading. :/

    #55022
    colindb
    Member

    I don’t know how to write plug-ins, but I just installed bbPress and wanted to be able to approve new users. I messed around with the code just enough to get what I needed working, here are the changes I made:

    Starting with the function bb_send_pass function in bb-includes/registration-functions.php: I added an optional third parameters, so the function signature now looks like:

    function bb_send_pass( $user, $pass, $toAdmin = false ) {

    If the toAdmin flag is set I want this email to go to me, not the requesting user. So, just above the “$message = …” line, I added this:

    $recipient = bb_get_user_email( $user->ID );

    $rawRecipient = $recipient;

    if ($toAdmin)

    $recipient = 'myemail@example.com';

    I’m sure there is a better way to grab an administrator’s email, but like I said, I don’t know anything about bbPress… And what’s this about $rawRecipient? To make my life easier, I’m also including the email address in the email’s body (so I can forward it to the correct person without having to look up their info again). I did this by adding “Your email:” to the “$message = …” line:

    $message = __("Your username is: %1$s nYour password is: %2$s nYour email is: %4$s nYou can now log in: %3

    $s nnEnjoy!");

    And then including “$rawRecipient” as the 4th parameter to the sprintf call at the end of the function. Again, you could get fancy here (only include the email address if it’s going to an admin, for example), but whatever, this works. :)

    Okay, with that function done, we just need to change the registration code that calls it. I went to the bb_new_user function in bb-includes/pluggable.php. Just before that function returns there’s an “if ( defined (‘BB_INSTALLING’) )” check. The else case calls bb_send_pass (the function we just changed). Add a third parameter (sending ‘true’), and the registration code should now send an email to you instead of the newly registered user.

    As a final touch, I updated the registration success page (bb-templates/kakumei/register-success.php in my case), telling the user that an admin will verify their request and then email them.

    Hope this helps someone out.

    #62180

    In reply to: help please anyone…

    livibetter
    Member

    sub-domain? did you mean add-on domain?

    You just need to move (re-install) all bbPress files up a level. If you installed them into public_html/konpaforum.com/bbpress/, then mv public_html/konpaforum.com/bbpress/* public_html/konpaforum.com/

    If you want to integrate into WordPress, then leave them and install WordPress in public_html/konpaforum.com/, would be a good idea.

    #62147
    goldfiinger
    Member

    I never used the comic sans in the end :)

    #62176

    In reply to: help please anyone…

    chrishajer
    Participant

    Oh yeah, this doesn’t look right (the path is wrong):

    http://konpaforum.com/bbpress/

    :D

    #62174

    In reply to: help please anyone…

    chrishajer
    Participant

    My guess is that you are trying to use permalinks and they’re not supported by your current configuration. I would try this first. In your config.php, find the mod_rewrite line, and make it look like this:

    $bb->mod_rewrite = false;

    That should make your forum accessible and should take care of the 404 error as well, at least for the forum software. The actual error you have there is because when a page cannot be found (like your forum pages) Apache is configured to serve up 404.shtml, but that file is not present. You could create one so that is shown when a 404 file not found error occurs.

    You access your admin panel by logging in as the keymaster (user you created when you created the forum) and then click the “Admin” link next to your logged in name. If it’s not there, you are not logged in as the keymaster. I would post the direct URL to bb-admin but it just redirects if you are not already logged in as keymaster. Try that first.

    #62173

    In reply to: help please anyone…

    livibetter
    Member

    Set

    $bb->uri = 'http://konpaforum.com/bbpress/';

    in your config.php

    (edit: missing tailing semi-colon)

    #62144
    chrishajer
    Participant

    Sorry, still confused. From config.php:

    // Set to true if you want pretty permalinks, set to 'slugs' if you want to use slug based pretty permalinks.

    So, true, false and 'slugs' are all valid. Can you show an example of a slug based permalink vs. just a pretty permalink? I understand false pretty well since that’s what my forum uses.

    Thanks.

    #62169
    chrishajer
    Participant

    Just change it in config.php:

    // What are you going to call me?
    $bb->name = 'Totally New Site Name';

    #62167
    fel64
    Member
    #62166
    goldfiinger
    Member

    thanks but it’s still not working, i’ve changed both too

    font: “Comic Sans MS”;

    Still no joy :(

    #62165
    fel64
    Member

    Yeah. You need to have quotation marks around any font names containing spaces.

    (edited)

    That would be font-family: "Anything but Comic Sans MS for the love of god";

    Note you can also get a whole bunch of font declarations into one statement: http://www.w3schools.com/css/pr_font_font.asp

    #62143
    fel64
    Member

    The slug is why-my-kittens-suck.

    Slugs are used in pretty permalinks. That bb has two conventions, 1 and slugs, means nothing; they’re just used to denote the difference between using the topic id and the topic name in the url.

    #58671
    fel64
    Member

    No. Unlike '/bbpressfolder/' (I presume), 'wordpressuser' and 'wordpresspass' are not placeholders for your actual value: they are the literal values you will have there. Check your wordpress cookie; those are what they use. A part of the structure is:

    wordpressuser_site-unique hash=your username
    wordpresspass_site-unique hash=hash of your password

    With his settings, bb should now be using that too.

    #55395
    kaolin
    Member

    I just ran into this myself… Didn’t think to check here for a workaround. I have bbpress installed as /forum/ and my approach was to add an htaccess with the following:

    RewriteEngine On

    RewriteBase /forum/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^([^/]+)/(.*)?$ /forum/$1.php [PT,QSA]

    It seems to be working fine.

    #62160
    mvh
    Member

    OK, wait. I have changed the links to TRUE, so i am not on SLUGS anymore.

    And I am getting the Error 404 – Not found!

    Help! >.< please :)

    What am i doing wrong >.<

    #2736
    mvh
    Member

    I have tried to use pretty permalinks and am having no luck so far.

    Could someone please help me :)

    I tried using the

    Options +MultiViews

    and when I click on the links I get 404 Error.

    Then I tried using the

    rewrite-rules.php.

    and I get:

    blockquoteInternal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    blockquote

    If you go to http://www.328solutions.com you will see it! (That is with the rewrite-rules.php)

    Does anyone know what I am doing wrong? If you need more information please let me know! I really want to use BBPRESS as I love WordPress!!! And don’t really want to use any other forum. :)

    oh btw, seasons greetings :)

    #62157
    fel64
    Member

    You’d have to change some core code.

    #2733

    Topic: Got an Idea?

    in forum Plugins
    livibetter
    Member

    This is stolen from WordPress Extend Ideas. I made (or I should say I duplicated or pirated?) this for getting your ideas to be my motivations. But, while writing this I found out this not just “Ideas”, this actually is an application of how to have different themes for your forums and topics. And you can also have permalinks like /ideas/ or /ideas.php.

    No modifications on core files, but need to add two files. 1 plugin file, some modifications on theme.

    You can see this “Ideas” on my forums. Scroll down to the bottom, you will see it. Click on “Got an Idea?” or “Ideas for bbPress” (read the URIs, notice the differences?).

    This is not ready for a release, however you can download it from repository and read this draft documentation (if you want to play with it).

    And you can post your ideas for “Ideas” or others.

    #62127

    In reply to: stick/closed topics

    fel64
    Member

    Wouldn’t it be best to mark the entire topic link up? Sounds good, though.

    Anyway, for enhancements add a ticket on https://trac.bbpress.org/ and mark it as such. :)

    #2727
    ndb
    Member

    You know how topics have [sticky] and [closed] before the title. It would be great if that text in both cases ware before link and in span like this:

    <span class="sticky">[sticky]</span> <a - link to the topic

    <span class="closed">[closed]</span> <a - link to the topic

    so we could add icons to these topics in css :) for sticky it is easy to change in template but i can’t change this for closed topics

    #62153
    chrishajer
    Participant

    In WordPress, when a page title is the same as a previous one, the slug gets a number appended to it, like this-was-written-about-before-1, so I imagine bbPress has the same protection built in. The slug needs to be unique.

    #62120
    Ben L.
    Member

    I think changing

    if ( !bb_current_user_can( 'edit_user', $user_id ) ) {
    $sendto = bb_get_option('uri');
    wp_redirect( $sendto );
    }

    in profile-edit.php to

    if ( !bb_current_user_can( 'edit_user', $user_id ) || (!bb_current_user_can('use_keys') && $user->has_cap('use_keys')) ) {
    $sendto = bb_get_option('uri');
    wp_redirect( $sendto );
    }

    would fix the problem.

    #58666
    livibetter
    Member

    yes.

    I think you only need

    $bb->cookiepath = '/';

    If this is not working, please check your browser’s cookies. See what WordPress and bbPress send to you with what host and path. If you not sure what to check, try to clean cookies, then log in WordPress and bbPress.

    #55394
    livibetter
    Member

    (edit: How did you know it was working? I didn’t notice your 404 doesn’t give the url information. Please use the following code for testing

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule redir youcantfindme [R=301,L]
    </IfModule>

    This time please check the browser’s address, and make sure you read http://make2for1.com/youcantfindme. If you do read that, please continue to the following testing.)

    Please place $bb->debug = 1; to your config.php

    Add exit; right after bb_repermalink(); in forum.php like

    <?php

    require_once('./bb-load.php');

    $forum_id = 0;

    bb_repermalink();
    exit;

    Then navigate to http://make2for1.com/forum.php?id=1 and http://www.make2for1.com/forum/general, once you done, post the result and DO NOT REMOVE this modification (allow us to check it).

Viewing 25 results - 28,426 through 28,450 (of 32,462 total)
Skip to toolbar