Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,876 through 30,900 (of 32,495 total)
  • Author
    Search Results
  • #55415

    In reply to: Allowing HTML

    Trent Adams
    Member

    The allowed tags are in template-formatting.php I believe (might be wrong as it is early there) in your bb-includes, but it is best to look even at the ‘allowed markeup’ on this forum when you are posting and then know those can be used. To add more, it is often done with plugins, like the image plugin in the ‘extend’ tab of this site. Or I through this up to use stike for myself:

    <?php
    function allow_strike_as_allowed_tags( $tags ) {
    $tags['del'] = array();
    return $tags;
    }
    add_filter( 'bb_allowed_tags', 'allow_strike_as_allowed_tags' );
    ?>

    There are was to add to the bb_allowed_tags even with plugins.

    Trent

    #55358
    Trent Adams
    Member

    The best thing is go step by step through it again. Sometimes something small is missed and that is enough to screw up the entire thing. As well, if:

    Options +MultiViews

    Does that work in your .htaccess file in your root bbPrsss directory ( / ). If not, try what is spit out of /bb-admin/rewrite-rules.php

    If that doesn’t work, maybe try working with GoDaddy to make sure your setup can do mod_rewrites

    Trent

    #55266

    In reply to: i need wysiwyg editor

    zeug
    Member

    Yeh AMP has 2 ways to embed media, one uses SWFObject to embed Flash movies, like all the youtube etc stuff. The other tests simple href links in the page for media file extensions .mp3, .flv, .mov etc, and if it finds them it loads em.

    It’s just the SWFObject javascript embeds that need to be handled behind the scenes by a bbPress plugin as I take it most everyone knows how to make simple href links. For these all you need is the javascript call in the head:

    <script type="text/javascript" src="http://PATH TO PLAYER DIRECTORY/anarchy_media/anarchy.js"></script>

    And yeh, no idiocy required, apart from my own idiocy of ommission … I should really get around to documenting what anarchy.js actually does and add that to the download package so it’s all clearer than opaque mud… sort of more a translucent mud hopefully.

    #1531
    laemo
    Member

    Hello,

    I have read the FAQ here: http://bbpress.org/documentation/faq/#pretty-permalinks

    and I have tried both, using Options +MultiViews and also using the code generated by /bb-admin/rewrite-rules.php but I cannot seem to get my permalinks working.

    http://www.nmimsieee.com/forums/ is the link to my forums.

    I am using GoDaddy for hosting. I have set $bb->mod_rewrite = true in my config.php and my forums are in the same database as WordPress.

    I recently migrated my forums to my WordPress database, and I did the same at home (I have a server running on my laptop, and I just loaded all the data onto the domain mentioned above).

    Permalinks work fine at home on my WAMP setup. However on my domain at GoDaddy, I get an error saying “No input file specified.”

    Could anyone please help me out and tell me where am I going wrong? I would really appreciate it.

    #55283
    fel64
    Member

    “As well, if you have an integration with WordPress, bbPress integrates logins perfectly with WordPress.”

    That said, if they are in different subdomains you will have to tweak some files (currently, anyway). But it’s two lines that need changing in total, and it’s very simple. :)

    If you’re planning to install WordPress, look for a WP plugin that does whatever you want and logs you in – there are way way more WP plugins than bbPress plugins.

    #52311
    cbfadmin
    Member

    I had problems too. The table was not created. I had to do it manualy. I have all of the latest updates for both WP and bbPress so I dont know what went wrong. To fix the data base issue go to you myphp admin (data base) and give the following command.

    CREATE TABLE bb_privatemessages (

    pm_id BIGINT( 20 ) NOT NULL AUTO_INCREMENT ,

    id_sender INT( 11 ) NOT NULL ,

    id_receiver INT( 11 ) NOT NULL ,

    seen INT( 2 ) NOT NULL ,

    pmtitle VARCHAR( 64 ) NOT NULL ,

    message VARCHAR( 255 ) NOT NULL ,

    created_on DATETIME NOT NULL ,

    PRIMARY KEY ( pm_id )

    ) TYPE = MYISAM ;

    This solved my problems for now.

    #55295
    ardentfrost
    Member

    Let me know if it works for non-WP-integrated bbpress… if so I’ll see about using it in a couple of my plugins :)

    #53188

    In reply to: No Login with IE6

    macwise
    Member

    kannued,

    As far as I can tell, the spec for the label tag indicates that it should be as above. I downloaded your html page and css file, then uploaded them to my server. Here’s what I found:

    The problem is stemming from the <br> tag used inside of the <label> tags. IE thinks the input element is still on the first line, but it’s really being displayed on the second line. Here’s how I have modified it, and it seems to work in ie:

    <label>Username: </label>
    <input name="user_login" type="text" id="user_login" size="13" maxlength="40" value="" style="display: block; clear: both; />
    <label>Password:</label>
    <input name="password" type="password" id="password" size="13" maxlength="40"style="display: block; clear: both; />
    <input type="submit" name="Submit" id="submit" value="Login &raquo;" />

    I’m not 100% sure about the functionality in IE, because I had to d’load the css file and place it on my server. In Safari it worked fine importing it as specified in the original HTML, however IE puked it up. Probably being oversecure in all the wrong places again! Anyhow, I’m pretty sure this will solve your problem.

    Break tags are a somewhat quick and dirty way to break a line. This isn’t a bad element to use, but it should be used when appropriate, or at least when you want to be lazy and it doesn’t break stuff. (that’s the extent of my philosophy). Try this out, and let me know if it works for you.

    ***EDIT***

    I do see in another resource that the label tag can be associated either way, and should have a “for=” option if the input element is not found inside the label. Sorry for the mixup.

    Either way, the <br> tag is most likely the culprit. Adding the styles to those input tags, (or specifying them in the stylesheet) should fix the problem.

    Links to LABEL element info (for documentation/S.E. purposes):

    http://www.w3.org/TR/html4/interact/forms.html

    http://htmlhelp.com/reference/html40/forms/label.html

    #1522
    chiensavant
    Member

    Hi,

    I was wondering if there was a HTTP_AUTH plugin/how to available. We’re thinking about integrating BBpress to our server, but we’d like to keep the existing user and password list, so that Bbpress would smoothly be part of our portal.

    We might also use WordPress, maybe something done for WordPress is already working for BBpress ?

    Since I haven’t found any relevant information so far, I though I might as well ask for help ;)

    #55275

    In reply to: Plugin help…

    macwise
    Member

    Ahem, Trent…this means you too. :)

    #55273

    In reply to: Plugin help…

    ardentfrost
    Member

    Honestly all I did to learn was download existing plugins (there weren’t many when I started writing them, so you’re at an advantage there) and check out how certain things were performed… I also used windows search to look through the files of bbpress to see how things were done.

    Once you see how it is done currently (or how similar functions work), then you can start writing your own subroutines to either intercept, replace, or just create new functions that can be installed into the themes.

    Unfortunately, I don’t know much about dealing with WP. I never wrote anything for WP, and the plugins of mine that play nice with WP only do so because people like Trent and spencer helped me test them.

    But if you ask specific questions, there are a number of us here who can help you if we know what you’re asking :)

    #53184

    In reply to: No Login with IE6

    macwise
    Member

    You can click in the form element if you click within 1 px of the top of the element. It’s being blocked/covered by something. I haven’t looked too closely, but I’m pretty sure the problem is that your <label> tags are encapsulating your input elements. They should be before the form element, like this:

    <label>Username:</label>
    <input "input stuff" />

    Yours is like this:

    <label>Username:
    <input "input stuff" />
    </label>

    Try that and see if that helps.

    -Ron

    #55272

    In reply to: Plugin help…

    mirce
    Member

    I had the same problem. Its not very hard to do it. You need to use add_action or add_filter. See my problem here https://bbpress.org/forums/topic/742

    This may help also:

    https://codex.wordpress.org/Plugin_API#Current_Hooks_For_actions

    I have no experience also but I managed to do a plugin.

    Good luck!

    #1521
    macwise
    Member

    I’m interested in creating my fist plugin. I would like it to allow the user to see/edit the extra profile fields that are present in WordPress when a site has WP integration working. I’m asking for any help to get started on this that someone is willing to offer.

    I’m not very experienced with PHP, though I feel I am a pretty quick learner. I have too many questions right now from the reading (http://codex.wordpress.org/Writing_a_Plugin) and from looking at other plugins. I don’t think these questions require more than a few simple pointers and explanations about the structure/basic principles of plugins.

    Is anyone out there willing to throw me a bone or two?

    #55243
    Trent Adams
    Member

    I am personally tired of having information up to Bozo’s, so I like to use:

    <?php if (bb_current_user_can('write_posts')) : ?>
    DO SOMETHING
    <?php endif; ?>

    That way, the users who are members see the content and spammers cannot! (At least I think not….not going to mark myself as BOZO to find out)

    Trent

    #55261

    In reply to: Spaces in Login

    macwise
    Member

    NP. Glad I could beat you for once. ;)

    #54676

    In reply to: Import SMF to bbPress

    Stretsh
    Member

    This code is written for PHP5. It works perfectly.

    PHP4 users will need an extra piece of code, however, because the function file_put_contents does not come with PHP4.

    So copy this piece of code and paste it on the bottom of the php file, but before the ?> tag

    if (!function_exists('file_put_contents')) {
    function file_put_contents($file, $contents = '', $method = 'a+') {
    $file_handle = fopen($file, $method);
    fwrite($file_handle, $contents);
    fclose($file_handle);
    return true;
    }
    }

    #55241
    macwise
    Member

    In regards to Mirce’s solution, I would think a more global (and simpler) solution would be this if statement:

    <?php if ( bb_is_user_logged_in() ) { ?>;
    --PUT WHATEVER YOU WANT THEM TO SEE HERE--
    <?php } ? >

    This way you don’t need to find out WHO the user is (user_id), but simply whether or not they’re logged in.

    I’m pretty new to this, though, so maybe Mirce knows something I don’t?

    #55237

    In reply to: Help with mod rewrite

    mirce
    Member

    I really do not understand,

    http://www.dfur.com/designer_furniture/page/2 redirects 301 to http://www.dfur.com/designer_furniture.

    Why is this? I have no 301 in htaccess!!! Is this a bbPress thing?

    URL=http://www.dfur.com/designer_furniture/page/2

    Result code: 301 (MovedPermanently / Moved Permanently)

    #55177
    spencerp
    Member

    I wouldn’t really expect this Forum Category hack/enhancement to last too much longer though… Read from here down:

    https://bbpress.org/forums/topic/698/page/2?replies=39#post-5087

    spencerp

    /Currently running Trunk 1.0-alpha, and the Forum Cat hack just doesn’t play nice with it. Also, like it says there, sounds like something similar is being implemented into core. I don’t know for positive, but, I uninstalled the Forum Cat hack though.. ;)

    #55138
    macwise
    Member

    chrishajer,

    Your assessment is correct on all counts. I’m even using the same setup you’re using. (bb .80 and wp integration). As for the GMT, I guess I was just expecting the correct time to be calculated on the memberlist page as well, since it’s implemented everywhere else. Isn’t that what makes the most sense? Maybe I’m missing something.

    My problem is minor, and only arises (so far) when I’m using shell to scan through my server logs, and the time on the logs is adjusted for my timezone but the time on the memberlist page doesn’t match up. Just gotta do math, which is less favorable in my case. ;)

    #55220
    macwise
    Member

    fel64,

    When you mention the “Hooks”, are you referring to the lines at the bottom that say “add_filter”? I think this is what you mean, but I thought I’d make sure. It’s time to try out my first plugin! :)

    #55219
    fel64
    Member

    You should use hooks to make it automatically call your function when that hook is called – the syntax is something like add_action('hook name', 'function name') if I recall correctly. Look at existing plugins for details of how to do it.

    There isn’t a reference for hooks that I’m aware of, sorry.

    #55146
    talgalili
    Member

    Thanks fel64 for the reply :)

    I also don’t know what to do :(

    Any one else, has any suggestion ?

    (did anyone else encounter the same problem ?)

    Tal.

    #51976
    Atsutane
    Member

    Yeah. Request already :) waiting for approval.

Viewing 25 results - 30,876 through 30,900 (of 32,495 total)
Skip to toolbar