Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,201 through 29,225 (of 32,499 total)
  • Author
    Search Results
  • #2293
    baptiste
    Member

    I put together some code to implement a real bread crumb trail for BBPress that should support any level of subforums. I’ll open a ticket for the change too, but until it’s in the trunk (hopefully), you can use it by doing the following.

    In bb-includes/template-functions.php, just above the // Forum Loop // line, add the following:

    (UGH – Why if I put code inside code tags is bbpress insisting on parsing it and tossing in backticks everywhere! To see the code, check this file: http://onthepitch.org/talk/bb-includes/template-functions.txt)

    You’ll have to update your template, mainly forum.php and topic.php. Look for the line like this”

    <h3 class="bbcrumb"><a>"><?php bb_option('name'); ?></a> &raquo; <?php forum_name(); ?></h3>

    and replace it with something like this:

    <h3 class="bbcrumb"><?php forum_bread_crumb(); ?></h3>

    And it should work for you.

    #60231

    In reply to: Gravatar Plugin

    Null
    Member

    How about some: this is what I did and this is the CSS I used. You can download the plugin here :):):):):)

    I would like to use Gravatars myself too

    _Null

    #58446
    mciarlo
    Member

    Thanks guys! We put a lot of work into the forum design. However, we are updating the entire website and the forums are getting a complete re-design (for the better of course). Feel free to stop by in the next few days to check it out =).

    -Michael Ciarlo

    #60240
    benbeltran
    Member

    Nice nice :D. Maybe a “Most users ever online” or something. Personally I like to keep statistics simple and compact, but some people like to display a lot of statistics.

    Top Taggers maybe? Who knows.

    #59378
    outchy
    Member

    i finally found it! you were right fel, i was missing a </div> in post.php. that sucker was elusive! i feel so accomplished right now :D

    #60219
    ganzua
    Member

    It is quite interesting :) . Perhaps “top topics by posts” and “top topics by views” will overlap.

    #52317
    bedbugger
    Participant

    great plugin. :-)

    one question: can Bozos pm?

    #60217
    benbeltran
    Member

    I display statistics on my forum, but not with a plugin I just did this:

    <div id="onlinelist">
    <?php include_once("bb-includes/statistics-functions.php"); ?>
    <h2>Statistics</h2>
    Our users have made a total of <?php echo get_total_posts(); ?> posts in <?php echo get_total_topics(); ?> topics. <br/>
    We have <?php echo get_total_users(); ?> Registered Members. Our newest member is <?php if ( $users = get_recent_registrants(1) ) : foreach ( $users as $user ) : ?>
    <a href="<?php user_profile_link( $user->ID ); ?>"><?php echo get_user_name( $user->ID ); ?></a>
    <?php endforeach; endif; ?>
    <br/>
    <p><?php show_online_users(); ?></p>
    </div>

    This could be easily pluginized though, I might do it. But instead of waiting, I recommend doing it yourself or just pasting this on your front-page, wherever you want it to be displayed.

    #60208
    benbeltran
    Member

    SamBauers is right, text/html is right and “application/xhtml+xml” + IE6 = headaches. And it’s really not that important.

    On the other hand, the inline styling parts are more of a problem for people who want to design a theme. To edit the tag cloud I had to edit the code so it could support changing colors. If you could make a class for each step, it would be easier to customize the cloud.

    point 4 .. .well I wouldn’t know about it since I don’t have a colour deficiency, but I can barely notice the change of color. Still, because of the structure of the forum, I am able to differentiate between topics easily, might be something to think about.

    Why not help the project out by editing the default theme so it validates properly and is more accessible (I wouldn’t change the text/html part though) without changing the current looks, if it’s properly executed and it doesn’t make things harder for developers, it might become the official one. Collaborate :)

    #60207
    Sam Bauers
    Participant

    Thanks for your notes.

    What is the problem exactly with serving XHTML using text/html?

    It’s allowed under the standard:

    XHTML 1.1 documents SHOULD be labeled with the
    Internet Media Type text/html as defined in [RFC2854]
    or application/xhtml+xml as defined in [RFC3236].

    And as far as I know IE6 tends to bork out when you specify “application/xhtml+xml”.

    #60224
    Trent Adams
    Member

    Any web host can use a slew of stats programs. They are all web based and work well like sitemeter, awestats, webalizer, etc. As well, you just need to add your Google Analytics code off their site to your header.php and your bbPress forum is listed. You don’t need any special software. Just add the script they give you when you signup to your header.php file of your template.

    Trent

    #60203
    mazdakam
    Member

    also never forget to put strings in __ and _e

    for my view yu have forgotten!!

    also never forget to putting load plug in function and po files

    :) coffee?

    #60216
    outchy
    Member

    that worked perfectly, thanks :)

    #2283

    Topic: Girls Can’t WHAT?

    in forum Showcase
    1drummergirl
    Member

    I just updated my bbpress forum after a few months of neglect and I’m looking to pump some new life into it and add some new plugins.

    There’s not near as much activity in the forums as my regular blog, but I do get some folks who would rather post in the forums than on the front page of the site.

    Let me know if anything looks amiss. :)

    http://www.girlscantwhat.com/forums/

    #60066

    In reply to: top 100 bbPress sites

    benbeltran
    Member

    Nice idea! I’ll have to work on making my forums nicer if I want them to appear on that list :D

    #2280
    outchy
    Member

    i’m having a small problem with pretty permalinks. when i first created a particular forum, i named it ‘general discussion’ but later i changed the forum name to ‘sk6ers talk’. the problem is, the forum link is still /forum/general-discussion when it should be /forum/sk6ers-talk. i’m having this issue with a few other forum names as well. any thoughts on how to correct this? thank you!

    #60205
    _ck_
    Participant

    IMHO validation is just a syntax check and the least of bbPress problems right now.

    The most useful doctype for the next decade is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Get back to me when a browser DOESN’T support that ;)

    Makes life sooo much easier. Then posts can contain <b>, <u>, <s> and <i> and all sorts of standards people have been used to for the last decade instead of reinventing the wheel!

    Now instead go round up a dozen php plugin developers and get them onboard and we’ll have some real momentum :)

    #60201
    _ck_
    Participant

    I’ve been considering making this ability but it really worries me about the volume of email if someone subscribes to many, many topics. Spam filters, not to mention your server host can trigger bans if too much email is being sent.

    But I do have all the routines I need however to build such a plugin based on code from my signatures plugin and ignore member plugin. (Digests are another matter however, that’s a bit of work and requires tracking of last message seen, which is not natively built into bbpress)

    There is just too much to create but too little time to do it though. I’ve got too many little projects going.

    #60199

    In reply to: Forum permissions

    fabianzaf
    Member

    “Of course this blocks admin too which is bad so”

    I have no reason to use the forums that I wish to restrict. Im only using them for titles sake :)

    Thanks for commenting

    #60179

    In reply to: Session header problem

    fabianzaf
    Member

    I fixed this problem :D

    the topic_views plugin was also sending out a session and did not have the @ symbol in place.

    All is fixed ^^

    #2273
    fabianzaf
    Member

    When including wp-config.php in my config.php with this code:

    <?php require_once(‘/home/path/public_html/wp-blog-header.php’); ?>

    I get this error

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /public_html/wp-blog-header.php:29) in

    Everything works its just this message showing up. I read in one plugin support page when I was searching through google that I have to edit the session code to say :

    @session_start();

    Although.. i’m not quite sure where..

    #60198

    In reply to: Forum permissions

    _ck_
    Participant

    What you are trying to do with read-only has to be done in post-form.php

    You’d have to wrap it in a check for which forum id # it is and not allow the form to render if it’s one of the forums you don’t want posts in. Of course this blocks admin too which is bad so you’d have to check bb_current_user_can(“administrate”) too.

    Then there is the dropdown section, where you’d have to prevent the forum name from listing, so that needs a replacement function. It’s not 10 minutes of code unfortunately or I’d do it for you.

    Basically you’d need a completely custom post-form.php in your template.

    #60195

    In reply to: Forum permissions

    fabianzaf
    Member

    Thanks for the lengthy response :)

    It is kind of strange that forum permissions was not their main priority when creating this package. I don’t want this to dampen how I feel about bbpress though. Since the private forums feature works it already fixes half of my problem.

    One easy workaround for now would be to manually close all your posted topics in a forum.

    I dont see how this would prevent users from creating new topics altogether. These parent forums are simply supposed to act as titles… i’ll see if I can find anything in the code to fix this.

    :D ^^

    #60178
    _ck_
    Participant

    Or simply don’t let the post be made with titles that get sanitized into nothingness, or better yet, titles that are shorter than X characters – something like:

    function title_regulation($text) {
    if (strlen(trim($text))<8)
    bb_die(__('Your title is too short, please say something meaningful!'));

    if (strlen($text)>80)
    bb_die(__('Your title is too long!'));

    return $text;
    }
    add_filter('pre_topic_title', 'title_regulation',100);

    #2278
    mazdakam
    Member

    hi again :))

    al of you know that notification email is very important for tracing a post

    i am using post – notification plug in

    but it need to be better:

    don’t send any email until you visit the post from your email link

    i got crazy this month because for every new post i will give notification email and the trafficked of my forum is high

    many other forum systems have this feature

    so i recommend this:

    an option for users to select didgist summary or per post or until he/she visit(default!)

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