Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,451 through 6,475 (of 6,788 total)
  • Author
    Search Results
  • #58682
    outchy
    Member

    where can i change this default text for these links at the bottom of topic.php:

    <?php topic_delete_link(); ?> <?php topic_close_link(); ?> <?php topic_sticky_link(); ?>

    i can’t find it except in template-functions.php, which i won’t ever touch again :)

    #56719

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Well, yes, the plugin includes a file that must be placed into the bbPress root as well as another file that must be moved into the templates folder (either bb-templates/kakumei or my-templates/template-name). Not to mention the creation of the avatars folder and uploading of the default avatar.

    I can not see any way around this other than uploading all files to the my-plugins/avatar-upload folder and then using the script to move them to the right locations. Although, the file that remains in the my-plugins would still need to be manually edited to set the plugin’s options. Likewise, the folder creation could be done with a script rather than the current manual creation (as SamBauers suggested on the Plugin Browser thread).

    Is there a hook for when a plugin is activated? Looking around bbPulp I found the following…

    bb_deactivate_pluginXXX
    bb_activate_plugin_XXX

    … but no information on how they are used.

    #57313

    In reply to: Plugin: bb-Topic-Views

    _ck_
    Participant

    Here’s a plugin to extend the topic-views plugin and add a “most-views” view page (ie. view.php?view=most-views)

    It does it with a minimum number of mysql calls, just 10 to display an entire page on my setup. You have to hack your views.php template to add the views column, use $topic->views for the view count to use the cached data in memory instead of an extra mysql query for each topic.

    function most_views_views( $views ) {
    global $views;
    $views['most-views'] = 'Topics with the most views';
    return $views;
    }
    add_filter('bb_views', 'most_views_views');

    function most_views( $view ) {
    global $bbdb, $topics, $view_count;
    switch ( $view ) :
    case 'most-views' :
    $limit = bb_get_option('page_topics');
    $where = apply_filters('get_latest_topics_where','');
    $most_views = $bbdb->get_results("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key='views' ORDER BY cast(meta_value as UNSIGNED) DESC LIMIT $limit");
    foreach (array_keys($most_views) as $i) {$trans[$most_views[$i]->topic_id] =& $most_views[$i];} $ids = join(',', array_keys($trans));
    $topics ="SELECT * FROM $bbdb->topics WHERE topic_id IN ($ids) $where ORDER BY FIELD(topic_id, $ids)";
    $topics = $bbdb->get_results($topics);
    $view_count = count($topics);
    $topics = bb_append_meta( $topics, 'topic' );
    break;
    default :
    do_action( 'bb_custom_view', $view );
    endswitch;
    }
    add_action( 'bb_custom_view', 'most_views' );

    #59317
    oledole
    Member

    Some more info:

    If I set permalinks in WP to default the 404-message in firebug goes away, and I can chech the forum pages with http://www.websiteoptimization.com/ without problem …

    #59309

    In reply to: Noobish CSS Question

    fel64
    Member

    There’s no direct solution. You can do one of these:

    • Change <?php tag_heat_map(); ?> to <?php tag_heat_map('limit=30'); ?>. The default limit is 40 I think, if you set it to 30 or any appropriate number they won’t go so far down. But you’d want to change that again later.
    • Put the footer inside the wrapper. I’m not sure how your templates are arranged, but in kakumei you’d just have to open footer.php and move the codeblock that produces the div footer up a few lines, just above the previous </div>. Permanent change, now the footer is on the white, but the white will always stretch down sufficiently.
    • Wait it out – eventually there’ll be enough topics to stretch the page :)

    I think there are a few other things you could do, but that second point is probably the best if you need it changed now.

    #2136
    _ck_
    Participant

    Can anyone tell me what the standard number of queries for the front page are on a default install of bbpress?

    I think mine are high because of my template hack for the latest reply link. (added: nope, tried removing it and no query reduction)

    There has to be a way to cache that and reduce the number of calls by pre-fetching all the links for all the topics to be listed, instead of doing one call at a time…

    tisme
    Member

    +1 for wider (800px) template.

    also, default “Reply” input textarea is too small (get scrolled) and

    ‘background: url(images/bg.png) #ccc fixed center top;’ makes it somewhat slow.

    so far, wp.com forums layout by the Matt Thomas is the best layout of all bb forums I had a chance to see.

    nice addition would be to have a link to the “Latest Post” on the front page/forum posts index table — it’s a matter of just a couple of lines to be added to the front-page.php/forum.php — makes a big deal to quickly get on a last post of multi-page posts w/o having to redundantly load a 1st page of the thread.

    #59190
    fel64
    Member

    The user login handling functions are all pluggable. They’re in bb-includes/pluggable.php, always check if a function of that name already exists before defining the default one, and is loaded after plugins are run. So you can overwrite any of them.

    Inquirer
    Member

    Why does New Posted Topics default into Hot Tags?

    I thought Hot Tags were to provide links to other web pages or Web sites.

    Can Hot Tags links be added through Admin or do they have to be edited in a file and FTPed?

    Is there a Administration plugin, which provides more functionality to add, delete, and edit?

    #59088
    _ck_
    Participant

    Remember that many users will already have the “remember me” set for their cookie on wordpress and that doesn’t expire for a year. This means their bbpress login will mysteriously fail. They’ll either give up or re-register a new nickname.

    You also need the space and period plugin fix for names. WordPress allows them, bbpress doesn’t by default. So anyone with a space or period in their nickname will fail logging into bbPress. Not knowing such things can drive you mad.

    I also went a step further and routed all the login links on bbpress back to the wordpress login box since it has a few extra features. I use the redirect_to option to bring them back to bbpress.

    ps. another good integration thread for a future integration sub-forum

    fel64
    Member

    I’m not sure I understand. Is this a technical problem with bb or a conceptual problem with your idea?

    If you make fake accounts so you can post threads with the right dude’s name, and the right dude turns up later, just give him your fake account. That’s not automatable by default, you would have to manually edit the profile to set their email and then let them set their own password. But it would work.

    Do you have the right dude’s permission to post his jobs?

    Trent Adams
    Member

    You mean having a template that is completely ‘auto’ driven so that it adjusts to each browser window width? I know that I constantly get users a little mad at me because I like ‘big resolution’ on my computers and my users are still at 800 X 600 screens so my sites have a tendency to have to be scrolled. ;)

    Not sure about the overflow as I don’t use the default theme myself. Anyone else?

    Trent

    #59013

    In reply to: Punbb -> BBPress

    _ck_
    Participant

    Ah I see. It’s the misconception that by name alone, that bbpress integrates easily/well with wordpress. You’ll find several experiences that it does not integrate easily or well by default. Between the nasty cookie issue and the even worse username issue, it makes no attempts on it’s own to integrate. You’ll need a few plugins and some trial and error with members.

    I’ll suggest again to the powers that be that an integration sub-forum might be a good idea to warn/help others. The mini-faq doesn’t begin to cover the issues.

    #54756
    _ck_
    Participant

    bbPress’s auto-close tags is broken by default – though the code and filter is in there, it’s not passed correctly:

    add this to a plugin

    function force_balance_tags($text) {return balanceTags($text, true);}

    add_filter('pre_post', 'force_balance_tags');

    or if you don’t know how, use my tweaks plugin:

    http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/

    #2093
    bernabauer
    Member

    Hi there people!

    I just finished translating to Brazilian Portuguese. The file is available for download at my blog:

    bbPress em português

    I noticed that the default theme has some problems, so I corrected the problems on the theme and packed it for download. It’s the same URL for this download.

    O arquivo para download do arquivo de linguagem para português do Brasil está disponível. Basta acessar a URL acima. Recomendo baixar o tema padrão que disponibilizei por que ele tem correções para alguns problemas de frase não contempladas no .po original.

    cheers!

    #58995
    Inquirer
    Member

    [Best bet would be for you host to install it for you since that is what almost 100% of good hosts do.]

    Then I don’t have a good web hosting service.

    I am reading through phpAdmin Quick Install at

    http://wiki.cihar.com/pma/Quick_Install

    I received the following from my web hosting support.

    <public_html IS your document root.

    MySQL v. 4.0.25 is running on my server

    PHP Safemode is off by default.>

    <You can also login to the server via ssh and connect to the database from a shell prompt.>

    I installed WinSCP to login to my server via SSH.

    Can I access my php database through Console using the WinSCP?

    In other words, is phpAdmin a more friendly interface access my php database?

    #54382
    thierryyyyyyy
    Participant

    I have the same error on LOCALHOST, and also with windows. (my forum hosted on web works :) )

    (thierry is the name of my computer, and is synonyme of “localhost”)

    link I click on to activate my template is such : (there are 2 “”)

    http://thierry/forum/bb-admin/themes.php?theme=D%3A%5C%5CMes+Documents%5C%5Csites_web%5C%5C2diabolos.com%5C%5Cforum%2Fmy-templates%2F2diabolos%2F&_wpnonce=0ecdd913e2

    I tried the “patch_to_url_2” in vain.

    a “brillant” idea made me change the themes.php :

    if ( !in_array($activetheme, $themes) ) {
    $activetheme = BBPATH . 'my-templates/2diabolos/'; // THIS LINE WAS 'bb-templates/kakumei/' ...
    bb_update_option( 'bb_active_theme', $activetheme );
    remove_action( 'bb_admin_notices', $theme_notice );
    bb_admin_notice( __('Theme not found. Default theme applied.'), 'error' );
    }

    works well (hopefully)

    (after reflection, I think the following line don’t help)

    I tried to debug a little bit. I put in themes.php

    print_r($themes);
    echo "<br>";
    echo "the theme you want to activate : " . $_GET['activated'] ;

    the result for the first line is good, the “$_GET ” is empty.

    #58981
    Inquirer
    Member

    Does clicking the ‘RSS feed for this topic’ link give this topic more exposure outside this forum?

    It apears that a post on this forum is able to be edited for up to an hour, which is the default setting in the config.php file.

    On another forum of a different nature, the posts are able to be edited indefinitely, which can come in handy rather than creating another post.

    Just a thought.

    I like the ‘This topic is one of your favorites’ feature.

    #58959
    Trent Adams
    Member

    I tested it on my onvertigo.com site which is not using the default template either. It doesn’t work for me with any themes!

    http://onvertigo.com/topic/media-types-played-in-this-forum?replies=12#post-38

    Strange…..using:

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/2G_AHHxSctE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/2G_AHHxSctE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    Trent

    #58957
    _ck_
    Participant

    Just tested a youtube embed copied right from their site and it works tested in IE and Firefox.

    I don’t use the default bbpress template however, I wonder if that is affecting it somehow.

    Are you using the updated v0.02 that I posted, not v0.01 ?

    If it still doesn’t work, can you view source on the outputed page and copy just the part with that one post with full html here (between code tags obviously) so I can see what it is doing?

    #55793
    _ck_
    Participant

    Default bbpress cookie is one week.

    My cheap plugin to make it one year:

    https://bbpress.org/forums/topic/request-remember-me-plugins?replies=3#post-8837

    #58919
    _ck_
    Participant

    I bet they mean like in wordpress where the cookie will be set for a year instead of a week?

    What’s the bbpress cookie default, I’ll have to go look at the code.

    I get around this problem by forcing the wp login from everywhere.

    There was another request for this feature here:

    https://bbpress.org/forums/topic/remember-me-option-at-login?replies=3

    _ck_
    Participant

    This is so simple I bet I am duplicating what someone else has already done. I am not sure why this isn’t in bbPress by default and it doesn’t even begin to address what I would consider basic moderation tools but it’s a start.

    Install and check under “content” submenu. Why the posts menu =deleted posts in bbpress’s default I have no clue.

    <?php
    /*
    Plugin Name: bbPress Recent Posts
    Plugin URI: http://bbpress.org/plugins/
    Description: shows most recent posts with (extremely limited) moderation options
    Author: _ck_
    Author URI: http://CKon.wordpress.com
    Version: 0.01
    */

    function recent_posts_admin_page() {
    if ( !bb_current_user_can('browse_deleted') ) {die(__("Now how'd you get here? And what did you think you'd being doing?"));}
    global $bbdb, $bb_posts, $bb_post, $page;
    $bb_posts=get_latest_posts(0,$page);
    $total = bb_count_last_query();
    ?>
    <h2>Recent Posts</h2>
    <ol id="the-list">
    <? bb_admin_list_posts(); ?>
    </ol>
    <?php echo get_page_number_links( $page, $total );
    }

    function recent_posts_admin_menu() {
    global $bb_submenu;
    $bb_submenu['content.php'][] = array(__('Recent Posts'), 'use_keys', 'recent_posts_admin_page');
    }
    add_action( 'bb_admin_menu_generator', 'recent_posts_admin_menu' );

    #57838
    _ck_
    Participant

    Well akismet support can be added to virtually any forum or blog software so that’s not really a claim to fame. I tried installing the moderate posts plugin but it’s not working right and preventing all posts from being displayed.

    There’s also no way to tie any kind of “bad words” list into auto-moderation, and then how do you find any list of moderated posts? Sigh. All of this is already in wordpress so it’s really strange to me it’s not in bbpress by default.

    Well I’ll stop here and won’t tie up this particular topic with this further since you can’t move individual posts to other/new topics with bbpress (another missing moderation need).

    #56707

    In reply to: Plugin: Avatar Upload

    _ck_
    Participant

    I found visitors were getting really hassled by the filename restrictions so I decided to relax them while still keeping some safety since you already check mime types & file extensions

    instead of:

    !eregi("^([-a-z0-9_]+).([a-z]+)$", $img_name)

    I reduced it to only exclude the four bad characters I can think of:

    eregi("#|?|&|%", $img_name)

    What do you think? Safe enough?

    Is your mime check from the physical file itself or just the sent headers? Hopefully the physical file or it’s not secure enough.

    My change allows people to click browse and enter a url into their file browser, which forces Windows to pull down the file first, then upload it to the site. Not sure what other OS’s will do. Windows adds [1] to the filename in the temp area, so your name filter was blocking it from uploading.

    My next ideas are to give lazy people a section of default avatars to choose from instead, and to allow members several stored avatars to chose from (your table should allow multiple entries per member I think, though the code to deal with it will have to be changed of course).

Viewing 25 results - 6,451 through 6,475 (of 6,788 total)
Skip to toolbar