MyBB Community Forums

Full Version: How do i solve this problem ? Quick edit and reply simply not working...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
My site is :- https://gossipion.xyz

Test Account :- 
username :- Test
password :- test1234

please help me , quick edit option not showing and when i am trying to post in quick reply box it's working as a new post reply as lile full post reply....
You have problems related to javascripts.
Your theme requires a file which is not present:
https://gossipion.xyz/jscripts/scripts.js

Also your variable transmission js codes are missing scripting markup <script type="text/javascript"> resulting the declarations to get commented out by HTML.

Inspect your headerinclude template and make necessary corrections.
headerinclude template :-

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1823"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1821"></script>
<link rel="shortcut icon" type="image/png" href="{$mybb->settings['bburl']}/favicon.png">
{$stylesheets}
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<!--
	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 templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
	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 = 9995;
// -->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/images/moonmode.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/scripts.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/js/flow.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/js/cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/js/tipsy.js"></script>
<a href="javascript:" id="return-to-top"><i class="fa fa-chevron-up"></i></a>

<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="images/js/musk.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

footer

<debugstuff>
	</div>
</div>
<div id="foot_bar">
<div class="col">
<div class="foot_header"><center>About Us<center></center></center></div>
<ul style="color: rgb(123, 129, 129);">
<center>This is a growing up forum community withh full of Entertainment and joy. However you came this platform whenever you will switch off this you will realize that you just switched off your real happiness and joy. Here you can share everything to everyone .So join with us and get unlimited pleasure and have fun. </center>
</ul>
</div>
    
<div class="col">
<div class="foot_header">Navigation</div>
<ul>
<li><a href="{$mybb->settings['bburl']}/contact.php"><i class="fa fa-envelope-open"></i> Contact Us</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=syndication"><i class="fa fa-rss"></i> RSS Syndication</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><i class="fa fa-life-ring"></i> Help</a></li>
<li><a href="{$mybb->settings['bburl']}/stats.php"><i class="fa fa-signal"></i> Stats</a></li>
</ul>
</div>
    
<div class="col">
<div class="foot_header">Links</div>
<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><i class="fa fa-search"></i> {$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['homeurl']}"><i class="fa fa-home"></i> {$mybb->settings['homename']}</a></li>
<li><a href="<archive_url>"><i class="fa fa-briefcase"></i> {$lang->bottomlinks_litemode}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=syndication"><i class="fa fa-rss footicon"></i> {$lang->bottomlinks_syndication}</a></li>
</ul>
</div>
<div class="col">
<div class="foot_header"></div>
<ul style="margin-top: 65px;">
{$theme_select}
</ul>
<ul>
<div id="google_translate_element"></div>
</ul>
</div>
</div>
	<div class="footer_stuff">
		<div class="wrapper">
			<span id="copyright" style="color: #FFF;">
				<!-- MyBB is free software developed and maintained by a volunteer community.
					It would be much appreciated by the MyBB Group if you left the full copyright and "powered by" notice intact,
					to show your support for MyBB.  If you choose to remove or modify the copyright below,
					you may be refused support on the MyBB Community Forums.

					This is free software, support us and we'll support you. -->
				<div style="float: left;">{$lang->powered_by} <a href="http://www.mybb.com" target="_blank">MyBB{$mybbversion}</a>, &copy; 2002-{$copy_year} <a href="http://www.mybb.com" target="_blank">MyBB Group</a>.</div>
				<div class="footer_made"><div style="transform: skewX(-25deg); float: right; left: 2px;"> Designed with <i class="fa fa-heart pulse_heart" title="Love"></i> by <a href="https://community.mybb.com/user-134311.html"><span class="addicted">PARADOX</span></a></div></div>
				<!-- End powered by -->
			</span>
		</div>
	</div>
</div>
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->
{$auto_dst_detection}
</div>

<script>
const bbCodeQuoteExpandHtml = '<div class="quote__expand"><span>Click to expand...</span></div>';

const bbCodeQuotes = $('.mycode_quote');
bbCodeQuotes.each(function() {
	if ($(this).parent('.mycode_quote').length) {
		return $(this).css('max-height', 'initial');
	}

	if (this.scrollHeight > this.clientHeight) {
		return $(this).css('overflow', 'hidden').append(bbCodeQuoteExpandHtml)
	}
})

const bbCodeQuoteExpand = $('.quote__expand');
bbCodeQuoteExpand.on('click', function() {
	const bbCodeQuote = $(this).parent('.mycode_quote');

	$(this).remove();
	bbCodeQuote.css('max-height', bbCodeQuote.prop('scrollHeight'));
})
</script>
<script>$('form :input[value="do_login"]').after('<input type="hidden" name="my_post_key" value="'+my_post_key+'" />');</script>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
[Image: Untitled.png]
got it.... thank you so much....

now it's working..... 😊
Still the required js file is missing as declared in your theme, which I have already mentioned.

This is your console:

[Image: Untitled.png]
This my script.js file which i have in my directory jscripts/script.js

jQuery(document).ready(function(){
   
    updateClock();
    wol();
    lastvisit();
    
   
});
 
  
function updateClock ()
    {
    var currentTime = new Date ( );
    var currentHours = currentTime.getHours ( );
    var currentMinutes = currentTime.getMinutes ( );
    var currentSeconds = currentTime.getSeconds ( );
    var d = new Date();
    var n = d.toLocaleDateString(); 
    // Pad the minutes and seconds with leading zeros, if required
    currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
    currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
 
    // Choose either "AM" or "PM" as appropriate
    var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
 
    // Convert the hours component to 12-hour format if needed
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
 
    // Convert an hours component of "0" to "12"
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;
 
    // Compose the string for display
    var currentTimeString = n+", "+currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
     
     
    $("#clock").html(currentTimeString);
   setInterval('updateClock()', 1000);
         
 }

function wol()
	{
		
		$.ajax({
 url: 'ajax.php?action=wol',
  type: 'post',
  success: function(data){
   // Perform operation on return value
   
   $("#wol").html(data);
  },
  complete:function(data){
   setTimeout(wol,3000); // check every 3 seconds 
  
  }
 });
}
function lastvisit ()
	{
		$.ajax({
 url: 'ajax.php?action=lastvisit',
  type: 'post',
  success: function(data){
   // Perform operation on return value
   
   $("#lastvisit").html(data);
   
  },
  complete:function(data){
   setTimeout(lastvisit,30000); // check every 30 seconds 
  
  }
 });
}

i don't know why it isn't showing , also coming 404 erroe...
The file is not located in the correct path.

System is finding it at
https://gossipion.xyz/jscripts/scripts.js

and throwing a 404 not found error.
got it , it's a rename issue
.

now it's showing
OK. You still have a couple of other issues related to additional libraries flow.js and musk.js which is not bundled with the MyBB installation and is added by your theme. You may like to address those issues as well. Since its out of MyBB bundle the theme creator may help you further with those ...

[Image: Untitled.png]
Pages: 1 2