Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Nie można wklejać linków

Błąd   Założony przez  Adixx.

Witam,
Mam dziwny problem, polega on na tym że nie działa wklejanie linków w edytorze, gdy wklejam link w szybkiej odpowiedzi to wszystko jest git, ale gdy chcę napisać temat, bądź go edytować to nie mogę wkleić linku, pojawia się na sekundę i od razu znika.
Nie mam pojęcia o co chodzi, nigdzie nie znalazłem takiego problemu.
Z Góry dziękuje za pomoc! ;)
Nie masz na stronie jakiś js, które blokują wpisywanie linków?
Nie mam, a jeśli mam to nie jestem nawet tego świadom, na pewno nic takiego nie wgrywałem.
Tu są wszystkie js które mam, mógłbyś się przyjrzeć?
Skrypty w editpost:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/notemoderator.js"></script>
<script type="text/javascript">
<!--
lang.notemoderator_delete_error = "{$lang->notemoderator_delete_error}";
lang.notemoderator_delete_confirm = "{$lang->notemoderator_delete_confirm}";
lang.notemoderator_has_been_deleted = "{$lang->notemoderator_has_been_deleted}";
// -->
</script>
Skrypty w headerinclude:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1806"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.minified.js"></script> 
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/carbon.js"></script>
<script type="text/javascript">
lang.unknown_error = "{$lang->unknown_error}";
lang.select2_match = "{$lang->select2_match}";
lang.select2_matches = "{$lang->select2_matches}";
lang.select2_nomatches = "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore = "{$lang->select2_loadmore}";
lang.select2_searching = "{$lang->select2_searching}";

var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var cookiePrefix = "{$mybb->settings['cookieprefix']}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
var my_post_key = "{$mybb->post_code}";
var rootpath = "{$mybb->settings['bburl']}";
var imagepath = "{$theme['imgdir']}";
  var yes_confirm = "{$lang->yes}";
var no_confirm = "{$lang->no}";
var MyBBEditor = null;
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
var modal_zindex = 9999;
</script>
Skrypty w memberlist:
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css?ver=1806">
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
<script type="text/javascript">
<!--
if(use_xmlhttprequest == "1")
{
   MyBB.select2();
   $("#username").select2({
       placeholder: "{$lang->search_user}",
       minimumInputLength: 3,
       maximumSelectionSize: 3,
       multiple: false,
       ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
           url: "xmlhttp.php?action=get_users",
           dataType: 'json',
           data: function (term, page) {
               return {
                   query: term, // search term
               };
           },
           results: function (data, page) { // parse the results into the format expected by Select2.
               // since we are using custom formatting functions we do not need to alter remote JSON data
               return {results: data};
           }
       },
       initSelection: function(element, callback) {
           var value = $(element).val();
           if (value !== "") {
               callback({
                   id: value,
                   text: value
               });
           }
       },
     // Allow the user entered text to be selected as well
     createSearchChoice:function(term, data) {
           if ( $(data).filter( function() {
               return this.text.localeCompare(term)===0;
           }).length===0) {
               return {id:term, text:term};
           }
       },
   });

    $('[for=username]').click(function(){
       $("#username").select2('open');
       return false;
   });
}
// -->
</script>
<!-- jeditable (jquery) -->
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/notemoderator.js"></script>
<script type="text/javascript">
<!--
lang.notemoderator_delete_error = "{$lang->notemoderator_delete_error}";
lang.notemoderator_delete_confirm = "{$lang->notemoderator_delete_confirm}";
lang.notemoderator_has_been_deleted = "{$lang->notemoderator_has_been_deleted}";
// -->
</script>

Wydaję mi się że może to być też coś z szablonem editpost, wrzucam cały editpost poniżej:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/notemoderator.js"></script>
<script type="text/javascript">
<!--
lang.notemoderator_delete_error = "{$lang->notemoderator_delete_error}";
lang.notemoderator_delete_confirm = "{$lang->notemoderator_delete_confirm}";
lang.notemoderator_has_been_deleted = "{$lang->notemoderator_has_been_deleted}";
// -->
</script>
</head>
<body>
{$header}
{$preview}
{$post_errors}
{$attacherror}
{$moderation_notice}
{$deletebox}
<form id="editpost" action="editpost.php?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->edit_post}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2"><strong>{$lang->subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}:</strong><br /><div style="text-align: center;">{$smilieinserter}</div></td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
{$codebuttons}
</td>
</tr>
{$editreason}{$notemoderator}
<tr>
<td class="trow2" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow2"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span>
</td>
</tr>
{$subscriptionmethod}
{$pollbox}
</table>
{$attachbox}
<br />
<div align="center"><input type="submit" class="button" name="submitbutton" value="{$lang->update_post}" tabindex="3" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" /></div>
<input type="hidden" name="action" value="do_editpost" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
</form>
{$footer}
<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
</body>
</html>

Naprawdę z góry dziękuje za pomoc.
Czy na domyślnym stylu problem też występuje?
Wsparcie poza forum - odpłatne.
Sprawdzałem na domyślnym i na carbon, na domyślnym nie ma żadnego problemu, a na carbonie jest taki sam problem jak na moim stylu z którego korzystam.
Czyli nikt nie pomoże? :P
Zacznijmy od tego, że dołączasz dwa razy jQuery.
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
podmień na to i zobacz czy występuje dalej błąd
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1806"></script>
<
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.minified.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/carbon.js"></script>
<
script type="text/javascript">
lang.unknown_error "{$lang->unknown_error}";
lang.select2_match "{$lang->select2_match}";
lang.select2_matches "{$lang->select2_matches}";
lang.select2_nomatches "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore "{$lang->select2_loadmore}";
lang.select2_searching "{$lang->select2_searching}";

var 
cookieDomain "{$mybb->settings['cookiedomain']}";
var 
cookiePath "{$mybb->settings['cookiepath']}";
var 
cookiePrefix "{$mybb->settings['cookieprefix']}";
var 
deleteevent_confirm "{$lang->deleteevent_confirm}";
var 
removeattach_confirm "{$lang->removeattach_confirm}";
var 
loading_text '{$lang->ajax_loading}';
var 
saving_changes '{$lang->saving_changes}';
var 
use_xmlhttprequest "{$mybb->settings['use_xmlhttprequest']}";
var 
my_post_key "{$mybb->post_code}";
var 
rootpath "{$mybb->settings['bburl']}";
var 
imagepath "{$theme['imgdir']}";
  var 
yes_confirm "{$lang->yes}";
var 
no_confirm "{$lang->no}";
var 
MyBBEditor null;
var 
spinner_image "{$theme['imgdir']}/spinner.gif";
var 
spinner "<img src='" spinner_image +"' alt='' />";
var 
modal_zindex 9999;
</
script

Jeżeli to nie pomoże to chyba zmiana stylu czeka.



Użytkownicy przeglądający ten wątek:

2 gości