• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Znote Acc, Admin news page. Resizable image

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,077
Solutions
15
Reaction score
370
Location
Sweden
YouTube
Joriku
Hi,
so I am getting tired of needing to do photoshop work for a pixel too big or small and I'd like to see if there's already out there.
I'd love an admin news page where the editor allows you to simply change the picture res manually by dragging it.

Just like this, like Otland thread has it
1668146444951.png
 
Last edited:
Hi,
so I am getting tired of needing to do photoshop work for a pixel too big or small and I'd like to see if there's already out there.
I'd love an admin news page where the editor allows you to simply change the picture res manually by dragging it.

Just like this, like Otland thread has it
View attachment 71610

You will need to replace the editor in this case.

On admin_news.php, line 25-26 notepad:
Lua:
<script src="engine/js/nicedit.js" type="text/javascript"></script>
        <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
Delete this,
Line 46 starting on <textarea> markdown, delete the entire line,

Add this,
Code:
<textarea name="editor"></textarea>
    <script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
    <script>
    tinymce.init({ selector:'textarea' });
    </script>

It asks to create an account for registered domain,
1668329864167.png

Create a new one, and get started, there is also a paid features for the editor.

You can try it here: The Most Advanced WYSIWYG HTML Editor | Trusted Rich Text Editor | TinyMCE (https://www.tiny.cloud/)
 
Back
Top