Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,601 through 26,625 (of 32,495 total)
  • Author
    Search Results
  • #68803
    _ck_
    Participant

    It will indirectly fix the problem with page numbers.

    Doesn’t actually fix the bbPress internal issue but avoids it instead. I still don’t understand why I can’t reproduce the error on my installs.

    You are probably getting an internal server error because of a conflict with a rule in the root htaccess. Make sure you don’t still have the old rewrite rules in the root one. You can also post that root htaccess here for me to look at. Be sure to put it between code backticks.

    #68801
    _ck_
    Participant

    You need to make sure the .htaccess is in /Forums/ and not the root of the entire site. Your host’s directory structure is a little strange but I don’t think it will interfere with mod_rewrite.

    There is a possibility that there is a rule in the root .htaccess that is interfering the lower .htaccess. But let’s first make sure it’s in the correct directory.

    By the way:

    /Forum/topic/forum-guidelines-please-read

    is correct.

    /Forum/forum-guidelines-please-read/

    is wrong.

    bbPress needs to know that the string following is a topic, otherwise it doesn’t know what to do with it (it might be a forum). /Forum/forum/forum-name is also legit.

    #68799
    TrishaM
    Participant

    Yep I downloaded the most current version of the plugin, and did not modify it in any way at all.

    I did try using the mod_rewrite instructions (called the file rewrite-rules.php from my browser, copied and pasted the resulting rules into my .htaccess file, and then went to settings and chose the pretty permalink), but it just results in 404 errors when I click on any of my links.

    I’m certain that’s because the rewrite rules are adding in to the URL an extra level as such:

    what should be /Forum/forum-guidelines-please-read/ becomes /Forum/topic/forum-guidelines-please-read

    Same for the forums – it is inserting and extra /forum into the path. Unfortuanately I don’t know enough about mod_rewrite (okay really nothing at all about it) so I am not able to correct the rules myself. OR if the problem is not with the rewrite rules but something in the core code, that’s beyond me too. I just know it’s adding something to the path that shouldn’t be there.

    #68798
    _ck_
    Participant

    Hmm that’s a really strange problem that I am going to have to explore a bit later.

    You are using the final copy of the plugin correct?

    And you didn’t modify it at all?

    Even though I can’t reproduce the problem on my copies of bbPress, this may be an internal bug since I can workaround the issue by doing this (note the ?& )

    http://www.travel-writers-exchange.com/Forum/?&page=2

    ps. the best way to do pretty-permalinks is to use the .htaccess method with “rewrite” where you have to copy and paste the rules that bbPress offers here:

    http://www.travel-writers-exchange.com/bb-admin/Forum/rewrite-rules.php

    Once you do that, then you have to turn on the option in your bb-config.php

    #68797
    TrishaM
    Participant

    Hi _ck_ – thanks for helping.

    Here is a link from the front page to a topic:

    http://www.travel-writers-exchange.com/Forum/topic.php?id=43

    I reported it working because the numbers showed up exactly how I wanted to see them, but I’m embarrassed to say that I didn’t actually “click” on the numbers at that point to be sure they actually worked correctly.

    I didn’t change the plugin in any way. It does work perfectly on the other pages – the individual forum list of topics (forum.php) and the topic itself with the posts (topic.php)……I only get this error if I click on the additional page numbers on the front page.

    (p.s. – I would LIKE to use pretty permalinks, but have not been able to get that working, even after reading everything I could find here on the subject and trying all of the suggestions – I’m hoping a future version of bbPress will fix this issue, but for now I’m stuck with the ugly permalinks)

    #66969

    In reply to: Mass email function

    _ck_
    Participant

    Any shared host worth their salt will automatically, immediately and permanently suspend an account sending that many emails per hour anyway.

    Any site sending that many messages needs a dedicated email server with an IP that’s registered on whitelists (costs $$$) so major providers will accept that kind of traffic. http://goodmail.com http://www.senderscorecertified.com http://www.isipp.com are examples of popular whitelist services. You also need to make sure the server has rDNS, SenderID, SPF and DomainKeys.

    With some additional code and the use of cron, Detective’s code could be made to send only a few emails per minute, and track that the same domain does not get an email again within a few minutes. That might slow down the banning a little but we’re getting into spammer territory there and I’m not making such a tool available (also phplist does all that anyway).

    #68832
    chrishajer
    Participant

    On this forum “Started 5 hours ago by jabberwock” appears. So, there are functions to do what you want to do. Maybe it’s just not in the theme you’re using. This is in my topic.php:

    <li><?php printf(__('Started %1$s ago by %2$s'), get_topic_start_time(), get_topic_author()) ?></li>

    Those are your functions. The get_topic_start_time returns a time elapsed sort of thing (i.e. “5 days ago”) rather than a date. There is probably a function to return the topic start date instead of time elapsed as well. Maybe it’s topic_time or get_topic_time or topic_start_time. All the functions are pretty reasonably named.

    #4234
    jabberwock
    Member

    In forum.php and front-page.php, the latest poster for each topic is identified. Is it possible to also identify the first poster– ie the person who started the thread and perhaps also when the thread was started? After sifting through code for several hours, I’m not sure if I’m overlooking something, or if I simply cannot find something that is not there. Thanks.

    #68781

    That’s because your topic is already stuck :)

    Click on Unstick topic. Then you get the options again.

    #68790
    chrishajer
    Participant

    Just use a little php. What type of code are you trying to insert?

    #68700
    chrishajer
    Participant

    Zulan: this error says you have the path to the file wrong in your bb-config.php.

    Warning: require_once(../wp-blog-header.php)
    [function.require-once]: failed to open stream:
    No such file or directory in
    /var/www/www.zulan.se/bbpress/bb-config.php
    on line 41

     

    What path do you have listed to wp-blog-header.php on line 41 in your bb-config.php?

    #68779
    chrishajer
    Participant

    I don’t know where it is in the code. Does it not appear at the bottom of the topic when you are logged in as keymaster?

    #68750
    Olaf Lederer
    Participant

    I like the akismet spam filter ;)

    #68778
    epiphone
    Member

    Where would this option be located in the code? Can’t seem to find it. Thanks for your post.

    #68777
    chrishajer
    Participant

    I thought the options for sticky were like this:

    [Stick topic (to front)]

    Where “to front” sticks it to the front page, and “Stick topic” just sticks it in its own forum. I haven’t done it in a long time so I am unsure if that is the case any more or not. If it’s already stuck, I think you have to “Unstick topic” then re-stick it to the front page.

    #68773

    It’s meant to mark the page as it being a sticky post. You can move it around on your template. I have mine show up after the number of replies so it would be Forum Rules (1 post) [sticky]

    Look for <?php bb_topic_labels(); ?> in your topic.php file.

    #68696

    globetrotterdk, you have to look into your wp-config.php file.

    On bb-config.php I added in:

    define('AUTH_SALT', 'AUTHSALT');
    define('LOGGED_IN_SALT', 'LOGGEDINSALT');

    Which is exactly the same as in my wp-config.php file. And, obviously, it’s not actually set to AUTHSALT but something like UYwE&#93&We3#

    #4228
    epiphone
    Member

    Hi there,

    My bbPress forum (0.9.2) has been theme and databased intergrated, I’ve just decided to test sticky topics, and this occurs on a sticky topic:

    http://www.james-blogs.com/forum/topic.php?id=3

    What is this [sticky] code doing, Is this meant to be how a sticky topic is identified to someone or is broken bbcode?

    Regards,

    James

    #68695
    zulan
    Member

    I follow this with great interest since I have almost the same problem. I dont even see the admin admin, I only have one admin and that is my account since if I try to use it I get to edit my profile. I’ve tried entering the path http://www.zulan.se/bbpress/bb-admin/ but it only takes me to the first page :-(

    I have checked my AUTH_KEY, SECURE_AUTH_KEY AND LOGGED_IN_KEY and they are for sure the same since I havent changed them. So both my wp and bb config says like this:

    define(‘AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.

    #66965

    In reply to: Mass email function

    Myron Tay
    Member

    I can’t believe I’ve not seen phplist around before. :D Thanks!

    #63056
    TrishaM
    Participant

    I actually have a closely related but slightly different need – I need bbPress to NOT strip out the target if I manually enter it into an <a> tag and, ideally, to also not strip out the rel=”nofollow”

    This plugin does add the rel=”nofollow” to links, but I wouldn’t want that added to my internal links, just external ones. But it is not adding the target=”_blank” and bbPress is still stripping it if I add it manually. Again, I wouldn’t want it added for internal links, just external (we want ALL internal (on-site) links to open in the same window, but want ALL external links to open in a new window).

    The only way I know of to get this granularity of control is to do them manually, but dang it bbPress keeps removing them.

    I agree totally that it’s not good to mess with core files, and I try to avoid it at all costs, but this is a very important issue for us – so if there is no plugin to add this level of control, how can I modify my file(s) to do this? I would happily add a functions.php to my theme and put it there, but am not a good enough coder to write this function myself.

    Any suggestions?

    #4225
    danbbpress
    Participant

    I just installed this plugin http://bbpress.org/plugins/topic/post-notification/ that automatically adds new posts to an author’s favorites. However, in order for the post’s author to receive a notification email for a new post he/she must also turn on email notifications in the admin area.

    My question: is there a way to change the code to have these email notifications turned on by default?

    #68754
    _ck_
    Participant

    Also, if you’d like to dynamically add some text to the left (or even the right) of the page links without hacking all your templates, you can use this trick:

    // add "pages:" to page links
    function text_topic_pages( $text ) { if ($text) {$text="pages: ".$text;} return $text; }
    add_filter('topic_pages', 'text_topic_pages');
    add_filter('forum_pages', 'text_topic_pages');

    This way the word “pages:” appears before the page number links only if there actually are any pages for the results.

    #4224
    _ck_
    Participant

    update: I’ve now included this functionality in the topics-per-page plugin so use that instead which is maintained and not this mini-plugin which will not work properly with 1.0a

    Here’s something I had made a mental note of quite awhile ago but forgot to do, add pagination to the front-page for the latest discussions. You can see a demo near the bottom of http://bbshowcase.org/forums/

    (the following two functions are included in the 0.0.4 version of topics-page-page plugin, so don’t use them if you have that)

    add_filter('get_latest_topics_limit','front_page_pagination',999);
    function front_page_pagination($limit="") {
    global $page;
    if (is_front() && $page>1) {$limit.=" OFFSET ".($page-1)*bb_get_option('page_topics');}
    return $limit;
    }
    function front_page_pages() {
    global $page, $bbdb;
    echo get_page_number_links( $page, $bbdb->get_var("SELECT SUM(topics) FROM $bbdb->forums"));
    }

    1. add to your front-page.php template

    <div class="nav"><?php front_page_pages(); ?></div>

    AFTER

    <?php endforeach; endif; // $topics ?>
    </table>

    2. If you use rewrite slugs you MUST add the following rule to your .htaccess file

    RewriteRule ^page/([0-9]+)/?$ /forums/?page=$1 [L,QSA]

    anywhere before </IfModule>

    where /forums/ is the path to your bbpress install.

    #67854
    chrishajer
    Participant

    You can create a full plugin out of it, then activate the plugin, or _ck_ likes to create a single plugin for all the miscellaneous tweaks or mini-plugins, then add this to that file. Adding this to a file of other mini-plugins means you cannot activate and deactivate this independently. That works for tweaks you will always want to use.

    A plugin header will need to look something like this:

    <?php
    /*
    Plugin Name: bbPress Tweaks
    Plugin URI: http://www.example.com
    Description: Various tweaks to bbPress
    Author: You
    Version: 0.1
    */

    Add the above code after that, and call the file bbpress-tweaks.php, put it in my-plugins, then activate it in the bbPress admin. It should look like this when you’re done:

    <?php
    /*
    Plugin Name: bbPress Tweaks
    Plugin URI: http://www.example.com
    Description: Various tweaks to bbPress
    Author: You
    Version: 0.1
    */
    function meta_keywords() {
    global $tags;
    if (!empty($tags)) {
    $keywords="";
    foreach ($tags as $t) {
    $keywords.=$t->raw_tag.', ';
    }
    echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n";
    }
    }
    add_action('bb_head', 'meta_keywords',8);
    ?>

Viewing 25 results - 26,601 through 26,625 (of 32,495 total)
Skip to toolbar