Latest topics
» [HELP] About Profile Cover Code
by omarpop23 Today at 06:39

» bloquer un membre
by berlingo Yesterday at 18:19

» IconSkouliki Graphics
by skouliki Yesterday at 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» Auto-suggest @mentions as You Type
by skouliki Wed 15 Nov 2017, 14:56

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Hello everyone this is Adam from France
by Adam Mon 13 Nov 2017, 13:32

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

» Control pannel issue
by Ange Tuteur Sun 12 Nov 2017, 09:49

» BUG... forum members birthday's
by Ape Sat 11 Nov 2017, 11:44

» Display a Preview of Groups on Hover
by ThunderTB Fri 10 Nov 2017, 21:56

» Search box only visible on hover
by Ange Tuteur Mon 06 Nov 2017, 09:57

» [GAME] Animal Game
by SLGray Sun 05 Nov 2017, 15:04

Recent Tutorials
Who is online?
In total there are 6 users online :: 0 Registered, 0 Hidden and 6 Guests :: 2 Bots

None

[ 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

avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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
avatar
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 44
Posts : 2455
Points : 4770
Reputation : 287
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
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?
avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9585
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave 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.
avatar
Michael_vx

Title :
Gender : Male
Age : 25
Posts : 301
Points : 1743
Reputation : 75
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
avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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
avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9585
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave 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 ?
avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9585
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave 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()
    }
  })
});
avatar
bodahassan

Title :
Gender : Male
Posts : 28
Points : 513
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);
        }
    });
 });
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9585
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave 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