Recent Tutorials
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Poke your members

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sun 08 Feb 2015, 02:12

This is a silly little feature I wrote out of the blue one day. It'll allow you to append a new button that makes use of the visitor message wall... the ability to poke your members. Shocked


The button will show on visitor messages and just above the friend and foe options. You will not see the button on your profile or messages, because it's against the rules to poke yourself.. Wink


Fun facts ( Seriously, read them )

Fact 1 : Poking alone is not possible and causes anomalies in space and time if you try. So you can enjoy poking your members instead of space, it's necessary that you have the advanced profile enabled.
( Administration Panel > Users and groups > Profiles > General options )

Do the following and you'll be able to poke to your heart's content !

Activate advanced profile ? : YES

Tabs to display : Visitor messages


Fact 2 : Forumotion doesn't believe poking, so we must disable their poke-proof firewall.
( Administration Panel > General > Security )

Do the following and no one will be safe from the Poke !

Unauthorize unofficial forms to post messages and private messages on the forum : NO


Fact 3 : Not all members are pokeable. If they don't allow visitor messages or they're selective of their pokers, they'll be poke-proof !


Fact 4 : Poking yourself is a big no-no and goes against everything this was designed for ..! In short; you poke yourself, the very world as we know it will cease to exist.


Fact 5 : Poking incites counter-pokes, so prepare to build up a team of pokers to bombard your enemies ( and friends ) !


Installation

