Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,226 through 25,250 (of 32,468 total)
  • Author
    Search Results
  • #54701

    For a non-shared DB, you just have to define the database instead of $bbdb

    #73158

    bbSEO Tools is great but it messes up cyrillic characters in the description for topic pages. I peeked into the code and tried replacing line 53:

    return htmlentities($snippet, ENT_QUOTES);

    with this:

    return wp_specialchars($snippet, ENT_QUOTES);

    Seems to be fine now :)

    The plugin admin page is a bit messy – could use some more precise labels and explanations.

    IDEA: Could the function for pulling out the description for topic pages be enhanced so that it strips bbCode and html tags from the output? They take up character space and look awful in search results.

    I guess it’s a matter of writing some nifty RegEx but my knowledge is not sufficient for this.

    Thanks and Cheers!

    #69990
    jfcarter
    Member

    Is this the most up to date code? I’ve tried to use it and I am getting no effect. No errors, nothing.

    Is there a specific location where the plugin should reside (besides bb-plugins) or does it need a specific name?

    Also, should the path just be the domain or something else?

    #73166
    chrishajer
    Participant

    It seems pretty clear that this table does not exist:

    saphruse_bbp01.wp_users

    Can you look at the database and see what tables are actually present there? Looks like bbPress is trying to use the wp_users table for integration, but it’s not present? Did you use the same database for WordPress and bbPress?

    #73169

    In reply to: target _blank

    _ck_
    Participant
    function bb_target_blank( $text ) {
    $text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
    return $text;
    }
    add_filter('post_text', 'bb_target_blank',255);

    #73030

    _ck_, I looked into some things about regionality and I don’t think you’ll be able to get it much better than it is, unless you do as you mentioned, with the whois. Even then, it’s not going to be accurate 100%, since sometimes a server is in the US, but it runs a Brazillian site, etc. (And I’m still pissed at Google, a year later, from when I was in Japan and I went to google.com and it kicked me to google.jp, based on my IP, and ignoring everything else like the fact that my browser info showed I used English. At the time, I couldn’t get it to show the link to ‘Google in English’ and I was stuck in Japanese for a while.) Regions and localization are things that seem like a really good idea, but there’s no way to make it perfect, since you can never tell when someone’s abroad :/

    I like how you replaced “sticky” with a nifty little icon.

    Thanks! That was my first ‘hack’ for bbPress and I slapped this in my functions.php

    // This sets sticky label as an image
    remove_filter('bb_topic_labels', 'bb_sticky_label', 20);
    function my_sticky_label( $label ) {
    global $topic;
    if (is_front()) {
    if ( '2' === $topic->topic_sticky ) {
    return sprintf(__('<img src="/images/sticky.png" alt="[sticky]" /> %s'), $label);
    }
    } else {
    if ( '1' === $topic->topic_sticky || '2' === $topic->topic_sticky ) {
    return sprintf(__('<img src="/images/sticky.png" alt="[sticky]" /> %s'), $label);
    }
    }
    return $label;
    }
    add_filter('bb_topic_labels', 'my_sticky_label', 20);

    #57163
    possessed
    Member

    Hi,

    I’ve got the same problem, but with another host(Hosteurope).

    I solved it after I’ve asked my hoster. When sending an Email from my host, I need to add a -f parameter to the sendmail function.

    Doing so in BBPress you will need to add a valid (and known for the server) Email-adress in line 90 of your bbpress-root-folder/bb-includes/backpress/class.mailer.php file from

    /**

    * Sets the Sender email (Return-Path) of the message. If not empty,

    * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.

    * @var string

    */

    var $Sender = '';

    to

    var $Sender = 'from@your-domain.com';

    I hope this might help some of you :)

    bb

    #72926
    Justin Tadlock
    Participant

    Use this:

    <?php forum_description( array( 'before' => false, 'after' => false ) ); ?>

    #72378
    brettbum
    Member

    I’m seeing this same problem in WordPress all by itself. Don’t think this is a BBpress problem but a WordPress problem. Don’t see anyone that seems to have a handle on it yet. :(

    #6617

    Topic: target _blank

    in forum Troubleshooting

    After some searching @ this forum, I’m really confused on how to make replies links to open on a new window by default. I’ve found some tweaking plugins by CK, but I think that was a really early version and didn’t worked out.

    I’m using 9.0.4. Anyway to target=”_blank” links and bbCode-lite?

    #73164
    chrishajer
    Participant

    Also, you don’t log in directly at bb-login.php like you can with wp-admin. You need to enter your login details in the front page of your forum, and if you are keymaster (or administrator or moderator), you will be shown the Admin link next to your name and that’s how you get to the back end. If you don’t have the Admin link then you’re not logged in as keymaster.

    #73155
    _ck_
    Participant

    Make this into a mini-plugin and it will add the tags as meta on topic pages:

    function bb_tweaks_tags_as_meta_keywords() {
    global $tags;
    if (!empty($tags)) {
    $keywords=""; foreach ($tags as $t) {$keywords.=$t->raw_tag.', ';}
    echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n";
    }
    }
    add_action('bb_head', 'bb_tweaks_tags_as_meta_keywords',8);

    #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?

Viewing 25 results - 25,226 through 25,250 (of 32,468 total)
Skip to toolbar