Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,501 through 26,525 (of 32,522 total)
  • Author
    Search Results
  • #69169
    chrishajer
    Participant

    From your forum:

    > Please wait a reasonable amount of time before

    > bumping posts. Try to bump posts using 24 hours

    > as a guideline. Posts that are not within these

    > guidelines are subject to removal.

    I found that funny. Also funny to say “preying” vs. praying. All very interesting.

    Anyway, to find out who started a topic, you need to stick this into your template somewhere, wherever you want to see that information.

    <?php echo get_topic_author(); ?>

    #69159
    chrishajer
    Participant

    _ck_ – what if you wanted to use a different before character? I tried forum_description('before=x'); but that didn’t work. I couldn’t get before or after to work.

    Can you explain how to use the arguments for that function please? Thanks.

    function forum_description( $args = null ) {
    if ( is_numeric($args) )
    $args = array( 'id' => $args );
    elseif ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'before' => $args );
    $defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    $args = wp_parse_args( $args, $defaults );

    if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    echo $args['before'] . $desc . $args['after'];

     

    It seems like the relevant info is listed right there in the $defaults array, but I couldn’t stumble upon the combination to make it work.

    #69206
    chrishajer
    Participant

    More queries in WordPress vs. bbPress?

    You can add this to your template footer.php (one for WordPress and one for bbPress) files and it will add a comment that is visible in the source with the amount of time taken and how many queries it took to generate the page.

    bbPress

    <!-- It took <?php bb_timer_stop(1); ?> and <?php echo $bbdb->num_queries; ?> queries -->

     

    WordPress

    <!-- It took <?php timer_stop(1); ?> and <?php echo get_num_queries(); ?> queries -->

     

    Maybe you can spot some differences there.

    #68976

    Doh, now the rating itself – bb_rating_dingus() – doesn’t work. I can click on a star, but it doesn’t go into the database :-(

    Another thing I noticed, we’ve got different line numbers so maybe you have a different version from mine?

    #68975

    _CK_: sorry to bother you again, I’m sure you know the answer and I just can’t resist asking. How would the code change if I wanted to list the Forum along the top rated topics?

    If you get round taking a look at it I’d be very grateful.

    #69157

    Sadly not mate.

    I know what you’re thinking.

    Something like : https://codex.wordpress.org/Template_Tags

    But no, it’s all guess work.

    #69193

    In reply to: Unable to Login

    I know what you’re thinking, that it probably *should* be mentioned either here:

    https://bbpress.org/documentation/integration-with-wordpress/

    or

    https://bbpress.org/download/

    but it’s not :(

    BBpress, great software, also useful for testing your abilities to mind read!

    #69015

    “Oh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.”

    We don’t get or realize that because… it’s not written anywhere.

    We’re not mind readers.

    “The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums.”

    Oh. See, now that’s a totally different light on the subject. I didn’t realise i was building something for Matt to fit Matt’s needs and for the needs of Matt’s companies. Maybe that should be written down somewhere too…

    “It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.”

    I do understand that, but surely the actual developers have some form of documentation too. Couldn’t we all see that to make ‘Matts’ product better? And it’s not like Automatic is short of a few bob.

    Surely, from a business point of view, having documentation to increase the number of theme and plugin developers will increase the take-up rate of BBpress.

    “bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.”

    So, what this means is that we can’t, as a community, do anything about anything, because we’re all following Matt’s plan, to which we have no feature list or roadmap or really any visibility of?

    I dont expect Matt, or really any WordPress/Automatic employee, to have to run things by anyone in the community – i’m not saying that I do. But the… pretence that this is an open source project is totally nullified if we’re all coding against a grand plan and road map we’re not allowed to see.

    If the new standard answer is going to be “that’s not on Matt’s wishlist but we’re not going to tell you what is on it – go on GUESS” then can start to see why so many people have left the BBpress community, and why all the themes/forums we’re seeing all look the same.

    #69074
    John Doe
    Participant

    Glad to help musnake!

    Thanks for the heads up with the custom WP login :D

    #69111

    Psst! You mean to put bbpress here:

    /home/www/example.com/bbpress

    If you put it under wordpress, your URL will be http://www.example.com/wordpress/bbpress

    #69013
    _ck_
    Participant

    Oh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.

    Remember, bbPress is a purpose driven product that happens to also be open source. It wasn’t just a few people that said “hey let’s make a better free forum because we can”.

    The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums. It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.

    bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.

    So there’s the logic that some might not understand without perspective. There are projects like SMF that literally WERE “let’s make a better free forum” that have matured now so you can compare to them – but remember they are half a decade old. bbPress is far younger (and bbPress is way easier to write mods for).

    #69012
    _ck_
    Participant

    SteveDrum both anon posting and PM are plugins.

    I don’t see why they should be built in, I for one don’t like them on my forums and it bloats the code.

    Until 1.0 there was a problem with anon posting because there was no place to store post meta, but now the general bb_meta table can be used. So maybe one day it will have it built in but not likely 1.0

    #69116
    suzkaw
    Member

    Thanks for the comments guys.

    @__ck__ when you say views are talking about the forum list? Also good idea about the search. I just couldn’t figure out a good place for the register login section. :(

    #69010

    Just seen Sam pop up on these boards (was beginning to think he was a myth), so hopefully we’ll get an answer on some of these points we’ve made :)

    #69155
    _ck_
    Participant

    forum_description has an optional “before” argument

    try forum_description('');

    #51836

    In reply to: Plugin – Member List

    _ck_
    Participant

    cocotrp, you can exclude IDs by modifying the mysql queries and changing

    WHERE user_status = 0

    to

    WHERE user_status = 0 AND user_id NOT IN (1,2,3,4)

    1,2,3,4 are the user_id’s you don’t want to be displayed.

    #69115
    _ck_
    Participant

    Very nice! Perhaps one of the top 3 themes so far IMHO.

    Alternate demo on bbShowcase:

    http://bbshowcase.org/forums/?bbtheme=inove

    I would maybe move Views under Hot Tags and therefore make the views list visible all the time too. Also a small search box in the nav bar instead of the word “search” (or next to it) would be useful. I notice your site has a nice search box, also the RSS link on your site is nice too ;-)

    I’m definitely making a 960px theme next year for my site, you’ve proven how good/useful it looks.

    #68568

    All fixed. This post by deadmedic fixed all my issues! It explains why all the ‘worked for me!’ posts seemed like nonsense to me.

    The fix:

    Change line 673 in bb-settings.php from:

    $bb->sitecookiepath = rtrim($bb->sitecookiepath, '/');

    to:

    $bb->sitecookiepath = '/' . trim($bb->sitecookiepath, '/');

    Thank you deadmedic!

    #69073
    while ($stars_in_heavens) {
    deadmedic.karma += extra_scoop_of_icecream();
    deadmedic.praise_sung += 1;
    }

    You fixed it.

    Here I was searching for all instances of setcookie…novice error!

    WP2.6.3; bbPress 1.0a2; PHP5; Apache 1.3

    I can log in and out of WP and bbPress from any direction!

    I did not use the .htaccess edits, just the rtrim line.

    Thank you, so very much!

    I wonder if this is going to solve my bbSynch and bbLive issues?

    BTW, there is a WP plugin to skin the wp login. They have a flickr group to share what people have done.

    I like the idea of funneling registrations through bbPress, as most of my members will hit the fora.

    I have to go and clean up some nasty things I’ve been saying around the web about integration…

    Thanks again, man.

    Cheers.

    #4307
    puleddu
    Member

    Is possible to remove the emdash from the forum description?

    The function that generate the description: forum_description()

    How can I obtain this?

    Thank you in advance!

    #4306
    johnhiler
    Member

    I have a site with two separate bbPress installs that share a single users table: one is a Message Boards forum, while the other one is for Classifieds. They are on two separate subdomains:

    * boards.weddingbee.com

    * classifieds.weddingbee.com

    Some users post classifieds listings to the Boards, which creates tons of admin work: I have to mark the listing as spam, message the user and ask them to repost it to Classifieds. It’s a big pain, and the problem is only growing.

    After doing this several hundred times, I finally realized that maybe there was a better solution :-). It’d be great if I could click a button and have the topic be deleted from the Boards server and added to Classifieds.

    Is it possible to have a plugin “cross over” and send data to another bbPress install? In this case, both the Boards and the Classifieds bbPress installs are on the same physical server… maybe that helps here? Or maybe that doesn’t matter, and this can all be done through API’s or something…

    Any insight on this one? Thanks!

    #69110
    chrishajer
    Participant

    Put it in your root, but in a folder of its own. So, if you have WordPress here

    /home/www/example.com/wordpress/

    you can put bbPress here:

    /home/www/example.com/wordpress/bbpress/

    Then, your website/blog is http://www.example.com and your forum is http://www.example.com/bbpress/

    You can call your folder whatever you want, it might be forum, forums, bbpress, anything at all.

    #69099

    At a guess…

    RewriteRule ^forum/faq(.*)$ http://www.domain.com/forum/ [L,R=301]
    RewriteRule ^forum/mcp(.*)$ http://www.domain.com/forum/ [L,R=301]
    RewriteRule ^forum/member(.*)$ http://www.domain.com/forum/ [L,R=301]
    RewriteRule ^forum/search(.*)$ http://www.domain.com/forum/ [L,R=301]
    RewriteRule ^forum/ucp(.*)$ http://www.domain.com/forum/ [L,R=301]
    RewriteRule ^forum/view(.*)$ http://www.domain.com/forum/ [L,R=301]

    That’s the majority of the links, I think. At least the ones off the main page of a forum.

    #69107

    In reply to: Blockquotes are broken

    Hey, my site works fine. I’m saying bbpress.org’s quotes are broke. :) Someone should fix the CSS here.

    #69106

    In reply to: Blockquotes are broken

    chrishajer
    Participant

    The blockquotes are there in the source, but there is no corresponding CSS. This was brought up before here, but not addressed. If you are working on your own theme, just define blockquote in the style.css however you like, for example:

    blockquote {

    padding: 0 0 0 20px;

    background-color: red;

    }

Viewing 25 results - 26,501 through 26,525 (of 32,522 total)
Skip to toolbar