Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,226 through 29,250 (of 32,499 total)
  • Author
    Search Results
  • #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.

    #60009
    _ck_
    Participant

    I’ve discovered another interesting approach that SMF takes – their “plugins” are actually true mods where it’s a sort of “diff” file that patches the sources. Keeps it running very fast no matter how make addons you use. To a certain degree it keeps working between minor version changes (ie. 1.1.1-1.1.3) but major changes will break many of them. Still, it’s an interesting approach and very different to bbPress.

    They also do virtually everything in memory as arrays (roles, etc) where bbPress runs through a big bunch of code to return a value ie. bb_current_user_can(“administrate”).

    I know wordpress.org’s forum has distributed backup servers but it operates as a single server correct? I’m wondering just how far bbpress can scale on a single server. Once you offload mysql & email functions, that’s about as far as you can go easily on a single server.

    #60063

    In reply to: top 100 bbPress sites

    _ck_
    Participant

    Actually I have both of those sites already in the list :-)

    I was going to try to get the list out this weekend but sadly I will not have as much time as I hoped to work on it. But it’s coming along.

    I’ll say this much about bbPress sites compared to most other forum software – very few of them look alike.

    #60062

    In reply to: top 100 bbPress sites

    The theme is Blix, and I’ve modified the hell out of it. The headers from the WordPress theme are loaded into bbpress. It’d take some work I’m not willing to put in to make this a bbpress theme :)

    #60061

    In reply to: top 100 bbPress sites

    Null
    Member

    airdrawnd where can we download that theme? I want to make it bbMenu compatible :)

    #60133
    Null
    Member

    There already is a trac for this made. Since mdwaffe made a ajax posting plugin for bbPress and he also builds this forum, I think there is a big change we’ll get it back.

    With any luck, perhaps in the next release :)

    #59827
    Inquirer
    Member

    The following code is in the front-page.php file

    <th><?php _e(‘Freshness’); ?></th>

    What file contains the code to change the Freshness of post format from the default of Days to the Date – Hours – Minutes ?

    #2264
    mazdakam
    Member

    Hi i found that the bbpress had ajax utility for posting rea but it removed i don;t know the reasons!

    but i think everyone will be agree with me it would be nice if there is ajax plugin for bbpress post area

    fastY easy and user friendly feature i hav no technichal knowledge so who like to start it…

    i will test it and get feed back :)

    _ck_ ?

    #60059

    In reply to: top 100 bbPress sites

    #2261

    I’d like to add a dropdown menu which lets the user jump between the different forums, latest discussions, and favorites. I’d love a little help with this :)

    http://www.doublepeace.se/forum

Viewing 25 results - 29,226 through 29,250 (of 32,499 total)
Skip to toolbar