Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,451 through 29,475 (of 32,481 total)
  • Author
    Search Results
  • #59034
    _ck_
    Participant

    Oh this is driving me crazy.

    Every so often, the private forum settings reset back to open to all and expose the moderator forum to everyone. Not good.

    Until this bug is found I need to know how to hardwire a forum by number via code to always be moderator’s only.

    update: I hardwired private_forums_custom_get_options, adding

    if (!bb_current_user_can("moderate")) {$private_forums_for_user[8] = "MODERATOR";}

    This should make sure no matter what, #8 stays private

    Hopefully you can find the bug soon… it might even be a bbpress core bug which is scary… then again, your settings are the only ones that seem to reset?

    #59585
    riddle
    Member

    Thanks for all your help, CK! I’ll look into eaccelerator — although I think I’ll finish building the site first. :-)

    #56420

    In reply to: Freshness Linked

    citizenkeith
    Participant

    I think bb-admin is broken because I had to edit some template files… I honestly haven’t taken the time to find out yet. It’s on the list for tonight though. :)

    #52669
    _ck_
    Participant

    Well why wait for tomorrow when you can put off other work and do it today :D

    I now have per-post signature disable ability on v0.07 though sadly you must edit two templates to get that ability, there is no way to hook the form from the plugin, at least none that I can find in the API.

    What’s really ironic is that I will most likely never use this plugin on my own forums, ha!

    #56745

    In reply to: Plugin: Avatar Upload

    howtogeek
    Member

    Thanks… I’ll wait for the update then =)

    #59627

    In reply to: post permalink

    so1o
    Participant

    try.. post_anchor_link();

    #59611

    In reply to: AdityaNaik.com

    so1o
    Participant

    @fel

    its some simple hacks that get the two systems in love.. :)

    @schmitt

    Thanks

    #59609

    In reply to: AdityaNaik.com

    fel64
    Member

    I like it :) How’d you achieve this level of bb integration? Are you includeing bbP or have you written a bunch of functions to emulate all that?

    #59603
    Null
    Member

    Well eeuuhh, first I would have to know which part uses prototype and where that code is.

    And then I would have to learn to code properly :D

    Any1 know if it is even planned to switch interly to jQuery? It would save some useless script loading :) (and I would have to rewrite my bbMenu plugin, but I was planning to do that anyway)

    #59602
    fel64
    Member

    jQuery is there but not everything uses jQuery yet. You could speed things along by rewriting the prototype code for jQuery if you like.

    #59356
    Null
    Member

    @ MaryJane download and use phpMyAdmin. It gives you acces to you database. You still need to know how to make/use SQL queries though :(

    @Box, dude had any time to help me out with the bbMenu plugin thingy? I want to fix this issue before I start with the next version (using jquery and fixing alot of bugs)

    Thx

    #59607

    In reply to: AdityaNaik.com

    Null
    Member

    Looks horribly in ie6 :( (only have ie6 at work :))

    #59593

    In reply to: Limit long words

    beaver6813
    Member

    Ahhh that auto worked a treat ;-) I’ve used the break-word as well for IE so it doesn’t even need to scroll when words are too long, in FF it just scrolls. Although a plugin to shorten long url’s words etc might be quite cool, like:

    http://www.ilovebbpress.com/bla/blab/blalblba/indexnop/123

    to

    http://www.ilovebbpress.com/bla…/123

    If I get time next week I might make one… but don’t quote me on that :-P

    Thanks guys for the help!

    #59598
    _ck_
    Participant

    It adds the (half-dozen) ajax scripts to topic pages.

    Doesn’t affect other pages from what I can see.

    In theory it’s very necessary, can’t delete topics without it since there is no non-ajax fallback from what I can see. Also things like adding/removing favorites within a topic.

    You can reduce mysql queries by pre-loading all options in one fetch at startup. Try this un-documented option in config.php

    $bb->load_options = true;

    personally I can’t wait ’til they stop using prototype.js since it’s HUGE for the few functions they access

    then there is add-load-event which is 200 or so bytes but not combined with any other script so it forces yet another external file load

    #59581
    _ck_
    Participant

    Looks like they are really trying to hide “load” from you.

    I know of only two ways to grab it from php (there might be more?)

    echo "method 1: ".file_get_contents('/proc/loadavg');
    echo "method 2: ".shell_exec("uptime");

    Really though, should not be this hard.

    It’s possible to get better getting hosting for $150/year.

    #59580
    _ck_
    Participant

    I should point out that even your static.html serves up fairly slowly, though a little faster than the dynamic pages. Getting mysql caching may not be as big a boost as it hopefully should be. I can’t even see what your guaranteed VPS ram is.

    If you are on a VPS there is usually a seperate VPS control panel that will also let you restart services, including mysql.

    my setup lets me do a “service mysql restart” but that’s probably not universal. This is what I have in my.cnf

    [mysqld]

    # myisam-recover = BACKUP
    # delay-key-write = ALL

    max_connections = 400
    key_buffer = 16M
    myisam_sort_buffer_size = 32M
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 286
    interactive_timeout = 25
    wait_timeout = 1000
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 16M
    query_cache_type = 1
    tmp_table_size = 16M
    skip-innodb
    old-passwords = 1
    basedir = /var/lib/mysql
    datadir = /var/lib/mysql
    long_query_time = 1
    log-slow-queries = /var/log/mysql/mysql-slow.log
    log-error = /var/log/mysql/mysqld.err

    [mysqld_safe]
    open_files_limit = 8192

    [mysqldump]
    quick
    max_allowed_packet = 16M

    [myisamchk]
    key_buffer = 32M
    sort_buffer = 32M
    read_buffer = 16M
    write_buffer = 16M

    #50216
    fel64
    Member

    The first line of the first post? Or do you mean the first thread in the first thread listing?

    Sure, just do something like this. <?php if( !$is_foist_topic ) { echo ‘ class=”first-topic”‘; $is_foist_topic = true; } ?>

    The first time it checks it won’t be true, so it echoes code to change the class of the HTML. Then it sets it to true, so the next times it will be true and it’ll skip that.

    You want the code to set the class of the tr I believe, so put it in the HTML for that. Play around.

    #58872
    fel64
    Member

    I mailed mdawaffe in the mailing list but no response. He knows and I assume he’s working on it, or going to.

    #52665
    citizenkeith
    Participant

    Thanks fel! :) In the meantime, I’ll just edit HTML special characters in my user’s signatures.

    #58871
    outchy
    Member

    yeah this is happening for me too. any luck?

    #52664
    fel64
    Member

    By having ck stripslashes on it. It seems to be something he’s gotta fix.

    None of these are dumb questions … just ask ’em and don’t worry about it. :)

    #52663
    citizenkeith
    Participant

    Thanks guys, I figured it out. :D

    Dumb Question #2: How does one use quotes or apostrophes in their signatures? Forward slashes are inserted before each instance.

    #59590

    In reply to: Limit long words

    fel64
    Member

    You want

    .post { overflow: auto; }

    which isn’t actually the automatic setting – but it’s the one that automatically adds a scrollbar if the post is too wide. Like multiline code here, it’ll add the scrollbar only if needed. Also handy for images.

    And lol at everyone suggesting something else. :P

    #52950
    chrishajer
    Participant

    I think the real question here is “what the heck is a winesap”?

    :D

    #59589

    In reply to: Limit long words

    bobbyh
    Member

    It sounds like you’re looking for something like the proprietary word-wrap CSS property which works in IE browsers only, as far as I know.

    .post {word-wrap: break-word; }

Viewing 25 results - 29,451 through 29,475 (of 32,481 total)
Skip to toolbar