Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
The following changes have been made:
* Add AlterVP
* Add and update minified scripts
* Update credits
* Update jsDelivr URLs to correctly point to the new version, so that they're not cached
* Add CDN option in READMEs that missed it
* Update README, move translations to their own folder
* Update LICENSE, replace year with 2022 and revert an old change that could create a legal issue
* Fix #18, hopefully
  • Loading branch information
4yx committed Aug 30, 2022
1 parent 56982c2 commit 2ac5e43
Show file tree
Hide file tree
Showing 26 changed files with 373 additions and 128 deletions.
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT ATTRIBUTION License

Copyright (c) 2019-2021 Wybe Network
Copyright (c) 2019-2022 Wybe Network

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -27,5 +27,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

CREDITS TO THE AUTHORS SHALL NOT BE REMOVED WITHOUT WRITTEN AUTHORIZATION BY THE
AUTHORS THEMSELVES. BY REMOVING THE CREDITS, YOU ARE
AUTHORS THEMSELVES. BY REMOVING THE CREDITS WITHOUT WRITTEN AUTHORIZATION, YOU ARE
NOT ALLOWED TO USE THE SOFTWARE.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# VistaPanel Customizations
#### A repository filled with JS and CSS scripts for customizing VistaPanel.
[![Available in Greek](https://img.shields.io/badge/Available%20In-Greek-blue.svg?longcache=true&style=for-the-badge&colorA=2abbea)](translations/README_el.md)

**A repository filled with JS and CSS scripts for customizing VistaPanel.**

You **MUST** read and follow the LICENSE file before using any of the scripts here.
Developed by Wybe Network for the MOFH community.
Expand All @@ -17,14 +19,14 @@ If you find an issue and want to fix it, submit a PR and we will check it. If it
Go to each script's folder and find the script you want to use. There will be instructions on how to do so.

Read the instructions file first, after understanding it go ahead and
use jsDelivr with the method described in the article
or download the file and upload it to your site or to a CDN.
use jsDelivr / our CDN with the method described in the article,
or download the file and upload it to your site / CDN.

You can also make use of our cdn at https://vpc.cdn.wybenetwork.com/ {scriptname}/{scriptfilename.js}
You can make use of our CDN at https://vpc.cdn.wybenetwork.com/{scriptname}/{scriptfilename.js}.

# Documentation

You can find the documentation for VistaPanel customizations at https://docs.wybenetwork.com/
You can find the documentation for VistaPanel customizations at https://docs.wybenetwork.com.

# Copyright Info
Copyright 2019-2021 © Wybe Network. All Rights Reserved, check the [LICENSE](LICENSE.md) for more details.
Copyright 2019-2022 © Wybe Network. All Rights Reserved, check the [LICENSE](LICENSE.md) for more details.
85 changes: 85 additions & 0 deletions altervp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# AlterVP

## Haven't I heard of this?
You may have, indeed! It was a [tool created by xpde/woxly](https://www.byet.net/index.php?/topic/2705-altervp/), that unfortunately disappeared.
There was no archive of it available, so I [(Anyx)](https://github.com/4yx) recreated it from scratch.

## What does it do?
It has the following features:
* Change the Title
* Change the Protocol
* Change the Logo
* Change the Theme
* Add your own Credits
* Organized Code
* Clean Setup usage

## Where should I put it?
Put it in the Footer Advert Area.

## How can I install it?
Apply this code anywhere, within a script tag:
```js
const AlterVP = {
title: "AlterVP - vPanel",
logo: "logo.png",
protocol: "https",
theme: "dark",
category: "normal", // normal, lite, lightspace
credits: {
desc: "AlterVP",
logo: "small-logo.png"
}
};
```
Replace the values inside with the ones you want for your panel.

Afterwards, create a script tag with `src` pointing to `altervp.js` or `altervp.min.js` for the minified version.

We have also provided a ready code below, along with an explanation as to why GitHub's RAW file output cannot be used.

### Content-Type Header Errors
The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all.
To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN.

The full code, using jsDelivr:
```html
<script type="text/javascript">
const AlterVP = {
title: "AlterVP - vPanel",
logo: "logo.png",
protocol: "https",
theme: "dark",
category: "normal", // normal, lite, lightspace
credits: {
desc: "AlterVP",
logo: "small-logo.png"
}
};
</script>
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/altervp/altervp.js" type="text/javascript"></script>
```
Alternatively, you can use our CDN:
```html
<script type="text/javascript">
const AlterVP = {
title: "AlterVP - vPanel",
logo: "logo.png",
protocol: "https",
theme: "dark",
category: "normal", // normal, lite, lightspace
credits: {
desc: "AlterVP",
logo: "small-logo.png"
}
};
</script>
<script src="https://vpc.cdn.wybenetwork.com/altervp/altervp.js" type="text/javascript"></script>
```
Feel free to remove the comment line symbol (``//``) that explains the type of theme categories you can have.

## Changelog
* Created on 14 September 2018 by [woxly](https://github.com/woxly)
* Modified on 14 September 2018 by [woxly](https://github.com/woxly)
* Lost in time
* Recreated on 30 August 2022 by [Anyx](https://github.com/4yx)
40 changes: 40 additions & 0 deletions altervp/altervp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Created on 14 September 2018 by woxly
* Recreated on 30 August 2022 by Anyx
* DO NOT REMOVE CREDITS!
*/
document.addEventListener("DOMContentLoaded", function() {
// Title
document.title = AlterVP.title;
// Protocol
if (window.location.protocol.replace(/:/g,'') !== AlterVP.protocol) {
location.protocol = AlterVP.protocol;
}
// Logo
document.getElementById("imgLogo").src = AlterVP.logo;
// Themes
if (AlterVP.category !== "lightspace") {
themeURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'styles.css'].join("/");
if (AlterVP.category == "normal") {
iconURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'icon_spritemap.css'].join("/");
icon = document.createElement('link');
icon.type = 'text/css';
icon.rel = 'stylesheet';
icon.href = iconURL;
document.head.appendChild(icon);
}
} else {
themeURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'panel.css'].join("/");
}
theme = document.createElement('link');
theme.type = 'text/css';
theme.rel = 'stylesheet';
theme.href = themeURL;
document.head.appendChild(theme);
// Credits
script = document.createElement('script')
script.setAttribute('type', 'text/javascript')
script.innerHTML = "window.addEventListener('load',function(){document.getElementById('imgPoweredByCpanel').src=AlterVP.credits.logo})"
document.body.appendChild(script)
document.getElementById("txtCpanelVersion").innerHTML = AlterVP.credits.desc;
});
16 changes: 16 additions & 0 deletions altervp/altervp.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Created on 14 September 2018 by woxly
* Recreated on 30 August 2022 by Anyx
* DO NOT REMOVE CREDITS!
*/
document.addEventListener("DOMContentLoaded",function(){
// Title
document.title=AlterVP.title,
// Protocol
window.location.protocol.replace(/:/g,"")!==AlterVP.protocol&&(location.protocol=AlterVP.protocol),
// Logo
document.getElementById("imgLogo").src=AlterVP.logo,
// Themes
"lightspace"!==AlterVP.category?(themeURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"styles.css"].join("/"),"normal"==AlterVP.category&&(iconURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"icon_spritemap.css"].join("/"),icon=document.createElement("link"),icon.type="text/css",icon.rel="stylesheet",icon.href=iconURL,document.head.appendChild(icon))):themeURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"panel.css"].join("/"),theme=document.createElement("link"),theme.type="text/css",theme.rel="stylesheet",theme.href=themeURL,document.head.appendChild(theme),
// Credits
script=document.createElement("script"),script.setAttribute("type","text/javascript"),script.innerHTML="window.addEventListener('load',function(){document.getElementById('imgPoweredByCpanel').src=AlterVP.credits.logo})",document.body.appendChild(script),document.getElementById("txtCpanelVersion").innerHTML=AlterVP.credits.desc});
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/* **************************************************************************
*
/* **************************************************************************
*
* VistaPanel Add-on
* Script Name: "Change Password" Link and Text Changer
* Author: MAHOfficial & VPT (VistaPanel Team)
* Author URL: https://mahofficial.win
* Author: MAHOfficial & Wybe Network
* Author URL: https://mahofficial.wybenetwork.com
* Version: 1.0
* Github Project URL: https://github.com/VPTOfficial/VistaPanel-Customizations
* Official Website URL: https://vpthemes.win
* GitHub Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations
* Official Website URL: https://wybenetwork.com
* This file is licensed under MIT Attribution
* Last Updated on 8th August 2020 by MAHOfficial
*
************************************************************************** */
**************************************************************************
*/
var t = ["item_", "icon-"];
for (n=0; n<=1; n++)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
document.getElementById("item_change_language").setAttribute("href",change_language_link),document.getElementById("item_change_language").innerHTML=change_language_text;
/* **************************************************************************
*
* VistaPanel Add-on
* Script Name: "Change Password" Link and Text Changer
* Author: MAHOfficial & Wybe Network
* Author URL: https://mahofficial.wybenetwork.com
* Version: 1.0
* GitHub Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations
* Official Website URL: https://wybenetwork.com
* This file is licensed under MIT Attribution
* Last Updated on 8th August 2020 by MAHOfficial
*
**************************************************************************
*/
var t=["item_","icon-"];for(n=0;n<=1;n++)document.getElementById(`${t[n]}change_language`).setAttribute("href",change_language_link),document.getElementById(`${t[n]}change_language`).innerHTML=change_language_text;
23 changes: 15 additions & 8 deletions change-language-link-text-changer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,40 @@ Basically, it does what the title says!
It changes the link and text of the "Change Language" button, allowing you to add your own function there.

## Where should I put it?
Put it in the Footer Advert Area (Recommended)
Put it in the Footer Advert Area.

## How can I install it?

Put the following code in the Footer Advert Area from MyOwnFreeHost admin panel.
Put the following code in the Footer Advert Area on the MyOwnFreeHost admin panel.

Before you do that, make sure to replace `your_website_url` in the code with your website URL and replace `your_text` with the text you want to be shown there.

The `var change_language_link = "your_website_url"` variable will replace the "Change Language" URL from vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Language" text with whatever you enter as text.
The `var change_language_link = "your_website_url"` variable will replace the "Change Language" URL on vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Language" text with whatever you enter as text.


### Content-Type Errors
The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all.
To solve this, we need an external service which adds the correct type, like jsDelivr.
To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN.

The full code, using jsDelivr:

```html
<script type="text/javascript">
var change_language_link = "your_website_url",
change_language_text = "your_text";
</script>
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script>
```
Alternatively, you can use our CDN:
```html
<script type="text/javascript">
var change_language_link = "your_website_url",
change_language_text = "your_text";
change_language_text = "your_text";
</script>
<script src="https://cdn.jsdelivr.net/gh/VPTOfficial/VistaPanel-Customizations/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script>
<script src="https://vpc.cdn.wybenetwork.com/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script>
```


## Can I remove credits?
No. The license mentions it.

You can request credit removal at our [support forums](https://vpthemes.win) or on our [Discord Server](https://discord.gg/FTyFXsU).
You can request credit removal at our [support forums](https://wybenetwork.com) or on our [Discord Server](https://dsc.gg/ifastnet).
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Vista Panel Add-on
/*
* VistaPanel Add-on
* Script Name: "Change Password" Link and Text Changer
* Author: MAHOfficial & VPT (Vista Panel Themes) Team
* Author URL: https://mahofficial.win
* Author: MAHOfficial & Wybe Network
* Author URL: https://mahofficial.wybenetwork.com
* Version: 1.0
* Github Project URL: https://github.com/VPTOfficial/VistaPanel-Customizations
* Official Website URL: https://vpthemes.win
* This file is licensed under MIT
* Github Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations
* Official Website URL: https://wybenetwork.com
* This file is licensed under MIT Attribution
*
* Modified at 2 November 2018 by PlanetCloud
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
var n=document.getElementById("lnkUserPrefChangePwd");n.setAttribute("href",change_password_link);n.innerHTML=change_password_text;
/*
* VistaPanel Add-on
* Script Name: "Change Password" Link and Text Changer
* Author: MAHOfficial & Wybe Network
* Author URL: https://mahofficial.wybenetwork.com
* Version: 1.0
* Github Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations
* Official Website URL: https://wybenetwork.com
* This file is licensed under MIT Attribution
*
* Modified at 2 November 2018 by PlanetCloud
*/
var n=document.getElementById("lnkUserPrefChangePwd");n.setAttribute("href",change_password_link),n.innerHTML=change_password_text;
22 changes: 15 additions & 7 deletions change-password-link-text-changer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,39 @@ Basically, it does what the title says!
It changes the link and text of the "Change Password" button, allowing you to add your own function there.

## Where should I put it?
Put it in the Footer Advert Area (Recommended)
Put it in the Footer Advert Area.

## How can I install it?

Put the following code in the Footer Advert Area from MyOwnFreeHost admin panel.
Put the following code in the Footer Advert Area on the MyOwnFreeHost admin panel.

Before you do that, make sure to replace `your_website_url` in the code with your website URL and replace `your_text` with the text you want to be shown there.

The `var change_language_link = "your_website_url"` variable will replace the "Change Password" URL from vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Password" text with whatever you enter as text.
The `var change_password_link = "your_website_url"` variable will replace the "Change Password" URL on vPanel and the `var change_password_text = "your_text"` variable will replace the "Change Password" text with whatever you enter as text.

### Content-Type Errors
The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all.
To solve this, we need an external service which adds the correct type, like jsDelivr.
To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN.

The full code, using jsDelivr:

```html
<script type="text/javascript">
var change_password_link = "your_website_url",
change_password_text = "your_text";
</script>
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script>
```
Alternatively, you can use our CDN:
```html
<script type="text/javascript">
var change_password_link = "your_website_url",
change_password_text = "your_text";
change_password_text = "your_text";
</script>
<script src="https://cdn.jsdelivr.net/gh/VPTOfficial/VistaPanel-Customizations/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script>
<script src="https://vpc.cdn.wybenetwork.com/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script>
```

## Can I remove credits?
No. The license mentions it.

You can request credit removal at our [support forums](https://vpthemes.win) or on our [Discord Server](https://discord.gg/FTyFXsU).
You can request credit removal at our [support forums](https://wybenetwork.com) or on our [Discord Server](https://dsc.gg/ifastnet).
12 changes: 5 additions & 7 deletions cpanel-logo-to-copyright/cpanel-logo-to-copyright.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Created at 10 July 2018 by PlanetCloud
* Last modified at 02 November 2018 by PlanetCloud
* DO NOT REMOVE CREDITS!
*/
document.addEventListener("DOMContentLoaded", function() {
if ("undefined" !== typeof b) {
var a = document.getElementById("lnkPoweredByCpanel"),
Expand All @@ -11,11 +16,4 @@ document.addEventListener("DOMContentLoaded", function() {
'" style="display:inline-block; z-index:2147483647; visibility:visible;">';
d.innerHTML = b.company_started < c ? "\u00a9 " + b.company_started + "-" + c + " " + b.company_name + "." : "\u00a9 " + c + " " + b.company_name + "."
}

/*
* Created at 10 July 2018 by PlanetCloud
* Lase modified at 02 November 2018 by PlanetCloud
* DO NOT REMOVE CREDITS!
*/

});
8 changes: 6 additions & 2 deletions cpanel-logo-to-copyright/cpanel-logo-to-copyright.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ac5e43

Please sign in to comment.