PHP scripts and codes from $6

Displaying Friend Accepted Notification In Wapka site Activity stream or what’s on your mind page


We all know at facebook, when somebody accept a friend request, it display a notification on the activity stream that e.g “collins now friend with jeff”.
Am going to be tutoring us, how to implement this feature on wapka community site.

Follow the step below to add friend accepted notification to display in activity stream

  • Login to your site admin mode.
  • Navigate to your site top autocontent page i.e page with site-id “-1″
  • Add the below code to the page via click edit site -> XHTML/WML.
    :userstats:d=fa,ft=new,l=1::<form method="post" action="blog_A.xhtml">
    <a href="%urlprofile%" >%tname% wants to be your friend...
    <input type="hidden" name="blog_title" value="my Shared msgs" />
    <input type="hidden" name="fnc" value="new"/>
    <input type="hidden" name="blog_body" value="is now friend with [user]%tname%[/user]"/>:admin-hash-input:
    <input type="submit" name="submit" value="Accept"/> %ref%
    </form>:: <br />:/userstats:
    

    Note: change A in the above code to the site ID of the page you going to create to add the code in below step.

  • Create a page (remember, this page you about to create is the page we assume to have site id A as explain above.) and add the low code.
    If you are not automatically redirected, click <a href="/friends_0.xhtml?set_stav=0&ret_s=0&usr=:userstats: d=fa,ft=new,l=1::%tname%:: :/userstats::admin-hash-amp:">here</a>.
    <meta http-equiv="refresh" content="1;URL=/friends_0.xhtml?set_stav=0&ret_s=0&usr=:userstats: d=fa,ft=new,l=1::%tname%:: :/userstats::admin-hash-amp:"/>
    
  • NOTE: Change 0 in the above code to the site id u want it to redirect to after accepting friend request. Preferably, change it to the site id of the Activity stream page.

  • Tutorial Ended.

P.S If you are viewing this site on mobile device, ignore the [ html] & [ /html] when copying the tutorial codes.

If you encounter a problem implementing this feature to your wapka site, or you have a contribution to make, use the comment form below.
We will love to hear from you.

Don’t Want To Miss Our Update, Subscribe Now
About collizo4sky

Agbonghama Collins is a webdeveloper and an internet geek. I love writing and sharing the little idea & information i know. Hope you enjoyed my Article.

You can get in touch with him via these modes: Follow him on Twitter, add him on Facebook or on Google+

  • Yungdude

    Thankx for this share , its very useful…. Please how did you add that long dark line just by the side of the code you just posted????

    • http://wapden.net collizo4sky

      it just a simple css class.

      .quotez {
      border-left: 4px solid #AAAAAA;
      margin-bottom: 2px;
      margin-left: 4px;
      margin-top: 2px;
      padding: 2px 1px 2px 2px;
      }

      Then wrap your text or word with <div class=”quote”>

  • Yungdude

    @collizo , thanks , where do i save the css code??? Or how do i use it?

    • http://wapden.net collizo4sky

      Add it to your site CSS stylesheet