FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

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

Recent Tutorials
Top posting users this month

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

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Reply box for visitors

View previous topic View next topic Go down

bodahassan
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan 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
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7350
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Wed 12 Oct 2016, 20:35

What is the issue?
Reply box for visitors  Untitl12
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
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan 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
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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
Michael_vx

Gender : Male
Age : 32
Posts : 302
Points : 4310
Reputation : 76
Language : Arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
http://miccsoft.net https://www.facebook.com/Michaelvx2008

PostMichael_vx 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
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan 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
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan 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
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan 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
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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
bodahassan

Gender : Male
Posts : 28
Points : 3078
Reputation : 0
Location : Egypt
Language : arabic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3

Postbodahassan Fri 04 Nov 2016, 13:59

@Ange Tuteur Yes thank you after a lot of attempts the code is working now  Reply box for visitors  1f609  Reply box for visitors  1f604

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
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

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

Sponsored content

PostSponsored content

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