Michael

Forum Replies Created

Viewing 20 posts - 361 through 380 (of 649 total)
  • Author
    Posts
  • Michael
    Member
    Post count: 649

    Hi Mike,

    Honestly, this sounds like something that would be outside the actual scope of BadgeOS’ addon suite, however, I will outline some stuff that I’d end up doing if this was my task to implement.

    I’d likely implement a single submit button that when clicked, triggers some ajax. I’d provide a hidden form field that is populated by either the current user’s ID or email, and submit that as part of the ajax request. Then, on the PHP side of this, just grab those values as necessary to get the user’s email and construct all of the message parts there before passing everything into a wp_mail() function call. Lastly, return a response to the browser to indicate any sort of success/failure message necessary. If not done via ajax, then I’d just check the $_POST global for my requested values on an init hook callback, and do the same as above at that point.

    Hope that spurs on some ideas.

    Michael
    Member
    Post count: 649
    in reply to: Installation #6945

    Any chance you’d be willing to provide a admin-level login for this? It’ll be quicker for me to check in personally than try to walk through things.

    Michael
    Member
    Post count: 649
    in reply to: Installation #6933

    Kela, best method to get rid of this asap would be to simply create a leaderboard quick, even if it’s not used right away. Issue has been filed internally for the development team to be aware of.

    Michael
    Member
    Post count: 649

    Received, but hrm.

    It’s providing nothing useful for me to get a lead on either, which isn’t your fault by any means.

    Just forwarded the emailed screenshot to some people, so hopefully we can get something figured out. I appreciate the patience thus far. Stay tuned, we’ll see if we can work this out.

    Michael
    Member
    Post count: 649

    Probably some sort of PHP error occurring that isn’t killing the entire page completely. By the looks of the view-source output, it’s occurring right after the “Latest News On Mens Health” headline in one of the asides.

    Adding this to your wp-config file temporarily will hopefully reveal more for what’s going on http://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG

    Michael
    Member
    Post count: 649

    I think the trick you’re going to want here is to generate the activity code on the site that has the add-on installed at, and then just provide that generated code as part of the congrats message on the other site after they’ve completed the quiz. They can then take that code back to the first site and enter it there to earn the achievement.

    Michael
    Member
    Post count: 649

    Is the page stopping halfway through the loading? or just a white screen? Any errors being displayed?

    Michael
    Member
    Post count: 649

    Can you email it to michael @ webdevstudios . com ?

    Michael
    Member
    Post count: 649

    Hrm. I was able to make a purchase just now. Perhaps it was just a temporary thing? If you try again and it still errors on you, I’d appreciate it if you could copy/paste the error shown so that I can better trace down the source.

    Michael
    Member
    Post count: 649

    Hi Martin, which spot exactly is it doing the whitescreen at? After you’ve entered your payment details and click “Purchase” ?

    Michael
    Member
    Post count: 649

    Interesting.

    It’s true that just because the ID being used in the log is related to a BadgeOS post, doesn’t necessarily mean that it’s BadgeOS code causing it, though we can’t rule it out yet either.

    Some more troubleshooting thoughts would be to switch to one of the WordPress-shipped themes, as themes could do some funky stuff as well with ajax.

    Regardless, yeah keep me updated, as I’m a bit curious what’s going on overall.

    Michael
    Member
    Post count: 649

    Biggest things I can see that could contribute to any sort of conflict would be these parts, which disappear once BuddyPress gets disabled:

    <link rel='stylesheet' id='bp-mentions-css-css' href='http://sferarazuma.ru/wp-content/plugins/buddypress/bp-activity/css/mentions.min.css?ver=2.1.1' type='text/css' media='all' />
    <script type='text/javascript' src='http://sferarazuma.ru/wp-content/plugins/buddypress/bp-activity/js/mentions.min.js?ver=2.1.1'></script>
    <script type='text/javascript' src='http://sferarazuma.ru/wp-content/plugins/buddypress/bp-core/js/jquery.caret.min.js?ver=2.1.1'></script>
    <script type='text/javascript' src='http://sferarazuma.ru/wp-content/plugins/buddypress/bp-core/js/jquery.atwho.min.js?ver=2.1.1'></script>
    

    Other than that, the biggest difference between the two was the comment form as a whole no longer being present.

    It is possible there was some sort of javascript error/conflict going on with the site that prevented it. However, it does sound like you’ve moved beyond it as well, since BuddyPress isn’t actually needed any more.

    I’ll have to tinker and try and see if there’s any conflict as well on a pretty bare install. Will be filing a potential bug for it. Thanks for the information so far.

    Michael
    Member
    Post count: 649

    Community Addon enabled or no?

    Michael
    Member
    Post count: 649

    In which ways is it failing? doing absolutely nothing? Just the popup modal not working? something else? Trying to narrow down where I should be looking to debug.

    Michael
    Member
    Post count: 649
    in reply to: Crash #6844

    Adding the following to the top of the function would have been fine as well:

    if ( !is_admin() ) {
    	return $allowedposttags;
    }
    

    I don’t see anything insecure about your method, and there’s various ways to handle the situation. Just as long as you get the user exited out before the call to the potentially undefined function, which will be undefined for any frontend areas.

    Also looks like there’s need for a version update as well, with that said. 🙂

    Michael
    Member
    Post count: 649

    Hi Josh,

    Sorry to hear you’re experiencing this. I am sitting here trying to trace my way through code to see what could be causing these issues.

    I don’t believe it’s the fault of the Congrats plugin because while it has a spot of using ajax, it doesn’t do any logging of achievements.

    The Learndash plugin has some logging, but it doesn’t appear to have any direct ajax usage.

    This leaves BadgeOS core. All of our ajax-powered based functions are located in includes/ajax-functions.php.

    However, a lot of those are related to fetching data to be displayed elsewhere, and not necessarily for triggering awarding the achievements, which would also trigger a log. We use a post type for our logging, so there’s no files to delete, and we don’t programmatically delete old logs.

    What type of achievements/achievement steps do you have set up? There’s chance that that could help determine what’s going on. If push comes to shove, would there be any chance I could get an admin login for the WP Admin side of things, instead of just something on the frontend like the first link you provided?

    Kind of wish those log examples had a bit more information, like a stack trace of functions called. Not sure offhand if that’s something you have available in your New Relic account, but if so, that’d help out a lot.

    Michael
    Member
    Post count: 649

    Sorry for the delay with this, I talked recently with some people and this is what we determined as potential causes with this.

    1) A configuration issue with the achievements (e.g. an un-earnable achievement of the given type that should trigger the “all achievements of type ___” step)

    2) A timing issue with when the achievements was earned vs the step was checked for completion (a possible core bug)

    3) Some yet undiscovered core bug (surprisingly few sites use the “all achievements of type” step trigger, so we’ve received very little feedback about usaged)

    Michael
    Member
    Post count: 649
    in reply to: Narrow Leaderboard #6653

    Welcome

    Michael
    Member
    Post count: 649
    This reply has been marked as private.
    Michael
    Member
    Post count: 649
    in reply to: Narrow Leaderboard #6648

    Ahh.

    Just adding the following CSS has resulted in this: http://cl.ly/image/0m0f183W0k1i

    .badgeos-leaderboard {
        width: 100%;
    }
    

    As I believe is stated in those other threads, we limit our CSS as much as possible so that these things can inherit from the theme that they’re getting used with. However, it appears that your theme may not have much for generic table styling at the moment.

Viewing 20 posts - 361 through 380 (of 649 total)