We are starting CHRISTMAS Sale. Get 30% OFF on lifetime licenses with code: FYSKK72

[PLUGIN] VestaCP Tools Plugin Topic is solved

Section with modification and patches for Vesta
SS88
Posts: 298
Joined: Thu Nov 19, 2015 12:40 pm

Re: [HOWTO] VestaCP Tools Plugin

Postby SS88 » Mon Nov 28, 2016 10:29 pm

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. :)

Spheerys
Posts: 126
Joined: Tue Dec 29, 2015 12:36 pm

Re: [HOWTO] VestaCP Tools Plugin

Postby Spheerys » Thu Feb 23, 2017 10:02 pm

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

SS88
Posts: 298
Joined: Thu Nov 19, 2015 12:40 pm

Re: [HOWTO] VestaCP Tools Plugin

Postby SS88 » Mon Apr 10, 2017 12:20 pm

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. :)

SS88
Posts: 298
Joined: Thu Nov 19, 2015 12:40 pm

Re: [HOWTO] VestaCP Tools Plugin

Postby SS88 » Mon Apr 10, 2017 12:22 pm

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

SS88
Posts: 298
Joined: Thu Nov 19, 2015 12:40 pm

Re: [HOWTO] VestaCP Tools Plugin

Postby SS88 » Mon Apr 10, 2017 12:24 pm

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.

seelwerk
Posts: 1
Joined: Fri May 05, 2017 9:33 am

Re: [PLUGIN] VestaCP Tools Plugin

Postby seelwerk » Fri May 05, 2017 9:37 am

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.

Spheerys
Posts: 126
Joined: Tue Dec 29, 2015 12:36 pm

Re: [PLUGIN] VestaCP Tools Plugin

Postby Spheerys » Fri May 19, 2017 7:58 pm

I'm also interrested by the source code :)

ArisC
Posts: 29
Joined: Tue Apr 18, 2017 1:37 pm

Re: [PLUGIN] VestaCP Tools Plugin

Postby ArisC » Fri May 19, 2017 8:06 pm

I think VestaCP team need to integrate this.

SS88
Posts: 298
Joined: Thu Nov 19, 2015 12:40 pm

Re: [PLUGIN] VestaCP Tools Plugin

Postby SS88 » Fri May 19, 2017 8:29 pm

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

Spheerys
Posts: 126
Joined: Tue Dec 29, 2015 12:36 pm

Re: [PLUGIN] VestaCP Tools Plugin

Postby Spheerys » Sat May 27, 2017 8:33 am

Thank you :)


Return to “Modification & Patches”



Who is online

Users browsing this forum: No registered users and 2 guests

cron