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

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

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

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

тнαηк уσυ

вαℓυ кяιsнηα !

Join the forum, it's quick and easy

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

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

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

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

тнαηк уσυ

вαℓυ кяιsнηα !
NIMBUZZ TOOLS FORUM-2016
Would you like to react to this message? Create an account in a few clicks or log in to continue.
 Javascript: Forum "Add as friend" option in topic Untitl10
Latest topics
how to make room flooder in c#Sun Aug 30, 2020 8:30 amkimo.heroloveUpdate / BombusAlzintany.apk bY: M~znSun Aug 18, 2019 9:34 pmUmeshzBot 16.0 CHAT+Sun Aug 11, 2019 9:35 amltc_mktNew : Run Python based bots like Aurora, Blacksmith, VBOt in your Android MobileWed Feb 27, 2019 7:25 pmltc_mktHOW TO GET FREE SSL CERTIFICATES FOR YOUR WEBSITESun Feb 03, 2019 10:05 pmltc_mktRun 2 official Nimbuzz apps in a androidSat Nov 24, 2018 7:17 pmadnan samiHow to add quiz database in xBotMon Oct 15, 2018 8:06 amltc_mktHOST A WEBSITE IN HOME PC USING JIOFI 3 ROUTERWed Oct 10, 2018 8:06 amltc_mktZBOT Version 6 with CHAT+Fri Oct 05, 2018 6:16 pmltc_mktnew wonder VPN 2019 for hide ur ip with cruck free Fri Oct 05, 2018 2:09 amkoko777Prime Server Bot Sun Sep 23, 2018 3:46 pmltc_mktXMPP CLIENT for Nimbuzz Pros & ConsSat Sep 22, 2018 10:20 pmltc_mktnew strong flood and DC all room user 2019 برنامج فلود جديد لضرب الرومات بسرعه خارقه وفصل جميع اعضاء الرومFri Sep 21, 2018 4:34 amkoko777ZBOT 5.0 FOR NIMBUZZ & CHAT+Sun Sep 16, 2018 7:57 amltc_mktFLOODER R-AUTO IRAQY 2018 برنامج القصف التلقائي لنيمبوزMon Sep 10, 2018 7:35 pmltc_mkthleo everyone Thu Aug 30, 2018 4:58 amfaresnet99NIZZC SERVER FOR NIMBUZZTue Aug 28, 2018 10:08 pmltc_mktUpdate / TkabberMod.apk bY: M~zn@n.cSat Aug 25, 2018 3:49 pmmohamed_alzintanyservers nimbuzz 2018 سيرفرات المحترف العراقيThu Aug 16, 2018 5:20 pmdeadtargetCHECK IDS 2018 برنامج فحص حسابات النيمبوز - المحترف العراقيTue Aug 14, 2018 12:19 amwathk00
Top posters
330 Posts - 27%
284 Posts - 23%
127 Posts - 10%
107 Posts - 9%
69 Posts - 6%
54 Posts - 4%
53 Posts - 4%
53 Posts - 4%
51 Posts - 4%
Top posting users this week
No user
Top posting users this month
No user

Go down
balu♥krishna
balu♥krishna
KßZ ►☻◄ ƒøяυλ⁄(-αđмιиιѕтяαтσя
KßZ ►☻◄ ƒøяυλ⁄(-αđмιиιѕтяαтσя
Male
BALU KRISHNA
AGE : 35
POSTS : 330
REPUTATION : 48
KBZ TEAM POINTS : 924
JOIN DATE : 2013-12-04
BIRTHDAY : 1988-05-15
LOCATION : India , kerala
https://kbzteam.forumotion.com

 Javascript: Forum "Add as friend" option in topic Empty Javascript: Forum "Add as friend" option in topic

Mon Nov 30, 2015 10:31 am

 Javascript: Forum "Add as friend" option in topic Alerte10

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
 Javascript: Forum "Add as friend" option in topic Fsg9G3U
Back to top
Permissions in this forum:
You cannot reply to topics in this forum