auto solved button code
3 posters
Page 1 of 1
auto solved button code
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 buttonlink 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
Re: auto solved button code
AP > Display > Colors & Pictures > Pics Management
Advanced Mode
Topic Icons Tab
What is the solved topic icon set to: administrators, moderators, or all?
Advanced Mode
Topic Icons Tab
What is the solved topic icon set to: administrators, moderators, or all?
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: auto solved button code
Could you please send me a test account?
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: auto solved button code
Ok. You will need to post a link to where I can start a topic because I do not understand Arabic.
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: auto solved button code
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
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
Re: auto solved button code
Wait a minute! Now you are saying something completely different from your first post. Do you want only administrators to see and use it?
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: auto solved button code
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
Re: auto solved button code
Did you read the part that said it was created for #phpBB3 ?
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: auto solved button code
I do not know if you know or not, but we have an official Arabic support forum: http://help.ahlamontada.com/ .
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: auto solved button code
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
Re: auto solved button code
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
Re: auto solved button code
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
Re: auto solved button code
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
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!
|
Re: auto solved button code
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?
Hello,
Please create a new thread for your own questions. Read our General Rules.
Similar topics
» is there a code to add auto notifications such HTML code
» Auto locked when solved
» help in this code . the effect on code > add button to Put under the colored writing
» Do not show me button Display button [solved] the topics.
» where do I find auto pruning? [solved]
» Auto locked when solved
» help in this code . the effect on code > add button to Put under the colored writing
» Do not show me button Display button [solved] the topics.
» where do I find auto pruning? [solved]
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum