GenerateApps / sToP

Change VistaPanel logo using Control Panel Ad Code in minutes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


GenerateScripts (formerly VistaScripts.js) is a new way to customize your VistaPanel. For example, you can change the logo to a remote URL using GenerateScripts
How to install: Login to your MyOwnFreeHost account & click "Your Adverts", and then "Control Panel Advert Control", select your domain and copy & paste the code below:

Initial Code

<script src="https://cdn.jsdelivr.net/gh/GenerateApps/GenerateScripts/VistaScripts.js"></script>

Example code for changing logo to remote URL

<script src="https://cdn.jsdelivr.net/gh/GenerateApps/GenerateScripts/VistaScripts.js"></script> <script> SetVpLogoImage("https://github.com/GenerateApps/GenerateArea/raw/dev/assets/default/img/garea_outline.png"); </script>
Make sure to replace "https://github.com/GenerateApps/GenerateArea/raw/dev/assets/default/img/garea_outline.png" with a different remote URL if needed.

Example code for hiding sidebar

<script src="https://cdn.jsdelivr.net/gh/GenerateApps/GenerateScripts/VistaScripts.js"></script> <script> HideSidebar(); </script>

Example code for removing element

<script src="https://cdn.jsdelivr.net/gh/GenerateApps/GenerateScripts/VistaScripts.js"></script> <script> HideElementDetails('sitereptile', PAGE.appGroups); </script>

Example code for changing link of element

<script src="https://cdn.jsdelivr.net/gh/GenerateApps/GenerateScripts/VistaScripts.js"></script> <script> SetElementDetails('sitereptile', 'https://app.example.com/u/view_account/'+username, 'url', PAGE.appGroups); SetElementDetails('sitereptile', 'Advanced Account Settings', 'itemdesc', PAGE.appGroups); SetElementDetails('sitereptile', 'website', 'searchtext', PAGE.appGroups); </script>
Make sure to replace "https://app.example.com/u/view_account/'+username" with a different remote URL if needed.

Can I use GenerateScripts and Wybe Network VistaPanel Customizations at the same time?

Yes you can.

About

Change VistaPanel logo using Control Panel Ad Code in minutes

License:MIT License


Languages

Language:JavaScript 100.0%