Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,951 through 25,975 (of 32,468 total)
  • Author
    Search Results
  • #71051
    chrishajer
    Participant

    You could use the bb_is_user_logged_in() function like this:

    <?php if ( bb_is_user_logged_in() ) { ?>
    <div id="hottags">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?>
    </div>
    <?php } ?>

    You were very close with your guess as to the function name.

    #4598
    bamosk
    Member

    Hallo,

    Please excuse my english!

    I’using “private forums” and “approve user registration” to keep my forum privat. I don’t want to show the tags to users who are not logged in.

    So I just did this <!– –> with the tags part in front-page.php.

    But is there any way to show the tags to users who are loggend in?

    For example change the front-page.php to something like:

    if (user_is_logged_in)

    {

    <div id=”hottags”>

    <h2><?php _e(‘Hot Tags’); ?></h2>

    <p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>

    </div>–>

    }

    This would be very nice :)

    Benjamin

    #71106
    romerocw
    Member

    Thanks _ck_, I just downloaded it and installed it. I have a question and a comment.

    1st Q: Am I missing something simple? Is there a way to get forum_last_post_title() in addition to the link? I”d like the link title to be the post title. With your plugin I can create an href of the last post and link to it but the link text has to be the URL. I’d like the link text to be the post title.

    2nd comment: There is something weird going on inside the bb_fourm_class() loop. If I do this code the plugin works correctly giving me the last post link:

    <td class="topicTitle"> <?php forum_time(); ?> <a href="<?php forum_last_post_link(); ?>"><?php forum_last_post_link(); ?> </a> <?php forum_time(); ?>
    <br /><span class="lastPoster">by <a href=""><?php forum_last_poster(); ?></a></span>
    <span class="topicTime">at <?php topic_time('M. j, Y'); ?></span>
    </td>

    If I remove the first occurrence of <?php forum_time(); ?> and let the loop see “> first then the plugin doesn’t work correctly and the incorrect first post link is displayed. The following breaks the plugin for the 1st occurence of a link. The subforum link does work correctly.

    <td class="topicTitle"> <a href="<?php forum_last_post_link(); ?>"><?php forum_last_post_link(); ?> </a> <?php forum_time(); ?>
    <br /><span class="lastPoster">by <a href=""><?php forum_last_poster(); ?></a></span>
    <span class="topicTime">at <?php topic_time('M. j, Y'); ?></span>
    </td>

    See if you can reproduce it in one of your templates. I can reproduce it here.

    #4620
    marcoapaulo
    Member

    Hi there

    As said in the topic title, how can I use bbpress avatars on wordpress comments? I have bbpress and wordpress on the same database.

    Is there anyway to do this?

    Someone told me to use User Photo, but I couldnt make it work… and I was wondering if existed some kind of code to add so wordpress could call the avatar from bbpress.

    Thank you

    #71087
    rjeevan
    Member

    Hey,

    Thanks for the Reply…

    I guess i may have to wait, but in the mean time, Is there ay pages available to see existing HOOKS on bbpress 0.9+. I guess it may help with testing randomly. who knows, I may get lucky :)

    #71113
    chrishajer
    Participant

    You mean the “Community” section on your WordPress site?

    You need to change your .discussions2 style in http://www.audioscribbler.co.uk/wp-content/themes/revolution_magazine-40/style.css:

    .discussions2 {

    font-weight: none;

    }

    There’s no such font-weight. You want:

    font-weight: normal;

    It pays to validate your CSS:

    http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fwww.audioscribbler.co.uk%2F

    You’ve made the same error in other places as well.

    Also, this has nothing to do with bbPress really, it’s more of a Revolution Theme or WordPress question.

    #4618
    Anonymous User 1502623
    Inactive

    hi guys, site is http://www.audioscribbler.co.uk

    Basically, I’ve got the latest discussions plugin active in the sidebar, but I can’t find the necessary code to edit to customise it. I’ve create a custom DIV class (this managed to change the line-height) but I can’t get rid of the bold properties, I can’t change the font – I’ve looked on the widgets.php page and can’t find it, and editing the plugin itself doesn’t seem to work. Anyone got any ideas? thanks

    #4615
    romerocw
    Member

    I’m trying to make my front-page.php template look a little more like a conventional vBulletin type theme by displaying the “last post title and link” in a column next to the “forum title.” The problem is that topic_title() isn’t giving me what I want inside the loop. I guess I need some sort of nested loop or an alternate function.

    Here’s an example of a vB style i’d like to emulate:

    Main Car Forum (This is a top level forum)

    Car Forums by Brand <– this is a bbPress category forum w/ subforums per car brand.

    — Honda Forum 1…………………….. last post: my car broke down

    — BMW Forum 2…………………….. last post: new tires?

    The problem is when I play w/ the front-page template I can only get the last post info for the “Main Car Forum” not the brand subforums and even that isn’t actually giving me what I think it should.

    Here’s what I have in my 2nd HTML column of my modified template:

    <td class="topicTitle"><a href="<?php topic_last_post_link(); ?>"><?php topic_title(); ?> </a>
    <br /><span class="lastPoster">by <a href="<?php user_profile_link($topic->topic_last_poster) ?>"><?php topic_last_poster(); ?></a></span>
    </td>

    The topic_last_post_link and topic_title() aren’t giving me the expected results. For topic_last_post_link it’s actually returning the last topic/thread link not the last post link and that’s for the “Main Car Forum.” For the subforums it’s displaying the same exact thing as it does for “Main Car Forum” it’s not actually displaying the topic/post info for the correct subforum.

    TIA,

    -Charlie

    #70970
    chrishajer
    Participant

    This problem has come up a couple times in the past couple days:

    https://bbpress.org/forums/topic/bbpress-10-alpha-6-released#post-22750

    The function do_action exists in ./bb-includes/wp-functions.php. Do you have that file and is it complete? Is there a line (around 641, in 0.9.0.4 anyway) that starts with:

    function do_action ($tag, $arg = '') {

    Is it possible that not all the files were properly uploaded?

    #71069

    In reply to: Single topic only

    chrishajer
    Participant

    If it were me, (which it’s not :-) ) I would use WordPress for this. Everything seems easier except for the comment moderation, but searching for comment moderation plugins for WordPress turned up a few options. So, I think I would narrow my search to WordPress plugins rather than trying to strip out 85% of the functionality that exists in bbPress.

    My 2¢

    #71085
    ganzua
    Member

    This will never happen because it’s physically impossible as the code is designed.

    Ok :) then the plugin will have to put wp inside bbpress but I still think that it will be a bbpress plugin.

    I even could think in another solution; turning wp comment system into a forum. You only had to allow all members to post in the wp blog, make a custom category for them and a custom template for that category. There would be no front-page though.

    BTW, _ck_, could you please tell us how did you add pagination to front-page latest posts in your bbpress showcase? :)

    #71084
    _ck_
    Participant

    Another thing that I believe it is that sooner or later bbpress will have a wp plugin version or that it will be a plugin bridge to put it inside of wordpress.

    This will never happen because it’s physically impossible as the code is designed. Also the deep integration would use so many resources that a busy forum will get you kicked off of most shared hosts. bbPress 1.0 + WordPress 2.7 running at the same time with deep integration and several plugins is over 1 megabyte of code PER INSTANCE (per user visiting, per page load).

    This is why I always say don’t deeply integrate.

    However when WordPress eventually switches to the backpress core (think version 3.5 perhaps?) it will be easier to have them deeply integrated without so much excessive resource use.

    #71065

    In reply to: Single topic only

    Fender
    Member

    I am considering that approach as well. Part of the problem I face using WordPress is finding the plugins to allow the user moderation, comment moderation and user profile features I’m after. Perhaps I’m looking in the wrong places for WordPress plugins, I dunno. I’ve been spending most of my time looking at Joomla for another major site replacement so haven’t got much time to explore WordPress.

    I mentioned over on _ck_’s forum that I’m willing to pay someone to help me nut this out … whether it’s WordPress comments-based or bbPress matters little to me, I’m just looking for a solution :)

    Cheers,

    Chris.

    #71014
    ganzua
    Member

    check the bb_topics table in that db and check what it says for the ‘topic_poster_name’ column

    Checked. Below topic_poster and topic_poster_name columns are all the right starter user IDs and usernames.

    With the default theme I have the same error. Actually, my custom theme is a stripped kakumei :(

    #71012

    That’s what I have too. :| That’s really wild.

    Do you have access to your SQL database? If so, check the bb_topics table in that db and check what it says for the ‘topic_poster_name’ column. The default for that on my table is ‘Anonymous’ so it’s like it’s not writing to that field. Which would mean even if you flipped the bit to the old theme, the database still has it wrong.

    So, try making a test post while using the default theme?

    #71011
    ganzua
    Member

    I just checked both. I removed the language file and the same error.

    For showing the topic starter I have <?php post_author_link(); ?> in my template. Is this wrong?

    #4605
    wakish
    Member

    Hi,

    I would like to know the reason of filtering every ouput, even after being sanitized, with the following statement: return apply_filters(‘sanitized_string’, $string, $original_string, $context);

    I can’t understand the purpose of this (surplus?) filtration..

    And the “apply_filters” also have another sister function like “merge_filters” and “remove_filters”.

    I would be glad to know the purpose of these, thanks!


    Function details:

    1) found in file ./bb-includes/wp-functions.php as from line 579

    2) the function:

    function apply_filters($tag, $string) {

    global $wp_filter, $merged_filters;

    if ( !isset( $merged_filters[ $tag ] ) )

    merge_filters($tag);

    if ( !isset($wp_filter[$tag]) )

    return $string;

    reset( $wp_filter[ $tag ] );

    $args = func_get_args();

    do{

    foreach( (array) current($wp_filter[$tag]) as $the_ )

    if ( !is_null($the_) ){

    $args[1] = $string;

    $string = call_user_func_array($the_, array_slice($args, 1, (int) $the_));

    }

    } while ( next($wp_filter[$tag]) !== false );

    return $string;

    }

    #70968
    chrishajer
    Participant

    1. I don’t believe those versions will integrate. 2.5 goes with 0.9.0* and 2.6+ goes with the 1.0 alpha versions.

    2. Where to find the logs depends on your host. Is there access to logs from your hosts control panel?

    If you’re not a techie, adding the code for custom error reporting might be a bit over your pay grade, so I won’t post that. Right now though, if you are not seeing the forum, and it’s giving a 500 Server Error, you need to see what that error is to help resolve this.

    [~] $ curl -I http://www.aboutonlinetips.com/bbpress/

    HTTP/1.1 500 Internal Server Error

    Date: Thu, 08 Jan 2009 19:54:12 GMT

    Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

    Accept-Ranges: bytes

    Connection: close

    Content-Type: text/html

    #69703
    chrishajer
    Participant

    Hopefully, with an active blog, you have a good database backup.

    I’m confused on this point:

    my bbpress tables are inside of wordpress (obviously)

    That’s not obvious to me, at all. Do you mean the bbPress tables are inside the same database where your WordPress tables are? That’s OK. You can put as much stuff as you want into a database, so long as you use different table prefixes for the different applications. For example:

    WordPress: wp_
    bbPress: bb_
    Joomla!: jos_
    etc

    You can call your database whatever you want, then just keep loading tables into it for different application, like WordPress and bbPress.

    If you integrated WordPress and bbPress, then your bbPress installation used two existing WordPress tables: wp_users and wp_usermeta. That’s to allow integrated logins.

    Regarding where you put bbPress files, you said you put them into the phpbb directory. Does it look like this?

    /var/www/htdocs/website/phpbb3/

    /var/www/htdocs/website/phpbb3/bbpress/

    If so, someone else recently found that bbPress finds an existing config.php (the one for phpbb3) and won’t go any further. In that case, just rename the phpbb3 config.php to something else for just a minute, so installation can continue.

    There is some confusion about database names, table names and folders, for me anyway. Any information you can post to help clarify will help. Thanks.

    #71004
    ganzua
    Member

    Ok, I copy instructions Ipstenu kindly provided for 1.05a ;)

    1. 1.06a is here, download link at the bottom https://trac.bbpress.org/browser/tags/1.0-alpha-6/

    2. no backpress in trunk however, download this: http://backpress.automattic.com/changeset/190/trunk?old_path=%2F&format=zip – This is for the backpress folder

    3.Create a folder /bb-includes/backpress and unzip backpress there.

    that is it

    #71078
    ganzua
    Member

    How about http://bbpulp.org/

    Yes :) It would be very nice. I wonder why Matt didn’t send some resources to bbpress. Wp + bbpress + the buddypress thing… it would be the most powerful cms so far.

    Instead, the core of wp is being loaded all the time with stuff that you need to block installing new plugins :s

    #71002
    uv777bk
    Member

    It still says 1.0-alpha-5 in the file I downloaded :(

    #71076

    Perhaps the problem is the lack of a codex where you can find out how to add things-> do you want email notification? add this plugin.

    You know, that would be nice. If we could all (or maybe some more of us testers) could have codex access. The WP codex actually is editable by anyone. If BB’s was as well, we could all start helping improve documentation.

    #69697

    I am looking at mySQL and my bbpress tables are inside of wordpress (obviously) but with the bb_ prefix, so what would I be changing it to? There are no bb_ tables inside of phpbb3, which is what that error code indicates, or am I thinking of this wrong?

    #71001

    FYI – Only three files changed in Trunk

    • bb-includesfunctions.bb-users.php
    • bb-includesfunctions.bb-meta.php
    • bb-adminoptions-wordpress.php

    I uploaded those and my version says alpha-6

    Check your functions.bb-meta.php file for this:

    case 'version' :
    return '1.0-alpha-6'; // Don't filter
    break;

Viewing 25 results - 25,951 through 25,975 (of 32,468 total)
Skip to toolbar