Latest topics
» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Van-Helsing Yesterday at 16:03

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Van-Helsing Yesterday at 16:03

» [GAME] Count to One Million!
by Van-Helsing Yesterday at 16:02

» [GAME] Count to 30 - Ange Edition
by Van-Helsing Yesterday at 16:01

» Is there any new update for ForumActif Edge?
by Van-Helsing Yesterday at 16:01

» Add a login popup for the toolbar
by Ape Sun 24 Sep 2017, 17:26

» [GAME] Post a random picture
by SLGray Fri 22 Sep 2017, 19:23

» Topic'It
by Ange Tuteur Fri 22 Sep 2017, 10:06

» Topic'It
by SLGray Thu 21 Sep 2017, 15:52

» FM Themes
by SLGray Thu 21 Sep 2017, 15:51

» User - Made Creations
by SLGray Thu 21 Sep 2017, 15:50

» IconSkouliki
by skouliki Sun 17 Sep 2017, 11:05

» Awards
by Mr_Grande Sun 17 Sep 2017, 08:52

» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Fri 15 Sep 2017, 14:56

» Display a preview of the user profile on hover
by Eiki Thu 14 Sep 2017, 02:38

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

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 : 469
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 : 2432
Points : 4690
Reputation : 286
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 : 469
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 : 21
Posts : 4688
Points : 9738
Reputation : 2332
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 : 1689
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 : 469
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 : 469
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 : 21
Posts : 4688
Points : 9738
Reputation : 2332
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 : 469
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 : 21
Posts : 4688
Points : 9738
Reputation : 2332
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 : 469
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 : 21
Posts : 4688
Points : 9738
Reputation : 2332
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