Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,176 through 29,200 (of 32,458 total)
  • Author
    Search Results
  • #60205
    _ck_
    Participant

    IMHO validation is just a syntax check and the least of bbPress problems right now.

    The most useful doctype for the next decade is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Get back to me when a browser DOESN’T support that ;)

    Makes life sooo much easier. Then posts can contain <b>, <u>, <s> and <i> and all sorts of standards people have been used to for the last decade instead of reinventing the wheel!

    Now instead go round up a dozen php plugin developers and get them onboard and we’ll have some real momentum :)

    #60201
    _ck_
    Participant

    I’ve been considering making this ability but it really worries me about the volume of email if someone subscribes to many, many topics. Spam filters, not to mention your server host can trigger bans if too much email is being sent.

    But I do have all the routines I need however to build such a plugin based on code from my signatures plugin and ignore member plugin. (Digests are another matter however, that’s a bit of work and requires tracking of last message seen, which is not natively built into bbpress)

    There is just too much to create but too little time to do it though. I’ve got too many little projects going.

    #60199

    In reply to: Forum permissions

    fabianzaf
    Member

    “Of course this blocks admin too which is bad so”

    I have no reason to use the forums that I wish to restrict. Im only using them for titles sake :)

    Thanks for commenting

    #60179

    In reply to: Session header problem

    fabianzaf
    Member

    I fixed this problem :D

    the topic_views plugin was also sending out a session and did not have the @ symbol in place.

    All is fixed ^^

    #2273
    fabianzaf
    Member

    When including wp-config.php in my config.php with this code:

    <?php require_once(‘/home/path/public_html/wp-blog-header.php’); ?>

    I get this error

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /public_html/wp-blog-header.php:29) in

    Everything works its just this message showing up. I read in one plugin support page when I was searching through google that I have to edit the session code to say :

    @session_start();

    Although.. i’m not quite sure where..

    #60198

    In reply to: Forum permissions

    _ck_
    Participant

    What you are trying to do with read-only has to be done in post-form.php

    You’d have to wrap it in a check for which forum id # it is and not allow the form to render if it’s one of the forums you don’t want posts in. Of course this blocks admin too which is bad so you’d have to check bb_current_user_can(“administrate”) too.

    Then there is the dropdown section, where you’d have to prevent the forum name from listing, so that needs a replacement function. It’s not 10 minutes of code unfortunately or I’d do it for you.

    Basically you’d need a completely custom post-form.php in your template.

    #60195

    In reply to: Forum permissions

    fabianzaf
    Member

    Thanks for the lengthy response :)

    It is kind of strange that forum permissions was not their main priority when creating this package. I don’t want this to dampen how I feel about bbpress though. Since the private forums feature works it already fixes half of my problem.

    One easy workaround for now would be to manually close all your posted topics in a forum.

    I dont see how this would prevent users from creating new topics altogether. These parent forums are simply supposed to act as titles… i’ll see if I can find anything in the code to fix this.

    :D ^^

    #60178
    _ck_
    Participant

    Or simply don’t let the post be made with titles that get sanitized into nothingness, or better yet, titles that are shorter than X characters – something like:

    function title_regulation($text) {
    if (strlen(trim($text))<8)
    bb_die(__('Your title is too short, please say something meaningful!'));

    if (strlen($text)>80)
    bb_die(__('Your title is too long!'));

    return $text;
    }
    add_filter('pre_topic_title', 'title_regulation',100);

    #2278
    mazdakam
    Member

    hi again :))

    al of you know that notification email is very important for tracing a post

    i am using post – notification plug in

    but it need to be better:

    don’t send any email until you visit the post from your email link

    i got crazy this month because for every new post i will give notification email and the trafficked of my forum is high

    many other forum systems have this feature

    so i recommend this:

    an option for users to select didgist summary or per post or until he/she visit(default!)

    #60194

    In reply to: Forum permissions

    _ck_
    Participant

    Read-only forums are tricky to do as bbPress does not have any structure in place for forum permissions to the best of my knowledge, only user permissions to a certain extent. Apparently no-one considered forum control important in a forum program? Hmm.

    The private forums plugin has to insert alot of code just to mange making forums invisible to certain users (and still can miss some areas). To make them read only, while removing the “new post” form seems obvious, it wouldn’t solve the problem as there are two or three places to create a new post (and apparently in future versions via trackbacks). Unfortunately none of that can be done via plugins, it would have to be a direct hack.

    Perhaps in a future version they will consider forum permissions to make this easier. Other mature forum software has this ability, easily. I will look into how tricky the direct hack might be, probably not too hard, but keep in mind you’ll have to re-do it every time you upgrade.

    One easy workaround for now would be to manually close all your posted topics in a forum.

    #2276
    neyoung
    Member

    First off, sorry mods if this is a double post. I left a comment on the Allow Images plugin page, but I don’t think many people read those comments unless they themselves are having a problem. So I thought I would be better off starting a new topic.

    I’ve been stumbling with getting images to work on my bbpress 0.8.2.1 forums for a day or two now. For some reason the Allow Images 0.7.1 plugin doesn’t work for me. When I post an image it gets truncated down to <img /> in the database.

    I’ve tried using the two spaces before the ending slash – No Luck

    I’ve also tried editing the bbpress core files like meeciteewurkor recommendedNo Luck.

    I did notice that if I used phpmyadmin to edit the database manually and put the <img src="http://domain.com/image.jpg" /> code into a post the image shows up. So there has got to be a function that is filtering out the src part of the image tag or something :(

    Anyone have any suggestions? Is there a function I should be looking at in particular?

    #60181
    chrishajer
    Participant

    The forum is located here:

    http://claystreet.uparkforfree.com/bbpress/index.php

    But the config entry is wrong, because the server thinks the URI for the site is here:

    http://claystreet.uparkforfree.com/forum.html/

    So, in your config.php, you have this:

    $bb->uri = 'http://claystreet.uparkforfree.com/forum.html/';

    instead of this:

    $bb->uri = 'http://claystreet.uparkforfree.com/bbpress/';

    Change that line, and you’ll be good to go. The site looks like that because the path to the style.css file is wrong (among other things). In fact, once the URI is corrected, the site looks like this:

    http://www.chrishajer.com/bike/XLF/ClayStreet.png

    Good luck.

    #60135
    Null
    Member

    Nope, once a month mdawaff comes out of his cave, fixes a ton of bugs and crawls back again.

    No 1 can find him afterwards, no 1 knows when he will appear again….

    And one day, you check this site and a new release is there…..

    The end :)

    bobbyh
    Member

    I had a user write a post with this title:

    =)

    This creates a post like this:

    * http://www.kosmosity.com/forums/topic/?replies=1#post-2

    I’m using the “slug” option on this test forum which uses the default theme and bbPress 0.8.2.1. It looks like the =) is being sanitized to “” (an empty string), which confuses bbPress and leads to that topic resolving to an error page. On the test forum to which I just linked, I have no plugins except WordPress Integration.

    Has anybody else run into this bug? Is there an existing workaround? If other people can replicate this bug, I’ll create a ticket in Trac. Also, if there’s no existing workaround, I’ll try to create a plugin workaround.

    Thanks,

    Bob

    #2262

    I have a certain user at my forum http://www.doublepeace.se/forum and some of his posts aren’t showing up for the rest of us. He took a printscreen and showed me the post but when I went to the topic myself I couldn’t see it. This has only happened to this particular user. Any ideas? :/

    #60172
    fabianzaf
    Member

    Actually… that wasnt such an elegant solution @_@ If logged in it redirects me to the control panel.. and when I access bbpress directly it still redirects :/ Maybe its because I dont have an ifelse going on.. not sure.

    Out of curiosities sake.. isnt there a way I can disable the wordpress control panel for subscribers and have them redirect to the bbpress profile page? That would be awesome…

    >_>

    #60171
    fabianzaf
    Member

    Hey man.. thanks for your reply. And yes I’ve went extensively through all the hacks. (By the way you made some wicked ones… without your contributions bbpress wouldnt be so awesome)

    Vbulletin might have been around for a very long time but its so generic it makes my head hurt. Every vbulletin site you come across looks the same and its pretty hard to customize. Sure you can edit the templates quite heavily but it still heavily depends on tables and executes one massive css file.. even though most of their style attributes is stuck on tables @_@ Sure bbpress uses tables but definitely in a more elegant way.. (frankly I wouldnt want any tables on my page to start with.. will make a theme later thats css only)

    I like the idea of having a very small bare bone forum install that can be extended from there.. I’m sure in no time the plugins will be in the core where its just a matter of switching it on in the admin panel. Either way, the plugins are pretty easy to install anyway.

    As for my problem.. I made a relatively elegant fix! :)

    add this at the top of your header.php

    <?php if ( !bb_is_user_logged_in() ) { ?>

    <?php

    header("location:http:/......../wp-login.php?redirect_to=%2F");

    exit;

    ?>

    <?php } ?>

    Got my site almost sorted now.. just need to find a way to make a tickbox in “post-form.php” that sets the thread to go to favourites :)

    As well as perhaps a tickbox next to the comment button ;)

    #60174
    Null
    Member

    This aint wordpress :) and yes everything has te be done offline :(

    #60160

    In reply to: Wrong user count

    Elias
    Member

    Arrgh! Horrors!

    The problem is caused by the bb_append_meta invocation in line 2075 of functions.php. The query destroys the last SQL_CALC_FOUND_ROWS and so the count is wrong. A quick and dirty workaround is to change 'append_meta' => false to 'append_meta' => false in the $defaults array in line 2021 of functions.php. But this only works if the append_meta argument is not given in the bb_user_search call.

    Now the problem is more complicated as I suspected earlier. It is a problem for the hackers that make bbPress. No further searching for bugs from me, the problem should be clear. (It is clear enough to me after reading lots of code from other people.) I expect it to be fixed in the next release.

    #59830
    Sam Bauers
    Participant

    I believe you can do this…

    <?php topic_time('D M j Y G:i:s'); ?>

    But I’ve never tried it.

    #60159

    In reply to: Wrong user count

    Elias
    Member

    I found something that can help to fix this bug. In the following I use wordpress_ as prefix for my WP tables.

    My wordpress_usermeta table has 65 rows, and 65 users are displayed now in the bbPress dashboard. It seems to be a wrong SQL statement for querying the number of users.

    Instead of the (by me assumed) select count(*) from wordpress_usermeta there should be used either select count(*) from wordpress_users or select count(distinct user_id) from wordpress_usermeta to get the number of users.

    (Oh yes, I know that there will be a where-clause…)

    I suspect line 2046 in bb-includes/functions.php, but I’m not familar with the source.

    #59829
    Inquirer
    Member

    Hi chrishajer:

    I moved the files you listed to my-templates folder then edited using the code

    <?php echo date(“D M j Y G:i:s”, strtotime($topic->topic_time)); ?>

    I FTPed the files to my server.

    The new date time format appears to be working.

    Thanks.

    #2266
    dennylin93
    Member

    I installed bbPress version 0.8.2.1 on Windows XP Pro SP2 with Apache 2.2.4 and PHP 5.2.3. I installed a few plugins, and everything worked fine. However, when I tried to register a new user for testing, I couldn’t receive the e-mail with the password.

    I checked the error log and found this:

    [Sat Aug 18 21:18:09 2007] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\forums\bb-includes\registration-functions.php on line 105, referer: http://127.0.0.1/forums/register.php

    Most things on Apache and PHP are set to default, so I’m not sure if I skipped any processes. I’ve been having trouble with SMTP for a long time now.

    #50389
    neyoung
    Member

    thanks baptiste!

    The fix worked wonders :)

    #59828
    chrishajer
    Participant

    That php _e(‘Freshness’) just echoes the table header. A couple lines beneath that you will find the call to the function that provides the time elapsed (i.e. the Freshness):

    <?php topic_time(); ?>

    Instead of that topic_time, you could just insert the code like _ck_ has shown, modified a little bit, so instead of this in your template files:

    <?php topic_time(); ?>

    use this:

    <?php echo date("date format here", strtotime($topic->topic_time)); ?>

    where date format here is some combination of characters from here: http://www.php.net/date

    For example:

    <?php echo date("D M j Y G:i:s", strtotime($topic->topic_time)); ?>

    prints like Sun Aug 19 2007 1:53:54 right now, but it would be based on the topic time of the post in your case.

    You would need to look at these files, at least, in your template directory:

    ./favorites.php

    ./forum.php

    ./front-page.php

    ./tag-single.php

    ./view.php

    It’s safe to modify your own template files. You’re not modifying the core bbPress files. But maybe this would be better as a plugin, I’m not sure.

    Good luck.

Viewing 25 results - 29,176 through 29,200 (of 32,458 total)
Skip to toolbar