Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,276 through 20,300 (of 32,481 total)
  • Author
    Search Results
  • #92283

    In reply to: Where are cookies set?

    Ben L.
    Member
    #92143

    In reply to: Topic tooltips

    Ben L.
    Member
    function topic_tooltip() {
    $topic_id = get_topic_id();
    $post = bb_get_first_post( $topic_id );
    $post_content = strip_tags( get_post_text( $post ) );
    // Do something to $post_content to make it short here
    echo ' title="', esc_attr( $post_content ), '"';
    }

    #92227
    pastormick
    Member

    thanks Ben L. that answers my question. May your code always be poetic :)

    #92052

    Hi! If I logout and login again, nothing changes :/

    #34961
    pedagog
    Member

    Hello all

    Could somebody tell me where the cookies are set in bbpress ie, which files and which lines of code if possible.

    Thanks

    What version of WordPress are you using?

    What version of bbPress are you using?

    please :)

    #92182

    In reply to: Spam

    Hi Korti,

    The issue with captcha’s comes down to the fact that you’re asking users to prove they’re not spammers by a method only avalible to be answered by a percentage of your legitamate posters. It’s not their fault the software you chose (or, we’ve all chosen) can’t handle the spam.

    The realism is, if you’re running 100 sites, you should have a moderation policy in place. With people/human moderators. No software system, ever in the history of the world, has stopped 100% of spam. Infact, none have even come close to catching 100% of spam.

    It’s all about percentages, and putting systems in place to get the spam coming through down to a managable number. I agree that typing any 4 numbers into a box doesn’t take long or put people off, but that’s a massive over simplification.

    Captcha’s don’t:

    1) Make any difference to human spam

    2) Work if the user is on an older browser

    3) Work if the user has JavaScript turned off

    4) Work is the user has Images turned off

    5) Work on mobile devices (by and large)

    6) Meet any accessability standards

    7) look or work the same for people with sight issues. (and the audio captchas simply don’t work).

    8) Work in RTL languages / displays

    9) Work in non-latin based languages as default (arabic / manderin / cantonese)

    10) Work without a mouse (if using a reCaptcha).

    Percentage wise, that’s a HUGE HUGE HUGE percentage of the world right there.

    As a Real World example: I’m currently onsite at a client’s campus running analystics and UX/IA for their new University enrolment system. Online enrolment is down just over 20% from this time last year (not a big worry), but failed registrations is up by over 400%. Number one reason: people failing the captcha.

    Captcha instantly fixed it and I still get just as many emails from customers asking questions if not more

    Maybe you’re getting more emails because people who are serious can’t use your form to post.

    What about those that are serious, but after multiple attempts at using your captcha simply gave up.

    I do not think an extra 10th of a second for a captcha code would make people go anywhere else

    Its cool that you think that, but there is so much data out there that says otherwise.

    We have almost 20 years of HCI data availible, and we know for a certainty that the percentage of users who complete registration/sign-in/posting drops at an alarming rate the longer the process goes on.

    Have you ever noticed how captcha’s were everywhere in 2007, but are virtually no-where now?

    I am in no way a “bad” moderator a busy one yes.

    I don’t doubt that mate. Approx 100 sites? I couldn’t even begin to imagine.

    Take Care.

    #92180

    In reply to: Spam

    pagal
    Participant

    @korti, Correct, I agree with you man…


    @kevinjohngallagher
    , Do you have any solution? Really want to hear ;-)

    pkr3
    Member

    Chris,

    PERFECT! Thank you.

    That said, I’m rounding up error log(s) now.

    To think the code WAS right, but the BLANK page was sending me down a rabbit hole even after mentioning it to web host company several times. Arrrrgh!

    #92178

    In reply to: Spam

    korti
    Member

    I agree/disagree with you on that, however

    what other way is there? I have 100 active sites that get a lot of emails and without captcha there is no way I could keep up. Some of them got 500 spams a day. Captcha instantly fixed it and I still get just as many emails from customers asking questions if not more. To me it separates those that are truly serious and those that are not. If typing 4 extra letters makes you decide not to post then you really are not serious are you?

    I did my own test and there was no difference. I simply the signup form to make up for it.

    If there is another way I would surely do it. All mine are just 4 digit, so some get past it, but it stops 99%.

    I like the one that is numbers eg: 2+7 = and then you just put in 9.

    not sure if it is worth a hoot. Assuming not as I do not see them very often.

    I do appreciate the feed back and the consideration. I definitely want my users to have a pleasant experience.

    I have a major site that I gets mega traffic on and mega questions so I was hoping to integrate this, but I would be worried I might delete accounts that I mistake for spam that are not. The sign up of any new forum is a task, so I do not think an extra 10th of a second for a captcha code would make people go anywhere else.

    It is the huge captcha codes that are nerve wrecking. Especially when you cannot get them to work. Even Google down sized theirs to 4 digits on adwords.

    I am in no way a “bad” moderator a busy one yes.

    I really appreciate your help. I know everyone is busy, and I appreciate the responses.

    #92176

    In reply to: Spam

    korti
    Member

    Wouldn’t a simple solution be to add a captcha key when they sign up as a user? I am by no means a programmer, and really just impressed myself that I could install bbpress with my wordpress, but it seems captcha codes work pretty good.

    Maybe someone can make a plug in for it?

    #92163

    Marius,

    Though I’ve given you code before and you’ve never came back to me when I’ve asked if it worked (or God Forbid) say Thank You:

    May I suggest:

    http://www.kevinjohngallagher.com/downloads/bbpress/plugins/kevinjohngallagher_recount_reminder.zip

    #92210
    zaerl
    Participant

    Template file rss2.php line 27 (Kakumei theme):

    <title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>

    Change it in whatever you want.

    chrishajer
    Participant

    This:

    require_once('/home/content/08/123456/html/website/wp-load.php');

    and this:

    require_once(dirname(__FILE__) . '/../wp-load.php');

    Are ultimately doing the same thing. Method 2 here is going “up” one directory. Method one here just spells out the whole path. Both are including the same file and both are giving the white screen, which means there is a 500 Internal Server Error being logged somewhere. We need to see what the error is.

    The first problem was the path to the file was incorrect (with some methods.) The problem is now that you are actually including the file, it’s erroring out. We need to see that error.

    #91536
    korti
    Member

    I had the same problem and noticed the entire admin file was missing. I just added the file back and it worked like normal.

    What I am having a major issue with is spam. mega sign ups for casino and porn. My akismet is turned on so I do not understand it. I also have a valid key code.

    pkr3
    Member

    Chris,

    Thanks for staying on top of this.

    The answer is “No” to your first question. I can get a BLANK forum page at http://website.com/forum/ using 2 codes…

    The first way you already know:

    require_once(‘/home/content/08/123456/html/website/wp-load.php’);

    The second way was mentioned in my 3rd post (Item #1) above:

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    # 1. The interesting thing is, from what I can tell, the second way looks EXACTLY like the way the code is “supposed” to look as suggested by most deep integration instructions.

    # 2. I will look into possible 500 Internal Server error log and I’ll gather the info (screen shots) you requested and post.

    # 3. In the meantime,

    “wp-config.php” location (“html” = server directory): html/website/

    “bb-config.php” location (“html” = server directory): html/website/forum/

    And “website forum” URL address location: http://website.com/forum/

    ____________

    Again, appreciate your assistance whether we get this thing going, or not. We will!

    ps – No, the website is not confidential, just not ready for viewing and don’t want to broadcast it; has a lot of “placeholder” stuff that I haven’t read.

    pkr3
    Member

    Chris,

    OK. I will ask the host provider to look into the SSH and confirm, again, the home path.

    Here are the latest attempts in bb-config.php. See anything unusual?

    # 1. No errors, but forum page is blank (after removing the code, bbPress forum becomes visible again, of course).

    define( ‘BB_LANG’, ” );

    require_once(‘/home/content/08/123456/html/website/wp-load.php’);

    ?>

    # 2. Here’s entered code with removed quotes. Causes error on forum page (see below).

    define( ‘BB_LANG’, ” );

    require_once(/home/content/08/123456/html/website/wp-load.php);

    ?>

    Parse error: syntax error, unexpected ‘/’ in /home/content/08/123456/html/website/bb-config.php on line 66

    Thank you. Hopefully we’re narrowing it down.

    chrishajer
    Participant

    It’s really a simple error of trying to include a file that is not located where you are telling bbPress it is located. Have you tried including it as explained here?

    You can just hard code the full path to the file there and not worry about it unless you change hosts or directories. To prove that it works, just include it like that and I think you will find that it works once you know and use the actual path to the file.

    If you’re worried about changing directories or hosts at some point, you can always use a relative path (with the ../ in front) so long as you use the right path. So far, you have not.

    Do you have shell access on the host with something like SSH? If so, finding the path to the file will be easy. If not, you can still find it based on the error messages you’re getting and the structure of your site.

    pkr3
    Member

    Chris (and Ashfame),

    Thanks for your thorough and prompt attempt to assist me/us.

    Just so you know, there is no “0php’” line of code I entered.

    Here is line 65 code EXACTLY as entered in bb-config.php, on different attempts. Only difference between the two is “/..” Nothing has been altered…I copied these lines directly from the bb-config.php file adding/changing/hiding nothing. As-In, they are direct cut and pastes.

    # 1. This line (when entered) reveals BLANK forum page: require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    # 2. This line (when entered) reveals ERROR forum page: require_once(dirname(__FILE__) . ‘/wp-load.php’);

    # 3. Here are the errors from attempt # 2 above:

    Warning: require_once(/home/content/08/123456/html/website/forum/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/08/123456/html/website/forum/bb-config.php on line 65

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/123456/html/website/forum/wp-load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/08/123456/html/website/forum/bb-config.php on line 65

    # 4. This is how the command line(s) appears exactly as entered inside the bb-config.php file. I copied it from the bb-config.php file without changing anything:

    */

    define( ‘BB_LANG’, ” );

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    ?>

    # 5. Random Thoughts:

    a. Important: I don’t/didn’t want to combine bbPress and WordPress locations/databases so I have bbPress and WordPress on separate databases (same server). That said, I notice in the WordPress Integration “settings” (within bbPress) The “User Database table prefix” is set to “wp_”. The bbPress Help line/instructions below the field entry reads, “If your bbPress and WordPress sites share the same database, then this is the same value as $table_prefix in your WordPress wp-config.php file. It is usually wp_.”

    I was instructed to enter “wp_” but am beginning to wonder if that is incorrect since the bbPress and WordPress are on separate databases. If incorrect, there are no suggestions of what line/text to enter in that field (“bb_”?). Just sharing.

    b. Silly thought?: WordPress 3.0.1 came out 24 hours before my attempt to Deep Integrate, and was installed, wondering if something has changed in the WordPress 3.0.1 .php files that makes this a “new” issue; therefore requiring an updated deep integration code line. Not blaming WordPress…just sharing the experience.

    Thanks a ton!

    #92150
    zaerl
    Participant

    Yes. It’s GPL as the rest of bbPress code.

    #34931

    Topic: Topic tooltips

    in forum Plugins
    ianhaycox2
    Member

    Hi,

    A themes front page usually displays the latest discussions, but with many forums there is no context to each topic listed so the topic title is often meaningless. E.g. a topic title of ‘Help’ does not invite the viewer to click the topic to see the posts.

    I’d like to add a title=”first part of post…’ attribute to the <tr> tag of each topic in the list.

    I tried adding a filter to topic_class(), to fudge class=”xx” to class=”xx” title=”yy” but alt_class() has no filters. My other approach was to add a new function to the theme, e.g. in kakumei

    <tr<?php topic_class(); topic_tooltip(); ?>>

    and in functions.php

    function topic_tooltip() {
    $topic_id = get_topic_id();
    echo ' title="'.$topic_id.'"';
    }

    but I’m struggling to work out how to get the current post available to display an extract of the first post of the topic.

    Any help really appreciated.

    Ian.

    #91841

    you can even show the login form anywhere by calling its function – login_form();

    and here is something that will help you – http://blog.ashfame.com/2009/09/show-content-logged-in-status-users-bbpress/

    chrishajer
    Participant

    php’

    That looks like php and then the characters after the “PHP” look like what happens when you paste fancy quotes from a copy of a website. Maybe the opening quotes are similar and causing similar trouble.

    Your include statement should be something like:

    require_once('../wp-load.php');

    If your bbPress installation is in a directory one level below WordPress (i.e. the ../ goes UP one level to find wp-load.php). You can also use a full path there instead of the relative path. In that case, it would look more like:

    require_once('/home/content/08/DBnumber/html/websitename/wp-load.php');

    chrishajer
    Participant

    Is this really the actual file name you are trying to include:

    0php’

    That should say “wp-load.php” – why the strange characters there?

    Warning: require_once(0php’) [function.require-once]: failed to open stream: No such file or directory in /home/content/08/DBnumber/html/websitename/forum/bb-config.php on line 65

    ^^ This is the source of the problems, right here. bbPress cannot find whatever file you are trying to include, in whatever location you said it was in.

    Can you post line 65 of bb-config.php? Is that where you include wp-load.php?

    pkr3
    Member

    Good News: WordPress operating successfully. bbPress forum operating successfully. “Integrated” (NOT “deep” integrated) bbPress and WordPress successfully.

    Bad News: 12 hours effort to “Deep Integrate” so WordPress theme can be used in bbPress, etc.

    The “require_once(dirname(__FILE__) . ‘/../wp-load.php’)” command line, when executed exactly as instructed inside the “bb-config.php” file (as shown by theme company, WordPress codex, bbPress Forum and Docs) brings up errors when the forum page tries to opens. Removed the Deep Integration code and the bbPress forum page pops back up.

    Facts:

    1. Databases are separate; but regular integration works fine.

    2. All kinds of advice to no avail (i.e. putting code at top of .php file, removing forward slash before root, etc. etc.

    3. Company programmers where I host did test on different server using basic WordPress and bbPress and attained exact same results. Not a directory issue, not a database issue, not a server issue. They also tried other methods/versions of the “require_once” code but kept getting same errors.

    4. WordPress and bbPress are latest versions. WordPress is the brand new 3.0.1…requires different/new “deep integration” coding?

    5. Basic integration works so the database/directory addresses are correct.

    I have searched the forum and internet for solutions, prior to adding this post/topic, to no avail. Blindness and insanity creeping in…probably not due to this issue.

    Thank you. Thank you. Thank you!

    __________

    The errors below are what we ALL are getting on our forum page(s) when attempting to Deep Integrate. (In the errors below “DBnumber” = “undisclosed database number” – AND – “websitename” = “undisclosed website name.”)

    ___________

    Warning: Division by zero in /home/content/08/DBnumber/html/websitename/forum/bb-config.php on line 65

    Warning: Division by zero in /home/content/08/DBnumber/html/websitename/forum/bb-config.php on line 65

    Warning: require_once(0php’) [function.require-once]: failed to open stream: No such file or directory in /home/content/08/DBnumber/html/websitename/forum/bb-config.php on line 65

    Fatal error: require_once() [function.require]: Failed opening required ‘0php’’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/08/DBnumber/html/websitename/forum/bb-config.php on line 65

Viewing 25 results - 20,276 through 20,300 (of 32,481 total)
Skip to toolbar