Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,051 through 27,075 (of 32,467 total)
  • Author
    Search Results
  • #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?

    #66589
    chrishajer
    Participant

    Backticks for code go around anything at all, and make it a monospaced font, like where you have blockquote above. If you want to use the html <blockquote> just type [blockquote] without any backticks (use angled brackets rather than the brackets I used to make sure it did not render.) I think you did something like backticks around the HTML for [blockquote] which is not necessary. Just use HTML where you need it and then use backticks anywhere where you want to show the actual HTML, not have it be rendered.

    #66588
    keress
    Member

    blockquote

    You only need to share databases to have integrated user logins.

    /blockquote

    Thanks for responding, Chris. I’m still confused about this. It sounds like, from the documentation like above, integrating the cookies will accomplish the same thing:

    blockquoteIntegrating cookies allows your users to log in to either your WordPress blog or your bbPress forums and be effectively logged in to both.

    /blockquote

    I do want it to be pretty seamless for our users. I want them to only have to register once, and not to have to log in again when they cruise to the forum. On the face of it, it would seem like we need to share one database. BUT, that seems a bit scary, like the kind of scenario where I could wipe out our existing WP installation.

    If that’s the route I should go, how do I go about it? Uninstall the bbpress I just created, then go through the installation again, except this time enter our wp database info?

    I tried doing the integration last week for the two databases I have currently set up, and had to add a line into my wp-config about a secret key. With that, an error message came up instead of the blog, choking on that line. It was a day before I got wind of it, so it didn’t look very good.

    I want to have a clearer understanding this time before I start messing around with these settings.

    BTW, what am I missing with the markup here? It says to put the code between backticks `, but it’s not working.

    #66834
    ganzua
    Member
    Where did you originally generate the keys, from the WordPress random url? I'll report that bug to them if that's where you got them from.

    Yes, keys are from the WordPress random url. I’m not sure if this is a bug, I think ¡t’s a problem with bbpress utf-8 encoding and foreign computers that are iso-whatever.

    Besides, I’ve found more problems in my bb 1.0alpha – wp 2.6.1 b2 integration attempt;

    1 I can’t find a secure key salt in the last wp version.

    2 Logins integration seems to work fine but as soon as you include

    require_once('.../wordpress/wp-blog-header.php')

    all is messed; I lost the settings link on the dashboard, add new topic didn’t work, when no logged in I get this meesage instead of the last poster of a topic;

    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in D:wampwwwwordpressbbpressbb-includesbackpressclass.bpdb.php on line 360

    I’ll report more errors if I find any

    #66906

    In reply to: Creative Commons T&C

    chrishajer
    Participant

    Thanks _ck_ – I should have read the FAQ for the plugin :-)

    #66904

    In reply to: Creative Commons T&C

    grifter
    Member

    Thanks Chris. Those are all good ideas :-)

    #66855
    chrishajer
    Participant

    Very odd. I can see what you’re talking about now. There is the <h2>Reply</h2> but then something goes wrong.

    This is in the source:

    <h2 class="post-form">New Topic</h2>

    </div>

    <!--
    If you like showing off the fact that your server rocks,
    <h3>0.150 - 15 queries</h3>
    -->

     

    Looks like bbPress has it until the <h2 class="post-form">New Topic</h2> part, then WordPress takes over for some reason. At least it looks like that’s what’s happening. If you look at the source of the page you’ll see what I mean.

    Sorry I don’t know what’s causing the problem, but it’s interesting to look at nonetheless.

    It is a very attractive theme, I’ll give them that, and it would be relatively easy to make a theme for BBPress that looks just like that.

    I’d love to have a stab at it myself, but I’m really busy developing a forum theme for a for a new site I’m working on – It has a lot in common with that layout as it happens. I will probably release my theme when it’s done, but I only get a couple of hours a night to work on it, so it’s probably some time away from being public.

    I’ll fave this topic to remind me that I’ve committed to sharing my theme ;)

    #66488

    In reply to: TalkPress suggestions

    We will not be able to download talkpress and do some hosting on our own? We can do that with wordpressMU, so why not with talkpress?

    BBPress == WordPress(.org)

    TalkPress == WordPress.com

    WordPressMU came after WordPress.com if my memory serves me right, so we probably won’t be seeing a BBPressMU until sometime well after TalkPress goes live (which itself is probably a year or so away).

    Of course, it may never happen, I’m just speculating. ;)

    I’m using BBPress 1.0 alpha and working on a new theme almost completely from scratch.

    I have added the post_form() function to my front-page.php template file as I want to allow people to start a new topic direct from the home page.

    Naturally, this requires people to be able to select a target forum for their post and the post-form.php template contains the bb_new_topic_forum_dropdown() function which is supposed to show the drop down list, however for some reason it doesn’t appear. The code around it shows ok, so it’s not a problem with the if statement that checks if we’re on the homepage or not…

    So… is that a bug in BBPress that needs to be submitted to trac or am I doing something that I shouldn’t be doing?

    #65749
    corenominal
    Member

    No word back from Dreamhost support, but it appears as if many DH customers are experiencing similar issues with other applications. I managed to fix my issue by logging into my DH account and changing the PHP version from 5.2.x -> 4.4.x and then back to 5.2.x.

    Hope this helps someone :)

    #66854
    holloway
    Member

    Well I fixed that, must have been a bug in the original skin. The issue is apparent on all skins- I’ve just reinstalled the default skin and set that as the current skin if you can have a look.

    I’m really at a loss as to what is causing it to cut off :s.

    ganzua
    Member

    Well I tried to integrate bbpress with my wordpress theme and I after calling wp functions by adding

    require_once('/wamp/www/wordpress/wp-blog-header.php')

    I realized that I had no settings link on the bbpress dashboard. I removed that line and the link appeared again but no theme integration.

    BBPress as wp plugin for 1.0 final is too much asking, isn’t it?

    #66830
    ganzua
    Member

    Hi ck! (great integration guide, BTW)

    I managed to make a basic integration with bbpress 1.0 alpha and wp 2.6.1 beta2.

    However bbpress reported an error in line 19 of its config file.

    Checked and it was the cookie keys that are not well fetched. Perhaps it is a problem with foreign computers and character encoding, I don’t know.

    Where it says;

    define('BB_SECURE_AUTH_KEY', '1234´´´56789');

    it is appearing;

    define('BB_SECURE_AUTH_KEY', '1234');

    Maybe the ticks and php. I solved this issue by copy pasting the right keys from wp config file.

    #3803

    Topic: Error on install

    in forum Installation
    sigmaweb
    Member

    I installed bbpress in MySQL5. Install went fine. Now I get the following error when I go to my bbpress url:

    Warning: bb_load_template(/home/greenpre/public_html/discussion/bb-templates/kakumei/front-page.php): failed to open stream: Permission denied in /home/greenpre/public_html/discussion/bb-includes/template-functions.php on line 17

    Please help.

    Thank you!

    Larry

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