Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,201 through 31,225 (of 32,491 total)
  • Author
    Search Results
  • #54060

    In reply to: 8.0

    Null
    Member

    Plz let the release be today plz plz plz :)

    #54003
    Null
    Member

    Ok, I am at work now, so when I get home (tonight) I will cook up some correct SQL code for you. The problem is that the table isn’t filled so thats why it said: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource because the table is empty.

    The thing that borthers me is why it doesn’t fill the table when it is created :S (any1 has any ideas about this?)

    So your original error is easily fixed, but you will have to wait till I get home.

    Greetz

    #1354

    Topic: Unique Style Sheet?

    in forum Themes
    macwise
    Member

    Hi all,

    I am currently configuring BBPress for my site at http://www.babyquestions101.com’s forum, and by the looks of it it’s very promising.

    I am trying to figure out if I can call a specific stylesheet for a specific page by making that call in the body page.

    For instance, I know how to call multiple stylesheets through header.php. However, I would like to be able to specify a stylesheet through a page like forum.php, so that it dynamically tells header.php to call the stylesheet specific (or unique) to that page. I want this so that I can lean up my code, instead of calling everything in one css file.

    #54118
    spencerp
    Member

    And another Amen for the fact that the Forum Categories enhancement can do the same thing!! Oh God I love it.. OK! I gotta get out of this thread now, just all this awesome talk is getting me, well, you know.. hahaha. =P

    spencerp

    #54089
    ardentfrost
    Member

    One day I plan to add options such as these to an admin interface, but for the time being, you just gotta do it by hand.

    Of course, the trick to that is pulling out the information. get_profile_info_keys seems like it should pass you back an array of those values and you can just get them out of there, except I haven’t attempted to use that function and since it doesn’t ask for any information about the user you’re interested in, I don’t know how to tell you to get the information from that seemingly useful function.

    Which takes us to my personal favorite method: SQL commands. You’d be searching through the table bbprefix_usermeta (mine is bbpress_usermeta). Setup a SQL call like this:

    $result = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE user_id = $id");

    where $id is the id of the person you’re interested in and $result is the object that the person’s data will be loaded into.

    Then to access the information, you’d simply call it like this (like, for the example of where the user is from):

    $result->from

    You can echo that to have it printed or whatever you want done with that information. A quick glance at the database tells me that you can call this information (and what it means):

    “from” = location

    “occ” = occupation

    “interest” = interests

    “bbpress_title” = the title, custom or default

    You’d have to make a subroutine in bb-memberlist.php in the my-plugins directory to get $result, then use the information in memberlist.php.

    Sorry I can’t do more for you than this, but I used information from the table I had already gotten results from for ease in my current release. I could have added more stuff, but then some people might not have wanted them plus it’s easy to add or subtract from information users put in when they sign up and blah blah blah…. one day I’ll make it nice via the admin panel, but for now, good luck :)

    #54057

    In reply to: 8.0

    spencerp
    Member

    Yeah, release her already.. I’ve been running the .80 alpha for how long now.. and never had any problems with it.. Release the beast!! Now gerd damn its, now!!!!!!!!!! =P

    spencerp

    #54114
    master5o1
    Participant

    ok, i’ve just done it through the DB :P

    #52176
    kineda
    Member

    get_user_profile_link($topic->topic_poster) doesn’t work. :(

    #54002
    suleiman
    Member

    I couldn’t create the table using the code you posted, it throwed a MySQL error in phpMyAdmin.

    So I used the plugin to create the table, but had the same problem where it was empty.

    I tried running hte second SQL query on the table, but got the following error:

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘INSERT INTO bb_menu VALUES (‘active’, ‘Search’, ‘search.php’, ‘search-page’, 1)

    ‘ at line 2

    #54001
    Null
    Member

    Hmm it should have entries, something went wrong there.

    If you can, delete the bb_menu table.

    Then in phpMyAdmin:

    CREATE TABLE bb_menu (

    set varchar(50) NOT NULL default '',

    item varchar(50) NOT NULL default '',

    page varchar(50) NOT NULL default '',

    location varchar(50) NOT NULL default '',

    order int(9) NOT NULL default '0',

    PRIMARY KEY (set,item)

    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

    If your current bb_menu already has these values, you wont have to recreate it. But better save then sorry…

    Now fill the table:

    INSERT INTO bb_menu VALUES ('active', 'Forums', 'index.php', 'front-page', 0)

    INSERT INTO bb_menu VALUES ('active', 'Search', 'search.php', 'search-page', 1)

    INSERT INTO bb_menu VALUES ('available', 'Statistics', 'statistics.php', 'stats-page', 0)

    Now refresh the admin page. This should fix it. Not sure if I gave the right syntaces to use in phpMyAdmin, but you get the idea :)

    ps. If you didn’t use the bb_ prefix, you should change this…

    ps2. And leave out the @

    ps3. This is the beta so it has some errors that are fixed in the final release (after bbPress 0.8 is out)

    #53999
    Null
    Member

    Where did you install it? Did you install more plugins? Which version of bbPress are you running? Is the bb_menu table created? Did you refresh the page and still get the error? What MySQL/ php version do you use?

    I need more info :)

    #49890
    macwise
    Member

    I seem to be having a similar problem here, but when I add:

    require_once('/wp-content/themes/BabyQuestions101/header.php');

    in my bb config.php file, I get this error:

    Warning: main(/wp-content/themes/BabyQuestions101/header.php) [function.main]: failed to open stream: No such file or directory in path/to/babyquestions101.com/forum/config.php on line 3

    Fatal error: main() [function.require]: Failed opening required ‘/wp-content/themes/BabyQuestions101/header.php’ (include_path=’.:/usr/local/lib/php’) in /path/to/babyquestions101.com/forum/config.php on line 3

    (the require_once code is just below the php tag, like this:

    <?php

    require_once('/wp-content/themes/BabyQuestions101/header.php');

    // ** MySQL settings ** //

    define('BBDB_NAME', '////'); // The name of the database...

    I can’t seem to make this error go away.

    Also, is it true that with bbpress .75 I now DO NOT need to add the following line to my config.php file?:

    define('WP_BB',true);

    Any help here would be appreciated.

    #54056

    In reply to: 8.0

    flaerpen
    Member

    heheh, we should do this for all releases on THIS thread!.

    until we comes up to 8.0 :O ??? :P

    #54054

    In reply to: 8.0

    flaerpen
    Member

    c’ mon then :D

    #54053

    In reply to: 8.0

    Null
    Member

    1 ticket left, release it!!! :D:D:D:D:D:D:D

    #54052

    In reply to: 8.0

    spencerp
    Member

    God, I hope so.. I’m getting tired of constantly adding the Forum Categories enhancement to the latest SVN trunk files, and then uploading them again lmao.. =P

    I think I’ll just wait now, until .80 is full-blown released, and you’re done doing .80alpha SVN commits hahaha. /Me thinks: dang! It’s planned to go into 1.0 anyway, so.. I guess I’ll have to worry about that transition or whatever then too. Oh well..

    spencerp

    #1350
    drmike
    Member

    Greets:

    I think I’ve noticed with bbpress is how it handles tags made after a post is created. We have someone over at the wp.com forums who goes back through and adds tags into the threads which is cool. The only issue is that she (I have a feeling I know who it is) puts everything into the line at once. For example she’ll add in:

    blogdesk offline blogging tool

    into the line of a thread that’s already in existance and then hit enter. All that goes in as one tag.

    Does the software do that on purpose or is that just an oversight?

    Thanks,

    -drmike

    #53762
    flaerpen
    Member

    okey, I tried that but I cant get it work. I just copied the code you wrote and changed the domain. For the moment I’m testing my forum in my localhost. This is the code I use:

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

    $bb->cookiedomain = 'localhost';

    $bb->cookiepath = '/';

    I can add that I’m a totally newbie to cookies!

    #53997
    Null
    Member

    :D class class class

    #53996
    ear1grey
    Member

    Cool! So now the CSS fix? :D

    #53995
    Null
    Member

    ps ow and ear1grey, thx for your help and patience :)

    #53994
    Null
    Member

    I FINALLY fixed it!! YESSSSSSSSSSSSS

    What did I do? Well simply replace bb_get_location output with: front-page.

    It even doesn’t chance the page id :D

    Perhaps it’s a “dirty” fix, but it works:

    function get_bb_menu() {

    global $bbdb;

    $pemal = get_bb_location();

    $pemal = str_replace('topic-page', 'front-page', $pemal);

    $pemal = str_replace('profile-page', 'front-page', $pemal);

    -normal code goes here-

    Going to do some more testing and then it’s ready for release!

    #53760
    flaerpen
    Member

    where do I put the code? In my bb-config or wp-config or somewhere else?

    #954
    tominated
    Member

    Is it possible to integrate a bbpress forum into an existing site (so i don’t have to mess around with making a theme for bbpres) by using php functions? I am not very good (that is an overstatement) at php. I followed a tutorial that let me integrate a wordpress blog into my site, and this is the code it gave me

    <?php define('WP_USE_THEMES', false);

    require('wordpress/wp-blog-header.php'); ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head></head>

    <body>

    <div id="stage">

    <div id="sidebar">

    <?php if ( !function_exists('dynamic_sidebar')

    || !dynamic_sidebar() ) : ?>

    <h3>Categories</h3>

    <div id="blog-categories">

    <ul>

    <?php

    list_cats(FALSE, '', 'ID', 'asc', '', TRUE, FALSE, TRUE,

    TRUE, TRUE, FALSE, FALSE, '', FALSE, '', '', '', TRUE);

    ?>

    </ul>

    </div>

    <br />

    <div id="blog-archives">

    <h3>Archives</h3>

    <ul>

    <?php get_archives('monthly', '', 'html', '', '','TRUE'); ?>

    </ul>

    </div>

    <hr />

    <br />

    <div id="rss-links">

    <h3><a href="<?php bloginfo('url'); ?>?feed=rss2">RSS feed</a></h3>

    </div>

    <?php endif; ?>

    </div>

    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div id="unique-entry-id-<?php the_ID(); ?>" class="blog-entry">

    <div class="blog-entry-title"><?php the_title(); ?></div>

    <div class="blog-entry-date"><?php the_time('Y-m-d G:i'); ?>&nbsp;|

    <span class="blog-entry-category"><?php the_category(', '); ?></span>&nbsp;|

    <span class="blog-entry-permalink"><a href="<?php the_permalink(); ?>">Permalink</a></span>&nbsp;|

    <span class="blog-entry-language">

    <?php if(function_exists('lp_other_langs')) {

    //display existing language versions of the post

    lp_other_langs(' ','', '', '', '');

    }?></span>

    </div>

    <div class="blog-entry-body"><?php the_content(); ?></div>

    <div class="blog-entry-comments">

    <?php edit_post_link(__('Edit This')); ?> |&nbsp;

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), "",

    __('Sorry, comments are closed for this item.')); ?>

    </div>

    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <h2><?php _e('Not Found'); ?></h2>

    <p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>

    <form method="get" class="searchform" action="<?php bloginfo('home'); ?>/">

    <div>

    <input type="text" size="20" value="<?php echo wp_specialchars($s, 1); ?>" name="s" class="s" />

    <input type="submit" class="submit" value="<?php _e('Search'); ?>" />

    </div>

    </form>

    <?php endif; ?>

    <div style="text-align:center;">

    <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>

    </div>

    </body>

    what would i have to do to get bbpress integrated into my site? I heard somewhere that the function names are very similar to wordpress, so what code would i put in to get the forum categories then the recent posts, etc.?

    #53759
    Trent Adams
    Member

    The cookies part can be daunting in the beginning to add, but once you figure it out, it is not so bad. Sometimes placing in the cookie path isn’t enough and you have to add the locations of the cookies and the names. Let me give you some examples:

    My blog is in a couple different folders so I use this:

    $bb->usercookie = 'wordpressuser';

    $bb->passcookie = 'wordpresspass';

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

    $bb->cookiepath = '/';

    Trent

Viewing 25 results - 31,201 through 31,225 (of 32,491 total)
Skip to toolbar