Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,551 through 28,575 (of 32,462 total)
  • Author
    Search Results
  • #54423

    In reply to: Add nofollow to links

    livibetter
    Member

    Here it is:

    <?php
    /*
    Plugin Name: My own tweak for my forums
    Plugin URI: https://bbpress.org/
    Description: Fine tuning codes for my forum
    Author: Your name
    Author URI: http://www.myforum.com/
    Version: 0.1
    */

    add_filter('post_author_link', 'bb_rel_nofollow');
    ?>

    Basically, you can put many fine tuning codes within one PHP files, and this file is for your forum only. Remember to activate this plugin.

    #61865
    chrishajer
    Participant

    Look at the rendered source of the page (the HTML source) and look for <br /> or <p> tags – those will cause line wrapping. The other possibility is that the container that is holding the search form (the div) is too small, so it wraps.

    #61869
    chrishajer
    Participant

    I haven’t watched this video yet, but I think an idea for another one would be how to write a plugin :)

    #54421

    In reply to: Add nofollow to links

    livibetter
    Member

    You can simply add that line into bb-includes/default-filters.php

    or

    create your own plugin file with that line.

    #54420

    In reply to: Add nofollow to links

    bedbugger
    Participant

    Please–can you tell me specifically where to add this? What file and which lines? (Sorry, perpetual noob, trying to learn.) :-)

    #2676
    livibetter
    Member

    Hi!

    I made a new podcast show and the first episode’s topic is “Integrating bbPress into WordPress.” This is my first video, so I’m really need your suggestions. Maybe you can tell me what are you expecting in such podcast show? I am looking forward to hearing from you! :)

    PS. I haven’t decided what’s next episode and when will it be released.

    PS2. You may want to download .ogg (I might convert .ogg to .flv and .mov without appropriate parameters, so the qualities are not good).

    #61863
    chrishajer
    Participant

    For the size of the input text box, you need to change this in your theme’s search-form.php:

    <input size="38" maxlength="100" name="q" value="" type="text">

     

    Change the 38 to something smaller and the size of the box displayed will be smaller.

    Then, right below that in the file, you need to change this:

    <input value="Search »" class="inputButton" type="submit">

    to this:

    <input value="Go!" class="inputButton" type="submit" >

    To get everything on one line, you need to remove all the paragraph tags around those two form fields in your search.php. Each form element is in its own paragraph so there are lilne breaks there. Remove the [p] and [/p] tags and see what it looks like. You will most likely need to add a space between the form input and the Go button after that, but I think it will do what you want. It will look something like this when you’re done:

    <form action="<?php bb_option('uri'); ?>search.php" method="get">
    <?php _e('Search:'); ?>
    <input type="text" size="23" maxlength="100" name="q" value="<?php echo attribute_escape( $q ); ?>" />

    <?php if( empty($q) ) : ?>
    <p class="submit"><input type="submit" value="<?php echo attribute_escape( __('Go!') ); ?>" class="inputButton" />

    <?php else : ?>
    <p class="submit"><input type="submit" value="<?php echo attribute_escape( __('Search again &raquo;') ); ?>" class="inputButton" />

    <?php endif; ?>
    </form>

    #61862
    chrishajer
    Participant

    Can you post what you did and what resources you used, so others with the same problem might find this post when they are searching for a solution to their problem?

    Basically though, you would install WordPress first, then use the same database for bbPress, but with a different table prefix for the bbPress tables. Then there are configuration options in config.php in the bbpress folder. Some of those can only be answered AFTER installing WordPress, like these:

    $bb->wp_table_prefix = '';
    $bb->wp_home = '';
    $bb->wp_siteurl = '';

     

    #54213
    chrishajer
    Participant

    I wouldn’t put them in bb-templates at all (no good reason for saying that other than “they don’t go there.”) Just drop them into my-templates.

    The my templates folder should be 0755.

    The template folder itself should be 0755.

    The files in the template folder should be 0644.

    (well, that’s what they are in my installation, by default, and they work)

    If those permissions are correct, then is it possible you didn’t create a folder under my-templates? Should be something like:

    my-templates  (directory)
    -crystal (directory)
    - all the php and css for the crystal theme here
    -superbold (directory)
    - all the php and css for the superbold theme here

     

    The other thing is that the style.css needs to have a line in it like this:

    Theme Name: Crystal

    If the Theme Name is not unique, I think bad things happen. At least you see what appears to be a theme of the same name in multiple places in the admin panel. I know WordPress doesn’t like themes with the same name too much, and I suspect bbPress is similarly picky.

    Please post when you find the solution because I am sure it will help other people. Thanks.

    #61849

    In reply to: Next page not working

    That’s what I did, when using the generated bbPress htaccess code it works, but not with MultiViews.

    Thing is, everything worked just fine with MultiViews, except that Next link.

    Ah well, resolved now. Thanks for the help guys!

    #61848

    In reply to: Next page not working

    livibetter
    Member

    About MultiViews, I recently re-read FAQ. There is a note for not working MultiViews.

    3. Try it out. If it doesn’t work, your web server does not support MultiViews. Instead, you’ll need to remove that line from your .htaccess file and replace it with the several lines bbPress generates for you when you browse to your bbPress installation’s /bb-admin/rewrite-rules.php.

    Maybe you can try it and let us know if that works?

    #61847

    In reply to: Next page not working

    Thanks for your input, I’ve resolved it!

    It was a mod_rewrite problem. After disabling it everything worked fine, so I took the long road and went and generated a htaccess file, instead of the one using MultiViews etc. That did the trick.

    Weird though, why shouldn’t MultiViews work with pagination, when it works with everything else?

    Ah well, it’s A-OK now, so thanks for the help! :)

    #61854
    Sam Bauers
    Participant

    The quickest (and dirtiest) solution might be to change line 91 in bb-settings.php to:

    require( BBPATH . BBINC . 'db.php');

    .

    I haven’t tested this, but it should work.

    It will force bbPress to use the MySQL PHP extension instead of MySQLi

    #57160
    chrishajer
    Participant

    I can’t see a way that bbPress would be responsible. The email is sent right before the registration success message is sent. From register.php lines 39-41:

    do_action('register_user', $user_id);

    bb_load_template( 'register-success.php', $_globals );

     

    So, after the register_user action (which emails the password) the success message is displayed. There is no delay built into bbPress. So, it is somewhere after bbPress has handed off the email.

    Is is possible there is a different header in the bbPress password message that causes it to be delayed by the recipient’s ISP? I know there is a Precedence: bulk header in the bbPress email, and that WordPress has the same, but there is also a X header in the WordPress email that I don’t see in the bbPress email: X-Priority: 3 (which means “normal” delivery.) It could also be due to the email address the email is coming from (some sort of validation by the SMTP server to see if the sender is valid.)

    I would say the problem is with the server sending the emails, or the recipient’s ISP, not with bbPress. I can’t come up with any ideas at all how bbPress could be responsible.

    #2665
    rosebud
    Member

    I am trying to get the User Role on the posts page (that links to the profile) next to the poster name to display, on hover, a span containing this text: “View profile of *user*”. I want to make it clear that clicking on the user title (role) will send the visitor to the user’s profile.

    To accomplish this in a very simple way I need to add a span inside the a tag, like this:

    <a>User Title<span>View profile of <?php post_author(); ?></span></a>

    And then apply simple css rules:

    a span {display: none;}

    a:hover span {display: block;}

    Thus, I need to decompose the template tag “post_author_title” given that this tag already outputs the whole link, so I can’t add the span inside it.

    What I have to do is find a template tag that outputs the User Title in just plain text, and I then recreate the link. I found “get_post_author_title” but I don’t know what it does. When I put it instead of “post_author_title” nothing renders (no text, nor link, nor error).

    I also tried doing this just by css with this markup:

    <a>User Title</a><span></span>

    And playing with the selectors + and >:

    a + span {display: none;} ---> This actually works

    a:hover + span {display: block;} ----> This does not...

    I hope I have been clear with what I want to do. Probably this is a trivial matter and someone could just set me on the right direction.

    Thanks very much for your continuous support.

    #61629
    Trent Adams
    Member

    You posted an hour ago! We are around to help, but not always right away! I am thinking it is the lack of an .htaccess file in your /bbpress/ folder on your server. Create that file and have the following in it and upload it and it might get you going:

    Options +MultiViews

    Check out:

    https://bbpress.org/documentation/faq/

    Trent

    #61628
    neffster
    Member

    I guess I will go with one of these: https://codex.wordpress.org/Plugins/Forums

    #61845

    In reply to: Next page not working

    I managed to duplicate the problem on my own project. Take a look, Next link (Nästa in Swedish, way down) doesn’t work. :(

    http://pakten.se/forum/

    and

    http://pakten.se/forum/forum/testa-loss

    The forum is installed in /forum. There’s a WordPress MU installation in the root directory, with working permalinks.

    #61842
    ruilouis
    Member

    I reply to myself (This forum is auto-curative ;P)

    So for the people who are endeavouring the same errors here is the deal:

    * a format specification for argument 1 doesn’t exist in ‘msgstr’ : This error is due to a missing variable in the translated string -> In my case a %s was missing.

    * field `Language-Team’ still has initial default value : This error means that you have to update information in ” Catalog / Settings / Project info ” -> In my case the Project name and version was something like “bbpress trunk”, the Language wasnt defined, nor wad the Country, Charset and Source code Charset. I still do not have info in the Plural Forms but it’s running.

    Don’t hesitate to contact me if you encounter problems with ja.po or ja.mo (Or if you want those files and cannot found them).

    バイバイ

    Rui

    #61837

    In reply to: language file ?

    العاب
    Member

    Ok hajii :)

    i will see the tags probim

    thank you for hard work with us !

    #61836

    In reply to: language file ?

    chrishajer
    Participant

    1. No problem

    2. I am unfamiliar with the tag problem, but I *thought* it was fixed in r846

    3. I don’t know about creating a subdomain of bbPress.org. You could always create your own site to support an arab user.

    4. Nope, not an arab. American. People do call me hajii sometimes, but I’m pretty much American :)

    #58226

    In reply to: bbSync

    fel64
    Member

    sheatsb, out-of-date documentation. I didn’t realise people actually read that. :P You don’t need the files, you don’t need the tag, it’s improved since then.

    AlexHertz, it would have been better etiquette to just ask in your original topic if it can be done with bbsync. Starting two debates is rude because it’s spam, but also counter-productive because, well, you’ve got two small debates.

    _Any_ functionality can be added to bbsync. It doesn’t do what you’re asking for, however. In addition, ‘moving comments to the forum’ would be pointless, because – and this is core bbsync functionality – replies in the forum show up as comments.

    #58224

    In reply to: bbSync

    sheatsb
    Member

    I’m having a couple of issues:

    -Is it just me, or are a few files missing from the package. There are claims in the documents of a

    stylesheet and another file outside of bbsync.php.

    -When I put the <?php bbrepliestext(); ?> tag in my theme, it shows nothing, then I try <?php felbbreplies(); ?> and I get Fatal error: Call to undefined function felbbreplies() in /Applications/MAMP/taos.htdocs/woodfin/wp-content/themes/default/single.php on line 56

    I’ve integrated WordPress and bbPress with the database and plugins. Is there something I’m missing to make this work, because this is a great plugin.

    #61830

    In reply to: language file ?

    chrishajer
    Participant

    These instructions are for WordPress but the procedure is the same:

    https://codex.wordpress.org/Translating_WordPress

    I think you take that pot file I linked to and use a tool like poedit to translate all the phrases that are in that pot file.

    Then, according to the config.php:

    // Change this to localize bbPress.  A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
    // to enable German language support.
    define('BBLANG', '');

     

    So, according to that, use poedit to generate the mo file (maybe it’s ar.mo for arabic?) and drop the ar.mo file you just created into the bb-includes/languages folder. Now change the BBLANG line to read:

    define('BBLANG', 'ar');

    I THINK.

    I am guessing on the ar as the proper language according to this page I found:

    http://www.iana.org/assignments/language-subtag-registry

    I am totally guessing at all of this, but I think that’s pretty close to what you need to do. When you’re done translating, please post back and share your work. Thanks.

    #61820

    In reply to: Lost in Login Loop

    chrishajer
    Participant

    What did you set mod_rewrite to in your config.php? If you set it to true or slugs, you might want to try setting it to false.

    $bb->mod_rewrite = false;

    That’s right after the admin email you entered.

    Also, there used to be a problem where depending on which login form you used (the one in the header or the one in the body of the page after you fail to login) you would get in a redirect loop that said something to the effect of:

    The page isn't redirecting properly

    Firefox has detected that the server is
    redirecting the request for this address
    in a way that will never complete.

     

    If that doesn’t help, then I think posting the URL to the broken forum would be the best thing so people can see what’s actually going on.

    I don’t think it’s cookies or permissions. I think it’s the mod_rewrite setting and your host does not support rewrite rules in the .htaccess file, or you haven’t created the .htaccess.

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