_ck_ (@_ck_)

Forum Replies Created

Viewing 25 replies - 751 through 775 (of 2,186 total)
  • In reply to: Tag filtering plugin

    _ck_
    Participant

    @_ck_

    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.


    _ck_
    Participant

    @_ck_

    Hmm, that’s actually some helpful feedback adeboy.

    I might not be clearing the current session properly.


    _ck_
    Participant

    @_ck_

    Silly question but did you rebuild the .mo file?

    The po/mo on the automattic svn is very outdated and is from 0.8

    Try this version which has many more stings, even thought it’s for 1.0 it might work well on 0.9

    http://ayudawordpress.com/bbpress-espanol-alpha-104/


    _ck_
    Participant

    @_ck_

    go into phpmyadmin and go into the bb_topics table

    then search by that forum id #

    look for anything that might have weird data corruption


    _ck_
    Participant

    @_ck_

    Human Test requires sessions to be working correctly on your server.

    It’s possible sessions have been broken somehow.

    If they upgraded PHP incorrectly that might happen among other reasons.


    _ck_
    Participant

    @_ck_

    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;
    }


    _ck_
    Participant

    @_ck_

    I’ve now made a full plugin that uses cookies so any user can switch languages.

    https://bbpress.org/plugins/topic/bbpress-language-switcher/


    _ck_
    Participant

    @_ck_

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


    _ck_
    Participant

    @_ck_

    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


    _ck_
    Participant

    @_ck_

    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.

    In reply to: Tag filtering plugin

    _ck_
    Participant

    @_ck_

    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.


    _ck_
    Participant

    @_ck_

    There has to be something funky in the database then that’s preventing the list of topics from loading for that forum.

    Can you see that forum in the forum list in the admin area?

    The RSS for posts works:

    http://bedbugger.com/forum/rss/forum/treatment

    but not for topics

    http://bedbugger.com/forum/rss/forum/treatment/topics

    so it has to be something corrupt in the topics table

    do you have phpmyadmin ?


    _ck_
    Participant

    @_ck_

    If the notification sends any part of the actual message, keep in mind the messages now contain html and may get rejected by spam filters. Other than that, I dunno.

    Also you’d have to send the email notification BEFORE you do the escape if you send the message or title in the message (or save the original to different strings).


    _ck_
    Participant

    @_ck_

    That’s really strange.

    Just a total guess, try doing a full recount from admin menu.

    There might be something weird in the forum table or something with the topic table for topics in that forum.

    In theory you could downgrade to 0.9.0.3

    There also might be a plugin causing problems.


    _ck_
    Participant

    @_ck_

    It’s possible because I was testing it on 1.0 that 1.0 automatically escapes the mysql values passed and that 0.9 does not. I can’t remember.

    Try adding this before the $bbdb->query

    $pmtitle=mysql_real_escape_string($pmtitle);
    $message=mysql_real_escape_string($message);

    and see if it helps or if it just add slashes to your text instead and breaks it.

    It may also be a quote problem but I thought the bbpress pre/post text filters should encode quote or any other problematic characters.

    In reply to: Instant Password

    _ck_
    Participant

    @_ck_

    Something I just realized and I should have noticed / asked sooner.

    You are using a custom template. A very common problem with plugins when you use custom templates is they have accidentally removed some critical actions / filters.

    Open up your register.php template and open up the original bb-templates/kakumei/register.php template.

    Compare the two, specifically looking for any do_action or apply_filter that you are missing.

    In your case, specifically

    <?php do_action('extra_profile_info', $user); ?>

    but I suspect you have that, or you’d see nothing from the plugin.

    In reply to: Instant Password

    _ck_
    Participant

    @_ck_

    So to be clear, it’s happening after you successfully submit it, not the message on the same page you type in the password right?

    The password error only happens for two reasons, either the primary password doesn’t match the confirmation or the password is less than 6 characters.

    The $_POST data must be making it through because you’d get a different error.

    I assume you tried various passwords and aren’t using multibyte (unicode) password or with slashes in them.


    _ck_
    Participant

    @_ck_

    I guess it would be a good alternative to akismet (or even in addition to).

    Your code can be cleaned up and condensed considerably.

    It also could benefit from some security checks on the $_POST data being injected into the url.

    Here is an untested, condensed version with some mild security checks on the $_POST

    http://pastebin.com/f7a50d82a

    (there is also an alternative to curl in there for the 50% that don’t have it on their server)

    I took out some of the extended manipulation of the returned data that you didn’t need.

    In reply to: Instant Password

    _ck_
    Participant

    @_ck_

    Tell me more about your server – OS, PHP version – and what browser you are using to test


    _ck_
    Participant

    @_ck_

    Sorry, looks like I left some customized leftovers in there.

    Simply remove line 5 entirely or comment it out like this

    <?php // my_views_header(); ?>

    In reply to: Forum name withing

    _ck_
    Participant

    @_ck_

    You would use either

    forum_link($topic->forum_id);   // self echos

    or

    $link=forum_get_link($topic->forum_id);   // returns a string

    what you probably want is:

    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>

    In reply to: Best answer

    _ck_
    Participant

    @_ck_

    There is no such plugin but it’s a good idea.

    I assume you only want mods or admin to be able to mark a reply as “best”.

    What would a “best answer” post look like? Highlighted?


    _ck_
    Participant

    @_ck_

    We really should backport the fix that is in 1.0 to 0.9 for our international friends.

    I can’t remember what the function was that had the problem but I believe it was

    function htmlspecialchars_decode

    there may be others.

    Unfortunately those functions are not pluggable but you could try replacing them from 1.0 into 0.9 and use SVN to handle upgrades which might work around it.

    Made a note on TRAC https://trac.bbpress.org/ticket/1059


    _ck_
    Participant

    @_ck_

    We really should backport the fix that is in 1.0 to 0.9 for our international friends.

    I can’t remember what the function was that had the problem but I believe it was

    function htmlspecialchars_decode

    there may be others.

    Unfortunately those functions are not pluggable but you could try replacing them from 1.0 into 0.9 and use SVN to handle upgrades which might work around it.

    Made a note on TRAC https://trac.bbpress.org/ticket/1059


    _ck_
    Participant

    @_ck_

    the number is a filter/action priority, lower numbers execute first, the default is 10

    999 means try to be the last thing to execute on the filter (so the anchor comes last)

Viewing 25 replies - 751 through 775 (of 2,186 total)