Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,651 through 31,675 (of 32,462 total)
  • Author
    Search Results
  • #52851

    Yeah … it’s called profile_menu because it’s for your profile and not for the whole board =)

    You can add this function (with a new name like profile_menu_global) into a plugin so you don’t have to change the core files!

    Where are you from, Germany? I’m from Germany if you need more help ;-)

    #52850
    lordcoder
    Member

    Ok the problem is solved by using this function instead of the default profile_menu :

    function profile_menu() {

    global $bb, $bbdb, $bb_current_user, $user_id, $profile_menu, $self, $profile_page_title, $bb_table_prefix;

    $user_id=(isset($user_id)) ? $user_id : $bb_current_user->ID;

    $list = "<ul id='profile-menu'>";

    $list .= "nt<li" . ( ( $self ) ? '' : ' class="current"' ) . '><a href="' . get_user_profile_link( $user_id ) . '">' . __('Profile') . '</a></li>';

    if ( isset( $profile_menu ) ) :

    foreach ($profile_menu as $item) {

    // 0 = name, 1 = users cap, 2 = others cap, 3 = file

    $class = '';

    if ( $item[3] == $self ) {

    $class = ' class="current"';

    $profile_page_title = $item[0];

    }

    if ( can_access_tab( $item, $bb_current_user->ID, $user_id ) )

    if ( file_exists($item[3]) || function_exists($item[3]) )

    $list .= "nt<li$class><a href='" . wp_specialchars( get_profile_tab_link($user_id, $item[0]) ) . "'>{$item[0]}</a></li>";

    }

    endif;

    $list .= "n</ul>";

    echo $list;

    }

    #49484
    satellio
    Member

    File bbpress/bb-admin/index.php

    line #32 is:

    <li><?php printf('Forums started %s ago.', bb_since(get_inception())); ?></li>

    but should be:

    <li><?php printf(__('Forums started %s ago.'), bb_since(get_inception())); ?></li>

    in order for it to be “gettext-translated”.

    The file bbpress/bb-admin/index.php in the bbPress folder archive at http://sostomates.fr/projets/bbpress/bbpress.zip has been modified accordingly.

    #51982

    s010, I’m going to rephrase what you said. Let me know if this still looks correct. Also, your Step #2 has an error in the code writeup (placement of the end bracket).

      1. Find and comment out the following code in bb-templates/topic.php to remove the call to topic_resolved.

      <li id="resolution-flipper"><?php _e('This topic is') ?> <?php topic_resolved(); ?></li>

      Like this:

      <!--<li id="resolution-flipper"><?php _e('This topic is') ?> <?php topic_resolved(); ?></li>-->

      2. Add the following code to bb-includes/functions.php to overwrite the get_views functionality (don’t remove the get_views, just add this code anywhere on functions.php).

      function my_no_support_views($views) {

      return array_diff($views, array('unresolved' => __('Unresolved topics')));

      add_filter('bb_views', 'my_no_support_views');

      }

    #52421
    pontus
    Member

    Hehe, it was a pice of cake. :)

    http://www.crazy-media.com/bbpress/

    AND it is easy to add the extra “step” to ” Website Design > HTML Basics > Whats wrong with my site” to the top-links if you like and it’s easy to group the result on the frontpage if you like.

    (“General (forum cat block 1) >

    –Latest news (forum under general cat)

    –General Discussions (forum under general cat)

    –Site Feedback (forum under general cat)”)

    Well I think it feels “to much” so I made a new row in the table insted of giving every caregory its own line but its an easy to fix. Well, I didnt found any easy way to add a “middle-forum”, like it is in phpBB. If you clock on a categori you see all avalible forums.

    Well, well. My point with this post, if you would like i can post the code and changes. But I warn you, my “hack” isnt realy nice, it demands changes in the db, in the corefiles and ofcause template. And worst of all, it uses crapy if-else and no fancy “all data in the db and one function for each job”-stuff. I’m a newbi so I’m using newbi sollutions.

    #52873
    Null
    Member

    Hmm going to play with that, thx

    #52872

    There is a way I think (correct me if it’s wrong).

    Here’s an example:

    http://la-school.com/public/location-filter.txt

    #52871
    Null
    Member

    So in this case, there is no way to extend it?

    #50991
    mistainu
    Member

    i’m also facing the same problem, has anyone solved it? or will bbpress work a UTW integration? =P

    #52281
    spencerp
    Member

    It was no problem at all. ;) :) By the way, he also posted one over here sigh: https://bbpress.org/forums/topic/6/page/2?replies=48#post-2677

    Dang spammers! :(

    spencerp

    #52859

    In reply to: My forums template :)

    vaelrith
    Member

    Signature isn’t working most likely because you have the latest version of Avatar. The change you made in functions.php for signature need to be made in bb-avatar.php instead (in your my-plugins directory). Check out Line 34… that’s where you need to make the adjustement.

    No idea what that means… :(

    #52279
    Nicki Faulk
    Member

    Stalker? :)

    #52862
    spencerp
    Member

    Ah, ok.. I’ll have to try/test that then Josh.. thanks for pointing that out.. ;) :)

    spencerp

    #49483
    satellio
    Member

    I have made a .pot file, a fr_FR.po file and a fr_FR.mo file from version 561 in the bbPress Subversion trunk.

    http://svn.automattic.com/bbpress/trunk/

    svn co http://svn.automattic.com/bbpress/trunk/

    The localization files are based upon the previous French localization files for bbPress made by Luc St-Elie.

    https://bbpress.org/forums/topic/6#post-331

    • The bbPress 561 folder:

    http://sostomates.fr/projets/bbpress/bbpress.zip

    • The pot file:

    http://sostomates.fr/projets/bbpress/trad/bbpress.pot.zip

    • The French po file:

    http://sostomates.fr/projets/bbpress/trad/fr/fr_FR.po.zip

    • The French mo file:

    http://sostomates.fr/projets/bbpress/trad/fr/fr_FR.mo.zip

    See it in action at http://sostomates.fr/

    Comments welcome at http://sostomates.fr/bar/topic/20?replies=1

    #52748
    Nicki Faulk
    Member

    OK, who let the spammer in? :)

    #52870
    so1o
    Participant

    you can’t add code but can add functionality – IF it has filter hooks in for the function

    #1161
    chrishajer
    Participant

    I am recording this here only so that I don’t lose the information. My forum has been running for about a month and I have never had an issue logging out. Today only, one time, I logged out and got this error:

    bbPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1]

    SELECT * FROM bbpress_online WHERE user_id = LIMIT 1

    Warning: Cannot modify header information - headers already sent by (output started at /htdocs/riverside/forum/bb-includes/db-mysqli.php:147) in /htdocs/riverside/forum/bb-includes/pluggable.php on line 168

    This the the URL from the address bar:

    http://www.example.com/forum/bb-login.php?logout

    I’ve never had that before and I cannot reproduce it. It happened only once and is now fine. I had not edited any files in the past couple of days or added any new plugins. The only thing possibly related is I upgraded from Firefox 1.5.0.x to 2.0.0.1 yesterday, and this was the first time logging out on this computer with that browser (Windows XP if it matters.) Maybe that’s somehow related?

    #1160
    chrishajer
    Participant

    Occasionally, a post will get flagged by Akismet as spam, and it’s because of the apparent limitation on links. Posts with 3 links do not get flagged, posts with 4 do. Is there a workaround for that, or barring that, can you whitelist specific posters so their posts are not checked by akismet or they are just passed through, like a whitelist?

    Looking through bb-includes/akismet.php I found this on line 121

    bb_trusted_roles() ... // Don't filter content from users with a trusted role

    How do I set specific users for a trusted role? In user admin, I see only administrator, moderator, member, inactive and blocked. Everyone is a member now.

    Also, I am integrated, if that matters.

    Maybe something in wp_usermeta (bbpress_capabilities or user_level)?

    Could I add ‘member’ to

    ./bb-includes/functions.php:1546: return apply_filters( 'bb_trusted_roles', array('moderator', 'administrator', 'keymaster') ); (knowing the downsides, whatever they may be?)

    Thank you

    #1159
    kuczek
    Member

    There are places, like in template-functions.php where you want to use singular/plural forms, it goes like :

    __ngettext( 'post', 'posts', $post_num )

    Im translating EN to PL using poEdit and I added there __ngettext keyword, after that it take for me ‘post’ string, but ‘posts’ was ommitted, how to take them all ?

    #1158
    Null
    Member

    Hi,

    Just wonderin IF this is possible and how.

    In template-functions.php around row 176 there is the following function:

    function get_bb_location() { // Not for display. Do not internationalize.

    and it has cases like:

    case 'index.php' :

    return 'front-page';

    break;

    I want to add my own case into this function, but how do I do this? I can do it manually ofcourse, but I want to do this using a plugin. Any ideas?

    Thx

    #52861
    ardentfrost
    Member

    I think he means he wants the ability to add new ones or take away some on his own, possibly through a nice interface. It’s not a bad idea.

    For now, though, if you want to change it, make a file in your my-plugins directory and put this in it:

    <?php

    function get_profile_info_keys_personal() {

    return array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')));

    }

    add_filter('get_profile_info_keys', 'get_profile_info_keys_personal');

    ?>

    Then you can add or take away whatever you want.

    However, you will need to know a little more about how other plugins work. For instance if you use my avatar plugin, you would need to add into that file 'avatar_loc' => array(0,__('Avatar URL')) (into that long line) and comment out part of my plugin.

    A plugin to do all of that automatically wouldn’t be hard, but would need to be done in such a way so that people can write plugins to interface it (so, for instance, I could interface it from my avatar plugin to make sure that the part I need is inserted into the line).

    I only mention that so that if anyone decides to tackle the plugin before I do, they’re sure to account for that ;)

    #52857

    In reply to: My forums template :)

    spencerp
    Member

    Nice one! I love it!!

    and remove the front-page.php changes so that it is more standard and release it to public whenever I change to a new theme. I don’t want other people to be using my theme at the same time I am =D

    Awww, damn, damn, damn it.. lol! Just kidding..! =P Either way you release it, will be fine by me.. whee~~

    spencerp

    #1155

    Topic: My forums template :)

    in forum Themes
    vaelrith
    Member

    I made a theme for my forums, and found it rather easy. It was mostly just all css, and a few changes to the front-page.php file.

    http://zenhelix.us.to/forums/

    I’m using a few plugins also:

    • Allow Images
    • bb-avatar
    • bb-limit-latest-discussion
    • bb-memberlist
    • bb-postcount
    • bb-privatemessage
    • bb-signature – this one isn’t working for some reason, but i didn’t really look into it
    • display-name
    • forum-moderators – don’t know if this one is working either
    • notification
    • onlinelist

    Thanks to all who made those :)

    I’ll make the theme more user-friendly and remove the front-page.php changes so that it is more standard and release it to public whenever I change to a new theme. I don’t want other people to be using my theme at the same time I am =D

    #51720
    Nicki Faulk
    Member

    Thank you, devils_adv. :)

    #51718
    Nicki Faulk
    Member

    Thanks, spencerp! :)

Viewing 25 results - 31,651 through 31,675 (of 32,462 total)
Skip to toolbar