Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,301 through 20,325 (of 32,517 total)
  • Author
    Search Results
  • #34987
    Rose
    Member

    I’m creating a website with WordPress and bbPress that needs a section where someone can fill out an application form (from a WordPress page) and that will create a new topic in bbPress with the info they filled in.

    We decided that the easiest way would be to have the form data submitted straight into the bbPress database.

    I experimented with phpmyadmin by adding new records with the correct info in bbposts, increased the post counts in bbtopics and finally used the post time I’d set in bbposts (post_time) with topic_time to update the ‘freshness’. I used phpmyadmin’s default date/time selector to replicate the records’ formatting correctly.

    While the new post showed up perfectly and the post counts were correct, the freshness came up as being “-1 years”

    I changed the code in front-page.php to the following as outlined by _ck_ :

    <td class="num">" title="<?php echo date("r",strtotime($topic->topic_time)); ?>"><?php topic_time(); ?></td>

    so that I could see what it was coming up with as the posted date and time. The results were… ‘interesting’ –

    On mousing over the -1 years, I got the correct date and time.

    On mousing over the correct freshness times of other posts I had made the same day, I got a date and time that seems to be 12 hours behind.

    Here are the links to images outlining this:

    -1 years freshness but correct date/time image

    ‘Normal’ freshness time but with wrong date/time image

    Can someone please explain what is going wrong and if possible how to fix it or get around this problem with adding topics directly to the database. I’m starting to /facedesk so help would be much appreciated!! :)

    #34986
    chang
    Member

    Hi,

    The default bbpress post doesn’t have the Reply function… is there any plugins that have this feature?

    I tried easy mention but it didn’t work at all =(

    Thank you!

    #92354

    In reply to: Theme Problem

    chrishajer
    Participant

    So what is the name (name of the folder) of another theme you installed?

    In almost every case, the permissions on the my-templates of the actual template folder are wrong. Double check those. If not that, be sure the themes are not nested inside other folders. Should be like this:

    bb-config.php
    ----my-templates/
    customtheme-one/
    customtheme-two/

    Not:

    bb-config.php
    ----my-templates/
    customtheme-one/
    theme-folder/
    customtheme-two/
    theme-folder/

    pagal
    Participant

    Really thanks Ben L. :-)

    You are a genius person, I know you can do it.

    Let me check it, stay connect.

    “I don’t think this information is required.”

    You know bro, this is partly why we find it so hard to help you.

    I posted the solution to this a few months ago, you can search for it via tags or my profile; but the answer is:

    Lots of people + private message = what email is for

    The required code is on my other post

    #92186

    In reply to: Spam


    @Kev
    , But I still did not understand the solution!

    I need alternative… do you have?

    Nope, there isn’t one.

    Any automated solution can and will eventually be beated by spam-bots, based on the fact that they are upgraded to mimic human behavior.

    Any automated solution becomes less effective over time.

    And automated solutions against human spammers make 0 difference at all.

    Did you mean there is no need of captcha

    Yes. Captcha’s stop spam-bots quite effectively, but also stop a large percentage of human users. Captcha’s do not stop human spammers.

    Captcha’s are like wearing a clock round your neck ( http://www.blogcdn.com/www.theboombox.com/media/2008/02/flavor-flav-200-020608.jpg ). It seemed like a good idea at one time ;-)

    …and allow people to send thousand of fake emails and register users

    No.

    There are other methods of cutting down on the spam. You just can’t stop the spam entirely. If you run a website, YOU will have to moderate in some form. It’s just the way of it.

    But making your users prove they are human every time they post is simply a very bad option. It’s not your users fault there’s spam on your forum/blog/website.

    #92145

    In reply to: Topic tooltips

    ianhaycox2
    Member

    Hi,

    Thanks for the response.

    I tried as suggested but I always get the post content of

    First post W00t!

    The topic_id passed is different each time, but it always returns the post content for topic id 1.

    I’ve written a few WordPress plugins, but the lack of comments and documentation in the bbpress code is making it hard to work out what populates the global topics and posts variables.

    How do I get a post given a topic ID ?

    EDIT: Just worked out I need get_post_text( $post->post_id ) !

    Thanks

    Ian.

    #92270
    huntography
    Member

    I installed these but did not have all active at once.

    Akismet

    Allow Images

    AutoRank

    bb-ga

    BBcode Lite

    bbPress Integration

    bbpress SEO tools

    bbPress signatures

    bbRatings

    Bozo Users

    Facebook Like

    Google Sitemaps

    Members Online

    Nicer Permalinks

    Profanity Filter

    Show Avatar

    Social It

    User Photo for bbPress

    The issue occurs with any theme. Could it be a database issue?

    Thanks Chris.

    R

    chrishajer
    Participant

    Looking at the theme files, the function pagelines_localize is only declared once, but with deep integration, it’s trying to be redeclared. So, wrapping the function in a conditional should work to prevent it from being declared again.

    // LOCALIZE
    if(!function_exists('pagelines_localize')) {
    function pagelines_localize(){
    // LOCALIZATION stuff
    }
    }
    ?>

    zaerl
    Participant

    Template file post-form.php/edit-form.php. Change the textarea cols/rows values.

    chrishajer
    Participant

    pagelines_localize()

    That’s coming from your theme. Try switching to the default WordPress theme and see if the error is still present.

    I can’t download a copy of the Pagelines theme, so can you post the lines from about 50 to 65 in this file:

    /wp-content/themes/iblogpro4_dev/core/globals.php

    At least from line 53 to line 61, but I suspect there may be some conditional around it and need to see the whole context. If you want, you can email me that file at chrishajer [at] gmail [dot] com as well. Looks like you will need to try and declare that function only if it isn’t already declared. This would be a modification to the WordPress theme file.

    But, try the default WordPress theme and see if integration works, or gives another type of error.

    #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.

Viewing 25 results - 20,301 through 20,325 (of 32,517 total)
Skip to toolbar