Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 37 users online :: 0 Registered, 0 Hidden and 37 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Reply box for visitors
Page 1 of 1 • Share
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
hi @Ange Tuteur
i have a problem with Reply box for visitors
It was working but now it stopped working and I tried every way fix the problem but to no avail
please, Can you help me to solve the problem ..
http://www.koutstore.com/f4-montada
Note : section is open for visitors
i have a problem with Reply box for visitors
It was working but now it stopped working and I tried every way fix the problem but to no avail
please, Can you help me to solve the problem ..
- Code:
/* -- guest replay -- */
$(function() {
var reply = $('.i_reply').parent()[0];
if (!_userdata.session_logged_in && reply) {
$.get(reply.href, function(d) {
var form = $('form[name="post"]', d);
form.find('#smiley-box').hide();
form.find('#message-box').css({
width : '100%',
textAlign : 'center'
});
$('#logged_out_reply').hide().after(form);
});
}
});
http://www.koutstore.com/f4-montada
Note : section is open for visitors
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
This code shows Quick Reply box for visitors under topic !
I've deleted these buttons from templates
And even before deleting buttons the code not working
I do not see a reply button for topics in that section. Do you have the permissions (guests) set for that section?
I've deleted these buttons from templates
And even before deleting buttons the code not working
What modifications did you make to your forum recently that lead up to this code to stop working ? Try to retrace your steps if possible, because that modification ( or modifications ) is most likely the cause.
make sure to redo the steps again and see what is missing due the new updates of Ahlamontada
and try this
and try this
- Code:
$(function() {
if (_userdata.session_logged_in || document.getElementById('quick_reply')) return;
var reply = $('.i_reply')[0];
if (reply) reply = reply.parentNode;
else return;
window.servImgAccount = '';
window.servImgId = '';
window.servImgF = '';
window.plugins = '';
window.palette = 0;
window.illiweb = 'http://illiweb.com/';
window.locale = 'en';
window.height = '250';
window.plugin = 'bbcode';
window.toolbar = 'bold,italic,underline,strike|left,center,right,justify|bulletlist,orderedlist,horizontalrule|quote,code,faspoiler,fahide,table|servimg,image,link,youtube,dailymotion,flash|headers,size,color,font,removeformat|more|subscript,superscript|fascroll,faupdown,farand,faroll|date,time,pastetext,source';
window.cssFile = 'http://illiweb.com/rs3/16/frm/SCEditor/minified/jquery.sceditor.default.min.css';
window.isRtl = 0;
window.dice = [];
window.bSourceMode = false;
window.emoticonsEnabled = 1;
window.smileys = {};
window.iframeSrc = '/smilies.forum?mode=smilies_frame&t=1440581833';
window.illiwebDomain = 'http://illiweb.com/';
window.servimgDomain = 'www.servimg.com';
window.INTRANET = 0;
$.get(reply.href, function(d) {
var quick_reply = document.createElement('FORM'), area = $('#text_editor_textarea', d)[0], data = $('.submit-buttons', d)[0], anchor = document.anchors.quickreply, scripts, i, j, n;
quick_reply.id = 'quick_reply';
quick_reply.action = '/post';
quick_reply.method = 'post';
quick_reply.name = 'post';
quick_reply.enctype = 'multipart/form-data';
quick_reply.innerHTML = '<div id="textarea_content" style="width: 50%; clear: both; margin-left: auto; margin-right: auto; text-align: center;"><div style="padding:3px 0;"><span class="label">اسم المستخدم :</span><input class="inputbox" type="text" name="username" maxlength="25" value=""></div></div><link rel="stylesheet" href="http://illiweb.com/rs3/16/frm/SCEditor/src/themes/fa.default.min.css" type="text/css" media="all"/><style type="text/css">.sceditor-button-flash div { background-position: 0 -628px; }.sceditor-button-servimg div { background-position: 0 -644px; }.sceditor-button-dailymotion div{ background-position: 0 -660px; }.sceditor-button-faspoiler div { background-position: 0 -676px; }.sceditor-button-fahide div { background-position: 0 -692px; }.sceditor-button-fascroll div { background-position: 0 -708px; }.sceditor-button-faupdown div { background-position: 0 -724px; }.sceditor-button-farand div { background-position: 0 -756px; }.sceditor-button-faroll div { background-position: 0 -772px; }.sceditor-button-more div { background-position: 0 -788px; }.sceditor-button-emoticon div { background-position: 0 -804px; }.sceditor-button-headers div { background-position: 0 -820px; }</style></div>';
area && quick_reply.firstChild.appendChild(area);
data && quick_reply.firstChild.appendChild(data);
anchor.parentNode.insertBefore(quick_reply, anchor.nextSibling);
scripts = [
'http://illiweb.com/rs3/16/frm/jquery/cookie/jquery.cookie.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/jquery.sceditor.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/plugins/bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-custom-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/instance-sceditor.js'
];
for (i = 0, j = scripts.length; i < j; i++) {
n = document.createElement('SCRIPT');
n.type = 'text/javascript';
n.src = scripts[i];
quick_reply.appendChild(n);
}
});
'par ange tuteur';
});
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
Ange Tuteur wrote:What modifications did you make to your forum recently that lead up to this code to stop working ? Try to retrace your steps if possible, because that modification ( or modifications ) is most likely the cause.
I really don't know the cause of the problem
If i know the cause of the problem I would try to resolve the problem but what I noticed that suddenly crashes
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
Michael_vx wrote:make sure to redo the steps again and see what is missing due the new updates of Ahlamontada
and try thisthat should fix your problem
- Code:
$(function() {
if (_userdata.session_logged_in || document.getElementById('quick_reply')) return;
var reply = $('.i_reply')[0];
if (reply) reply = reply.parentNode;
else return;
window.servImgAccount = '';
window.servImgId = '';
window.servImgF = '';
window.plugins = '';
window.palette = 0;
window.illiweb = 'http://illiweb.com/';
window.locale = 'en';
window.height = '250';
window.plugin = 'bbcode';
window.toolbar = 'bold,italic,underline,strike|left,center,right,justify|bulletlist,orderedlist,horizontalrule|quote,code,faspoiler,fahide,table|servimg,image,link,youtube,dailymotion,flash|headers,size,color,font,removeformat|more|subscript,superscript|fascroll,faupdown,farand,faroll|date,time,pastetext,source';
window.cssFile = 'http://illiweb.com/rs3/16/frm/SCEditor/minified/jquery.sceditor.default.min.css';
window.isRtl = 0;
window.dice = [];
window.bSourceMode = false;
window.emoticonsEnabled = 1;
window.smileys = {};
window.iframeSrc = '/smilies.forum?mode=smilies_frame&t=1440581833';
window.illiwebDomain = 'http://illiweb.com/';
window.servimgDomain = 'www.servimg.com';
window.INTRANET = 0;
$.get(reply.href, function(d) {
var quick_reply = document.createElement('FORM'), area = $('#text_editor_textarea', d)[0], data = $('.submit-buttons', d)[0], anchor = document.anchors.quickreply, scripts, i, j, n;
quick_reply.id = 'quick_reply';
quick_reply.action = '/post';
quick_reply.method = 'post';
quick_reply.name = 'post';
quick_reply.enctype = 'multipart/form-data';
quick_reply.innerHTML = '<div id="textarea_content" style="width: 50%; clear: both; margin-left: auto; margin-right: auto; text-align: center;"><div style="padding:3px 0;"><span class="label">اسم المستخدم :</span><input class="inputbox" type="text" name="username" maxlength="25" value=""></div></div><link rel="stylesheet" href="http://illiweb.com/rs3/16/frm/SCEditor/src/themes/fa.default.min.css" type="text/css" media="all"/><style type="text/css">.sceditor-button-flash div { background-position: 0 -628px; }.sceditor-button-servimg div { background-position: 0 -644px; }.sceditor-button-dailymotion div{ background-position: 0 -660px; }.sceditor-button-faspoiler div { background-position: 0 -676px; }.sceditor-button-fahide div { background-position: 0 -692px; }.sceditor-button-fascroll div { background-position: 0 -708px; }.sceditor-button-faupdown div { background-position: 0 -724px; }.sceditor-button-farand div { background-position: 0 -756px; }.sceditor-button-faroll div { background-position: 0 -772px; }.sceditor-button-more div { background-position: 0 -788px; }.sceditor-button-emoticon div { background-position: 0 -804px; }.sceditor-button-headers div { background-position: 0 -820px; }</style></div>';
area && quick_reply.firstChild.appendChild(area);
data && quick_reply.firstChild.appendChild(data);
anchor.parentNode.insertBefore(quick_reply, anchor.nextSibling);
scripts = [
'http://illiweb.com/rs3/16/frm/jquery/cookie/jquery.cookie.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/jquery.sceditor.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/plugins/bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-custom-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/instance-sceditor.js'
];
for (i = 0, j = scripts.length; i < j; i++) {
n = document.createElement('SCRIPT');
n.type = 'text/javascript';
n.src = scripts[i];
quick_reply.appendChild(n);
}
});
'par ange tuteur';
});
this script not working too
To be honest, I'm not quite sure myself what the problem is. However, I don't think it's the script in question... something seems to be conflicting with jQuery perhaps..
These are the errors I run into on your forum :
Have you modified anything in the overall_header recently ?
These are the errors I run into on your forum :
Uncaught TypeError: $(...) is not a function at 12879.js:1
(anonymous) @ 12879.js:1
2016-10-25 12:05:57.206
Uncaught TypeError: $(...).sceditor is not a function
at HTMLDocument.<anonymous> (99966.js:1)
at o (jquery.min.js:2)
at Object.fireWith (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.B (jquery.min.js:2)
(anonymous) @ 99966.js:1
o @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
B @ jquery.min.js:2
2016-10-25 12:06:00.928
Have you modified anything in the overall_header recently ?
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
Yes I've done many modifications to the overall_header
and i Tried deleting the template, however it didn't work with me
and i Tried deleting the template, however it didn't work with me
Hmm.. I think I found the problem. @bodahassan go to JS codes management and find this script :
try replacing it with this :
- Code:
$(function() {
$(function() {
var instance = $('#text_editor_textarea').sceditor('instance');
if (instance.inSourceMode()) {
instance.toggleSourceMode()
}
})
});
try replacing it with this :
- Code:
$(function() {
$(function() {
if (!$.sceditor) return;
var instance = $('#text_editor_textarea').sceditor('instance');
if (instance.inSourceMode()) {
instance.toggleSourceMode()
}
})
});
- bodahassan
- Gender :
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Forum Version :
@Ange Tuteur Yes thank you after a lot of attempts the code is working now
But there two script not working inside a reply box for visitors
1- fa-sceditor-emoji
2- imgur uploader : replace the default image uploader with imgur uploader
I would be very happy if you help me make these plugins work in visitor reply box.
visitor reply box that i used :-
But there two script not working inside a reply box for visitors
1- fa-sceditor-emoji
2- imgur uploader : replace the default image uploader with imgur uploader
I would be very happy if you help me make these plugins work in visitor reply box.
visitor reply box that i used :-
- Code:
$(function () {
if (_userdata.session_logged_in || document.getElementById('quick_reply')) return;
var reply = $('.i_reply')[0];
if (reply) reply = reply.parentNode;
else return;
window.plugins = '';
window.palette = 0;
window.illiweb = 'http://illiweb.com/';
window.locale = 'ar';
window.height = '250';
window.plugin = 'bbcode';
window.toolbar = 'bold,italic,underline,strike|left,center,right,justify|bulletlist,orderedlist,horizontalrule|quote,code,faspoiler,fahide,table|servimg,image,link,youtube|date,headers,size,emoticon,color,font,removeformat|subscript,superscript|fascroll,faupdown,farand,faroll|pastetext,source';
window.cssFile = 'http://illiweb.com/rs3/46/frm/SCEditor/minified/jquery.sceditor.default.min.css';
window.isRtl = 0;
window.dice = [];
window.bSourceMode = false;
window.emoticonsEnabled = 1;
window.smileys = {};
window.iframeSrc = '/smilies.forum?mode=smilies_frame&t=1440581833';
window.illiwebDomain = 'http://illiweb.com/';
window.INTRANET = 0;
$.get(reply.href, function (d) {
var quick_reply = document.createElement('FORM'),
area = $('#text_editor_textarea', d)[0],
data = $('.submit-buttons', d)[0],
anchor = document.anchors.quickreply,
scripts, i, j, n;
quick_reply.id = 'quick_reply';
quick_reply.action = '/post';
quick_reply.method = 'post';
quick_reply.name = 'post';
quick_reply.enctype = 'multipart/form-data';
quick_reply.innerHTML = '<div style="width: 50%; clear: both; margin-left: auto; margin-right: auto; text-align: center;"><div style="padding: 8px 24px;background: #e6e6e6;border-radius: 8px;margin: 8px;"><span>اسم المستخدم :</span><input class="inputbox" type="text" name="username" maxlength="25" value=""></div></div><link rel="stylesheet" href="http://illiweb.com/rs3/46/frm/SCEditor/src/themes/fa.default.min.css" type="text/css" media="all" /></div>';
area && quick_reply.firstChild.appendChild(area);
data && quick_reply.firstChild.appendChild(data);
anchor.parentNode.insertBefore(quick_reply, anchor.nextSibling);
scripts = [
'http://illiweb.com/rs3/46/frm/jquery/cookie/jquery.cookie.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/jquery.sceditor.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/plugins/bbcode.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/sceditor-commands.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/sceditor-commands-bbcode.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/sceditor-custom-bbcode.js',
'http://illiweb.com/rs3/46/frm/SCEditor/src/instance-sceditor.js'
];
for (i = 0, j = scripts.length; i < j; i++) {
n = document.createElement('SCRIPT');
n.type = 'text/javascript';
n.src = scripts[i];
quick_reply.appendChild(n);
}
});
});
You might want to add those scripts into this one, but AFTER this line :
- Code:
for (i = 0, j = scripts.length; i < j; i++) {
n = document.createElement('SCRIPT');
n.type = 'text/javascript';
n.src = scripts[i];
quick_reply.appendChild(n);
}
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum