Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,226 through 25,250 (of 32,481 total)
  • Author
    Search Results
  • #73246
    bruinfelix
    Member

    Youre right! ;-)

    #73238

    In reply to: Admin Post Anything

    chrishajer
    Participant

    I’ve never used that plugin, but I think it works by just not filtering what an admin enters in a post. So, you would probably need to put the whole embed code from Youtube.

    What have you done and what happened when you did it?

    #73234

    okay I just deleted the forum and plugin and reinstalled. The plugin did not activate automatically as it is supposed to by having a leading underscore. When I activated it manually I got the fatal error again.

    I can not get this plugin activated it seems… :/

    #73233

    I haven’t done any kind of integration. I just have the two things installed in the same home directory and then tried to make this plugin work. My wordpress is using a theme as I set it up before the bbpress but I did not do anything with bbpress, it is a clean install.

    The site is temporarily at http://www.alwaysbeenagypsy.com/thefashionstudent/

    and http://www.alwaysbeenagypsy.com/thefashionstudent/forum/

    (though I am playing a lot with it so it may or may not be up if you try)

    I’m wondering if maybe I got some of the keys wrong, would that do it?

    In the documentation it says to use the “secret key” from the wp-config file but there is no secret key so I guessed which one sounded the most like it could be a secret key. The keys are:

    AUTH_KEY

    SECURE_AUTH_KEY

    LOGGED_IN_KEY

    NONCE_KEY

    I have seen other forums that integrate with wordpress but to be honest I like the simplicity of this one, the others have way too much shit in them so I hope I can figure out how to get this working! :)

    #73236

    In reply to: Installation Error

    johnhiler
    Member

    It sounds like your server is using PHP4?

    https://bbpress.org/forums/topic/warning-cannot-yet-handle-mbcs-in-html_entity_decode

    If you upgrade to PHP5, it should work! :-)

    #7807

    I downloaded the latest release of bbPress. I uploaded all the files/folders to my site. I even deleted them and uploaded them again to see if it fixed it. I get to the install screen and when I click “let’s get started” I get the following error about 200 times.

    Warning: cannot yet handle MBCS in html_entity_decode()! in /home/content/t/b/i/tbiznet1/html/bbpress/bb-includes/wp-functions.php on line 113

    #73229
    bruinfelix
    Member

    3. Is it possible to use WordPress blog’s header on bbPress (Replacing forum header with blog’s header) without integration?

    Yes, it is possible. I did it for my own website, and i dont experience any kind of performance problems (yet).

    4. Page Views is not appearing in the forum menu. How to fix that?

    There’s a plugin for that …

    And for the rest i must say. Use the search button more often, there’s a whole world of answers on youre questions, just throwup a searchphrase, and you will be amazed what you could find ;-)

    #73207
    _ck_
    Participant

    Please ask such questions on the page for the plugin itself, don’t start a new topic.

    I monitor the plugin RSS daily, the main forum section not as much.

    there are two places in the plugin where it says

    bb_current_user_can('administrate')

    change administrate to moderate

    bb_current_user_can('moderate')

    #73192
    cnymike
    Member

    Well as it turns out, there wasn’t really a plugin to do what I wanted so I dug into the code and commented some stuff out. It has effectively removed the Add a Topic capability and is just what my client needed.

    #6635
    cnymike
    Member

    I have installed bbpress for a client who does not want users to be able to add a topic.

    Although I would like to see that as an option in settings, it is not, so I guess I have to get my hands dirty in the php files. OK fine.

    So I’ve found and commented out the code in the forum.php and front-page.php files which contains the link to add a topic as so….

    ‘ <th><?php _e(‘Topic’); ?> <!–—–> <?php // new_topic(); ?></th>’

    But to my dismay, I also see that a user can add a topic when they click on a Forum “Main Theme” title. The page they are taken to has a huge “New Topic in this Forum” area. I don’t want that and can’t quite figure out what file and what code I need to delete to get rid of that.

    Help please?

    #6634
    mechamecha
    Member

    Hello,

    I’ve noticed I have some queries that are performing slowly:

    SELECT t.* FROM bb_topics AS t WHERE t.topic_status = ‘0’ AND t.topic_sticky = ‘2’ ORDER BY t.topic_time DESC LIMIT 30

    The index the db is using is forum_stickies which is a composite index of (topic_status, forum_id, topic_sticky, topic_time)

    THe problem is since the query thats created doesn’t include forum_id, mysql is not able to utilize the composite index completely and performs an additional filesort which slows the performance of the query.

    To fix this, I can either create a new index that doesn’t include the forum_id field OR somehow force the code to include the forum_id conditional in the query. I only have one forum and I only plan on having one forum per a database.

    I can hack the code, but I suspect there is a setting somewhere that can fix this issue. Any ideas?

    Thanks!

    #72144
    bruinfelix
    Member

    I’ve also have installed these plugin, to show a image in a posting, and i must say .. Works perefect! ;-)

    #73180
    johnhiler
    Member
    #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);

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