Page 2 of 3

Re: [HOWTO] VestaCP Tools Plugin

Posted: Mon Nov 28, 2016 10:29 pm
by SS88
duy13 wrote:
SS88 wrote: Unfortunately, it’s not possible to find and replace (anyone help me?) so you’ll have to edit the file /usr/local/vesta/web/templates/admin/panel.html and add the following code:

Code: Select all

<div class="l-menu__item <?php if($TAB == 'TOOLS' ) echo 'l-menu__item--active' ?>"><a href="/list/tools/"><?=__('Tools')?></a></div>
In-between the

Code: Select all

<div class="l-menu clearfix noselect"> </div>
HTML element.

I cannot tell you exactly what line to place this on, but it may be around 20-23.
You can try with sed command, It works:

Code: Select all

cp /usr/local/vesta/web/templates/admin/panel.html /usr/local/vesta/web/templates/admin/panel.html.bak

sed -i '/<div class="l-menu clearfix noselect">/a <div class="l-menu__item <?php if($TAB == "All" ) echo "l-menu__item--active" ?>"><a href="/list/tools/"><?=__("All")?></a></div>' /usr/local/vesta/web/templates/admin/panel.html
Image
Thank you! Greatly appreciated - I have modified the script to to this. :)

Re: [HOWTO] VestaCP Tools Plugin

Posted: Thu Feb 23, 2017 10:02 pm
by Spheerys
Very nice addon, thank you :)

Few suggestions :
- add the sort option for disk and bandwidth columns
- [Domains tab] make the domain name clickable width a link to the domain

Re: [HOWTO] VestaCP Tools Plugin

Posted: Mon Apr 10, 2017 12:20 pm
by SS88
Spheerys wrote:Very nice addon, thank you :)

Few suggestions :
- add the sort option for disk and bandwidth columns
- [Domains tab] make the domain name clickable width a link to the domain
Thank you for your comments Spheerys. Sorry for the delay, but these are now in Version 1.1. You can just run the installer again and it will be updated. :)

Re: [HOWTO] VestaCP Tools Plugin

Posted: Mon Apr 10, 2017 12:22 pm
by SS88
Version 1.1 has been released:
  • Various bug fixes (fixing of columns, bar fixes)
  • Sorting of disk and bandwidth columns now works
  • Domain is now clickable on the domains tab
  • Users tab is default to first show

Re: [HOWTO] VestaCP Tools Plugin

Posted: Mon Apr 10, 2017 12:24 pm
by SS88
linux81 wrote:Hello.

It is useful.

Interests a question whether it is possible to adapt for Vesta 12?
I do not know - have you tested this?

It uses the Vesta API so some features may not work.

Re: [PLUGIN] VestaCP Tools Plugin

Posted: Fri May 05, 2017 9:37 am
by seelwerk
Hi,
nice work. Would it be possible to publish the Source Code e.g. on Github to allow everyone to contribute?
Also I would avoid including external ressources into such a critical webapplication. Imagine what happens if one of the providers will be hijacked and e.g. the "sorttable.js" might deliver malicious code.

Re: [PLUGIN] VestaCP Tools Plugin

Posted: Fri May 19, 2017 7:58 pm
by Spheerys
I'm also interrested by the source code :)

Re: [PLUGIN] VestaCP Tools Plugin

Posted: Fri May 19, 2017 8:06 pm
by ArisC
I think VestaCP team need to integrate this.

Re: [PLUGIN] VestaCP Tools Plugin

Posted: Fri May 19, 2017 8:29 pm
by SS88
Spheerys wrote:I'm also interrested by the source code :)
It is now on GitHub (bad code but it works ;D!)

https://github.com/SS88UK/VestaCP-Tools-Plugin

Re: [PLUGIN] VestaCP Tools Plugin

Posted: Sat May 27, 2017 8:33 am
by Spheerys
Thank you :)