BuddyBoss Home – Web › Support Forums › General › BuddyPress (general issues) › Action upon user login
- This topic has 3 replies, 2 contibutors, and was last updated 9 years, 4 months ago by Anonymous.
Question
June 30, 2015 at 11:00 pm #41967@
AnonymousI want to call the following action/command/instruction from javascript after a user logs in:
inline_manual_player.activateTopic(topic_id).
How would I do that? Just for some context I am using inline manual a SaaS for creating tutorials/walkthroughs for websites. I find it would be useful for my members to do a walkthough as soon as logging in to help become familiar with the site.
Answers
July 1, 2015 at 2:50 pm #41995@
AnonymousI have made an additional tutorial for mobile. So what I’d like to accomplish is making a call with the line of code above to my desktop tutorial and with the same line above but a different id I would call my mobile tutorial. From my experience with java, c, and c++ I would think a if/else statement would be useful for determining whether the user logged and whether it was via desktop or mobile, but I’m often surprised with solutions here because I’m not very familiar with web development languages yet. So how could I structure so that these tutorials are called as soon as a user is logged in taking into account whether they’re on desktop or mobile.
July 2, 2015 at 7:42 pm #42053@alyssa-buddyboss
AlyssaParticipant@ryanmaler I suggest you contact WordPress or BuddyPress for support on this one. This isn’t theme related and sounds like it could be complex.
July 2, 2015 at 9:40 pm #42060@
AnonymousYour right. This is more general buddypress related. Hopefully it doesn’t get to complex. I’ll see what I can find out.
- The question ‘Action upon user login’ is closed to new replies.