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 21 users online :: 0 Registered, 0 Hidden and 21 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
[SUGGESTION] An @"ALL" script to mention each and every member
Page 1 of 1 • Share
- GuestGuest
Hey! @Ange Tuteur,
We'd like to ask for an @"ALL" script for the admins to be able to mention everyone personally so they WILL get a certain message. Like "Read this before continuing..".
Thanks for looking into this and your time,
Regards,
@Samantha NL (On behalf of @Prometheus).
We'd like to ask for an @"ALL" script for the admins to be able to mention everyone personally so they WILL get a certain message. Like "Read this before continuing..".
Thanks for looking into this and your time,
Regards,
@Samantha NL (On behalf of @Prometheus).
Last edited by Samantha NL on Mon 19 Dec 2016, 13:56; edited 1 time in total
- GuestGuest
SLGray wrote:Do you mean something like this:
- Code:
@{USERNAME}
That would most likely not push out any notifications, just mentions. But if so that 'd expose a serious security leak @ FM and it should be a reason to have it blocked immediately being used by regular members. That sort of codes should be available to admins only, and that's exactly what I asked for.
- GuestGuest
oh nvm. I guess it's just too complicated, if not technically impossible, what I'm asking for. @Ange Tuteur pls garbage the idea. ty.
Hmm.. this should be possible. Awhile back I found a useful way to get all the members names using this page :
https://fmdesign.forumotion.com/search?mode=searchuser&fieldname=username&search_username=*
Thing is, it returns ALL members that are on the board, so if you have A LOT ( like THOUSANDS ) of members this page might become a bit unstable, nonetheless it should come in handy for this instance. Go to Admin Panel > Modules > JS Codes mangagement and create a new script
Title : Tag All
Placement : In all the pages
.
Depending on what you want and what forum version you're using, use the following CSS rule(s) to give the button an icon.
FA Edge :
Forumotion default versions :
https://fmdesign.forumotion.com/search?mode=searchuser&fieldname=username&search_username=*
Thing is, it returns ALL members that are on the board, so if you have A LOT ( like THOUSANDS ) of members this page might become a bit unstable, nonetheless it should come in handy for this instance. Go to Admin Panel > Modules > JS Codes mangagement and create a new script
Title : Tag All
Placement : In all the pages
- Code:
$(function() {
if (_userdata.user_level == 1 && $.sceditor && toolbar) {
var tagAll = function() {
var editor = this;
$.get('/search?mode=searchuser&fieldname=username&search_username=*', function(d) {
for (var a = $('option', d), i = 0, j = a.length, str = ''; i < j; i++) {
str += '@"' + $(a[i]).text() + '" ';
}
editor.insertText(str);
});
};
$.sceditor.command.set('tagall', {
exec : tagAll,
txtExec : tagAll,
tooltip : 'Tag all members'
});
toolbar += '|tagall';
}
'par ange tuteur';
});
|
Depending on what you want and what forum version you're using, use the following CSS rule(s) to give the button an icon.
FA Edge :
- Code:
.sceditor-button-tagall:after {
content:"\f1fa";
}
Forumotion default versions :
- Code:
.sceditor-button-tagall div {
background-image:url(IMAGE_URL) !important;
}
- GuestGuest
You see... it IS possible after all! You're a genius @Ange Tuteur! It's even pushing out the tag notifications. Perfect. Just a small question:
On Edge, we've got just 2 users on our Edge test site. When sending the test message I saw there's a mention for each member. Is it possible to hide them or even better, to have it replaced with a standard text, say @All ?
On Edge, we've got just 2 users on our Edge test site. When sending the test message I saw there's a mention for each member. Is it possible to hide them or even better, to have it replaced with a standard text, say @All ?
Yeah it should be possible. Try using the script below instead :
- Code:
$(function() {
if (_userdata.user_level == 1 && $.sceditor && toolbar) {
var tagAll = function() {
var editor = this;
$.get('/search?mode=searchuser&fieldname=username&search_username=*', function(d) {
for (var a = $('option', d), i = 0, j = a.length, str = ''; i < j; i++) {
str += '@"' + $(a[i]).text() + '" ';
}
editor.insertText('[table class="tag-all"][tr][td]' + str + '[/td][/tr][/table]');
});
};
$.sceditor.command.set('tagall', {
exec : tagAll,
txtExec : tagAll,
tooltip : 'Tag all members'
});
toolbar += '|tagall';
}
'par ange tuteur';
});
document.write('<style>.tag-all { font-size:0; } .tag-all, .tag-all * { display:inline; } .tag-all:before { content:"@All"; font-size:12px; } .tag-all * { display:none; }</style>');
- GuestGuest
Ahhh... le 'display nun' et la 'table' (dinneur for Deux) seu easy ...
Sank Hugh and you hit perfection
Sank Hugh and you hit perfection
- Sponsored content
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 1
Permissions in this forum:
You cannot reply to topics in this forum