Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,876 through 31,900 (of 32,294 total)
  • Author
    Search Results
  • #1030

    Topic: Help with a plugin

    in forum Plugins
    ardentfrost
    Member

    I wanted a way to let the topics listed under “Latest Discussion” expire after a while (eg., no longer show up if there has been no activity after a week), so I wrote this little plugin which works alright, except it messes up the forums. Each forum, when clicked, shows all posts no matter what forum they’re in.

    Any help would be appreciated. This is a simple script, I just copied the $where code from functions.php and added the filter, then added my “expire after 7 days” addition. Any help would be appreciated, I’m probably just not seeing something simple.

    function get_where_plugin() {

    $forum = (int) $forum;

    $where = 'WHERE topic_status = 0';

    if ( $forum )

    $where .= " AND forum_id = $forum ";

    if ( !empty( $exclude ) )

    $where .= " AND forum_id NOT IN ('$exclude') ";

    if ( is_front() )

    $where .= " AND topic_sticky <> 2 AND SUBDATE(NOW(), INTERVAL 7 DAY) < topic_time "; // 2nd part is my addition

    elseif ( is_forum() || is_view() )

    $where .= " AND topic_sticky = 0 ";

    return $where;

    }

    add_filter ( 'get_latest_topics_where', 'get_where_plugin' );

    To see how it’s misbehaving, you can go to http://www.rayd.org/forums/ and just click on either forum (General Chat or New Forum Discussion) and see that both contain the same data. However, it’s working great on the front page.

    #50407

    In reply to: Importing from vanilla

    bruz
    Member

    Same over here – I need a convertor to switch… really can’t do this by hand :-)

    #51654
    Trent Adams
    Member

    This plugin is causing me some errors. It has to do with the portion of the plugin:

    extra_profile_info

    Not sure why, but it kills me registration on the forum. Instead of the ‘register’ button, it spits out the following error:

    bb_get_user needs a numeric ID

    If goes back to working if I delete the plugin. Could you maybe take a look into this one?

    Thanks,

    Trent

    #51895

    OK sorted it out and yes – as you guessed it was my fault! As usual :)

    I’d pasted the Akismet key into config.php but because it previously defaulted to false I ommited to add quotes around it which it needed. Add the quotes and it installed.

    I’m probably not the first with this one and almost certainly wont be the last!

    Thanks for your time and effort.

    #49739

    In reply to: Email subscription

    #51144

    In reply to: Private Forum script

    Trent Adams
    Member

    Good thinking. Using the logged in status natural to bbPress to do this. Just looking at the code it would work, but I will test this out on my dev forum and report back as well. I could see this expanded into a plugin very easily….

    Trent

    #51887
    spencerp
    Member

    Nevermind! I figured it out, whooami had made some changes to a couple files, to help fight off spammers.. The changes were made to the theme’s comments.php file, and the wp-comments-post.php file.. except when I had upgraded the blog to 2.1 alpha3, I didn’t re-add those changes to the 2.1 alpha3 wp-comments-post.php file..

    All is good now!! =)

    spencerp

    #907
    #51885
    spencerp
    Member

    UPDATE: Maybe Trent might know the answer to this one, but.. when trying to post a comment (while I’m logged in, not sure about others that are not though), it spits the following Error: “Error: please type a comment.”

    If you want, please feel free to try it here:

    http://www.spencerp.net/id/334#respond

    If anyone has any suggestions, please let me know, ok? Thanks for your time! ;) =)

    spencerp

    P.S. OR, aren’t you supposed to have the “comments link” on there..? =/

    #51273
    spencerp
    Member

    That is freaking awesome!! I had already done that ticket 438 lastnight.. but, now grabbed the other one and installed it.. Works like a charm!! Thanks Trent for pointing us in the right direction.. ;) =)

    spencerp

    #51341
    johanmaelson
    Member

    heu dudes … it’s a TinyMCE ability to use WYSIWYG to enter URL of you r picture and add it to textarea … i’m just edit some code in a image plugin for bbpress for compitability within html code which TinyMCE add.

    p.S image already has been uploaded … but for other reason .. you may use another wysiwyg which provided image uploading … or get commercial version of TinyMCE.

    #51272
    Trent Adams
    Member

    If you haven’t figured this out already, but there is a plugin for doing this at https://bbpress.org/plugins/topic/4?replies=1 and it does the following:

    Share user accounts between your WordPress blog and your bbPress forums.

    This plugin ensures current WordPress users can use the forum. As for registrations in bbPress and adding them to WordPress Users, check out:

    https://trac.bbpress.org/ticket/438

    It is a WordPress plugin to bring across the information for bbPress registrations.

    My blog is setup so users can register in WP or bbPress because with these 2 plugins, it doesn’t matter where they register.

    Thanks,

    Trent

    #51876

    In reply to: Problem with my Domain

    Trent Adams
    Member

    First off, you are missing a slash to seperate the forum and all the URL’s that it generates. The actual place you installed bbPress is:

    http://www.fh-augsburg.de/~steinle/Pfeil/Forum/

    You need to adjust some things in your config.php file in the bbPress root (above directory)

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = 'http://www.fh-augsburg.de/~steinle/Pfeil'; // Example: 'http://bbpress.example.com'

    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.

    $bb->path = '/Forum/';

    As to make sure it integrates, config.php should have something like this:

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you're not, just leave the rest as it is.

    $bb->wp_table_prefix = wp_; // WordPress table prefix. Example: 'wp_';

    $bb->wp_home = 'http://www.fh-augsburg.de/~steinle/Pfeil'; // WordPress - Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = 'http://www.fh-augsburg.de/~steinle/Pfeil'; // WordPress - Options->General: WordPress address (URL) // No trailing slash

    /* Stop editing */

    Keep in mind this is no exactly depending on whether this is just WP or WPMU that you are using. As well, this assumes that you have those addresses in your WP options as well.

    I think you will get the idea from this example though.

    Trent

    #51118
    lordcoder
    Member

    You need to change themes tags to bbpress ones , but like i do’nt have anything to do today , i ill do that for you ;-)

    #51858

    In reply to: Return to blog button?

    ear1grey
    Member

    Personally I just created a super-header (at $_SERVER["DOCUMENT_ROOT"]."/tabs.php") which is included as part of my wp and bb theme. It provides consistent tabs for blog, forum, etc.

    #50709

    In reply to: freshness = -1 years

    papercuts3
    Member

    Well OK. I am embarrassed to admit that it was my mistake. I have two different servers one in Germany and one in the US. I just mixed them up, I thought I was dealing with the Germany server.

    So I guess the time zone fiddling IS really the one and only solution to this and there is no bug in the code.

    #51841
    spencerp
    Member

    Nevermind, I’m sorry tonight people.. I’m so behind on sleep, the brain is in bed, but I’m not.. The [Resolved] being added by the “thread titles” was a modification to the WP.ORG forums and so forth.. it’s not by “default” in the download of bbpress..

    Is there any chance of maybe having that a plugin or not, maybe? I wouldn’t mind getting a hold of that.. ;) =P

    spencerp

    #51290
    spencerp
    Member

    Don’t spank me, but..I had tried doing this Integration stuff, and some how deleted those two usermeta tables at the very top of the database list, the two that sit above all the other ones, listed in the main wordpress database…

    Dang, I should have written the names down.. But, deleted those bb_forums ones too.. and then when trying to do it fresh again, for the Integration deal.. I filled out the field for the Keymaster name, and forum name.. hit to go to second step.. and it said, Bad Username, or, Username don’t exist, go back and try again…

    Then I was basically forced to skip the Integration option, and do it the normal way sigh.. =( Anyone have a database (query) schema for those two tables I deleted? Or, maybe can shed some light onto my darkened room.. ?

    Thanks in advanced..

    spencerp

    #1018
    spencerp
    Member

    I’m not sure why, or what’s going on, maybe I missed something.. =/ But, when trying to mark a thread [Resolved] in here, it doesn’t seem to show up as [Resolved].. like it does on the WordPress.org forums..? =/ Is this supposed to happen, or.. ?

    spencerp

    #51839

    In reply to: bbpress and 2.1 alpha3

    spencerp
    Member

    Seems to have installed just fine! I’ll run around and check for any errors and report back here.. I installed that right along with my 2.1 alpha3 test blog, click the link below to see it.. =) ;)

    http://21.spencerp.net/

    spencerp

    #1017
    spencerp
    Member

    I know this might sound, or, be a stupid question, but.. it’s safe to install bbpress right along beside 2.1 alpha3 right? If so, great! If not, is there anything I should know ahead of time?

    I just upgraded my main blog to 2.1 alpha3 a few hours ago, and wouldn’t mind meshing the two together. So, lay it on me peoples! I’m ready.. =P

    spencerp

    #51489
    ardentfrost
    Member

    Suleiman: I’ve never done plugins for wordpress, but I imagine that it shouldn’t be too bad.

    Circuit: thanks for the css fix :)

    #50706

    In reply to: freshness = -1 years

    papercuts3
    Member

    The usual config.php solution is not helping. There must be another way. Please guys, this is a serious problem. The code authors should take a look at this. It’s already driving many of us crazy.

    #1012
    sniss
    Member

    I have a rather strange problem. When I click the “Send Post”-button I get a 302 Found, with the following message:

    The document has moved

      here

    .

    The link points to bb-post.php. When I click the link I get the following message:

    You need to actually submit some content!

    My .htaccess file that was generated from rewrite-rules.php is placed in the root of the bbpress-installation looks like this:

    RewriteEngine On

    RewriteBase /bbpress/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /bbpress/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /bbpress/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /bbpress/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /bbpress/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /bbpress/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /bbpress/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA]

    The $bb->mod_rewrite is set to true.

    The post is inserted into the database, when I look at the frontpage of bbpress, but it is not redirecting properly.

    My webhost is one.com.

    Has anyone else experienced this fenomenon?

    #51288
    sevendotro
    Member

    nice community :)

    nice

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