XF2 Upgrade Thread

  • Thread starter Thread starter Sushubh
  • Start date Start date
  • Replies Replies 113
  • Views Views 14,838

Which theme?


  • Total voters
    7
nope. completely lost lol. anyhow.
 
JavaScript:
<script type="text/javascript">
if($("ul.pageNav-main li:last-child.pageNav-page--current").length!=0 || $("ul.pageNav-main").length==0)
{
$("article:last-child a.actionBar-action--mq").remove();
$("article:last-child a.actionBar-action--reply").remove();
}
</script>

should be visible in code right now. does not seem to do anything. i really have no idea what i am doing here tbh. 😑😶
 
remove the script from pageContent div and add the code after the following block in the template
Code:
$('body').on('click','.qq-upload-insert',function(e){             
e.preventDefault();             
var imageURL = $(this).closest('li').find('.lgximgurl').text();             
XF.insertIntoEditor($('.js-editor').parent(), "<br/><img src='"+imageURL+"'><br/>", "\n[IMG]"+imageURL+"[/IMG]\n");         
});
 


that is for multi-quote. i can hide it too. but multi-quote has its uses and no one seems to be using it to quote reply the latest post in the thread as you have to press a button (insert quote) to post quote in the quick reply box!

the above solution basically fixed the main annoyance on this theme. now have to see if i can replicate this code change in the regular theme as well. it is still not updated for the latest xenforo update. though i am now considering keeping xenforo default theme as default here as well. it seems to work fine.
 

Top