The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
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 ]
    when using "solved" button, remove reply ability, then add notifier box  Bar_left67%when using "solved" button, remove reply ability, then add notifier box  Bar_right [67%] 
    [ 2 ]
    when using "solved" button, remove reply ability, then add notifier box  Bar_left33%when using "solved" button, remove reply ability, then add notifier box  Bar_right [33%] 

    Total Votes: 6
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

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

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

    Hi icecom3,

    Could you add a poll to your suggestion ?

    Thanks
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray 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 using "solved" button, remove reply ability, then add notifier box  Slgray10

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


    Posts : 2
    Reputation : 1
    Language : Portuguese and English

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

    Post by iMac_Publicando 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 ...
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

    Post by _Twisted_Mods_ 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"
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

    Post by _Twisted_Mods_ 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
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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!
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

    Post by _Twisted_Mods_ 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
    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>');
    };
    });
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

    Post by _Twisted_Mods_ 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>');
    };
    });
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

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

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


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

    Post by _Twisted_Mods_ 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>');
        };
        });
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

    Post by icecom3 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...
    when using "solved" button, remove reply ability, then add notifier box  Succes11
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

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

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


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

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

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

    your welcome ..glad i could help
    avatar
    icecom3
    Forumember


    Posts : 43
    Reputation : 0
    Language : English

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

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

    title updated to be more accurate
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

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

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

    Since you marked this solved, it will be archived.



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

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

      Current date/time is November 11th 2024, 3:37 pm