Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,051 through 26,075 (of 32,570 total)
  • Author
    Search Results
  • #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;

    #71075
    ganzua
    Member

    Sometime ago I used to think the same, bbpress is too light but when it comes to integrate with wordpress and after having tried another option like simple-forum, I prefer a light core.

    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.

    This should be my only concern so far along with some parts of the core that should be in the template folder. There is stuff in functions.bb-template.php and I recently found more in functions.bb-core.php .

    #70269
    ganzua
    Member

    Hi nightgunner!

    Thanks for the code :) It works great.

    #69695

    Everything went fine until I went to truncate and then got this message:

    Table ‘robpr3_phpBB3.bb_forums’ doesn’t exist [1146]

    I had all ready installed and integrated bbpress with WP. Does this mean I have to start from scratch? :-(

    Thanks.

    #71073

    Hahah… Well, the idea behind bbPress is not to install things like this within the core. This way forum administrators aren’t bogged down with the extra weight of a series of functions that they never intend to use; a less is more approach.

    There is also a plug-in that provides this exact functionality in the extend area. ;)

    #65890
    Frank
    Member

    _ck_ said:

    Showing a gravatar for any email address is as simple as:

    <img src=”<?php echo “http://www.gravatar.com/avatar.php?gravatar_id=&#8221;.md5($user->user_email); ?>” >

    The mysql code for the email of the last poster is going to need a left join of the users table against the post table and more than I am willing to do right now. I suppose I could be lazy and use get_latest_posts(1, 1) to fetch the entire info the last post and grab the email address from there.

    does anyone knows?, please.

    #4601
    Famous
    Member

    Why doesn’t bbPress incorporate email notifications? Isn’t that a no brainer, how else is a person notified of changes to their topic? RSS VS eMail, outcome, eMail wins–right? Not everyone is a techie type of person. They post their questions and if email is not setup they won’t ever know what the answer was?

    vbulletin will always be tops if these issues are not dealt with, right?

    I am an outsider please put down the stones :) I am just curious…

Viewing 25 results - 26,051 through 26,075 (of 32,570 total)
Skip to toolbar