Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,651 through 31,675 (of 32,467 total)
  • Author
    Search Results
  • #1163
    chrishajer
    Participant

    I tried to insert a tag that was a duplicate, and got this error:

    bbPress database error: [Duplicate entry '231-1-65' for key 1]

    INSERT INTO bbpress_tagged ( tag_id, user_id, topic_id, tagged_on ) VALUES ( '231', '1', '65', '2006-12-31 15:19:51')

    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/wp-functions.php on line 816

    ]]>

    Are duplicate tag insertions normally caught?

    #52852
    lordcoder
    Member

    K , thanks thomasklaiber , i ill create a new plugin so i don’t lose the changes on a specific update :P

    PS : i am from Morroco , but i can speak French , German , English …

    #1166
    spencerp
    Member

    Ok people, here’s the deal.. I’ve installed MediaWiki 1.8.2 on my domain: http://codex.spencerp.net/ and customized the links for it and so forth.. no big deal right… ?

    What I have done so far is (in this order)..

    1) Integrated bbPress to my WordPress blog.. So anyone that registers on my bbPress forums, is automatically registered into my WP blog. Usernames and Passwords work for BOTH..

    2) Applied the bbPress_Auth_for_MediaWiki extension to my MediaWiki.. However, I had to use some of the modifications listed here.

    Now, people can login to my MediaWiki with the usernames and passwords from either the WP blog, or the forums.. ;):)

    The ONLY problem I’m having now, is.. having users register for a new account on my MediaWiki “Create New Account” page.. sigh.. I’m getting the following error..

    http://codex.spencerp.net/Special:Userlogin?type=signup&returnto=Main_Page

    “Login error:

    There was either an external authentication database error or you are not allowed to update your external account.”

    Which is obviously saying, it’s trying to create a new account in the MediaWiki database.. but, where really it should be trying to make a new account in my WP database.. right? Or, that might be meaning the other way around.. I’m not sure.

    My questions are:

    1) Is there a way to modify the “Create New Account” page, with the WP register page codes? So, when someone tries to create a new account on my MediaWiki itself.. it calls the WP database for it?

    Or..

    2) Just modify the MediaWiki file, that contains the “Create Account” link, and use the link to the registration page for the WP blog itself? And if so, which MediaWiki file does this reside in?

    I guess I’d rather have it simple.. and just implement the WP registration codes, into the MediaWiki file.. so there is no redirecting of the “Create Account” link in my MediaWiki..

    Or, does someone know of an “extension” for MediaWiki.. that synchronizes the MediaWiki & WordPress registrations? Thanks in advanced.. ;) :)

    spencerp

    /It’s ALMOST totally there now.. the way I want her.. just that dang Registration problem on the MediaWiki sigh.

    By the way, you have to be registered and signed-in, to edit my Wiki.. whee! Which means, you’ll have to register on my blog, or forums first! This is why I’d like to get this MediaWiki registration figured out soon sigh..

    #51680
    spencerp
    Member

    Haha, Glad to hear you found it though! ;) :) I posted some other plugins I’m using in this blog post here:

    http://spencerp.net/id/4

    Shoot, I’m actually missing some there.. I’ll have to re-edit that post again soon.. Again, glad to see you found it, and thanks for checking through my forums.. :D

    spencerp

    *cough* You could join there ya know..? Lmao Ya don’t have too though.. =P

    #51679
    Nicki Faulk
    Member

    Not sure how I overlooked this one, but I was just wishing for something like this last night! :)

    (found via spencerp’s forums, hehehehe)

    #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

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