First we need to add some style for the button, so you can enjoy the poking even more. Go to Administration Panel > Display > Colors > CSS stylesheet and add the following codes to your sheet.
Code:
a.pokie {
  color:#474 !important;
  font-size:12px;
  text-decoration:none !important;
  text-transform:uppercase;
  background:url(http://i38.servimg.com/u/f38/18/45/41/65/c11.png) no-repeat 3px center #9C9;
  border:1px solid #7A7;
  border-radius:3px;
  display:inline-block;
  padding:4px 6px;
  padding-left:25px;
}
a.pokie:hover {
  background-color:#ADA;
  background-position:6px center;
  border-color:#8B8;
}
a.pokie:active { background-position:8px center }

Now for the main poking logic we need to go to Administration Panel > Module > JavaScript codes management and create a new script.

Title : Poke logic
Placement : In all the pages
Paste the code below :
Code:
window.location.pathname.match(/\/u\d+/) && $(function() {
  if (!_userdata.session_logged_in) return;
  var lang = {
    poke : 'Poke',
    message : 'You have been poked !'
  },
  a = document.createElement('DIV'), b = poke(window.location.pathname.match(/u(\d+)/)[1], document.title.match(/.*? - (.*)/)[1]), c = document.getElementById('profile-advanced-right') || document.getElementById('page-body');
  a.style.textAlign = 'right';
  a.appendChild(b);
  c.insertBefore(a,c.firstChild);
 
  if (window.location.pathname.match(/wall/) && $('.message-footer').length) {
    for (var i = 0, c = $('.message-footer'); i<c.length; i++) {
      var d = document.createElement('LI'), e = poke($('.message-header:eq('+i+') a').attr('href').match(/u(\d+)/)[1], $('.message-header:eq('+i+') a').text());
      d.appendChild(e);
      c[i].insertBefore(d,c[i].firstChild);
    }
  }
 
  function poke(id, unm) {
    var a = document.createElement('A');
    if (id == _userdata.user_id) return a;
    a.href = '/privmsg?mode=post_profile&u=' + id;
    a.innerHTML = lang.poke;
    a.className = 'pokie';
    a.onclick = function(e) {
      var id = this.href.match(/u=(\d+)/)[1];
      e.preventDefault();
      $.post('/privmsg?mode=post_profile',{
        subject : lang.poke,
        message : lang.message,
        username : unm,
        post : 1
      },function() { window.location.pathname = '/u' + id + 'wall' });
    };
    return a;
  };
});

If you want to poke people in another language, or change the poke payload, find this part in the logic, right at the top !
Code:
  var lang = {
    poke : 'Poke',
    message : 'You have been poked !'
  },

poke : The text of the poke button.

message : The payload delivered to the pokee's wall.


Last thing you need to do is save, and you should now be able to rain poking hell on your members !


If you have any questions, or just want to tele-poke me, feel free to leave a pok -- er, post below. Have fun poking your members ! Mr. Green


Notice
Tutorial written by Ange Tuteur.
Reproduction not permitted without consent from the author.


Last edited by Ange Tuteur on Tue 15 Mar 2016, 06:20; edited 3 times in total
Rhino.Freak

Title :
Lord of the 7 kingdoms and protector of the realm
Gender : Male
Age : 20
Posts : 274
Points : 1559
Reputation : 85
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://tokyoghoular.foruns.com.pt/

PostRhino.Freak on Sun 08 Feb 2015, 02:19

AH MY GAWD I LOVE IT!

This thing is so ridiculous and fun! Razz
BTW, I'm quite intelligent and know a lot about physics and I approve the facts provided here. study
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sun 08 Feb 2015, 02:29

hehe, it came to me one day, after being poked. I shall exact my poking revenge upon all of Forumotion ! Twisted Evil

@Rhino.Freak wrote:BTW, I'm quite intelligent and know a lot about physics and I approve the facts provided here. study
Listen to the man, lest you turn to stone !
Michael_vx

Title :
Gender : Male
Age : 24
Posts : 290
Points : 1371
Reputation : 74
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx on Sun 08 Feb 2015, 03:45

This is a silly little feature I wrote out of the blue one day. It'll allow you to append a new button that makes use of the visitor message wall... the ability to poke your members.
LOL 
its not silly affraid
every project you made is Amazing to me but i can not make own Project all what i do is just translate the Scripts you made to Arabic and i feel like my project but i did not start it by my self
pale 
now you will say how could steal my Scripts
pale 
this time i like to know if you thinking of that or not
thanks again for all of your projects
Deux

Title :
Harmonicaster
Gender : Female
Posts : 45
Points : 1357
Reputation : 14
Language : FR, EN
Browser : Browser : Other Forum Version : Forum Version : Other
Awards :
View all awards
View user profile http://www.forumactif.com

PostDeux on Sun 08 Feb 2015, 18:24

@Michael_vx It is okay if credit is given to the original author. Such as Author name and link to original source.. Salute
Michael_vx

Title :
Gender : Male
Age : 24
Posts : 290
Points : 1371
Reputation : 74
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx on Sun 08 Feb 2015, 18:59

to be honest i dont give the Original link so some people wont build the same project under there names
i just say translated by me
pale
Ape

Title :
Gender : Male
Posts : 99
Points : 1047
Reputation : 23
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostApe on Sat 21 Feb 2015, 10:50

you know what would be really cool is if The button was on the post profile as well as the profile Wink
Michael_vx

Title :
Gender : Male
Age : 24
Posts : 290
Points : 1371
Reputation : 74
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx on Sat 21 Feb 2015, 14:29

@Ape wrote:you know what would be really cool is if The button was on the post profile as well as the profile Wink
yeah im with you
Laughing
brandon_g

Title :
Gender : Unspecified
Age : 19
Posts : 431
Points : 1328
Reputation : 62
Location : USA
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://broadcastingduo.forumotion.com

Postbrandon_g on Wed 11 Mar 2015, 17:51

Has this been disabled?
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Thu 12 Mar 2015, 17:08

@brandon_g wrote:Has this been disabled?
Yeah, I installed it here temporarily as a test.
brandon_g

Title :
Gender : Unspecified
Age : 19
Posts : 431
Points : 1328
Reputation : 62
Location : USA
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://broadcastingduo.forumotion.com

Postbrandon_g on Sat 14 Mar 2015, 00:34

Oh ok....
refresh101
Member
Title :
Gender : Unspecified
Posts : 16
Points : 693
Reputation : 3
Language : Filipino,English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

Postrefresh101 on Fri 03 Apr 2015, 12:12

This is very useful in Roleplaying forums
FrOsTyXi
New Member
Title :
Gender : Unspecified
Posts : 8
Points : 635
Reputation : 2
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostFrOsTyXi on Fri 17 Apr 2015, 08:19

Thank you @Ange this is cool members are loving it!
Ape

Title :
Gender : Male
Posts : 99
Points : 1047
Reputation : 23
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostApe on Tue 05 May 2015, 20:41

@Ape wrote:you know what would be really cool is if The button was on the post profile as well as the profile Wink

@Michael_vx wrote:
@Ape wrote:you know what would be really cool is if The button was on the post profile as well as the profile Wink
yeah im with you
Laughing

Please @Ange Tuteur can you make it so the poke button will show up in the post profiles as well maybe in the same place as the pm and Website buttons are ?? Please Please lol I love you Embarassed
psformii
New Member
Title :
Gender : Unspecified
Posts : 2
Points : 565
Reputation : 3
Language : netherland
Browser : Browser : Other Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

Postpsformii on Sat 30 May 2015, 04:54

it dont work
Andrei34

Gender : Male
Posts : 137
Points : 688
Reputation : 38
Language : Romanian and English
Browser : Browser : Opera Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostAndrei34 on Sat 05 Sep 2015, 13:42

Thanks, Ange. My members love poking each other. Very Happy
The Awakened
New Member
Title :
Gender : Unspecified
Posts : 3
Points : 298
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostThe Awakened on Tue 01 Mar 2016, 13:37

hi! tried this code out on an invision and it worked for a while, but now the icon no longer appears and this feature no longer works. Was there an update to it?
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Thu 03 Mar 2016, 16:50

Did you install any other scripts recently ? If it stopped working suddenly it's most likely related to a JavaScript error. What's the URL of your forum ?
The Awakened
New Member
Title :
Gender : Unspecified
Posts : 3
Points : 298
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostThe Awakened on Thu 03 Mar 2016, 16:57

for this site, yes: www.fairytailhaven.forumotion.com
But on this one, I had installed it for a friend about a month ago: www.superfantasy-rp.forumotion.com

For the second one, it worked well until a couple weeks ago when it disappeared. I just noticed it when i added it into the FT site.
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 43
Posts : 2172
Points : 4069
Reputation : 246
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Thu 03 Mar 2016, 19:55

It has stopped working on my two forums. I have not installed any new codes recently.
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 04 Mar 2016, 10:32

I checked on each version and the button appears to show up just fine. Try checking this :
Fact 2 : Forumotion doesn't believe poking, so we must disable their poke-proof firewall.
( Administration Panel > General > Security )

Do the following and no one will be safe from the Poke !

Unauthorize unofficial forms to post messages and private messages on the forum : NO
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 43
Posts : 2172
Points : 4069
Reputation : 246
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Fri 04 Mar 2016, 20:23

@Ange Tuteur I installed this tutorial many months ago. I believe it stopped working when Forumotion released the two recent options.

Edit: I did not know how, but the security option was changed back to yes. My issue is solved.
The Awakened
New Member
Title :
Gender : Unspecified
Posts : 3
Points : 298
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostThe Awakened on Sat 12 Mar 2016, 23:06

It now works, but it doesn't allow all members to poke people. Just some. I saw here that you can 'deny' to be poked,' but can you deny yourself the right to poke?

Fact 3 : Not all members are pokeable. If they don't allow visitor messages or they're selective of their pokers, they'll be poke-proof !

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8393
Reputation : 2009
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 14 Mar 2016, 11:12

Since this module uses the visitor messages, it depends on the user profile preferences. Here :
Profile > Preferences > Allow visitor messages on my profile

If one of the conditions is met ( All members, friends.. ) you'll be able to poke a user.
nooneknow
New Member
Title :
Gender : Male
Posts : 1
Points : 254
Reputation : 0
Language : english
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postnooneknow on Wed 30 Mar 2016, 04:13

@Ange Tuteur i like this it really nice feature
i have a question tought can you combine this poke logic (sending message to visitor message) and this

http://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635

to make like button notification so we know who like your post and maybe with a link to the post they like

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum