when using "solved" button, remove reply ability, then add notifier box
5 posters
Page 1 of 1
Should we have a button option or script to allow topic creators to close/lock their own topics?
when using "solved" button, remove reply ability, then add notifier box
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
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
Hi icecom3,
Could you add a poll to your suggestion ?
Thanks
Could you add a poll to your suggestion ?
Thanks
Re: when using "solved" button, remove reply ability, then add notifier box
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.
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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.
Re: when using "solved" button, remove reply ability, then add notifier box
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 ...
Re: when using "solved" button, remove reply ability, then add notifier box
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"
Re: when using "solved" button, remove reply ability, then add notifier box
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
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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
Re: when using "solved" button, remove reply ability, then add notifier box
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!
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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>');
};
});
Re: when using "solved" button, remove reply ability, then add notifier box
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
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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>');
};
});
Re: when using "solved" button, remove reply ability, then add notifier box
wow you are the man! let me evaluate this and I will come back and credit accordingly
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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
Re: when using "solved" button, remove reply ability, then add notifier box
Thank you twisted, the world literally depends on people like you.
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
your welcome ..glad i could help
Re: when using "solved" button, remove reply ability, then add notifier box
title updated to be more accurate
icecom3- Forumember
- Posts : 43
Reputation : 0
Language : English
Re: when using "solved" button, remove reply ability, then add notifier box
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.
Similar topics
» [SOLVED]Solved Reply with Quote and Checklist
» SOLVED BUTTON
» Adding a reply button next to the quote button to automatically tag users?
» How to add Quick reply?(Solved)
» How to remove "report an abuse"SOLVED
» SOLVED BUTTON
» Adding a reply button next to the quote button to automatically tag users?
» How to add Quick reply?(Solved)
» How to remove "report an abuse"SOLVED
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum