Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,576 through 26,600 (of 32,466 total)
  • Author
    Search Results
  • #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);
    ?>

    #67853
    vadi
    Member

    Where can the above code be stuffed, _ck_?

    #68746

    In reply to: How to move a forum?

    vadi
    Member

    Won’t be changing the domain name, just moving to a new host – but for the time being, the domain name will change temporarily.

    Unfortunately I couldn’t find any import/export plugins, and I searched for them again just now… was hoping for a more fail-safe solution than exporting and importing the databases :/

    #55947

    In reply to: Show off your Forum !!

    Jorja Fox: Online and the Forums are finally done.

    I’ve had the blog up for a couple years (it got taken down and revamped when it crashed my server with bad code and bad bandwidth usage). No ‘hacks’ involved, though I did tweak some plugins.

    Using:

    • Akismet
    • Allow Images (commented out two lines to allow for images without blowing up code)
    • Bad Behavior (the generic file provided by the creator, with a plugin header added to allow it to be pluggable)
    • bbPress Smilies
    • Comment Quicktags for bbPress (added in my spoiler tags)
    • Mass Edit – Moderate Posts
    • Spoiler Tags
    • Unread Posts

    The design is based on the Dignity Theme, and then hacked to kingdom come to make it, among other things, variable width.

    #68742
    _ck_
    Participant

    Actually it’s

    Options +MultiViews

    note the plus.

    But multiviews is not the preferered way of doing it and some hosts don’t support multiviews.

    Instead, use the method in step #3

    Oh and most importantly,

    $bb->mod_rewrite = true;

    will only do numbers.

    $bb->mod_rewrite = "slugs";

    does the full topic title.

Viewing 25 results - 26,576 through 26,600 (of 32,466 total)
Skip to toolbar