IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

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

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
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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

Poke your members Cap1tu10

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 !

Poke your members Captur78

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

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 23
Posts : 275
Points : 2664
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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 !

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
Michael_vx
Michael_vx

Gender : Male
Age : 27
Posts : 302
Points : 2502
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
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. Poke your members Icon_eek
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


Administrator
Gender : Male
Posts : 95
Points : 2522
Reputation : 26
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://github.com/SethClydesdale https://twitter.com/sethc1995

Post 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
Michael_vx

Gender : Male
Age : 27
Posts : 302
Points : 2502
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
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
Ape

Gender : Male
Age : 44
Posts : 136
Points : 2227
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

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
Michael_vx

Gender : Male
Age : 27
Posts : 302
Points : 2502
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
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
brandon_g

Gender : Unspecified
Age : 22
Posts : 458
Points : 2483
Reputation : 67
Location : USA
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://broadcastingduo.forumotion.com

Postbrandon_g on Wed 11 Mar 2015, 17:51

Has this been disabled?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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.

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
brandon_g
brandon_g

Gender : Unspecified
Age : 22
Posts : 458
Points : 2483
Reputation : 67
Location : USA
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://broadcastingduo.forumotion.com

Postbrandon_g on Sat 14 Mar 2015, 00:34

Oh ok....
refresh101
refresh101
Member
Gender : Unspecified
Posts : 16
Points : 1796
Reputation : 3
Language : Filipino,English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

Postrefresh101 on Fri 03 Apr 2015, 12:12

This is very useful in Roleplaying forums
FrOsTyXi
FrOsTyXi
New Member
Gender : Unspecified
Posts : 8
Points : 1728
Reputation : 2
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

PostFrOsTyXi on Fri 17 Apr 2015, 08:19

Thank you @Ange this is cool members are loving it!
Ape
Ape

Gender : Male
Age : 44
Posts : 136
Points : 2227
Reputation : 29
Location : UK kent
Language : English i think
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://missingpeople.darkbb.com

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
psformii
New Member
Gender : Unspecified
Posts : 2
Points : 1668
Reputation : 3
Language : netherland
Browser : Browser : Other Forum Version : Forum Version : Other

Postpsformii on Sat 30 May 2015, 04:54

it dont work
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 2003
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo on Sat 05 Sep 2015, 13:42

Thanks, Ange. My members love poking each other. Very Happy
The Awakened
The Awakened
New Member
Gender : Unspecified
Posts : 3
Points : 1401
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

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
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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 ?

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
The Awakened
The Awakened
New Member
Gender : Unspecified
Posts : 3
Points : 1401
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

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
SLGray
Valued Member
Gender : Male
Age : 46
Posts : 2465
Points : 5542
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
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
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
SLGray
SLGray
Valued Member
Gender : Male
Age : 46
Posts : 2465
Points : 5542
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
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
The Awakened
New Member
Gender : Unspecified
Posts : 3
Points : 1401
Reputation : 0
Language : English, Spanish, French
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

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
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10404
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ 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.

--------

Ange Tuteur
Tips and TricksContact Me
Poke your members Latin11
nooneknow
nooneknow
New Member
Gender : Male
Posts : 1
Points : 1357
Reputation : 0
Language : english
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

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
Sponsored content

PostSponsored content

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