Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,476 through 25,500 (of 32,570 total)
  • Author
    Search Results
  • #72619
    Null
    Member

    Update:

    Tested some stuff. I have this now:

    function bbport_location() {
    if (substr($_SERVER["REQUEST_URI"],strrpos($_SERVER["REQUEST_URI"],"/")+1) == "view.php?view=port"):
    return "port-page";
    endif;
    }

    add_filter( 'get_bb_location', 'bbport_location' );

    The problem is that it doesn’t return port-page. If I echo get_bb_location tis will still show: view-page instead of port-page. So why isn”t it updated? Why isn’t it returned?

    #64299

    In reply to: Dutch translation

    _ck_
    Participant

    I see that you completed this, did you want to share the nl-NL.mo file?

    There are about two dozen other Dutch bbPress sites but it looks like they hard-coded their template translations which is a shame.

    #72659

    In reply to: Tag filtering plugin

    _ck_
    Participant

    I just realized I should also point out that my Related Topics plugin will also give the greatest weight to other topics with the most tags to the one you are on. It essentially does a multi-tag search internally.

    I don’t know what would be a good user interface to pick multiple tags but the query and resulting view are fairly straightforward to code.

    bedbugger
    Participant

    Update:

    My host was able to help.

    “Due to the amount of posts contained within the treatment forum, bbpress was reaching the maximum execution limit set by PHP which in effect caused the software to stop processing the feed.”

    They put in a custom php.ini to allow a longer execution time and now the RSS of the topics works fine.

    I may still need a consultant some time, so the question still stands, but this crisis is averted. :-)

    #5088
    mspecht
    Participant

    I have just completed a brand new install of R2014, although the issue happens with A1.6 as well. The site works fine with with both database and cookie WordPress integration (WPMU 2.7).

    When I add require_once( dirname(__FILE__) .’/../wp-blog-header.php’ ); to my bb-config.php I get the following error:

    PHP Fatal error: Call to a member function hide_errors() on a non-object in /home/site/public/wp-includes/functions.php on line 345, referer: http://mydomain.com/forums/

    Line 345 is $wpdb->hide_errors(); within function get_option

    Obviously my BB install has not fully loaded up my WP environment. I have tried all sorts of ways to get this to work without any luck.

    I even tried to build my bbPress templates by reproducing the WP functions I need but found that meant I need to re-write a huge portion WP which seems silly and a huge waste of time. Although the 8 hours I have spent trying to solve this might have built a fair bit :-).

    Any tips on how to sort this out?

    #72707

    In reply to: Spam Registrations

    Olaf Lederer
    Participant

    Hi,

    I have the same problem 50 registrations a day :(

    I removed the URL field from the registration form (and other pages) and hope that this will help.

    #72694
    bruinfelix
    Member

    I’ve translated bbPress in to the Dutch language, no problem at all. I just found a old translation file, and edited a bit. So, evry thing just works just fine ;)

    bedbugger
    Participant

    Hi _ck_,

    Ugh– I am looking but I really have no clue about this or what I am looking for.

    I did check the table and analyze the table but it came up all clear.

    I don’t suppose I can hire you for a small job? :-)

    #5080
    saintseanzy
    Member

    So first off I’d like to thank those involved for building such a great tool. I’ve enjoyed tweaking and expanding on whats currently offered… Now I’m a little hesitant to post this yet but I’m going to anyway :)

    http://saintseanzys.com/boards/

    Ofcourse I need to rub out few minor bugs but other then that i think she looks pretty damn skippy.. I’d really appreciate a sign up or two.. I’d gladly wander over to yours and give a post or two

    #70089
    mspecht
    Participant

    I’m having the same issue it seems line 212 of functions.bb-topics.php is where things go south. I am running bbPress is 1.0-Alpha-6 and WPMU 2.7.

    Effectively bbPress tries to insert an empty string into the topic_id field, which is an INT with auto increment and of course MY SQL returns in error “Incorrect integer value: ” for column ‘topic_id’ at row 1″.

    Digging into the code further the defaults array is setting topic_id = false on line 151, remove topic_id from the defaults and things work fine. Looking at trac it seems this was fixed in r2014. I’m going to install and see what happens.

    #62256
    chrishajer
    Participant

    At least the system can find the file now.

    The Cannot redeclare errors are usually because a function of the same name has already been declared, thus it can’t be redeclared.

    What versions did you integrate?

    #62255
    swaymedia
    Member

    hey chris, thanks i just did that.. but i still get an error, it some what smaller though but its this:-

    Fatal error: Cannot redeclare _http_build_query() (previously declared in /home/eraxeco1/public_html/massbase.com/community/bb-includes/backpress/functions.compat.php:21) in /home/eraxeco1/public_html/massbase.com/wp-includes/compat.php on line 45

    now i haven’t touched any other file, i havent touched compat.php either.

    #62254
    chrishajer
    Participant

    Try using the file path to the file rather than a relative path. The system is telling you it can’t find the file in that location. Try this:

    require_once('/home/eraxeco1/public_html/massbase.com/community/bb-load.php');

    #72653
    copperblade
    Participant

    Wow, thanks for that. Any specific action or filter you’d recommend I attach this to so I can insert it without modifying template code? Like the sidebar? I’m new to bbPress and I don’t know what all the plugin API’s are. If I attach it to the sidebar, do you want the code?

    #62253
    swaymedia
    Member

    Im using the latest alpha version, My wordpress is on root, and my forum is on a folder called /community.

    I put this on wp-config.php :-

    require_once('/community/bb-load.php');

    im getting this error:-

    Warning: require_once(/community/bb-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/eraxeco1/public_html/massbase.com/wp-config.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required '/community/bb-load.php' (include_path='.:/usr/lib/php') in /home/eraxeco1/public_html/massbase.com/wp-config.php on line 2

    #5074
    spinus
    Member

    First: Thanks to all developers and coders for coding and working on bbpress and specially to ck for great plugins.

    So, I have installed bbpress 0.9.0.2 installed (http://spinus.info/forum) and Topic Icons plugin 0.0.5

    Trouble: sticky topics are displayed only on front page in “latest discussions” field. If I try to open a sub-forum, where sticky topic is situated in separate window, a topic is not visible.

    So, there is a sticky topic: http://spinus.info/forum/topic.php?id=102&replies=1

    You can see it in a latest discussions field as sticky.

    But if you would open its parent forum http://spinus.info/forum/forum.php?id=30

    Sticky topic is not shown :( what’s a matter? Please, HELP!!!

    #72590
    _ck_
    Participant

    Just install my bbpress theme switcher plugin, disable the dropdown.

    Then replace function bb_ts_get_theme() {

    with something like this (untested, will need some editing)

    function bb_ts_get_theme() {
    $theme="kakumei"; // default fallback
    $domain=strtolower($_SERVER['HTTP_HOST']);
    if (strpos($domain,"first-domain.com")!==false) {$theme="1st-theme";}
    if (strpos($domain,"second-domain.com")!==false) {$theme="2nd-theme";}
    return $theme;
    }

    #72671
    _ck_
    Participant

    bbxf came out of last year’s summer of code so hopefully this year will be as good.

    #72651
    _ck_
    Participant

    You can set a cookie and make it semi-permanent.

    Because there is also a filter in that function, you do not need to hack the core.

    $locale = apply_filters('locale', $locale);

    You would make a mini-plugin something like this

    add_filter('locale', 'language_switcher');
    function language_switcher($locale) {
    if (!empty($_REQUEST['lang'])) {$locale=substr(strip_tags(stripslashes($_REQUEST['lang'])),0,30);}
    return $locale;
    }

    You still have to write the code to make some kind of pulldown/menu to select the language and set the cookie.

    There is a language switcher for wordpress that could be ported to bbPress, I think there was some talk about it around here and someone else made their own too.

    Oh here it is:

    https://bbpress.org/plugins/topic/user-languages

    #72673
    _ck_
    Participant

    There is a mini-plugin for i18n usersnames.

    https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran#post-14205

    But there are fundamental flaws in how bbPress uses usernames and unicode characters might interfere with proper operation.

    I also don’t see any real attempt to sanitize in there, so there might be security risks.

    #72672
    johnhiler
    Member

    According to Sam, bbPress supports unicode display names, not unicode usernames:

    https://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress

    Not sure about future versions, but it sounds like version 1 isn’t gonna support unicode usernames…

    #5065
    chrishajer
    Participant
    #72657

    In reply to: Tag filtering plugin

    _ck_
    Participant

    There is no such plugin or ability yet (or any expression of need for such an ability).

    If you know how to code in PHP you might look at the experimental tag filter I made inside of the Hidden-Forums plugin to see how such a query would be done. You could then use the query to create a custom view for the topic results.

    #71933

    In reply to: Instant Password

    Hey _ck_,

    Well I threw both files into diffmerge. The ‘do_action and apply_filter’ code is there. My file was missing ‘php echo $key’ – but I really don’t know if that matters or not.

    I think I might give it a while and see how it goes without the plugin. If I find I can’t live without it I may be back!

    BTW, I spent some time on your site last night. The top 100 list was very interesting and inspiring!

    Thanks for the hard work!

    #72647
    bedbugger
    Participant

    Whew! Clearing cookies did it. Thanks :-) I just upgraded to WP 2.71 also, should have mentioned that.

Viewing 25 results - 25,476 through 25,500 (of 32,570 total)
Skip to toolbar