Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,251 through 25,275 (of 32,481 total)
  • Author
    Search Results
  • #73089
    _ck_
    Participant

    make it into a mini-plugin, ie.

    <?php
    /*
    Plugin Name: No Profit Edit
    */
    function bb_tweaks_no_profile_edit($retvalue, $capability, $args) {
    if ($capability=="edit_user") {return bb_current_user_can( 'administrate');}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'bb_tweaks_no_profile_edit',10,3);
    ?>

    Save it as no-profile-edit.php put into my-plugins and activate.

    Make sure you don’t put any spaces at the beginning or end of the file.

    #73088
    cyclune
    Member

    Chrishajer is right. I have bbpress linked with WordPress. I don’t want the users to change their own profile with wrong email adresses or new user names.

    _ck_ – where do I have to insert this piece of code???

    cyclune

    #73141
    bruinfelix
    Member

    @PierrottorreiP

    Take a good look ;-)

    It isnt even a wordpress theme! :D

    #73148
    _ck_
    Participant

    To edit a .mo file you first need to have the .po version of it.

    Then you can edit it with POEDIT

    If you don’t have any of those things, first get POEDIT

    http://www.poedit.net/download.php

    If you only have a .mo file and not the .po but wish to add/edit the translations, you can “decompile” or reverse the .mo file into a .po file from the command line with poedit , ie.

    START -> RUN

    /program files/poedit/bin/msgunfmt ab_AB.mo > ab_AB.po

    #73139
    bruinfelix
    Member

    Then you must be more specific, on who you asking a question ;)

    #73087
    _ck_
    Participant

    untested, in theory:

    function bb_tweaks_no_profile_edit($retvalue, $capability, $args) {
    if ($capability=="edit_user") {return bb_current_user_can( 'administrate');}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'bb_tweaks_no_profile_edit',10,3);

    #73130
    _ck_
    Participant

    Go into your wp-config.php and put the line

    @define(COOKIE_DOMAIN,'.diskinserted.com');

    then go into your bb-config.php and put the line

    $bb->cookiedomain = '.diskinserted.com';

    Make you you remove any existing versions of the lines first.

    Make sure you clear all cookies for your website.

    Then try logging in and testing again.

    #73137
    bruinfelix
    Member

    I use the latest wordpress MU version (trunk), and just the alpha-6 version of bbPress ;-)

    Ohw, and a recent version (also trunk) from the buddypress website ;-)

    #59345

    In reply to: Adding a new User Type

    firstangel
    Member

    I have saved, uploaded, activated. No new membergroup anywhere :(

    #73092
    chrishajer
    Participant

    Actually, I think the problem is that there is no space after the <?php, the comment starts right away.

    You have this:

    <?php// ** MySQL-asetukset ** //

    It should be this:

    <?php // ** MySQL-asetukset ** //

    Or just put the comment on the next line.

    #73135
    bruinfelix
    Member

    I did it, and you can find the information for it, already on this forum ;-)

    #73097
    Test
    Member

    Thanks for all your info. :)

    #73119
    rhammons
    Member

    Looks like I got the cookies hammered out after opening up my safari preferences and finding the cookie code in there… So now when I’m logged in in WP it seems to be consistent with the account logged into BBP, except I still have no admin options in BBP. Hrmph. Any ideas?

    #73118
    rhammons
    Member

    Looks like the user table’s shared, as I can log in with all the various wpmu users into the forum, I just don’t have any admin privileges. I tried walking through the bb-config changes that are on here, looking especially at the cookie information, and I think I have it all right. Only thing I can’t find is the wp auth cookie code information… where should i find that?

    #72986
    sydarex
    Member

    I’ve solved.

    Listening to _ck_, I’ve worked a little around the settings in the database. I found that some settings are stored in the bb_topicmeta table. There are some records with topic_id “0”. Obviously there are no topics with id 0 – so I deduced that are general settings.

    I’ve just took the values generated by the fresh installation and put them in the old database. Now everything works fine.

    Thank you all for help; particularly to _ck_ that sent me to the right way.

    Bye bye! :)

    #6605
    rhammons
    Member

    Hello, I’ve run into this issue twice now upon trying this. I’ve got WPMU installed on a subdomain, added the BuddyPress plugin, and that’s it. Then I go to add my BBPress as a sub-directory to said subdomain and install it just fine, using the same database – set up an administrator account, etc. I log into it, and try to do the integration to WP, add the secret code, add the cookies line to my wp-config.php, tell it to share users, etc. Once I submit that integration page I’m logged out, and I can’t log in any more with the administrator account i made for BBPress, but I can log in with my WP Admin’s account, but here’s the ringer, I no longer have any administrative privileges – so the BBPress install becomes useless. What do you think I am doing wrong, or should be doing otherwise? My goal is to simply have this forum integrated into WPMU/BuddyPress. Any pointers would be appreciated, thank you!

    #73093
    bruinfelix
    Member

    Maybe when they realse the 2.8 version of WordPress ? ;-)

    #73080
    C Bog
    Member

    i wanted to modify my template, in order to send the user to the last page of the selected topic. (this was before i discovered the topic_last_post_link() function).

    in order to do this, i manually computed the last page number and send it to topic_link() through the $page parameter. nothing happened so i looked at the code and found the error i’ve mentioned. after replacing that line with the one i’ve suggested, everything seemed ok.

    any thoughts?

    #51937

    In reply to: Language

    bruinfelix
    Member

    Strange :-)

    I have a: “nl_NL” mo file in the folder: “my-languages” in the root of my installation of bbPress, and it just works just fine ;-)

    #5187
    C Bog
    Member

    i think that the following line:

    echo apply_filters( 'topic_link', get_topic_link( $id ), $id, $context );

    should be replaced with this line:

    echo apply_filters( 'topic_link', get_topic_link( $id, $page, $context) );

    this is inside the topic_link() function, in functions.bb-template.php file

    i use version1.0-alpha-6 and this line is number 855.

    please correct me if i’m wrong.

    #73064

    In reply to: How apply Do-follow?

    rafael_g_v
    Member

    Sorry I had a mistake whith my direction is http://www.comohacertuweb.com

    and Thank for all.


    I`m newbie and I have a directory “http://www.comohacertuweb.&#8221; the theme is open source , freeware software and I want use link do-follow .

    How apply?

    Sorry for my low level of english

    I don´t know where put this thread , sorry if it´s in other section.

    thank for all.

    #5184
    adv_user
    Member

    In this url:

    http://bbpress.org/forums/topic/sub-sub-forums#post-11762

    works:

    -Forum

    -Subforum

    Subsubforum1, Subsubforum2, Subsubforum 3

    But I need to change the style sheet to show:

    <div id="list">

    <div class="forum">- Forum</div>

    <div class=”subforum”>

    – SubForum

    Make a loop to show Subsubforum in the div SubForum and not below

    <div class=”forum”>Subsubforum1, Subsubforum2, Subsubforum 3</div>

    </div>

    <div class=”subforum”>

    – SubForum

    </div>

    <div class=”subforum last”>

    – SubForum – with LAST class.

    <div class=”forum”>Subsubforum1, Subsubforum2, Subsubforum 3</div>

    </div>

    </div> <!– close id “list” –>

    #72802
    grasn
    Member

    @chrishajer, thanks for the code, this one didn’t work for me, but the one on the page top. You can visit my forum http://deadrising2.de/?page_id=84

    If someone wants to know how i made it, I just removed stuff from the bbpress head.php so it looks like this:

    <body>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    and also the first </div> from the footer.php, I also removed the hot tags stuff from frontpage.php. Now I installed embed-iframe plugin for wordpress and modified the iframe.php like this:

    <div class="iframe-wrapper">
    <iframe src="<?php echo $url ?>" frameborder="0" id="youridnamehere" width=100%>Please upgrade your browser</iframe>
    </div>
    <script type="text/javascript">
    function resizeIframe() {
    var height = document.documentElement.clientHeight;
    height -= document.getElementById('youridnamehere').offsetTop;

    <code></code>// not sure how to get this dynamically
    height -= 150; /* whatever you set your body bottom margin/padding to be */

    document.getElementById('youridnamehere').style.height = height +"px";

    };
    document.getElementById('youridnamehere').onload = resizeIframe;
    window.onresize = resizeIframe;
    </script>

    Now I just modified the width of the bbpress style.css for head, main and footer, and also the cols/width of the textarea. I still have a scrollbar if there are more posts on one page, but I can live with.

    Thanks for your help!`

    #73063

    In reply to: How apply Do-follow?

    do follow is the opposite of no-follow, last I heard. Which is amusing since by default, it’s all do-follow ;)

    That link is interesting! Wonder if it actually happened (dated Oct 2007…)

    #73020
    _ck_
    Participant

    There are now three bbPress forums with over a million posts, the leader being Simon and Schuster’s site which appeared so suddenly that I suspect they must have imported their content from another forum that already existed for some time.

    Here are some other ranges by number of posts:

    1,000,000 + 	 	3
    100,000 - 499,999 11
    50,000 - 99,999 22
    10,000 - 49,999 70+
    5,000 - 9,999 70+
    1,000 - 4,999 300+
    100 - 999 1000+

    bbPress is being used in nearly 90 countries/regions.

    Here are the top 50 in order of highest use.

    (note that as we get lower in the list, the higher the chance of inaccuracy,

    some countries/languages are hard to detect)

    1. United States
    2. Germany
    3. Russian Federation
    4. Spain
    5. United Kingdom
    6. Italy
    7. France
    8. Turkey
    9. Canada
    10. Netherlands
    11. Sweden
    12. Denmark
    13. China
    14. Japan
    15. Brazil
    16. Europe
    17. Romania
    18. Poland
    19. Australia
    20. Norway
    21. India
    22. Argentina
    23. Ukraine
    24. Czech Republic
    25. Belgium
    26. Switzerland
    27. Finland
    28. Austria
    29. Indonesia
    30. Hungary
    31. Bulgaria
    32. Montenegro
    33. Iran
    34. Saudi Arabia
    35. Ireland
    36. Chile
    37. Latvia
    38. Niue
    39. Portugal
    40. South Africa
    41. Israel
    42. New Zealand
    43. Greece
    44. Malaysia
    45. Slovakia
    46. Lithuania
    47. Mexico
    48. Thailand
    49. Serbia
    50. Singapore

Viewing 25 results - 25,251 through 25,275 (of 32,481 total)
Skip to toolbar