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
3 posters

    auto solved button code

    bodahassan
    bodahassan
    Forumember


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty auto solved button code

    Post by bodahassan August 3rd 2016, 6:46 am

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Mozilla Firefox, Google Chrome
    Screenshot of problem : https://i.servimg.com/u/f35/13/76/93/58/3223110.png
    Who the problem concerns : All members
    Forum link : http://www.koutstore.com

    Description of problem

    I have a problem in auto solved button
    link of the code topic: https://help.forumotion.com/t144451-make-auto-solved
    The problem is that the button is shows just for admins
    I want to show the buttons for the members
    js code

    Code:
        $(function() {
                  window.$fa_solved = {
                 
                    icon : {
                      id : 8
                    },
                 
            lang : {
              mark : '<i class="fa"></i> Mark Solved',
              mark_title : 'Marking your topic with the Solved icon will let staff know your problem has been resolved.',
              mark_title_mod : 'Mark this topic Solved',
              marking : '<i class="fa fa-spin"></i> Marking...',
              marked : '<i class="fa"></i> Solved !'
            },
                 
                    post_id : $('tr.post')[0].id.slice(1),
                 
                    encode : function(string) {
                      return encodeURIComponent(escape(string).replace(/%u[A-F0-9]{4}/g, function(match) {
                        return '&#' + parseInt(match.substr(2), 16) + ';';
                      })).replace(/%25/g, '%');
                    }
                 
                  };
               
                  var main = document.getElementById('solve-button'), post = $('tr.post', main)[0], author = $('.poster-profile a[href^="/u"]', post).text(), mod = $('.i_icon_ip', post)[0], button = document.createElement('A');
               
                  if (!mod && author != _userdata.username) return;
               
                  button.innerHTML = $fa_solved.lang.mark;
                  button.title = 'اضغط هنا';
                  button.className = 'soldbtn';
                  button.href = '#';
               
                  button.onclick = function() {
                    var t = this;
                    t.innerHTML = $fa_solved.lang.marking;
                    t.removeAttribute('title');
                    t.onclick = function() { return false };
                 
                    $.get('/post?p=' + $fa_solved.post_id + '&mode=editpost', function(d) {
                      var auth = $('input[name="auth[]"]', d);
                      $.post('/post', 'subject=' + $fa_solved.encode($('input[name="subject"]', d)[0].value) + '&message=' + $fa_solved.encode($('#text_editor_textarea', d)[0].value) + '&p=' + $fa_solved.post_id + '&post_icon=' + $fa_solved.icon.id + '&mode=editpost&auth[]=' + auth[0].value + '&auth[]=' + auth[1].value + '&post=1', function() {
                        t.innerHTML = $fa_solved.lang.marked;
                        t.className += ' marked';
                      });
                    });
                 
                    return false;
                  };
               
                  main.insertBefore(button, main.firstChild);
                  'par ange tuteur';
                });

    Could you please find a solution ??!

    Sorry if my English is bad For you
    bodahassan
    bodahassan
    Forumember


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 3rd 2016, 11:23 pm

    ؟؟؟؟؟؟؟؟؟!!
    SLGray
    SLGray
    Administrator
    Administrator


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 2:26 am

    AP > Display > Colors & Pictures > Pics Management
    Advanced Mode
    Topic Icons Tab
    What is the solved topic icon set to:  administrators, moderators, or all?



    auto solved button code  Slgray10

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


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 3:10 am

    it set to all
    SLGray
    SLGray
    Administrator
    Administrator


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 3:14 am

    Could you please send me a test account?



    auto solved button code  Slgray10

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


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 3:27 am

    @SLGray done ...
    SLGray
    SLGray
    Administrator
    Administrator


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 3:32 am

    Ok.  You will need to post a link to where I can start a topic because I do not understand Arabic.



    auto solved button code  Slgray10

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


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 3:38 am

    there's no problem,

    here you can add new topic

    http://www.koutstore.com/post?f=46&mode=newtopic
    bodahassan
    bodahassan
    Forumember


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 3:51 am

    Note : This code shows for members
    https://help.forumotion.com/t144451-make-auto-solved#987602

    But i dont want him because its not good and the other code better than him

    unfortunately I do not have experience in Javascript language to make edit in code
    SLGray
    SLGray
    Administrator
    Administrator


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 3:53 am

    Wait a minute!  Now you are saying something completely different from your first post.  Do you want only administrators to see and use it?



    auto solved button code  Slgray10

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


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 4:05 am

    Do you want only administrators to see and use it

    no i want administrators & member to use this button But code that I have only shows for the administrators only
    SLGray
    SLGray
    Administrator
    Administrator


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 4:07 am

    Did you read the part that said it was created for #phpBB3 ?



    auto solved button code  Slgray10

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


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

    auto solved button code  Empty Re: auto solved button code

    Post by SLGray August 4th 2016, 4:10 am

    I do not know if you know or not, but we have an official Arabic support forum: http://help.ahlamontada.com/ .



    auto solved button code  Slgray10

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


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 4:32 am

    SLGray wrote:Did you read the part that said it was created for #phpBB3 ?

    code works very well for phpbb2 Without any problems
    The problem now is I want anyone make edit to js code for the button to shows for members
    bodahassan
    bodahassan
    Forumember


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 4:39 am

    SLGray wrote:I do not know if you know or not, but we have an official Arabic support forum: http://help.ahlamontada.com/ .

    I know, but Arab support forum is weak
    And I'm not getting useful answers
    bodahassan
    bodahassan
    Forumember


    Posts : 35
    Reputation : 1
    Language : arabic

    auto solved button code  Empty Re: auto solved button code

    Post by bodahassan August 4th 2016, 4:57 am

    shakib al hasan wrote:Make sure to replace the 3 in id : 3 with the ID of your solved icon. Also, this script was originally meant for phpbb3, so if there are any problems let me know.

    @SlGray, above words are written by Ange. But my question is that where I can find id of solved icon please?


    you can find id of icon by inspect element

    auto solved button code  22332110
    Nemo
    Nemo
    Active Poster


    Male Posts : 1203
    Reputation : 119
    Language : Greek, English, French

    auto solved button code  Empty Re: auto solved button code

    Post by Nemo August 4th 2016, 5:03 am

    bodahassan wrote:
    SLGray wrote:Did you read the part that said it was created for #phpBB3 ?

    code works very well for phpbb2 Without any problems
    The problem now is I want anyone make edit to js code for the button to shows for members

    bodahassan wrote:
    SLGray wrote:I do not know if you know or not, but we have an official Arabic support forum: http://help.ahlamontada.com/ .

    I know, but Arab support forum is weak
    And I'm not getting useful answers

    bodahassan wrote:
    shakib al hasan wrote:Make sure to replace the 3 in id : 3 with the ID of your solved icon. Also, this script was originally meant for phpbb3, so if there are any problems let me know.

    @SlGray, above words are written by Ange. But my question is that where I can find id of solved icon please?


    you can find id of icon by inspect element

    auto solved button code  22332110

    Today at 11:32
    Today at 11:39
    Today at 11:57


    Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
    Please read our forum rules: ESF General Rules
    Nemo
    Nemo
    Active Poster


    Male Posts : 1203
    Reputation : 119
    Language : Greek, English, French

    auto solved button code  Empty Re: auto solved button code

    Post by Nemo August 4th 2016, 7:29 am

    shakib al hasan wrote:Make sure to replace the 3 in id : 3 with the ID of your solved icon. Also, this script was originally meant for phpbb3, so if there are any problems let me know.

    @SlGray, above words are written by Ange. But my question is that where I can find id of solved icon please?

    shakib al hasan wrote:Hello @bodahassan

    Can you find id of this icon auto solved button code  2cz4y1z

    Hello,

    Please create a new thread for your own questions. Read our General Rules.

    Hello

      Current date/time is November 11th 2024, 2:02 pm