Latest topics
» Widget : Recent Members
by WinaTickets Today at 03:11

» How To Install the Code Snippet Button
by SLGray Yesterday at 20:56

» Select Button
by SLGray Yesterday at 20:25

» FM Themes
by SLGray Yesterday at 16:48

» User - Made Creations
by SLGray Yesterday at 16:48

» The Football Forums
by Mati Yesterday at 15:22

» [BUG] Avatar doesn't resize when reading the profile
by Samantha NL Yesterday at 12:33

» Search Bar Options
by Samantha NL Yesterday at 11:38

» Chit Chat Thread
by Jazeon Yesterday at 05:42

» Christmas logo
by Teo! Yesterday at 03:56

» SyncEditor
by keko_ferkeko Yesterday at 00:31

» Private message bg color
by Mr.Alam Thu 08 Dec 2016, 22:54

» Multi-step Login Form
by Samantha NL Thu 08 Dec 2016, 12:54

» Member of the Month
by Samantha NL Thu 08 Dec 2016, 12:38

» Forumactif Edge - Dutch Translation
by Samantha NL Thu 08 Dec 2016, 10:49

Recent Tutorials
Who is online?
In total there are 8 users online :: 1 Registered, 0 Hidden and 7 Guests :: 1 Bot

WinaTickets

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Reply box for visitors

View previous topic View next topic Go down

bodahassan

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Wed 12 Oct 2016, 17:05

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

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
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 43
Posts : 2176
Points : 4077
Reputation : 246
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Wed 12 Oct 2016, 20:35

What is the issue?

This is starting a topic.

I do not see a reply button for topics in that section. Do you have the permissions (guests) set for that section?
bodahassan

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Thu 13 Oct 2016, 02:05

This code shows Quick Reply box for visitors under topic !


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
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Thu 13 Oct 2016, 14:49

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.
Michael_vx

Title :
Gender : Male
Age : 24
Posts : 290
Points : 1373
Reputation : 74
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx on Thu 13 Oct 2016, 15:38

make sure to redo the steps again and see what is missing due the new updates of Ahlamontada
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';
    });
that should fix your problem
bodahassan

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Tue 18 Oct 2016, 13:39

@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

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Tue 18 Oct 2016, 13:42

@Michael_vx wrote:make sure to redo the steps again and see what is missing due the new updates of Ahlamontada
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';
    });
that should fix your problem


this script not working too
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 25 Oct 2016, 12:10

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

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

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Mon 31 Oct 2016, 12:01

Yes I've done many modifications to the overall_header

and i Tried deleting the template, however it didn't work with me
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 31 Oct 2016, 12:10

Hmm.. I think I found the problem. @bodahassan go to JS codes management and find this script :
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

Title :
Gender : Male
Posts : 28
Points : 179
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

Postbodahassan on Fri 04 Nov 2016, 13:59

@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 :-


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);
        }
    });
 });
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 04 Nov 2016, 14:04

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

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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