Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,901 through 31,925 (of 32,480 total)
  • Author
    Search Results
  • #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

    #51176

    In reply to: Private Forum script

    Can I make another feature request for any private forum plugin, please? I want to have a private forum but still have the RSS feeds accessible. At the moment, if I use the plugin, the feeds become inaccessible without being logged in – i.e. services such as bloglines can’t see the feeds. I know that making the rss feeds available, in effect, makes the forum “public again” . . . . I guess the ideal solution is another plugin to give the feeds a randomised code in their URL . . . . but even if this isn’t possible, not being able to find the feed address without being logged in provides an adequate level of deterrent for my purposes.

    Can anyone help?

    #52160

    In reply to: Admin problems

    malak
    Member

    I have just add

    require_once('admin.php');

    to .php files (in bb-admin)

    and it works now

    #52159

    In reply to: Admin problems

    malak
    Member

    same problem when I try to Move topic to other:

    Fatal error: Call to undefined function: bb_current_user_can() in /forum/bb-admin/topic-move.php on line 10

    Close topic:

    Fatal error: Call to undefined function: get_topic() in /forum/bb-admin/topic-toggle.php on line 5

    #1070
    malak
    Member

    when I try (0.73 with WP, login as Key Master or Administrator) to set “not spam” in “Akismet Spam” section I got:

    Fatal error: Call to undefined function: bb_current_user_can() in /forum/bb-admin/delete-post.php on line 6

    same if I try to check some post as “spam”.

    Thanks.

    #1069
    andrabr
    Member

    So, I uploaded bbpress, configured config.php, punched bb-admin/install.php in my browser and saw… nothing. Not even an error message.

    Ok, I went poking around. Deleted config.php and got the error message as expected.

    Next line in the code is: require_once(‘../config.php’);

    I do not believe I get over this hurdle (if I recall correctly, require_once dies quietly).

    I changed it to require config-sample.php, and got as far as database error message. config-sample.php and config-php sit next to each other with exactly same permissions.

    I cannot think of a reason for require_once to see one but not the other…

    Mystery…

    Any ideas?

    #52147

    I know the yellow is default color of the FAT Library. But I like it in yellow … think this looks nice. =)

    If you want to change it by yourself:

    – Open /bb-includes/js/fat.js

    – Go to Line 32 and replace #FFFF33 by #E4F3E1

    Now it will be green everywhere.

    #52096
    ardentfrost
    Member

    then add this in front of your plugin.

    if ( is_front() ) {

    *plugin I mentioned here*

    }

Viewing 25 results - 31,901 through 31,925 (of 32,480 total)
Skip to toolbar