Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,051 through 27,075 (of 32,481 total)
  • Author
    Search Results
  • #67084
    marcoapaulo
    Member

    Yes, I found that in the sign options I’ve chosen something wrong :P my bad…

    But still… if someone dont have a sig, and post something like, one or two lines of text, the error appear…

    Lets just hope the members have much to talk, or at least, use the sign for something :P

    Thanks :)

    #67075
    danvollans
    Member

    My issue is resolved. There was an issue with the user tables not collaborating, so I put WPMU 2.6 and bbPress 1.0 Alpha in separate databases, and followed _ck_’s tutorial on install. I also used the plugin for loss of admin access. Everything now works beautifully. (so far! :) )

    WordPress:

    http://blog.danvollans.com/wpmu/

    bbPress:

    http://danvollans.com/bbpress/

    #67082
    marcoapaulo
    Member

    Thanks for the quick answer ;)

    And yes… with a large amount of text, works just fine…

    The forum can be found in here:

    http://www.redcarpe.coresp.com/interpol/forum/

    But its normal the signature dont appear? Because I thought: if the text isnt enough, the signature of the members could be the solution to this problem, since it adds more space to the post. But the signatures dont appear in every post, only in the first time the user reply in the thread… I use bbPress Signatures.

    #66961

    In reply to: Mass email function

    csseur3
    Member

    nice, detective :)

    but could you make a plugin with a graphic administration? now, there is a bit complicated to use for me and my other administrators lol :p

    ck, what is better?

    #67072
    danvollans
    Member

    Even deeper, this is a problem with the wordpress integration for me. I tried installing without integrating and it worked just fine. It’s possible that for me the integration must come afterwards.. =/

    #67070
    danvollans
    Member

    Yeah, I have been looking for something similar. My error occurred actually in a different spot now that I remember. The issue that I was running into was when I created the KeyMaster user, I named it admin, foolishly. This came with an error saying that the user is already in my wordpress database so it could not create user “admin”. That is where the loop began. I have since cleared my cache, search history, and everything that you can clear in firefox including cookies.

    I also tried this in Safari so it is most definitely not a browser related issue, or an issue with the actual bbPress, since this isn’t very common. It then must be a database issue, so I’ll continue to look into it.

    Thanks for the ideas. :D

    #67060
    chrishajer
    Participant

    To use WordPress functions inside bbPress, you need to do this:

    https://bbpress.org/documentation/integration-with-wordpress/#functions (the Functions section at the bottom of that page). Be sure that include line is at the top of bb-config.php: right after the <?php is a good place for it.

    That will allow you to use WordPress functions in a bbPress page (like <?php get_sidebar(); ?>)

    Then, you need to include that function call in a bbPress template file (or files) where you want it to appear. You are responsible for making sure there’s room in the template for your sidebar.

    #67018
    tronicscribe
    Member

    great, thank you :D that seems to have worked fine.

    #67032
    chrishajer
    Participant

    Did you look through all your files for that word? If it’s not in the files, then it’s encoded in the files (some WordPress themes have that base 64 encoded crap in the theme) or it’s coming from somewhere else, right?

    I would try to find out where it’s coming from so you can figure out how to remove it.

    #67028
    chrishajer
    Participant

    You need to put that include line at the very top of bb-config.php, right after <?php. What happens if you do that?

    #67005
    chrishajer
    Participant

    You can also add

    overflow: hidden;

     

    to the .threadauthor section of your CSS. That just hides any portion of their username that is wider than the space in your template. This forum template is like that.

    zappoman
    Member

    I’m actually seeing this happen where on the HOME page it doesn’t show the drop down, but on New Topic it does…

    This appears to happen in the 0.8.x codebase as well. I just never noticed it till now.

    I’m still digging deeper.

    #3835
    mcshockency
    Member

    Hello, I’m fairly new to bbpress, but I’m an avid web developer and wordpress user.

    My problem:

    When I go to the settings page, I cannot disable avatars.

    I can uncheck it, but when I hit “update settings” I scroll down, and it’s just checked again!

    Do I have a ghost? Am I doing something wrong?

    I’m using:

    BBPress V.0.9.0.2

    Plugins:

    Hidden Forums

    Allow Images

    BBCode Buttons

    BBCode Lite

    Avatar Upload (currently disabled, it won’t work because gravatars keep overwriting it or something)

    #67003
    _ck_
    Participant

    That’s another one of those silly things that got carried over from WordPress. The database limits it to 60 characters and the default template limits it to 30 characters but it’s still overly long.

    Fortunately in bbPress (unlike WordPress) the registration form is done in a template and not in the core, so the easiest way is just to modify the register.php template under my-templates (or copy it from bb-templates) and change the line that looks like this:

    <td><input name="user_login" type="text" id="user_login" size="30" maxlength="30" value="<?php if (1 != $user_login) echo $user_login; ?>" /></td>

    And instead of 30, make it the size limit you want.

    However people that are sneaky and bypass the registration form can still make it 60 characters (ie. spammers). But they will stick out, so you’ll notice it right away.

    This can be fixed via a plugin but it would be way too much code to justify the fix. The template method is best.

    #3823
    csseur3
    Member

    Holé,

    i want to add the possibilty to insert a player for play mp3 songs, with that: http://www.alsacreations.fr/dewplayer

    so, i have try this:

    <?php
    /*
    Plugin Name: bbPress MP3 Dewplayer

    Description: A simple way to add a mp3 player in posts, with bbcode.

    Author: Frédéric

    Author URI: http://bbpress.org/

    Version: 0.1
    */
    add_filter( 'bb_allowed_tags', 'allow_mp3_tag' );
    function allow_mp3_tag( $tags ) {$tags['mp3']; return $tags;}
    ?>

    to have a simply “mp3” bbcode (i use BBcode Buttons Toolbar and BBcode Lite).

    the html code for integrate the player is:

    <object type="application/x-shockwave-flash" data="dewplayer.swf?mp3={LOCATION OF MP3}&showtime=1" width="200" height="20"><param name="wmode" value="transparent" /><param name="movie" value="dewplayer.swf?mp3={LOCATION OF MP3}&showtime=1" /></object>

    but how to integrate that in php code of plugin?

    at the end, i want that the members can post that:

    [mp3]URL OF THE MP3 FILE[/mp3]

    so, i have add that in bbcode-buttons.js:

    function edClick(button) {

    switch (BBcodeButtons[button].id) {

    case 'ed_close': edCloseAllTags(button); break;

    case 'ed_link': edInsertLink(button); break;

    case 'ed_img': edInsertImage(button); break;
    case 'ed_mp3': edInsertMp3(button); break;

    default: edInsertTag(button); break;

    }

    }

    and

    function edInsertMp3() {

    var myValue = prompt('Enter the URL of the mp3 file', 'http://');

    if (myValue) {

    myValue = '[mp3]'+ myValue+'[/mp3]';

    edInsertContent(myValue);

    }

    }

    but this is incomplete, what add in the bbcode-lite.php and my file plugin?

    please help me to finish the plugin :p

    Bye

    #66837
    mogo
    Member

    I faced the same problem, when installing bbpress 1 alpha with integration options (wp2.6) .

    The problem is because of automatic generated codes by wordpress api. I installed wp 2.6 and get those codes through api. I had bb-login.php problems when I installed bbpress 1 alpha. And I changed wp codes written in wp-config.php to simple ones( I removed some special characters such a ),”,],/,,[,},{ ) , and then it worked.

    I hope this helps you too.

    #66959

    In reply to: Mass email function

    Detective
    Member

    I have a custom plugin for that. Here are the two important functions:

    function bb_mail_users($subject, $content) {
    global $bbdb;
    $users = $bbdb->get_results("SELECT ID, user_login, user_email FROM $bbdb->users");
    foreach ($users as $user)
    bb_mail_user($user->ID, $user->user_login, $user->user_email, $subject, $content);
    }

    function bb_mail_user($user_id, $user_login, $user_email, $subject, $message) {
    $message = str_replace('%user_login%', $user_login, $message);
    $message = str_replace('%user_id%', $user_id, $message);
    $message = str_replace('%user_email%', $user_email, $message);

    $subject = str_replace('%user_login%', $user_login, $subject);
    $subject = str_replace('%user_id%', $user_id, $subject);
    $subject = str_replace('%user_email%', $user_email, $subject);

    bb_mail($user_email, $subject, $message);
    }

    I think it’s pretty straightforward. You can write a message like: “Hello, %user_login%, how are you? Thanks for participating in this forum :)” and a subject like “Thanks, %user_login%”. Then, to mail that to all your users:

    $content = "Hello, %user_login%, how are you? Thanks for participating in this forum :)";
    $subject = "Thanks, %user_login%";
    bb_mail_users($subject, $content);

    _ck_
    Participant

    You’re adding post_form() ?

    That’s not enough.

    Look inside post-form.php

    <label for="forum_id"><?php _e('Pick a section:'); ?>
    <?php bb_new_topic_forum_dropdown(); ?>
    </label>

    #66953
    zappoman
    Member

    Ok, more of a clue here…

    It looks like the insert into term_taxonomy is failing during the upgrade process.

    it appears as if, bb_term_taxonomy has a ‘description’ field which is NOT NULL in the schema:

    // term_taxonomy
    $bb_queries['term_taxonomy'] = "CREATE TABLE IF NOT EXISTS $bbdb->term_taxonomy (
    term_taxonomy_id bigint(20) NOT NULL auto_increment,
    term_id bigint(20) NOT NULL default 0,
    taxonomy varchar(32) NOT NULL default '',
    description longtext NOT NULL,
    parent bigint(20) NOT NULL default 0,
    count bigint(20) NOT NULL default 0,
    PRIMARY KEY (term_taxonomy_id),
    UNIQUE KEY term_id_taxonomy (term_id, taxonomy)
    );";

    but the upgrade code…

    $bbdb->insert( $bbdb->term_taxonomy, array(
    'term_id' => $term_id,
    'taxonomy' => 'bb_topic_tag'
    ) );

    does not set a description, so this insert is failing.

    Not sure how this could be working for anyone else…

    Am I really the only one seeing this?

    joelteixeira
    Member

    Thanks your attention Balgo, but I didn’t do that cause I want to developers help me to understand the problem. I don’t wanna just edit the file and maybe be messing something worse.

    Should this edit be really necessary, is inoffensive? Is there something wrong with the code? With the server?

    I know is not a stable version, problems is expected… I just want to understand this one.

    Sam Bauers
    Participant

    We have debated adding the wp-mail class to bbPress to get this functionality built in, but we balked at the sheer size of the code. What is a good lightweight replacement for php-mailer that we can consider adding to backpress?

    #3820
    zappoman
    Member

    Are tags expected to be working on the 1.0 alpha code?

    I am playing around with the system, and it it appears as if tags are not being displayed. the bb_tag_heat_map() is displaying nothing, bb_get_top_tags() is returning an empty array. Individual posts don’t show tags either.

    I am assuming this is related to the new taxonomy code… not sure if I did the upgrade incorrectly or what. When I logged into the admin system the first time, it did do a DB upgrade.

    joelteixeira
    Member

    Everything works on a localhost install, but when I try install on dreamhost I get the following error:

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /bb-includes/backpress/functions.core.php on line 499

    The message stays on the top of page, above header, seems that I can use everything but the message stays there. How can I get ride of this.

    SVN INFO:

    $ svn info

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

    Repository Root: http://svn.automattic.com/bbpress

    Repository UUID: 9866e705-20ec-0310-96e7-cbb4277adcfb

    Revision: 1651

    Node Kind: directory

    Schedule: normal

    Last Changed Author: sambauers

    Last Changed Rev: 1651

    Last Changed Date: 2008-08-13 12:13:00 -0700 (Wed, 13 Aug 2008)

    Thanks,

    Joel Teixeira

    #66930

    In reply to: Tags

    chrishajer
    Participant

    Just take the display of the tags out of your theme/template files. Find the pages that display tags, then remove the code that displays it.

    As far as not allowing people to add tags, I think you could just do the same thing: eliminate the form fields that are displayed where people can enter their tags.

    #66045
    keress
    Member

    3. WordPress and bbPress each in their own directory

    |–blog <– WordPress

    |

    |–forums <– bbPress

    (I like this methed best, seems the most “logical”)

    In this scenario, do both wp and bbpress have their own, separate databases?

    BTW, I can’t get the blockquote to work. I’ve tried <> [] and to no avail. What am I missing?

Viewing 25 results - 27,051 through 27,075 (of 32,481 total)
Skip to toolbar