Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,551 through 30,575 (of 32,522 total)
  • Author
    Search Results
  • #55293
    mathboy
    Member

    Thank you! :D

    #56632

    In reply to: bbpress future

    Null
    Member

    I also think people should realize that bbPress isn’t dsigned to be a plugin for WP in any way and the developers should keep in mind to not develop too much towards this too.

    It’s a standalone forum, fast and light and should stay this way :D

    #56613
    Trent Adams
    Member

    I see now….the first topic and then reverse the order of the replies. Off the top of my head that would seem like a difficult thing to do as each reply is given an reply ID based off the previous reply ID (sequential). Displaying the order would have to be done by hacking the core files for topic.php so that is changes from desending to acending in the mySQL query. I think it can be done though, just have to look at the core code I guess.

    Trent

    #55011
    Trent Adams
    Member

    You cannot click a checkbox that says “turn off registration”, but you can do it indirectly through the following steps by editing your theme files. If you have the default template, please upload the changed files to a new folder off the root of /my-templates/

    1) Remove the following file out of your root directory, register.php.

    2) Edit your template file login-form.php and remove the following:

    <p><?php printf(__('<a href="%1$s">Register</a> or log in'), bb_get_option('uri').'register.php') ?>:</p>

    3) Put something like the following in register.php from your template folder:

    <?php bb_get_header(); ?>

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Register'); ?></h3>

    <h2 id="register"><?php _e('Registration Turned Off, Sorry!'); ?></h2>

    <?php bb_get_footer(); ?>

    Unless I am missing something, that should do it!

    Trent

    #1709
    afrodude
    Member

    I’ve encountered with this error very recently, it didn’t happened before.

    When a reply is posted (So far, by me the Key Master) the Topic closed message appears with no reason.

    I have these plugins installed:

    allow-images

    bb-avatar

    bb-memberlist

    bb-post-count

    bbpress_bbcode

    fix-bbpress

    forum-restriction

    front-page-topics

    #56658
    fel64
    Member

    There’s an easier way to do this, just put in the right domain.

    //cookies
    define('COOKIE_DOMAIN', '.2diabolos.com');

    Or

    //cookies
    define('COOKIE_DOMAIN', 'forum.2diabolos.com');

    If you go with the first, in my opinion neater version, you also need to add this to bbPress’ config.php.

    //try to sync cookies
    $bb->cookiedomain = '.2diabolos.com';
    $bb->cookiepath = '/';

    Then clear your cookies, log out and in and see if it works across your site.

    #56639

    In reply to: Plugin: BB-Ads

    fel64
    Member

    That’s pretty cool. Are there screenshots, is there anywhere running it so we can see what it’s like?

    You’ve submitted it to the plugin db too, haven’t you? :)

    #56630

    In reply to: bbpress future

    c00l2sv
    Member

    I hope development team had a look on this thread:

    https://bbpress.org/forums/topic/867

    and on this:

    http://forum.mootools.net/viewtopic.php?id=2337

    Why?! Cause i’m not sure bbpress made the right choise on integrating javascript in the core of bbs! It is really hard to develop new templates especially to port some templates that use different ajax libs!

    #56588
    archasek
    Member

    http://ram.org.pl/forum/ – do you see them? i don’t.

    edit:

    do you know what file can i TRANSLATE

    Add New Topic

    You must log in to post.

    in?

    edit:

    http://ram.org.pl/forum/?new=1 doesn’t work

    #51449

    Or if you want it on front-page anyway, add something like <?php if ( bb_current_user_can( 'edit_users' ) ) : ?> around the code.

    #1704

    Topic: Plugin: BB-Ads

    in forum Plugins
    wittmania
    Member

    This is my first attempt at a plugin, so be gentle! :)

    This plugin allows you to display custom ads/messages anywhere on your site, including the front page, profile pages, forum pages, and even between posts.

    The plugin randomly selects a file from a pre-determined directory, or you can specify a specific file to display. File types include .php, .html, .htm, or you can add custom file types as needed.

    The files themselves can include links, images, PHP functions, and CSS stylization. You can customize the ads/messages however you want.

    You can get the 0.1 version here:

    http://blog.wittmania.com/bb-ads

    PLEASE feel free to let me know if you find any bugs. I’m also extremely open to suggestions for future revisions, as my PHP skills are only slightly better than my bow hunting skills, which are pretty pathetic.

    Enjoy!

    #56587
    fel64
    Member

    The plugin he linked you does give you buttons like that. Click it and it auto-inserts the code.

    #52649
    citizenkeith
    Participant

    Ah, that did it! Thanks for the clarification.

    Any chance that we can add smilies from the emoticon plugin into the sigature? Or at least an IMG tag? :)

    #52647
    H
    Participant

    citizenkeit; if you have installed the avatar plugin, you have to edit the function in the bb-avatar.php file in your plugins folder… The function get_profile_info_keys_plus_avatar() overrides the function in the function.php file.

    Just add the code written above at the end of the get_profile_info_keys_plus_avatar() function (before the last ‘)’ ).

    Got it?

    #56585
    archasek
    Member

    thanks alot, but this plugin, unfortunately doesnt work for me :(

    do you know, Trent, how can i translate http://ram.org.pl/forum/ ‘add topic’ and ‘reply’ on down of the page? and why my ‘add new’ (‘dodaj nowy’ in my theme) doesn’t work?

    #56579

    In reply to: adityanaik.com

    so1o
    Participant

    use the sort_tag_heat_map filter.. search for it in the forum, you’ll find a code example somewhere here

    #52645
    citizenkeith
    Participant

    In functions.php, find the get_profile_info_keys() function, which should be on or around line 1761. In the line that starts with array(‘user_email’…, add the following code before the last “)” in the line. Note the comma.

    , 'sig' => array(0, __('Signature'))'

    Hmm… I can’t seem to get this to work. I’ve followed your instructions, but it doesn’t show up in the Edit Profile area. Here’s my code for that section of functions.php:

    //meta_key => (required?, Label).  Don't use user_{anything} as the name of your meta_key.
    function get_profile_info_keys() {
    return apply_filters(
    'get_profile_info_keys',
    array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')), 'sig' => array(0, __('Signature')))
    );
    }

    Is this correct?

    #56481
    drmike
    Member

    I noticed this on occasion on the wp.com forums. If the system sees a tag as something that needs to be encoded, then there’s no way it can’t ever be un-encoded. It’s a pain when trying to fix HTML over there.

    #56599
    wittmania
    Member

    I assume you mean on a topics/posts page. Find post.php, and insert this code wherever you want the name/profile link:

    <a href="<?php _e(attribute_escape
    (get_user_profile_link
    (get_post_author_id()))); ?>">
    <?php _e(get_post_author()); ?></a>

    I broke it up into several lines for easier reading here, but it should all be on one line. This will build the profile link using the post author’s name as the text for the link.

    #56361

    In reply to: localhost installs

    mirfan
    Member

    I changed

    define( 'BBPATH', dirname(__FILE__) . '/' );

    with this:

    define( 'BBPATH', str_replace('\', '/', realpath(dirname(__FILE__))) . '/' );

    in bb-load.php, and now it works on localhost with windows xp sp2.

    #55291
    mathboy
    Member

    This is exactly what I’m after also. :-) However, when I turn on the HTTP authentication in the Admin page I get a bunch of warnings at the top of the screen (see below), and also am unable to log off.

    Warning: Missing argument 2 for bb_login() in …/bb-includes/pluggable.php on line 125

    and multiple of:

    Warning: Cannot modify header information – headers already sent by (output started at …/bb-includes/pluggable.php:125) in …/bb-includes/pluggable.php on line 37

    #56486

    In reply to: Forum Start Date

    startribe
    Member

    Worked :)

    Thanks again Trent!

    Best,

    Orion

    #1694
    startribe
    Member

    Hey Community,

    I am starting up another site, and I am setting up the Latest Discussions Plugin. I have installed and integrated WP & BB. Once I activate the plugin and use the call for the latest discussion on the wordpress page I am given this error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT * FROM topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMIT

    Any ideas what might be going on here?

    Thanks,

    Orion

    #56507

    In reply to: Strut Your bbPress!

    I take no credit ;)

    #52644
    wittmania
    Member

    OK, to answer the “where do I put the code question (0.8.1)…

    In functions.php, find the get_profile_info_keys() function, which should be on or around line 1761. In the line that starts with array('user_email'..., add the following code before the last “)” in the line. Note the comma.

    , 'sig' => array(0, __('Signature'))

    This will add the signature field to the profile edit page, enabling users to input their own signatures.

    Next, we need to add the code to display the signatures in their posts. In post.php, find this line (for me it was line 17):

    <div class="post"><?php post_text(); ?></div>

    BEFORE the closing div tag, add the following:

    <?php /*Is the signature field blank?*/
    if (get_sig( get_post_author_id() ) != "") { ?>
    <div class="signature"><?php post_sig(); ?></div>
    <?php } ?>

    (NOTE: Make sure the existing closing div tag still follows the code above.)

    This checks to see if a signature exists, and if it does it adds a nested div with the signature class stylization applied to it, and the content of the signature field is placed inside this div.

    Finally, add the following to your style sheet:

    .signature {
    border-top: 1px dotted #ccc;
    margin: 5px 0 0;
    padding: 5px 0 0;
    }

    If you are using the default theme, this will style the signature div exactly like the poststuff div that follows it.

    Please note that (at this time) signatures are text-only. You may want to let your users know by adding a note in the functions.php array declaration. Something like 'Signature (text only)' would do the trick.

    I don’t know if it’s possible, but it would be nice if this plugin would be modified so that it can display images, links, and so on in the signature. Does anyone know how to do that?

    Thanks!

Viewing 25 results - 30,551 through 30,575 (of 32,522 total)
Skip to toolbar