adding a new box in reply box (only for admins)

Go down

Solved adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 6:37 pm

how can i add a new box in reply box or new topic box.


same like the insert image etc

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 7:44 pm

bump

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by SLGray on December 6th 2014, 7:55 pm

Please wait patiently until someone replies.  You can bump your topic if only 24 hours have passed.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43465
Reputation : 3084
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 7:59 pm

Sry and hopefully awaiting Sad

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ange Tuteur on December 6th 2014, 8:24 pm

avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 8:42 pm

its not working
Code:
$(function() {
  if (!document.getElementById('text_editor_textarea')) return;
  
  
  userTag(390,'ang', 'http://i39.servimg.com/u/f39/18/21/41/30/bouton10.png', '<span style="color:#F66;font-style:italic;">', '</span>');
  
  
  function userTag(id, tagname, image, htmlStart, htmlEnd) {
    var breg = new RegExp('\\['+tagname+'\\](.+?)\\[\\/'+tagname+'\\]','gi');
    if (_userdata.user_id === id) {
      $("#text_editor_textarea").before("<img src='"+image+"'id='"+tagname+"-b'/>");
      $('#'+tagname+'-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('['+tagname+']','[/'+tagname+']')});
    }
    $('div.postbody div').each(function () {if ($(this).text().indexOf('['+tagname+']') != -1) $(this).html($(this).html().replace(breg, htmlStart + '$1' + htmlEnd))}); 
  }
});


390 ID IS MY ID.
i dropped this in java script and for all pages.

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ange Tuteur on December 6th 2014, 9:03 pm

One of your scripts is causing an error. From what I can tell your snowflakes script contains a script tag which is not supported in JS files. Find the script that contains the following and disable it.
Code:
<script type="text/javascript">
avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 9:15 pm

found many.
deleted all of them.
still the same Sad

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ajmin on December 6th 2014, 9:21 pm

Solved Very Happy
thx

Ajmin
Forumember

Posts : 26
Reputation : 1
Language : English

http://saz-clan.alafdal.net

Back to top Go down

Solved Re: adding a new box in reply box (only for admins)

Post by Ange Tuteur on December 6th 2014, 9:24 pm

You're welcome ^^

Topic arhcived
avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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