Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,301 through 21,325 (of 32,481 total)
  • Author
    Search Results
  • _ck_
    Participant

    Thanks for the feedback.

    Good to hear they fixed it in 1.0 – it’s actually easy to fix by hacking the core, only two characters need to be changed that way!

    ( >0 instead of =1 )

    #88009

    In reply to: Linking to WordPress

    xarzu
    Participant

    I went the PHP route.

    At the top of register.php I put this code:

    <?php

    header( ‘Location: http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register&#8217; ) ;

    and it works.

    #88008

    In reply to: Linking to WordPress

    xarzu
    Participant

    While I try several combinations of this I thought I would throw this out for consideration.

    PHP is not like HTML. PHP generates HTML or browser code on the server and spits it out onto the browser on the client side. I am just thinking now that maybe you cannot use this method of redirection because the functionality is overwritten. I am just asking. Has anyone tried this redirection method with PHP before?

    As I type this, I am deleting the browser histrory/memory to see if that helps because so far this method does not redirect anything.

    #87958

    In reply to: Welcome Back _ck_

    Welcome back _ck_!

    You’ve truly been missed :)

    #88007

    In reply to: Linking to WordPress

    zaerl
    Participant

    Try:

    RewriteRule ^.*/bb-login.php$ http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [R=301,L]

    or:

    Redirect 301 /bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php

    #88174

    In reply to: Modlook tag

    _ck_
    Participant

    Yes, I wrote the “Skip Akismet” plugin last year to do that.

    https://bbpress.org/plugins/topic/skip-akismet/

    It’s cross compatible with bbPress and WordPress, however they refused to accept it into the WordPress plugin repository and told me to submit it to the core (which I didn’t bother if they are going to be like that).

    Later I discovered the akismet plugin itself already has a “trusted user” filter via bb_is_trusted so my method is overly complicated, but my plugin could in theory be modified to trust users who have X number of posts or pass a certain minimum membership age.

    This method however would be much cleaner:

    add_filter( 'bb_is_trusted_user','more_trusted',10,2);
    function more_trusted($trusted,$user_id) {
    // bb_get_user here and determine if trusted, possibly cache result
    return $trusted; // boolean true/false
    }

    Feel free to develop that, let me know if you need help.

    #88006

    In reply to: Linking to WordPress

    xarzu
    Participant

    oh.

    That is pretty clever. I like that. I think I will use this technique. Now I just need to refresh my memory on how to code .htaccess

    I have created the file, .htaccess and I included the lines

    And I gave it a shot, but it did not work. Is there something I need to do such as make the file a certain type or read/write privledge?

    #88172

    In reply to: Modlook tag

    thanks :)

    #88183

    In reply to: Facebook Integration

    you asking for help or notifying that you have done it.

    If the latter one, then I would like to know more on how you did it :)

    #87732
    _ck_
    Participant

    Noel the fonts are small in Firefox but that may be because they don’t seem to scale for some reason when “large fonts” are enabled in Windows.

    Like I pointed out, resetting the body to font-size:100%; seems to fix the whole problem for me.

    The overly large gravatars still takes some getting used to however, I’ve never seen a forum system with avatars over 100×100

    _ck_
    Participant

    Here’s a mini-plugin I whipped up to fix the behavior of bbPress where a sticky that is made to “stick to front” (aka “super-stickies”) gets removed from its original forum.

    Instead, now it will show as a regular sticky in its original forum but also as a super sticky on the front page.

    <?php
    /*
    Plugin Name: Super Stickies Fix
    .................................................................................................................
    */
    function super_stickies_fix($where){return str_replace("topic_sticky = '1'","topic_sticky > 0",$where);}
    add_filter('get_sticky_topics_where','super_stickies_fix');
    ?>

    Tested in bbPress 0.9, in theory it should work fine also in bbPress 1.x

    You can remove the line of all dots, it’s just there to fix the wrap problem for code on bbpress.org 2.0

    #84339

    If you want I’ll allow you to test it on my site :D

    1. I can’t do it myself.

    2. Its good for testing, correct?

    #88128
    Sash-Kat
    Member

    All fixed :) It was incorrect permissions set up in the htaccess file that prevented hotlinking to images.

    #34216
    madlan
    Member

    I’m trying to install bbpress on my site.

    I have wordpress installed at the root, have uploaded the bbpress folder and started the config.

    Once I’m at the last step I get a page of white text on a white background with the attached errors (Theres several pages of the fwrite() errors)

    At the bottom of the page it states the installation completed and the log shows no errors.

    This is a virtual host, IIS6

    Warning: fopen(C:InetpubvhostsXXXXXhttpdocsbbpress/bb-config.php) [function.fopen]: failed to open stream: Permission denied in C:InetpubvhostsXXXXXhttpdocsbbpressbb-adminincludesclass.bb-install.php on line 1044

    Warning: fwrite(): supplied argument is not a valid stream resource in C:InetpubvhostsXXXXXhttpdocsbbpressbb-adminincludesclass.bb-install.php on line 1051

    Warning: fwrite(): supplied argument is not a valid stream resource in C:InetpubvhostsXXXXXhttpdocsbbpressbb-adminincludesclass.bb-install.php on line 1051

    Warning: fwrite(): supplied argument is not a valid stream resource in C:InetpubvhostsXXXXXhttpdocsbbpressbb-adminincludesclass.bb-install.php on line 1051

    Warning: fwrite(): supplied argument is not a valid stream resource in C:InetpubvhostsXXXXXhttpdocsbbpressbb-adminincludesclass.bb-install.php on line 1051

    #88158

    In reply to: New Topic

    Gautam Gupta
    Participant

    Here it is:

    bb_new_topic_link( array( 'text' => 'YOUR TEXT HERE' ) );

    #87728
    _ck_
    Participant

    If the text is too small, just use the Stylish plugin for firefox and add this rule

    body {font-size:100% !important;}

    (or increase 100% as desired)

    #34215

    Topic: New Topic

    in forum Troubleshooting
    gerikg
    Member

    How do you change the name in bb_new_topic_link()

    or it’s okay to just do

    <a href="?new=1">New Topic</a>

    #88118
    wizardregis
    Member

    I tried downloaded and installing everything from the beginning. Untouched new WordPress 2.9.2 and bbPress 1.0.2.

    1. Install WP.

    2. Paste secret keys in wp-config.

    3. Install bbPress in another database with keys from wp-config. Set up seperate user database settings.

    4. Enable bbPress integration plugin in WP and paste code into wp-config.

    5. Set up role map in bbPress.

    Registered users in WP show up in bbPress, and registered users in bbPress how up in WP. Logins also work on both. But any changes to user roles does not transfer over to the other platform.

    So what am I doing wrong?

    #87954

    In reply to: Welcome Back _ck_

    Ryan Hellyer
    Participant

    Welcome back :)

    It felt wrong not having yourself and Sam around anymore. Great to see your site is back up and running again too.

    #84337
    Ryan Hellyer
    Participant

    Sorry, haven’t checked back here until now.

    All it does is buffer the HTML output of sections of the WordPress theme and then create static files from it.

    That way you can grab the head section of your WordPress site (scripts and all) and dump it into another piece of software. This allows things like widget areas, plugin functionality etc. to be transferred across to the other software dynamically. If you alter a widget area on your WordPress powered site, that will be displayed automagically in the other software. The advantage of doing it this way is that you don’t have the negative impacts of bogging the server down as if you did it with deep integration with bbPress, plus it works with other software as well, not just bbPress/WordPress.

    This is the second complaint I’ve received about the instructions so I’ll try to improve them. I thought it was fairly straightforward though. I can’t think of an easier way to explain than how I did on the page, but I’ll do my best :) I’m quite busy right now so it may not be for a few weeks at least.

    From what I’ve heard, there may be an error in the instructions too so I’ll need to sort that out when I rewrite them (I think one of my function names my be incorrect in the instructions but don’t have time to deal with that right now).

    #88108
    gerikg
    Member

    I think we had some successful people using it with WP 3.0. I personally don’t recommend automatic upgrade. Sometimes it might be a drastic code change that will mess your integrated bbpress theme.

    #87720
    chrishajer
    Participant

    so there is no way to reply to a comment, only to the entire post thread? how does somebody quote another person to reply to them within the post?

    You copy and paste into your reply and just wrap it in html <blockquote>

    Replies are not threaded in bbPress. Comments *are* threaded in WordPress, if you want them.

    iq9
    Member

    We have our bbPress forum hosted at Network Solutions [unfortunately]. When we activated SSL in bbPress, any SSL-secured page would immediately go into an infinite redirect loop to itself. After a little PHP debugging, I determined that the cause was two-fold:

    1. $_SERVER does not exist, for some reason, at NetSol.

    2. $_SERVER always returns 80 at NetSol, even when accessing the site via https. It should return 443.

    This causes the two conditions in the is_ssl() function to fail, so the function incorrectly returns false. When the secured page redirects itself from http to https, bbPress still thinks it’s an unsecured page and redirect back to itself again… and again… and again.

    We had no choice but to hack the core, which is bad because it will get overwritten when we upgrade bbPress. is_ssl() resides in /bb-includes/backpress/functions.core.php. I added a condition to simply look at the scheme of the URI and return ‘true’ if it is ‘https’.

    I added this line to the first line of the function:

    $uri_ssl = parse_url(bb_get_option('uri_ssl'));

    Then this add’l elseif condition:

    } elseif ($uri_ssl == 'https') {

    // Hack to support NetSol's questionable setup.

    return true;

    }

    Has anyone else ever experienced this at NetSol?

    #88030
    kikko088
    Member

    then, now with your path is ok!i make a mistake, the file was find but, i get this error:

    [06-May-2010 19:02:23] PHP Fatal error: Cannot redeclare wp_clone() (previously declared in /Applications/MAMP/htdocs/wp2.9/bbpress/bb-includes/backpress/functions.core.php:1043) in /Applications/MAMP/htdocs/wp2.9/wp-settings.php on line 308

    some ideas?

    tank you very much for your help :)

    kikko088

    #88028
    kikko088
    Member

    I try your path but nothing…:( I also try to put the code on wp-config of my site online, where the path is http://www.endurodoc.net/forum/bb-load.php but nothing… :( blank page!

    kikko088

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