NIMBUZZ TOOLS FORUM-2016
Kєяλℓλ-ßυzZ ►☻◄ ƒøяυλ⁄(-2016

✽✽✽✽✽✽✽✽✽✽✽✽ нι gυєѕт ✽✽✽✽✽✽✽✽✽✽✽✽✽✽

♚♚♚♚ωєℓ¢σмє тσ ♚kєяαℓα♕ßυzz♚ zσηє♚♚♚♚

ρℓєαѕє яєgιѕтєя тσ gєт ƒυℓℓ α¢¢єѕѕ αη∂ ∂σωηℓσα∂ ѕтυƒƒ . σηℓү яεgιsтεяε∂ мεмвεя αℓℓσωε∂ vιεω sρεcιαℓ zσηε αη∂ ∂σωηℓσα∂ sтυғғ.

тнαηк уσυ

вαℓυ кяιsнηα !
Latest topics
Nimbuzz: Anti-freezer 100% works and VPS for saleWed Aug 16, 2017 1:23 pmprince-chillingفلود المدمر السوري ضد حظر الايبيWed Aug 16, 2017 8:27 amsyria-floodVidoe freezer room by wolf flooder professional V.4.4.0 {Updated} and Broken all server roomWed Aug 16, 2017 5:38 am.3madanti-dc and multi hanger coded by hardsoul@n.cMon Aug 14, 2017 12:09 pmUser_dieds Nimbuzz: Attention / تنتبةSat Aug 12, 2017 4:51 pmjkcorp-krishna Program: Video hotspot Shield is active for 4 years {back flooder speeder in 3 second} 2017Sun Aug 06, 2017 3:14 pm.3mad Program: Video :Change ip and back flooder {In just 4 seconds} 2017Sun Aug 06, 2017 2:30 pm.3mad Nimbuzz: ‫Wolf Flooder Professional V.4.6.0 {Dc all user room 100%}Fri Aug 04, 2017 2:25 pm.3mad Nimbuzz: Nimbuzz Connect in C# with Chatroom, Captchas Loading, Profile Changer, etc.Thu Aug 03, 2017 12:27 pmdb~ Android: Xamarin Android (C#) Sample Xmpp Nimbuzz using Socket Connection (TcpClient)Thu Aug 03, 2017 11:46 amdb~ Android: Nimbuzz Chatroom Banbot for AndroidTue Aug 01, 2017 4:44 pmdb~ Android: Android APK Theme Changer Library (.aar)Tue Aug 01, 2017 4:23 pmdb~ Android: Nimbuzz Nick Status changer appTue Aug 01, 2017 2:57 pmjameelsparioFlood s100 Anti IpSat Jul 29, 2017 2:05 pmhossam13 Nimbuzz: Cracker _2017Thu Jul 27, 2017 6:03 am.3mad Nimbuzz: Control the room from the outsideThu Jul 27, 2017 5:57 am.3mad Nimbuzz: Video pv flooder and add (Wolf Flooder Enormous V4.3.1)Thu Jul 27, 2017 5:55 am.3madblackcops serverTue Jul 18, 2017 3:02 pmblackcopsWolf Flooder Enormous V4.3.1 {captcha HD}Thu Jul 13, 2017 8:50 pm.3mad Nimbuzz: ultimate FlOod id maker v2.0Thu Jul 13, 2017 6:38 pmzawa
Top posters
330 Posts - 28%
255 Posts - 22%
127 Posts - 11%
107 Posts - 9%
69 Posts - 6%
54 Posts - 5%
53 Posts - 4%
53 Posts - 4%
51 Posts - 4%
Top posting users this week
Top posting users this month
5 Posts - 33%
4 Posts - 27%
1 Post - 7%
1 Post - 7%
1 Post - 7%
1 Post - 7%
1 Post - 7%
1 Post - 7%

Share
View previous topicGo downView next topic
avatar
KßZ ►☻◄ ƒøяυλ⁄(-αđмιиιѕтяαтσя
KßZ ►☻◄ ƒøяυλ⁄(-αđмιиιѕтяαтσя
Male
BALU KRISHNA
AGE : 29
POSTS : 330
REPUTATION : 46
KBZ TEAM POINTS : 922
JOIN DATE : 2013-12-04
BIRTHDAY : 1988-05-15
LOCATION : India , kerala
View user profilehttp://kbzteam.forums1.net

Javascript: Forum "Add as friend" option in topic

on Mon Nov 30, 2015 10:31 am


Tutorial: "Add as friend" option in topic

This tutorial will allow you to add people as friends from the topics, rather than visiting their profiles and clicking add as friend button.


--> Tutorials, tips and tricks <--
"Add as friend" option in topic



- Javascript
Placement In the topic

Code:
[panda=js]$(function() {
      if (!_userdata.session_logged_in) {
          return false;
      }
      var FFinPosts = {
          sFriend: "Add As Friend",
          sFoes: "Add To Foes",
          oTarget: $('.post'),
          iLen: 0,
          sUser_name: "",
          oFF_list: null,
          aFF_list: [],
          vTemp: null,
          oThis: null
      };
      FFinPosts.iLen = FFinPosts.oTarget.length;

      $.ajax({
          url: "/u" + _userdata.user_id + 'friends',
          cache: false,
          type: "get",
          dataType: "text",
          success: function(response, status, xhr) {
            if (xhr.status == 200) {
                FFinPosts.oFF_list = $('#profile-advanced-details ol .message-header > a[href^="/u"]', response);

                for (var i = 0; i < FFinPosts.oFF_list.length; i++) {
                  FFinPosts.aFF_list[FFinPosts.aFF_list.length] = $(FFinPosts.oFF_list[i]).text();
                }

                for (var i = 0; i < FFinPosts.iLen; i++) {
                  FFinPosts.oThis = $(FFinPosts.oTarget[i]);
                  FFinPosts.sUser_name = FFinPosts.oThis.find('.author a, .name, .user a[href^="/u"]').text();

                  if (FFinPosts.sUser_name !== _userdata.username) {
                      FFinPosts.vTemp = FFinPosts.oThis.find('.postprofile dd:last, .postdetails.poster-profile, .user-contact');

                      if (FFinPosts.aFF_list.indexOf(FFinPosts.sUser_name) == -1) {

                        FFinPosts.vTemp.append(
                            '<a class="profile-icon" href="/profile?friend=' + encodeURIComponent(FFinPosts.sUser_name) + '&mode=editprofile&page_profil=friendsfoes">' +
                            '  <img title="Add As Friend" alt="Add As Friend" src="https://cdn2.iconfinder.com/data/icons/gnomeicontheme/16x16/apps/im-msn.png" width="16" height="16">' +
                            '</a>'
                        )
                      } else {
                        FFinPosts.vTemp.append(
                            '<a class="profile-icon" href="/profile?foe=' + encodeURIComponent(FFinPosts.sUser_name) + '&mode=editprofile&page_profil=friendsfoes">' +
                            '  <img title="Add To Foes" alt="Add To Foes" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-remove-user-icon.png">' +
                            '</a>'
                        )
                      }
                  }
                }
            }
          }
      });
    });


- Preview



  • Forum Creator :  balu♥krishna

    *  How do I change my settings?
    *  How do I add a signature to my post?
    *  How do I show an image below my username?
    *  How do I change my rank?
    *  How do I post a topic in a forum?
    *  Can I post Images?

    IF YOU HAVE ANY DOUBTS LIKE THIS THEN [You must be registered and logged in to see this link.]
    OR ADD ME ON [You must be registered and logged in to see this link.]
    CHEERZ...
    [You must be registered and logged in to see this link.]


View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum