Last edited by icecom3 on December 7th 2014, 12:29 am; edited 2 times in total
5 posters
when using "solved" button, remove reply ability, then add notifier box
Poll
Should we have a button option or script to allow topic creators to close/lock their own topics?
- [ 4 ]
- [67%]
- [ 2 ]
- [33%]
Total Votes: 6
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
It would be great if there was a way for topic creators to "close" or "lock" their own threads as an option. Maybe a close button would appear next to the quote button. This would be less maintenance for moderators, and forum visitors can lock the thread to prevent comments after a question has been answered, abuse, harassment, tolling...etc. I guess as a bonus maybe it could post one last reply that says "closed".
Last edited by icecom3 on December 7th 2014, 12:29 am; edited 2 times in total
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
Hi icecom3,
Could you add a poll to your suggestion ?
Thanks
Could you add a poll to your suggestion ?
Thanks
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
added...
but please remember, this does not have to be a feature added to the forum. if anyone knows how to script this in java, I would be grateful.
but please remember, this does not have to be a feature added to the forum. if anyone knows how to script this in java, I would be grateful.
SLGray- Administrator
- Posts : 51554
Reputation : 3523
Language : English
Location : United States
I would not want members to have the ability to locked their own topics. I have never been on a forum that has this option. Sorry, but my vote is no.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
iMac_Publicando- New Member
- Posts : 2
Reputation : 1
Language : Portuguese and English
Hello,
I think a good idea because in some forums is very much needed an application that.
Although with JavaScript to achieve the same effect.
Even More ...
I think a good idea because in some forums is very much needed an application that.
Although with JavaScript to achieve the same effect.
Even More ...
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
you can see if this will work for you.. it doesn't create a button but when the user marks the topic solved it will detect the image for the solved and hide the reply options and say its solved by the topic title
change http://www.url.com/pro10.png to the url of your solved topic icon
you can also change the message
"This Topic Has Been Marked Solved By The Author"
- Code:
$(function(){
var imageurl = "http://www.url.com/pro10.png" // replace the link with url to the solved icon
var image = $('.postbody h2.topic-title img').attr('src')
if (image == imageurl){
$('.i_reply').css('display','none');
$('#quick_reply').css('display','none');
$('#quick_reply').prev().css('display','none');
$('#quick_reply').prev().prev().css('display','none');
$('h1.page-title').append('<span style="background-color:red;color:black; padding:5px; border-radius:5px; font-size:0.6em; font-weight:bold; border:1px solid black; margin-left:10px;">This Topic Has Been Marked Solved By The Author</span>');
};
});
change http://www.url.com/pro10.png to the url of your solved topic icon
you can also change the message
"This Topic Has Been Marked Solved By The Author"
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
this sounds like a good idea. I followed the steps, but cant get it working so far. Question, looking at your script, how does it sense the creator selecting the solved option, or any option for that matter? I have several options, the solved is one of them, only it does not use the word "solved". Maybe your script assumes only one option would be available?
thanks again
ps
@SLGray, understood you would not want it, that's why it should be only "optional" to forum owners. but I prefer a script anyway, so I am not really counting on feature being added. btw, this is a stack exchange-like concept, and many forums that host Q&A now embrace this method. The reasons are numerous. But it's not for everyone
thanks again
ps
@SLGray, understood you would not want it, that's why it should be only "optional" to forum owners. but I prefer a script anyway, so I am not really counting on feature being added. btw, this is a stack exchange-like concept, and many forums that host Q&A now embrace this method. The reasons are numerous. But it's not for everyone
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
it uses the solved image but im assuming you dont have one so if you provide a public viewable link to your forum with a solved topic that is not locked ill re write it so it will work for you
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
well, it uses a "closed" image/selection instead. again, I have multiple topic icons
Here is a link to a closed item http://hitadmin.fullboards.com/t35-test-creator-lock-option
thank you!
Here is a link to a closed item http://hitadmin.fullboards.com/t35-test-creator-lock-option
thank you!
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
sense it uses a image you just have to replace the image url like i stated in the first post
this is the url to your closed img
https://i.servimg.com/u/f59/19/06/58/31/button15.png
try this code
this is the url to your closed img
https://i.servimg.com/u/f59/19/06/58/31/button15.png
try this code
- Code:
$(function(){
var imageurl = "http://i59.servimg.com/u/f59/19/06/58/31/button15.png" // replace the link with url to the solved icon
var image = $('.postbody h2.topic-title img').attr('src')
if (image == imageurl){
$('.i_reply').css('display','none');
$('#quick_reply').css('display','none');
$('#quick_reply').prev().css('display','none');
$('#quick_reply').prev().prev().css('display','none');
$('h1.page-title').append('<span style="background-color:red;color:black; padding:5px; border-radius:5px; font-size:0.6em; font-weight:bold; border:1px solid black; margin-left:10px;">This Topic Has Been Marked Solved By The Author</span>');
};
});
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Yes, I updated the button url, does not seem to change anything. I also made new button, then tried it, and nothing. I have another script running for the thanked button, would this impact the script you wrote...
$(function() {
var thankColor = '#ebeadd';
var text = 'Thanked';
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
post.children().css('background-color','');
post.find('.postmain').children().css('background-color','');
post.find('.posthead').css('background',thankColor);
post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});
here is link for a new topic just made, then closed... http://hitadmin.fullboards.com/t36-test2-on-the-closed-java-script
$(function() {
var thankColor = '#ebeadd';
var text = 'Thanked';
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
post.children().css('background-color','');
post.find('.postmain').children().css('background-color','');
post.find('.posthead').css('background',thankColor);
post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});
here is link for a new topic just made, then closed... http://hitadmin.fullboards.com/t36-test2-on-the-closed-java-script
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
my fault i missed something try it now
- Code:
$(function(){
var imageurl = "http://i59.servimg.com/u/f59/19/06/58/31/button15.png"; // replace the link with url to the solved icon
var image = $('.postbody h2.topic-title img').attr('src');
if (image == imageurl){
$('.i_reply').css('display','none');
$('#quick_reply').css('display','none');
$('#quick_reply').prev().css('display','none');
$('#quick_reply').prev().prev().css('display','none');
$('h1.page-title').append('<span
style="background-color:red;color:black; padding:5px; border-radius:5px;
font-size:0.6em; font-weight:bold; border:1px solid black;
margin-left:10px;">This Topic Has Been Marked Solved By The
Author</span>');
};
});
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
wow you are the man! let me evaluate this and I will come back and credit accordingly
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
here i changed it up a lil to make it faster and easier to edit
- Code:
$(function(){
var imageurl = "http://i59.servimg.com/u/f59/19/06/58/31/button15.png"; // replace the link with url to the solved icon
var bgcolor = "blue"; //background color
var txtcolor = "white"; // text color
var brdrad = "5px"; // border radius
var fntsize = "0.6em"; // font size
var brdsize = "1px"; // border size
var brdstyle = "solid"; // border style -solid-dashed-dotted
var brdcolor = "#00ff00"; // border color
var padd = "5px"; // padding - space between font and border
var fntwei = "bold"; // font weight - normal-bold-bolder
var mrgl = "10px"; // margin left- space between title and the notice
var themsg = "This Topic Has Been Marked Closed By The Author"; // message you want to display
var image = $('.postbody h2.topic-title img').attr('src');
if (image == imageurl){
$('.i_reply').css('display','none');
$('#quick_reply').css('display','none');
$('#quick_reply').prev().css('display','none');
$('#quick_reply').prev().prev().css('display','none');
$('h1.page-title').append('<span style="background-color:' + bgcolor + ';color:' + txtcolor + '; padding:' + padd + '; border-radius:' + brdrad + ';font-size:' + fntsize + ';font-weight:' + fntwei + ';border:' + brdsize + ' ' + brdstyle + ' ' + brdcolor + ';margin-left:' + mrgl + ';">' + themsg + '</span>');
};
});
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Thank you twisted, the world literally depends on people like you.
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
your welcome ..glad i could help
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
title updated to be more accurate
SLGray- Administrator
- Posts : 51554
Reputation : 3523
Language : English
Location : United States
Since you marked this solved, it will be archived.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.