The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

when using "solved" button, remove reply ability, then add notifier box

View previous topic View next topic Go down

Should we have a button option or script to allow topic creators to close/lock their own topics?

67% 67% 
[ 4 ]
33% 33% 
[ 2 ]
 
Total Votes : 6

Solved when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 3rd 2014, 2:52 pm

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

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by Ange Tuteur on December 3rd 2014, 3:54 pm

Hi icecom3,

Could you add a poll to your suggestion ?

Thanks

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 4th 2014, 2:28 pm

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.

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by SLGray on December 5th 2014, 8:52 pm

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.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by iMac_Publicando on December 5th 2014, 8:57 pm

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 ...

iMac_Publicando
New Member

Posts : 2
Reputation : 1
Language : Portuguese and English

http://www.forumpublicando.com/

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 6th 2014, 5:23 am

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


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"

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 6th 2014, 8:00 pm

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 Wink

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 6th 2014, 8:29 pm

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 6th 2014, 9:40 pm

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!

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 6th 2014, 9:51 pm

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
http://i59.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>');
};
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 6th 2014, 10:51 pm

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

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 6th 2014, 10:55 pm

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>');
};
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 6th 2014, 11:24 pm

wow you are the man! let me evaluate this and I will come back and credit accordingly Smile

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 6th 2014, 11:29 pm

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>');
    };
    });

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 7th 2014, 12:23 am

Changes applied. The notification shows up and the reply options are gone as it should. Strong work!

results below...

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 7th 2014, 12:25 am

Thank you twisted, the world literally depends on people like you.

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by _Twisted_Mods_ on December 7th 2014, 12:26 am

your welcome ..glad i could help

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by icecom3 on December 7th 2014, 12:32 am

title updated to be more accurate

icecom3
Forumember

Posts : 43
Reputation : 0
Language : English

Back to top Go down

Solved Re: when using "solved" button, remove reply ability, then add notifier box

Post by SLGray on December 7th 2014, 5:34 pm

Since you marked this solved, it will be archived.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum