Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,826 through 30,850 (of 32,491 total)
  • Author
    Search Results
  • #1560
    #1559
    wittmania
    Member

    I have recently integrated a bbpress install with an existing wordpress blog/site. The WP blog had three users prior to the integration, and all three made it over to the bbpress install with no problems. However, today a new user registered on the WP side and her ID defaulted to 999999999.

    I proceeded to register a “dummy” user, just to see what happened. The next registration ticked up to user ID #1000000000. While I doubt that this will lead to any serious problems, it seems silly to me to have user IDs starting around ONE BILLION, when even 1,000 would be plenty high enough for my lil’ ol’ site. Having McDonald’s-esque “XX billions served” sized numbers seems to fly in the face of the “Code is poetry” mantra.

    Any ideas as to what’s going on here?

    #55284
    chiensavant
    Member

    Hi,

    sorry for the late reply, but the instruction given to me were not all the clear, I apparently was looking for a solution that wasn’t the one that would work for us.

    To sum up the info I have, user authentification will not rely on BBpress authentification, but on our own user table (login and password) called by a simple htaccess file.

    AuthUserFile /home/login/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Private"
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

    So our users will not need to register a new account to get access to BBpress (that is intended to be private only) and they’ll just use their existing account.

    We might use cookies to allow easy naviguation between BBpress, WordPress and the login page (that will contain a load of other things)

    I haven’t seen any tips on wordpress forum either. Maybe my eyes were not wide open at the time ?

    Can it simply be done without rewriting the whole login process ?

    #55493
    ardentfrost
    Member

    Just go to php.net and look it up. They always have good code samples there. I wrote an entire xml parser (first thing I ever wrote in php) 2 years ago from code examples I found on php.net

    #55492
    macwise
    Member

    fel64:

    This reinvigorate looks awesome…can’t get in right now, as it’s on a limited beta. However, I’m on the list, and looking forward to trying it out. Thanks

    Ear1grey:

    I know this question is in the wrong place, and sorry if it’s obnoxious. As you guessed, I’m being lazy. I am a little out of my league here in asking for what I have, so I thought I’d get what suggestions I could first from the forum I frequent most. I hope in time you can learn to forgive my impetuous nature. ;)

    chrishajer:

    Thanks for the suggestions, as well as the links. I’ve looked into this a bit, but was really interested in a pre-existing solution I could glean from. I’m not really up on cgi, so a php-only solution is what I’d like to find. (not sure if this exists). I’m pretty good at analyzing something and gleaning what I need from that, so I figured that would be my best shot at getting this thing started.

    #1556
    lonelywo
    Member

    The link to http://codex.wordpress.org/Ergate/wpmu_bbPress_integration

    but its title “OLD INSTRUCTIONS”

    After I try modify config.php

    http://bbpress.org/documentation/integration-with-wordpress/

    My blog user login fail to bbpress.

    msg show “Cannot select DB.”

    any good idea?

    #55204
    Null
    Member

    Yeah, I could make another admin page but that will need another extra php file too. It’s more need and tidy to use a hook like in the submenu.

    Going to request some hooks then :)

    #55510
    Trent Adams
    Member

    Your wordpress address at the bottom is http:/localhost and wouldn’t it be http://localhost/wordpress/ ? What is the url that you can access wordpress at? I am assuming that it is what I said with http://localhost/wordpress/. If that is the case, these would be the changes:

    $bb->wp_home = 'http://localhost/wordpress';
    $bb->wp_siteurl = 'http://localhost/wordpress';

    As well, if that is the actual URL that you use for wordpress, then these:

    $bb->domain = 'http://localhost/wordpress';
    $bb->path = '/bbpress/';

    Then, you have another problem and need to change to this:

    $bb->akismet_key = 'false';

    Try that and report back.

    Trent

    #55500
    Trent Adams
    Member

    Will this work?

    <?php echo "<a href="".get_user_profile_link($member->ID)."">".$member->user_login."</a>"; ?>

    Trent

    #55499
    Justin Tadlock
    Participant

    Doing that for the permalink didn’t work for me. I’ve tried it several times.

    There are a couple of things I want to do with the “author” as opposed to the “last poster”:

    1) On front-page.php I want to put the topic author’s name under the link to each of the latest discussions.

    Ex:

    Link to topic

    By link to topic author

    2) On the topic pages, I want to put the name of the post, then link to the post author.

    Ex:

    Topic Title

    By link to topic author on Date/Time

    Rest of post……

    This type of setup is already on my forum. I’ve already got the author’s name already set up on the forum. I just need to get the author’s profile link.

    #55498
    Trent Adams
    Member

    For the permalinks, put the following in your .htaccess file in your root and then turn mod_rewrite on in your config.php:

    Options +MultiViews

    What exactly do you want for the last poster versus the author? Explain to me like I am 5 years old because sometimes I act like it ;)

    Trent

    #1553
    Justin Tadlock
    Participant

    I finally got everything set up at Books In Bed. The Forum is working well too. Tell me what you think of it so far.

    The problems I have had are linking to a topic author’s profile page. I can get the “last poster’s” profile page link though.

    What I think I need to do is get the author’s “user id” to do this, but for some reason I can’t get it.

    Also, I’ve tried everything on this site to get pretty permalinks working (I use GoDaddy). They’ve always worked fine on my WordPress blog, but not on bbpress. The only thing I haven’t done is /bb-admin/rewrite_rules.php because I keep getting an error when I go to that page.

    #55489
    macwise
    Member

    Many, many, many ulterior motives. ;) First of all, this is happening because I can’t seem to find any solution that will search for and filter what <u>I</u> would like it to search for and filter. Instead, it gives the cookie cutter solution.

    I am also on Dreamhost right now, coming from a dedicated hosting environment, (my own server), and since I can’t configure the stats program they have installed, nor can I easily install another of my own, I thought I’d try my hand at learning how to parse files myself.

    So this is partially for education, partially for usefulness, and partially with the hopes of developing something that the gen. public might find helpful.

    Am I wasting my, (and everybody else’s) time?

    #55488
    fel64
    Member

    Meh, I have little/no experience with handling files myself. Might be easier, though, for you to modify some existing code? There’s already been a lot of very sophisticated work done in statsgathering. I’m thinking of Reinvigorate, for example – not trying to discourage you, just find the most practical solution? I mean, are you in it purely to make the plugin or is there some ulterior motive? :)

    #55328
    drmike
    Member

    Shows you how often I go into the admin side. :)

    Fixed. Thanks.

    -drmike

    #55479
    flaerpen
    Member

    It works :D

    Thanks!

    #55478
    fel64
    Member

    There is a line in the quote plugin that converts all special characters to their HTML equivalents.

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>');

    (Some code is cut off to the side because of the forum’s limited width) I assume that the problem lies here. My guess is that it returns a different character format to the one your browser is using?

    Get your quote.php file in your plugin folder and change this code to

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>', ENT_COMPAT, 'UTF-8');

    Upload the new version to your server and see if it works. :) If not, undo changes, save and upload the original file.

    That’s just my guess; the first thing I would try. I don’t actually know.

    #55481
    fel64
    Member

    It depends on the amount of work you’re willing to put in as well as the complexity of your WordPress theme (assuming that you’re trying to match your bbPress theme to your WP theme?). Using CSS (which is what you use to style the site) is simple and enjoyable to me, but you may prefer to just get someone else to do it.

    Everything is in plain English and the format is simple. Have a look at http://www.w3schools.com/css/ :)

    #55439
    fel64
    Member

    Very simple way to softly resize your images: go to your theme’s folder, open style.css, and copy in this code at the bottom:

    img {
    max-width: 600px;
    max-height: 800px;
    }

    You can change this to any values you like, but I think 600px width works with the default theme at least. Make sure there are no spaces between the number and the px. If you don’t care about height you can just take that line out. Any bigger images will be scaled down automatically – they will still load at full resolution/size, but they will display smaller. :)

    #55438
    chrishajer
    Participant

    > 1) wenkong posted a topic i think in chinese

    > and now i cant delete the tag he created because

    > it wont work, he said its something to do with

    > utf8. How can I delete that tag & how can I stop

    > it from happening again

    Sorry, I can’t help with the tags. Maybe this will help: https://bbpress.org/forums/topic/433

    > 2) How many tags will appear on the start page?

    > does it go forever or is it limited to 100 etc

    It is limited, never checked how many, but it’s

    taken care of automatically.

    > 3) is there any examples of what the allowed

    > markup with backticks looks like (If ?I dont

    > know how it works Im sure my users won’t)

    <?php /* this is a block of code in backticks */
    echo "Hello.nn";
    ?>

    > 4) Is there a way to add images with a

    > softresize to a set size say 500px etc

    > or a plugin that can do it

    Not that I know of, and I know why it’s a problem (it messes up the layout when wide images are used.) Maybe just post the image parameters and ask people not to insert large images. Ban those who won’t comply :)

    But maybe someone will consider the image size limits for a plugin.

    Have fun

    #55224
    LMD
    Participant

    I’ve managed to create a plugin that adds titles to replies – and documented it. The plugin is available for download from my website:

    http://www.classical-webdesigns.co.uk/articles/36_bbpress-plugin-add-titles-to-replies.html

    Comments and suggestions are welcome.

    One other thing, re:

    “Preview sounds good – but better yet would be an AJAX thing that means you don’t even have to reload the page when you post. :D

    That’s what I meant by using the DOM. In fact there would be no need for AJAX even – by using the javascript DOM you can ‘preview in place’ the post you are currently working on. If users do not have javascript enabled, then graceful degradation would mean that a button to view the preview on a separate page would be visible.

    #55157
    talgalili
    Member

    Thanks chrishajer.

    Since I did not yet open the forum, I don’t see a reason to try and patch it to work. (especially when I don’t know how people are supposed to login if I remove the TEMPLATE)

    I hope the issue will be resolved soon, so I could open up the forum :)

    Cheers,

    Tal.

    #55467
    Atsutane
    Member

    it seem to me u set $bb->mod_rewrite = true; Follow the instruction here and u will be fine

    #55156
    chrishajer
    Participant

    I was only kidding about making people use FF. :)

    And from experience, it might take a week or so before the ticket is assigned, unless it’s affecting a lot of people or is an easy one to fix. I wish I had the answer but I have a hard enough time just reading from right to left.

    Did you try removing the / class=”login” / from the template for the login form and see if the problem goes away in IE? At least that way it would be visible in IE, although not styled and ugly. It could be used at least temporarily until it’s resolved.

    #55464
    Atsutane
    Member

    If u want to integrate your wp with bbpress then u should use the same database. But if u dont want, having new database also ok :)

Viewing 25 results - 30,826 through 30,850 (of 32,491 total)
Skip to toolbar