Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,876 through 31,900 (of 32,462 total)
  • Author
    Search Results
  • #52067

    In reply to: Simply doesn’t work

    Trent Adams
    Member

    Ok….try this as it must be in main .htaccess and not seperate.

    get rid of the .htaccess in bbpress directory and try this in .htaccess for wordpress.

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    # END WordPress

    RewriteBase /bbpress/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /bbpress/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /bbpress/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /bbpress/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /bbpress/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /bbpress/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /bbpress/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA]

    </IfModule>

    Trent

    #51417

    ehm … sorry guys, i didn’t test the new function because i’m running mysql 4.0… on my site. I fixed the $bbdb and added the following config-var:

    $mysql41 = true;

    If you have any problems simply set to false and it should work well.

    Download here:

    http://la-school.com/2006/downloads/onlinelist_1_3.zip

    #49545
    pilkster
    Member

    OK, done :)

    #52065

    In reply to: Simply doesn’t work

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /bbpress/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /bbpress/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /bbpress/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /bbpress/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /bbpress/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /bbpress/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA]

    </IfModule>

    OK the above code is what I placed in HTACCESS, and I did as you suggested by uploading this file to my bbpress folder.

    I then logged back into my site and I am still getting the 404 errors

    Here is the actual error:

    The page you tried to access does not exist on this server. This page may not exist due to the following reasons:

    You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.

    The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.

    The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.

    #52184
    Trent Adams
    Member

    Try something like:

    #front-page #discussions {

    margin-left: 170px;

    margin-right: -20px;

    width: 420px;

    }

    #front-page #rightbar {

    margin-left: 590px;

    width: 150px;

    margin-right: -20px;

    }

    I haven’t tested this, but it would be easier to just keep moving them to the right I think.

    Trent

    #51414
    Trent Adams
    Member

    I am testing the new version. You should know that line 26 of the plugin has a syntax error that needs fixing. Change from:

    $bbdd->query

    to:

    $bbdb->query

    Trent

    #52182
    ardentfrost
    Member

    Not sure what you’re asking (the plugin has nothing to do with email addresses), but feel free to go to my forums and check it out. I need more testers anyway.

    I just did what the previous code was dictating a different way, so right now everything I’ve worked on is working.

    If you do come over and test it out, make a quick post in some thread (I suggest the one pertaining to this plugin) so that you don’t get deleted accidentally (we go through our memberlist daily to delete spam users)

    #1075
    ardentfrost
    Member

    For some reason, only the last filter is working. Here’s what it is:

    function get_pm_bb_location(){

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'pm.php' )

    return 'pm-page';

    }

    function is_pm() {

    if ('pm-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    function get_mess_bb_location(){

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'message.php' )

    return 'message-page';

    }

    function is_message() {

    if ('message-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    bb_add_filter('get_bb_location', 'get_mess_bb_location');

    bb_add_filter('get_bb_location', 'get_pm_bb_location');

    I swear they’re both the same. And whichever filter I put last works, and the other doesn’t.

    Also, what’s the deal? is bb_add_filter and add_filter the same damn thing? They both seem to be interchangable.

    I might just change the way I’m doing this. My current way is so beautiful though :(

    And for whoever sees what these functions would be used for, the answer to your question is this: I’m very close.

    #52167
    ardentfrost
    Member

    get_user_profile_link( $userid )

    Null
    Member

    Hi,

    With this I get the topic author name: get_topic_author(), but how do I get his profile link? get_topic_author_link() doesn’t work…

    Any ideas?

    thx

    #52141
    ardentfrost
    Member

    lol, nice ;)

    #51140
    spencerp
    Member

    Yeah, any word on this being “Updated”, or..? Just was curious.. ;) :)

    spencerp

    #49537
    Trent Adams
    Member

    Pilks,

    Just looking through the config file, everything looks good. I may try adding some cookie information into config.php

    $bb->cookiedomain = '.awspress.com';

    $bb->cookiepath = '/';

    As well, if you are not trying to load WP functions in bbPress, you probably can do without the:

    define('WP_BB', true);

    require_once('/home/xxxxxxx/public_html/wp-config.php');

    Maybe take it out and see if you can get it going and then add it in later. Let’s try it at the lowest common denominator….

    Trent

    #49536
    pilkster
    Member

    Hi Trent, thanks for the response :)

    After installing WP (via fantastico) I uploaded the bbpress files to /forums/, set up database&user, ran the bbpress install script.

    I then added the WP plugin as described above, activated it and configured it with bb_ (taken from my config.php).

    I added a directory /forums/my-plugins/ and put the described bbpress plugin in there (although I probably didnt need to as it is a fresh install)

    Below is my config.php that I edited as described (maybe I misunderstood somthing here?)

    Thanks again for your help…

    code

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘xxxxxx_xxxx’); // The name of the database

    define(‘BBDB_USER’, ‘xxxxxxx_xxxxx’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘xxxxx’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://awspress.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘Amazon plugin for WordPress’;

    // This must be set before running the install script.

    $bb->admin_email = ‘simon@xxxx.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘xxxx’;

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://awspress.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = ‘http://awspress.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    define(‘WP_BB’, true);

    require_once(‘/home/xxxxxxx/public_html/wp-config.php’);

    /* Stop editing */

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    /code

    #52139
    Trent Adams
    Member

    That is where I got it from. Completely from Ardentfrost! :-)

    Trent

    #52137
    Trent Adams
    Member

    Try this code:

    <?php if (bb_current_user_can('edit_users')) : ?>

    *some code here*

    <?php endif; ?>

    #51878

    In reply to: Problem with my Domain

    Trent Adams
    Member

    Make sure your akismet line is:

    $bb->akismet_key = '40b50b4582b5';

    and not:

    $bb->akismet_key = 40b50b4582b5;

    Trent

    #52145
    Null
    Member

    Need more help, still cant get this. Cant get the menu it self working either (tried copying the code fromt this site and css, but it wont work).

    Thx

    #52163

    In reply to: get_row

    ardentfrost
    Member

    Hmm, when I logout and go to the same like with the afore mentioned output, it says this:

    Object id #22

    It seems to be doing this similarly to everyone else. Logged in it gives #6, logged out it gives #22. I never tell it to do anything, it must be get_row that’s doing it.

    Arrgghhhh

    #1071

    Topic: get_row

    in forum Troubleshooting
    ardentfrost
    Member

    Anyone know why when I use get_row it prints this

    Object id #6

    It fills my variable correctly, it just prints this and I don’t want it to :)

    #49534
    pilkster
    Member

    I have done a fresh install of the latest WP (2.0.5) and latest bbPress (0.73) earlier today and installed the WordPress plugin as described. I have also added the code described above to bbPress’s config.php.

    Wordpress is installed on my root domain, and bbPress in a folder named /forums/

    User registration integration is not working, is there something I have missed?

    Thanks – pilks (AWSpress.com)

    #51231

    In reply to: Anonymous post

    steven19
    Member

    I need this mod too! :D

    #51412
    topiq
    Member

    i get this error with the new version:

    Fatal error: Call to a member function query() on a non-object in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/onlinelist.php on line 26

    #1052
    arrariv
    Member

    Hi there all,

    I have to moderate posts!

    Is it possible to do in bbPress, I have no idea. I found out that vBulletin does that, but I use WordPress on my blog, don’t need any other php script interfere with my blog. I just add a simple forum in it. Not a shiny thing!

    =)

    Anything will be too helpful.

    Thanks in Advance!

    #51179

    In reply to: Private Forum script

    topiq
    Member

    ok. uploaded the new version of private forum. then there was this message that i have not installed the newest version of bbPress. i downlaoded the 3 new files and uploaded them. now i get this kind of error if i want to access the forum:

    Fatal error: Call to undefined function is_serialized() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/bb-includes/functions.php on line 364

    greets topiQ

    PS: since this is as far i can guess not related to your plugin i posted it here and not on your site…

    EDiT: i solved the problem by installing the new version of the site options plugin. thanks a lot!

    but if i install the 3 new files in the bb-include i get this error:

    Fatal error: Call to undefined function option() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/bb-templates/header.php on line 44

Viewing 25 results - 31,876 through 31,900 (of 32,462 total)
Skip to toolbar