Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,401 through 19,425 (of 32,575 total)
  • Author
    Search Results
  • #94815
    Willabee
    Member

    Does the plugin already have some function like the is_single() function in WordPress? Would be handy for the project I’m working on atm. :)

    #74440
    scribu
    Member

    I have WP running at / and bbPress at /forum/.

    This is the configuration I’m using:

    http://gist.github.com/770180

    Note that there was an error in one of the rules Sam posted:

    rewrite ^/topic/([^/]+)/?$ /bbpress/topic.php?id=$1 last;

    should have been

    rewrite ^/topic/([^/]+)/?$ /topic.php?id=$1 last;

    #36998
    3sixty
    Member

    I’m trying to display a list of posts that are tagged with one tag but NOT another. For example, I want to display all posts tagged “FRUIT” but exclude posts tagged “Apples”.

    I tried creating a custom View, but this code does not work:

    function my_custom_views_init() {
    $args = array(
    'tag_id' => '35',
    'tag_id' => '!=72'
    );
    bb_register_view(
    'fruit-without-apples',
    'Fruit (excluding apples)',
    $args,
    false
    );
    }

    Neither does this code using bb-query directly:

    $topic_query = new BB_Query( 'topic',
    array(
    'tag_id' => '35',
    'tag_id' => '!=72'
    )
    );
    $results = $topic_query->results;

    foreach($results as $result) {
    echo $result->topic_title . '';
    }

    Any ideas?

    #94813
    Rich Pedley
    Member

    bleh, the one time I didn’t.

    brain bug then ;)

    #94812
    Gautam Gupta
    Participant

    @Rich Pedley

    Try reactivating the plugin.

    @Ryan Gannon

    Ok, figured that out. bbp_has_topics() doesn’t return the query. You’d have to use bbPress functions like bbp_topics(), bbp_get_topic_title() etc.

    escort
    Member

    Nice work ashfame, thanks :-)

    #91307

    bbPress ones were posted on the blog once. Easy way of reference would do :)

    #103840

    no you are doing it wrong. recheck with caution.

    dbname, user, pass – same

    but in bbPress they are defined like BB_ i.e. with a prefix

    check again and you should be fine

    #98740

    no you are doing it wrong. recheck with caution.

    dbname, user, pass – same

    but in bbPress they are defined like BB_ i.e. with a prefix

    check again and you should be fine

    #91305

    Also please note of posting chatlogs somewhere, in a readable formatting ofcourse ;)

    #103864

    By code – yes

    any easy way – no

    #98764

    By code – yes

    any easy way – no

    #103810
    milleiro
    Member

    Yes yes, I know :/ Would you like to paste some thing of my database?

    #98710
    milleiro
    Member

    Yes yes, I know :/ Would you like to paste some thing of my database?

    Thanks JJJ! :)

    #103808
    milleiro
    Member

    Yep, I’m sure. I’ve touched something because I’m now trying to enter WP-Admin and it says “you don’t have enough privileges” in my WordPress :/

    #98708
    milleiro
    Member

    Yep, I’m sure. I’ve touched something because I’m now trying to enter WP-Admin and it says “you don’t have enough privileges” in my WordPress :/

    #103630

    That sounds cool! I understand your problem and totally appreciate your involvement.

    I have seen you around since my early days (3.5 years ago), so it feels safer than somebody new rolling out things. :)

    #98530

    That sounds cool! I understand your problem and totally appreciate your involvement.

    I have seen you around since my early days (3.5 years ago), so it feels safer than somebody new rolling out things. :)

    #103853

    Yay! :) Thanks for the kind words.

    Gautam has definitely been doing an awesome job, so huge props are deserved. :)

    #98753

    Yay! :) Thanks for the kind words.

    Gautam has definitely been doing an awesome job, so huge props are deserved. :)

    #94810

    Thanks! More to look forward to too. :)

    #103629

    The recent WordPress security upgrade (regarding kses) wasn’t 4 hours from initial contact to release, but you’re right to say that having more eyes and developers did help to expedite the testing.

    Needless to say I wasn’t personally accessible to work on this until I was back from holiday, so it is me dropping that ball and not being prepared. I’ll take that responsibility even if no one expects me to. :)

    Honestly, the reminders get a little repetitive, but only because I get them from a few different places. Open source development is kinda like having 1,000 bosses, but I’m used to it and take pride in having people be worried about the state of things.

    I’ve got pretty thick skin and don’t take things personally. So, no worries. :)

    Another personal hurdle was learning exactly what the procedure is to actually push out a release of bbPress. Having never needed to do it yet, and having the only person who has in the past few years (Sam) not immediately at my disposal, it took a few days to get me setup and ready to be able to do it.

    The trunk and 1.0 branches are fixed. The 1.0 branch is ready for a release. I am going to do the 0.9 branch tonight, do some testing, make my first deployments, and look forward to things hopefully going smoothly for releases tomorrow or this weekend.

    I’m not new to bbPress, but I am new to the logistics. Don’t fret, I’m a fast learner. :)

    #98529

    The recent WordPress security upgrade (regarding kses) wasn’t 4 hours from initial contact to release, but you’re right to say that having more eyes and developers did help to expedite the testing.

    Needless to say I wasn’t personally accessible to work on this until I was back from holiday, so it is me dropping that ball and not being prepared. I’ll take that responsibility even if no one expects me to. :)

    Honestly, the reminders get a little repetitive, but only because I get them from a few different places. Open source development is kinda like having 1,000 bosses, but I’m used to it and take pride in having people be worried about the state of things.

    I’ve got pretty thick skin and don’t take things personally. So, no worries. :)

    Another personal hurdle was learning exactly what the procedure is to actually push out a release of bbPress. Having never needed to do it yet, and having the only person who has in the past few years (Sam) not immediately at my disposal, it took a few days to get me setup and ready to be able to do it.

    The trunk and 1.0 branches are fixed. The 1.0 branch is ready for a release. I am going to do the 0.9 branch tonight, do some testing, make my first deployments, and look forward to things hopefully going smoothly for releases tomorrow or this weekend.

    I’m not new to bbPress, but I am new to the logistics. Don’t fret, I’m a fast learner. :)

    McGeeSteve
    Member

    I have made my second attempt at installing bbPRess in the web/content/forum directory – and integrating the databases.

    Last time I believe I left the User Table Prefix as ‘bb_’.

    The install ‘worked’ but I could not add new topic, reply, etc. with any user.

    This time I entered it as ‘wp_’ and I have installation errors –

    My error report:

    SQL ERROR!

    >>> Database: xxxxxx_norcalmilsim (xxxCORRECT-I CHECKEDxxx)

    >>>>>> ALTER TABLE wp_posts ADD COLUMN post_id bigint(20) NOT NULL auto_increment;

    >>>>>> Incorrect table definition; there can be only one auto column and it must be defined as a key

    SQL ERROR!

    >>> Database: xxxxxx_norcalmilsim (xxxCORRECT-I CHECKEDxxx)

    >>>>>> ALTER TABLE wp_posts DROP PRIMARY KEY;

    >>>>>> Incorrect table definition; there can be only one auto column and it must be defined as a key

    SQL ERROR!

    >>> Database: xxxxxx_norcalmilsim (xxxCORRECT-I CHECKEDxxx)

    >>>>>> ALTER TABLE wp_posts ADD PRIMARY KEY (post_id);

    >>>>>> Key column ‘post_id’ doesn’t exist in table

    SQL ERROR!

    >>> Database: xxxxxx_norcalmilsim (xxxCORRECT-I CHECKEDxxx)

    >>>>>> ALTER TABLE wp_posts ADD FULLTEXT KEY post_text (post_text);

    >>>>>> The used table type doesn’t support FULLTEXT indexes

    the log:

    Referrer is OK, beginning installation…

    >>> Setting up custom user table constants

    Step 1 – Creating database tables

    >>> Modifying database: xxxxxx_norcalmilsim (xxxCORRECT-I CHECKEDxxx)

    >>>>>> Table: wp_forums

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: wp_meta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: wp_posts

    >>>>>>>>> Adding column: post_id

    >>>>>>>>>>>> SQL ERROR! See the error log for more detail

    >>>>>>>>> Adding column: forum_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: topic_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: poster_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: post_text

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: post_time

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: poster_ip

    >>>>>>>>>>>> Done

    >>>>>>>>> Setting default on column: post_status

    >>>>>>>>>>>> Done

    >>>>>>>>> Changing column: post_status

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: post_position

    >>>>>>>>>>>> Done

    >>>>>>>>> Dropping index: PRIMARY

    >>>>>>>>>>>> SQL ERROR! See the error log for more detail

    >>>>>>>>> Adding index: PRIMARY

    >>>>>>>>>>>> SQL ERROR! See the error log for more detail

    >>>>>>>>> Adding index: topic_time

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding index: poster_time

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding index: post_time

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding index: post_text

    >>>>>>>>>>>> SQL ERROR! See the error log for more detail

    >>>>>> Table: wp_terms

    >>>>>>>>> Changing column: term_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Changing column: name

    >>>>>>>>>>>> Done

    >>>>>> Table: wp_term_relationships

    >>>>>>>>> Changing column: object_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Changing column: term_taxonomy_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Adding column: user_id

    >>>>>>>>>>>> Done

    >>>>>> Table: wp_term_taxonomy

    >>>>>>>>> Changing column: term_taxonomy_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Changing column: term_id

    >>>>>>>>>>>> Done

    >>>>>>>>> Changing column: parent

    >>>>>>>>>>>> Done

    >>>>>> Table: wp_topics

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    Step 2 – WordPress integration (optional)

    >>> WordPress address (URL): http://www.norcalmilsim.com/

    >>> Blog address (URL): http://www.norcalmilsim.com/

    >>> WordPress cookie keys set.

    >>> WordPress “auth” cookie salt set from input.

    >>> WordPress “secure auth” cookie salt set from input.

    >>> WordPress “logged in” cookie salt set from input.

    >>> User database table prefix: wp_

    Step 3 – Site settings

    >>> Site name: NorCalMilSim Forum

    >>> Site address (URL): http://www.norcalmilsim.com/forum/

    >>> From email address: xxxxxx@gmail.com

    >>> Key master role assigned to existing user

    >>>>>> Username: admin

    >>>>>> Email address: xxxxx@gmail.com

    >>>>>> Password: Your existing password

    >>> Description: Just another bbPress community

    >>> Forum name: MilSim Rules

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Making plugin directory at /mnt/stor7-wc2-dfw1/538952/xxxxxx/www.norcalmilsim.com/web/content/forum/my-plugins/.

    >>> Making theme directory at /mnt/stor7-wc2-dfw1/538952/xxxxxx/www.norcalmilsim.com/web/content/forum/my-templates/.

    >>> Key master email sent

    There were some errors encountered during installation!

    ****

    I can enter new topics (last time I could not – attempting so would give me a page ‘topic closed’) BUT I cannot read the topic.

    Also, a ‘user’ named ‘anonymous’ made a post 40 years ago…

    What’s going on??

Viewing 25 results - 19,401 through 19,425 (of 32,575 total)
Skip to toolbar