Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,026 through 21,050 (of 32,481 total)
  • Author
    Search Results
  • #89300

    In reply to: cannot start installer

    chrishajer
    Participant

    Chances are you did not set you database host. It’s hidden at the end of the database settings as an “advanced setting”. So, after you enter the database name, database user and password, tick the box and find the database host, and enter your host name there. If you don’t enter something there, bbPress looks on localhost. If your database is not located there, it won’t work.

    Do you have a database host setting to enter?

    EDIT: it seems sort of weird that you are getting this error now before having started the installation. Did you edit the bb-config.php manually before going to that URL? Or was there forum software installed here before?

    #75903
    Trent Adams
    Member

    It was my own stupidity. I never realized the hotlink until it was too late ;) Thanks again

    #87823
    mr_pelle
    Participant

    Would it be wrong to suggest that 1) moving from 0.9 to 1.0 wasn’t done yesterday and 2) shouldn’t we test before rolling out this stuff?

    I mean, Homepage being down for 3 days. Plugin directory not showing a months worth of updates. etc etc

    Sadly quoting… :(

    #87821
    _ck_
    Participant

    The plugins section needs a little love, not just the backtick problem but all of the “more” pages are not using the same template for some reason (the formatting is different).

    It would be nice if those “more” pages also had the download count if that’s in the topic meta (can’t remember what Sam told me, I think they are tracked by day, but there also might be an easy summary right in the meta so the template could show echo $topic->downloads or something like that rather easily.

    Oh and tags are not being imported on new plugins into the system.

    I guess most of these problems were from the plugin section previously using a semi-custom version of 0.9 and then they replaced it with 1.0 at stock settings.

    #81503
    _ck_
    Participant

    There’s a much better way.

    My “Hot Tags Plus” plugin makes the output into a static file, already compiled so there’s zero overhead the next time you want to display it.

    You can then just use php’s readfile to include it on any page you want outside of (or even inside) bbPress, you just have to figure out the full path to it on the server.

    #76804
    BrianStevens
    Member

    Alright, it turns out I was a bit preemptive in declaring “Mission Accomplished.”

    I modified your code because it originally didn’t work. Here is where I am stuck.

    http://pastebin.com/rKBL3Wiy

    Now, the link shows up formatted correctly, but it links to the wrong page and then redirects home.

    You see, post_author calls up the user’s Display Name, not their username, which is what post_author calls.

    So that links to http://www.example.com/members/Brian Stevens, rather than http://www.example.com/members/bstevens

    Does anyone know the code to call the username, rather than display name? post_author_id also did not work. I’m not sure how to call their account name.

    #76803
    BrianStevens
    Member

    Close, but the code was slightly off, and I was able to adjust it to my needs.

    Thanks! :)

    #76802
    gerikg
    Member

    try this:

    http://pastebin.com/9Y1mPZwY

    I had a better solution but I can’t remember it now. The code above only works if bbpress is in wordpress folder which 99% of people do.

    #88529
    zaerl
    Participant

    I’m not sure I’m using the ‘WordPress bbPress cookie plugin’ you mention

    https://wordpress.org/extend/plugins/bbpress-integration/

    I have only tested it in my XAMPP sandbox (Debian) cause I had only few minutes for it. Apache/2.2.12, PHP/5.3.0, MySQL 5.1.37.

    The “email is required” error can be spawn only from register.php file line 33 and only if $_POST isn’t defined (well I just made a quick look so I could have written something that isn’t true.) But it’s very strange. If you want to make a quick test do print_r($_POST); and see what you got.

    Damn I can’t help. Maybe it’s the first time in my life in which I would like to have a software bug.

    #87819
    mr_pelle
    Participant

    Code replacement takes place in the Plugins section too… https://bbpress.org/plugins/topic/facebook-like/faq/

    #89272
    eduardosilva
    Participant

    That worked!

    Everything works fine, except for the /bb-admin part using https. This page seens to redirect to the main forum, but switching to http works ok. (This is not a big problem, since my main objective was to have only the forum with ssl).

    Just for the record (if someone else is searching for this):

    The canonical modification can be made editing the header.php of the template and inserting the following line in the head section.

    <link rel="canonical" href="<?php echo "http://" . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; ?>" />

    edit: this line look a bit messed here, check the original at pastebin: http://pastebin.com/626EqW74

    Thank you! :)

    #34431
    gerikg
    Member

    Is there a code to list the admins of a forum?

    #87817
    mr_pelle
    Participant

    Plugins directory not updating: Fixed.

    Seems it’s not retroactive… I mean, Zaerl’s last plugins are now listed correctly, but all other plugins did not get updated (yet): it looks like my last plugins update was a month ago! =P

    Plugins section is finally up to date!! =)

    #89271
    _ck_
    Participant

    @zaerl, yeah fortunately I had the code posted in an old post, but I guess I could have used a pastebin or direct download.

    #89115

    In reply to: s2member integration

    wood2695
    Member

    Aw crap. Same issue that kev was running into earlier, where the forum is turning all “greater than” characters into $gt. So all those “=&gt”s above should read…

    —/

    (equal sign + greater than sign)

    Pain in the… :)

    #89114

    In reply to: s2member integration

    wood2695
    Member

    Okay kids, here’s the solution that I’ve landed on. First, major props to kevinjohngallagher for taking the time to work this out with me. Second, the solution that I’ve come up with is not based on the previously mentioned code. I believe the code that kev had theorized was based on a flow of how s2M handled the end of the registration that wasn’t entirely correct (ie. no actual ‘thank you’ page). Perhaps this was something that could have been set up as such, but I abandoned that for another train of thought, which was… “if bbPress is reassigning bbP-specific roles based on the standard WP roles, so why can’t it do it for other non-WP-specific roles??”

    So to accomplish this, I’ve made edits to two core bbP files. As kev said to me and I agree… “Usual disclaimer about editing the core blah blah blah.” This will likely need to be re-done again if/when I ever update bbPress, but for the time being, it is working splendidly. With all that said, I may be the only one trying to do this integration, but for anyone down the road that is trying to develop a member site with s2Member + WordPress + bbPress forum, here’s my solution (oh, and also based on a ‘deep integration’ of WP/bbP)…

    in /bb-admin/options-wordpress.php, I added

    <br />
    $wpRoles = array(<br />
    'administrator' => __('WordPress Administrator'),<br />
    'editor' => __('WordPress Editor'),<br />
    'author' => __('WordPress Author'),<br />
    'contributor' => __('WordPress Contributor'),<br />
    'subscriber' => __('WordPress Subscriber')<strong>,<br />
    's2member_level4'=> __('s2Member Level 4'),<br />
    's2member_level3'=> __('s2Member Level 3'),<br />
    's2member_level2'=> __('s2Member Level 2'),<br />
    's2member_level1'=> __('s2Member Level 1')</strong><br />
    );<br />

    and then in /bb-includes/functions.bb-users.php, I added

    <br />
    static $wordpress_userlevel_map = array(<br />
    'administrator' => 10,<br />
    'editor' => 7,<br />
    'author' => 2,<br />
    'contributor' => 1,<br />
    'subscriber' => 0<strong>,<br />
    's2member_level4'=> 0,<br />
    's2member_level3'=> 0,<br />
    's2member_level2'=> 0,<br />
    's2member_level1'=> 0</strong><br />
    );<br />

    Because again, as far as the forum is concerned, I’m only really interested in differentiating whether a user is a logged-in member or not and show/hide the forums/topics/whatever using the zearl Visibility plugin based on that.

    This maps all s2M roles to that of a member in bbPress. Roles may then be changed using the dropdowns in bbPress > Settings > WordPress Integration.

    Cheers.

    1BadApple
    Member

    Hi Guys

    I’m new on the block, but have considerable experience with forum software and server enrironments. I also have a little fleet of WordPress sites, LOL. I haven’t grokked all the bbPress stuff yet, but this is a very interesting topic.

    -ck- and paulhawke both made some very good points there.

    Based on what I know of other systems, the observation about cacheing is accurate. Also a fairly competent Forum program is likely to become considerable larger than any blog because of the nature of the communications, which is many-to-many, rather than one-to-many. Tts not uncommon for forums to have fifty to a hundred thousand posts. How many blogs do you know like that? Just like WP, it all has to be iterated to do a page generation.

    Forums are also very spiky, due to their many-to-many, interactive nature. One post begets another or another five. Other than add-ins, Blogs are effectively document retrieval systems where there is a time disconnect between related events.

    For these reasons, I lean toward the idea of either hybrid or standalone development. Another concept would be that the plug-in have either less capabilities or some size limits coded in. Sure people could code around, but they would also be on notice that ‘you may be heading for trouble’.

    I’m looking forward to what’s coming.

    #88921
    mr_pelle
    Participant

    mr_pelle,

    Where in your template did you place that code?

    The first block is actually my bbPress header (you have to put it inside some php tags, of course), while I use the second in my WordPress header and footer when I have to load different content (css, icons, code).

    #89215

    Comparing anything on the bbPress website to the WordPress website is only going to lead to heartache and pain my friend.

    As for the bbPress website not syncing after 22 hours, thats nothing new either.

    IMO, give it closer to 48, and if its still not happening we’ll try and drag Michael away from WP3.0 release to help us again :)

    #88920
    snieves
    Member

    mr_pelle,

    Where in your template did you place that code?

    #89247
    johnhiler
    Member

    I’ve had this problem when downloading plugins while signed out… if I sign it, I’ve noticed it tends to work?

    The issue happens more often than it usually would for me, b/c the plugins install uses 0.8.3 and isn’t signin integrated with the main forum (which uses the latest version).

    At least, I think that signing in will fix the downloads! It could just be random chance that ever time I’ve signed in before, the downloads have started working again! :-)

    #89254
    1BadApple
    Member

    Thanks zaerl, that did the trick…

    It fixed the other issue as well, by my slightly informed guess being that the errors being pushed were killing the page build.

    anyway, all’s well that gets a fix and my necessary PHP education continues.

    Kevin, thanks but… “I don’t think so”, LOL.

    ;-)

    #83004
    kasper777ny
    Member

    Hey whats up gerikg

    Ive done everything step by step that you wrote about. I even reinstalled and started over from scratch. yet it still seems the cookies are not working. wordpress and bbpress are linked because bbpress actually lets my wordpress logins work… but no matter what i do, i still cant get keep myself logged in when going back &amp; forth from wordpress to forum.

    is this a common issue that just is not working yet?


    wordpress mu 1.9.2

    bbpress 1.0.2

    #89252
    zaerl
    Participant

    bb-load.php line 25:

    error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE);

    #34426
    1BadApple
    Member

    I have installed bbpress on my XAMPP Windows XP test server (which is hosting about 6 WordPress 2.92 test sites OK)

    My environment:

    Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1

    During the actual install I got a series of PHP errors.

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-adminincludesclass.bb-install.php on line 1280

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-adminincludesclass.bb-install.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesfunctions.bb-core.php on line 110

    The Installation appears to have worked as when I use phpMyAdmin, the database I set up for bbress is there, and the tables are populated – and if I check bb1_users my ‘key master’ user is there as imput (whatever a keymaster is) other than ‘admin’.

    The BBPress is ‘there’, but when I try to logon I get a cascade of PHP failures.


    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesfunctions.bb-pluggable.php on line 232

    I have tried in several browsers.

    URL: http://bravo.newnetenterprises.com/bbpress/

    It looks like the call in Line 186 is the culprit, but I am not a PHP expert.

    :-

Viewing 25 results - 21,026 through 21,050 (of 32,481 total)
Skip to toolbar