Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,351 through 28,375 (of 32,499 total)
  • Author
    Search Results
  • #62590

    In reply to: TalkPress

    Sam Bauers
    Participant

    You are right, 1075 is probably the most stable release for “cutting-edge” users, but we would appreciate testing of trunk during integration of BackPress.

    We do intend to experiment with PingBacks and TrackBacks in topics via XML-RPC, and you could be right about spam, but we won’t know until we try. We will build out the spam tools provided by Akismet to try and meet the challenge of spam at the same time. There are also other ways in which we can utilise XML-RPC besides those two features which you may not have considered, we already have some cool ideas about user integration and content aggregation that should be driven by the needs of the hosted project. I hope you don’t leave us just for giving it a whirl :)

    The “Press” names are mostly about branding and the they need not be taken literally. We can leverage a lot of good-will by associating with WordPress, and we intend to create better ways to integrate the two projects, regardless of where they are installed or hosted.

    #62588

    In reply to: TalkPress

    Sam Bauers
    Participant

    Things may be a bit confusing at the moment with two new and different names flying around. I’ll do my best to clarify things and we can use this topic for everyone to ask questions on the subject and provide input.

    For those who are interested, the first thing to do is read this post (and the articles it links to) in the blog:

    The future for bbPress

    That post is pretty vague about things. So let me be more specific here. First, I’d like to make it clear that bbPress is not being replaced or abandoned or drastically changing direction. As for the two new names that have been mentioned, I’ll cover them below.

    BackPress:

    bbPress has a lot of shared code with WordPress. BackPress is the name of a new project which is attempting to normalise this shared code into a set of generic files that will simply plug in to both projects (and potentially others). This allows us to leverage the testing and improvements made to this shared code without the overheads of manually merging changes. This way we can spend more time on bbPress’ unique code and extending new functionality.

    TalkPress:

    It has been public for a while that Automattic intends to create a hosted forums service based on the bbPress project code. The intention is to make this work much like the existing WordPress.com hosted service for blogs. Matt Mullenweg let it slip that the working name for the project (and not necessarily the service) is TalkPress. We probably won’t talk much about it here, but I can say that the majority of the code written to create this new project will be released as open source. Regardless of the name of that service when it launches, the name of this project, “bbPress”, will not change.

    As for the upcoming work for bbPress, I’m happy to elabrorate here:

    bbPress code:

    Along with the inclusion of BackPress into trunk, there are other things going on. We are in the process of implementing a new taxonomy structure for tags. Improving bbPress’ object cache to make it compatible with various WordPress object cache plugins. Replacing the fairly ordinary “favourites” system with a much more flexible and useful topic aggregation tool, and later on we will be incorporating a set of functionality based around the XML-RPC tools available in WordPress such as pingbacks and trackbacks.

    bbPress.org website

    The bbPress.org website is due for a clean up. Most importantly, the extend area will be upgraded to include a plugin repository similar in functionality to the one that exists on the WordPress.org website. There is a possibility that we will also launch a theme repository based on the same system. A little later on, we plan to re-design the whole site.

    I hope this clears things up a little and I’m happy to answer any questions here. I can’t think of anything, but it’s possible that there may be some things that I can’t say about the hosted service project. Feel free to ask though.

    #62640
    Sam Bauers
    Participant

    Repost from the dev mailing list:

    As of the last commit at this time (revision 1076), trunk is in an experimental and unreliable state. We are attempting to abstract some functions and classes for easier sharing of code between WordPress and bbPress. This shared code is called “BackPress”, and we’ll probably be mentioning it a few times here and there in Trac and other dev discussions.

    #61677

    In reply to: User Registration

    rslater
    Member

    not sure how to apply that code.. can you assist

    #62638
    fel64
    Member
    global $bb;
    if( isset( $bb ) ) {
    //...
    }

    #61630
    d00d13
    Member

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

    Where’s the beef?

    #58793

    In reply to: How to disable rss ?

    chrishajer
    Participant

    Why not just remove the links to the RSS feeds that appear in the template files? Doesn’t that accomplish what you want?

    Like in topic.php in your template you have this link:

    <a href="<?php topic_rss_link(); ?>

    Just remove that, and remove links like it from the other template files. What am I missing?

    #62642
    chrishajer
    Participant

    There is not supposed to be a folder names “topic” – that is done with mod_rewrite on Apache. Can you try disabling mod_rewrite in your config.php and see if it works?

    $bb->mod_rewrite = false;

    If your forum works after that, then you need to do some work with your .htaccess and rewrite rules, or just leave non-pretty permalinks. But try that first, I think that’s why you’re getting 404 errors.

    You didn’t mess up anything I don’t think.

    #58792

    In reply to: How to disable rss ?

    Andrew
    Member

    The most important thing is that I remove the ability to get RSS. Removing autodiscovery is a secondary issue. The template files are easy to modify, I am not worried about that. The private forums plugin did a good job and there is very limited code in there dedicated to RSS. There must be a way to just shut it down with a simple filter plugin.

    #62629
    chrishajer
    Participant

    You edited the path out of the error message, but did it include the health_blog part, as well as forum? So it looked like /something/health_blog/forums/forum.php ?

    /usr/local/www/vhosts/healthstatus.com/htdocs/health_blog/forums/forum.php

    Maybe it’s one directory off or something?

    One thing weird about the link to a forum: the URL looks like:

    http://www.healthstatus.com/health_blog/forums/forum/healthstatus-forums

    when they should look like

    http://www.healthstatus.com/health_blog/forums/healthstatus-forums

    (I think – is there an extra “forum” in there?)

    Can you turn off the mod_rewrite in .htaccess and try it without permalinks? If it works, maybe the rewrite rules are borked.

    Try this: $bb->mod_rewrite = false;

    #62626
    chrishajer
    Participant

    The bug you have run into is fixed in the latest trunk release, or you can see this thread and this post specifically about the change to make:

    PHP Error Messages

    It’s been discussed before as well:

    https://bbpress.org/forums/topic/warning-invalid-argument-supplied-for-foreach-in-bb-settingsphp-on-line-173

    https://bbpress.org/forums/topic/installation-problem-cannot-modify-header-information

    It’s just a php warning, and your server is configured to show warnings, so you see it. It does point to a problem with the code, but even with the warning, everything still works fine.

    #2831

    Topic: Theme editing problem

    in forum Themes
    #61676

    In reply to: User Registration

    The bbpress mail funcion is just something I can’t really understand. When I tried to use it with my favorite notification plugin I got some problems, so I decided to hardcode the mail-function into my plugin.

    mail( $userdata->user_email, bb_get_option('name') . ':' . __('Notification'),

    sprintf( $message, $topic->topic_title, get_user_name($bb_current_user->ID), get_topic_link($topic_id) ),

    'From: ' . bb_get_option('admin_email') );

    I just kept it simple there. Did someone of you try to hardcode the mailing into the registration function? Would be interesting to see if it works then?!

    #62578
    chrishajer
    Participant

    The $bb->name setting in config.php is the name for the whole site and the name you see in Admin > Content > Forum is the name of the categories or sub-forums (however you want to think about it – see the bottom of http://bbPress.org/forums/ for “Installation”, “Troubleshooting”, “Themes”, etc – that is what you’re changing in Admin > Content > Forums). Changing it there does indeed change the display (look at the bottom of the front page to see the name you are changing in the admin panel: it’s under “Forums”). If it’s not working like that in your installation, there’s another problem I’m not familiar with.

    Anyway, being able to change the site name in the admin panel might be a good suggestion. You can make feature requests at http://trac.bbpress.org .

    #62480
    fel64
    Member

    I think one could add some PHP code in the topic page loop to parse the /uploads folder for folders whose names match the numbers of the post id’s displayed on that page, if-then display links to any files contained within those folders, if-not, then don’t.

    Probably more expedient to just check if folders with any of the post-ids as name exist; if then the operating system or whatever has to run through the entire folder to look, at least you’re handing the task to someone competent.

    If you want this done, I suggest you look at some PHP examples and do it. The hard part of programming is not knowing the language, but figuring out the solution.

    #61672

    In reply to: User Registration

    rslater
    Member

    Still does not work.. Can you elaborate on the “valid email” and what exactly you mean.. May sound like a dumb question but I just want to make sure i am not crazy. Which may be the case… :)

    #2801
    charliestout
    Member

    File uploads and attachments: like many others, I am highly interested in such a plugin. While I agree with the intent of the developers to keep bbPress light and awesome (which it is,) it certainly seems a shame to have to abandon bbPress because it does not provide for file uploads.

    It’s my understanding that each post is given a unique identifier, visible as a URL parameter: id=38 for post 38, id=39 for post 39, etc.

    Functionally, it seems a matter of creating an /uploads folder, and using a PHP upload/file management script to create a folder with the same name of the post ID in the /uploads folder.

    I think one could add some PHP code in the topic page loop to parse the /uploads folder for folders whose names match the numbers of the post id’s displayed on that page, if-then display links to any files contained within those folders, if-not, then don’t.

    Do I have the technical know-how to pull this off? Of course not. I barely got the forums installed and avatar plugin running on my server. But others lurking here with any PHP ninja skills might be able to.

    Of course, there might be horrendous security risks that I’m not thinking of with this method. And the PHP code that scans the uploads folder for foldernames that match post id’s might ridiculously slow down the forums, as it constantly scans the filesystem instead of performing a quick database lookup.

    But it might be a good start. Between all of us here in these forums, I am confident that we’ll eventually stumble across this much-needed functionality. Necessity is a mother…

    #62574
    Olaf Lederer
    Participant

    Hi Trent, thanks for the feedback!

    just checked the suggested plugin and using some activation code makes sense. Is this something for the bbress core version? And is this really needed? At the moment I have ~50 new registrations a day because people need to register to download some PHP classes from my website.

    Sure some of them have entered their URL to the profile, but this is not accessible until thy made a first post.

    #61671

    In reply to: User Registration

    Sam Bauers
    Participant

    Looks like it may be rejecting the mail due to the “From” email address being invalid. Try this code in a plugin and make sure your admin_email option is a valid email address:

    <?php
    if ( !function_exists( 'bb_mail' ) ) :
    function bb_mail( $to, $subject, $message, $headers = '' ) {
    if (!is_array($headers)) {
    $headers = trim($headers);
    $headers = preg_split('@r(?:n{0,1})|n@', $headers);
    }

    if (!count($headers) || !count(preg_grep('/^from:s/im', $headers))) {
    if (!$from = bb_get_option('admin_email'))
    if ($uri_parsed = parse_url(bb_get_option('uri')))
    if ($uri_parsed['host'])
    $from = 'bbpress@' . trim(preg_replace('/^www./i', '', $uri_parsed['host']));

    if ($from)
    $headers[] = 'From: "' . bb_get_option('name') . '" <' . $from . '>';
    }
    $headers = trim(join("rn", $headers));

    return @mail($to, $subject, $message, $headers);
    }
    endif;
    ?>

    #2824
    #62558
    Olaf Lederer
    Participant

    Hey trex33, the bigger forums are using vbulletin ;)

    #61935

    In reply to: Excerpts

    vedmak
    Member

    This is great excerpt , but i have 2 problems:

    1. excerpt don’t work with Sticky Topic
    2. how to make plugin from this code?

    Thanks anyway livibetter.

    #62571
    Trent Adams
    Member

    The spam post isn’t under moderation, but spam posts that are well written in WP are not either as they display immediately. I can tell you this though, on wordpress.com support forums there are very few “spambot” posts that make it past akismet. I have a couple small forums myself, but I have never had a post get past akismet except posts that don’t have any bad words or links which really “could be” real user posts. Even that number is pretty low. I have more problems with spam registrations, but livibetter’s “enhanced registration” plugin took care of that :)

    Trent

    #54861
    Göran
    Member

    I inserted your code:

    Code:
    include_once(BBPATH . BBINC . ‘streams.php’);
    include_once(BBPATH . BBINC . ‘gettext.php’);

    in ‘bb-settings.php’ but it did not quite work. My blog http://www.goranlin.se/blogg/wordpress/ is slower and website adm disappeared. And my forum http://www.goranlin.se/blogg/wordpress/bbpress/

    still do not show the posts from the blog which was planned. I use bbSync to try to get that, but no success so far.

    #62564
    Trent Adams
    Member

    If you search in https://wordpress.org/extend/plugins/ there is actually a plugin to do this for wordpress if I am not mistaken as well, but I use the way that chrishajer suggests myself as RSS feeds are easy to change and doesn’t require bbPress be in the same database ;)

    Trent

Viewing 25 results - 28,351 through 28,375 (of 32,499 total)
Skip to toolbar