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
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
Top Achievers
Who is online?
In total there are 18 users online :: 0 Registered, 0 Hidden and 18 Guests :: 1 Bot
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Poke your members
Page 1 of 2 • Share
Page 1 of 2 • 1, 2
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.
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..
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.
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 :
If you want to poke people in another language, or change the poke payload, find this part in the logic, right at the top !
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 !
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..
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 !
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
AH MY GAWD I LOVE IT!
This thing is so ridiculous and fun!
BTW, I'm quite intelligent and know a lot about physics and I approve the facts provided here.
This thing is so ridiculous and fun!
BTW, I'm quite intelligent and know a lot about physics and I approve the facts provided here.
hehe, it came to me one day, after being poked. I shall exact my poking revenge upon all of Forumotion !
Listen to the man, lest you turn to stone !Rhino.Freak wrote:BTW, I'm quite intelligent and know a lot about physics and I approve the facts provided here.
LOLÂ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.
its not silly
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
Â
now you will say how could steal my Scripts
Â
this time i like to know if you thinking of that or not
thanks again for all of your projects
@Michael_vx It is okay if credit is given to the original author. Such as Author name and link to original source..
- refresh101Member
- Gender :
Posts : 16
Points : 3361
Reputation : 3
Language : Filipino,English
Browser : Forum Version :
This is very useful in Roleplaying forums
- FrOsTyXiNew Member
- Gender :
Posts : 8
Points : 3293
Reputation : 2
Language : English
Browser : Forum Version :
Thank you @Ange this is cool members are loving it!
Ape wrote:you know what would be really cool is if The button was on the post profile as well as the profile
Michael_vx wrote:yeah im with youApe wrote:you know what would be really cool is if The button was on the post profile as well as the profile
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
- psformiiNew Member
- Gender :
Posts : 2
Points : 3233
Reputation : 3
Language : netherland
Browser : Forum Version :
it dont work
- Wolfuryo
- Gender :
Posts : 256
Points : 3568
Reputation : 81
Language : Romanian and English
Browser : Forum Version :
Thanks, Ange. My members love poking each other.
- The AwakenedNew Member
- Gender :
Posts : 3
Points : 2966
Reputation : 0
Language : English, Spanish, French
Browser : Forum Version :
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?
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 AwakenedNew Member
- Gender :
Posts : 3
Points : 2966
Reputation : 0
Language : English, Spanish, French
Browser : Forum Version :
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.
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.
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 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.
Edit: I did not know how, but the security option was changed back to yes. My issue is solved.
- The AwakenedNew Member
- Gender :
Posts : 3
Points : 2966
Reputation : 0
Language : English, Spanish, French
Browser : Forum Version :
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 !
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.
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.
- nooneknowNew Member
- Gender :
Posts : 1
Points : 2922
Reputation : 0
Language : english
Browser : Forum Version :
@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
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
Page 1 of 2 • 1, 2
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum
|
|