Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

[PLUGIN] VestaCP Tools Plugin

Section with modification and patches for Vesta
Post Reply
  • Print view
Advanced search
26 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: [HOWTO] VestaCP Tools Plugin
  • Quote

Post by 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. :)
Top

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

Os: Debian 7x
Web: apache + nginx
Re: [HOWTO] VestaCP Tools Plugin
  • Quote

Post by 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
Top

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

Re: [HOWTO] VestaCP Tools Plugin
  • Quote

Post by 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. :)
Top

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

Re: [HOWTO] VestaCP Tools Plugin
  • Quote

Post by 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
Top

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

Re: [HOWTO] VestaCP Tools Plugin
  • Quote

Post by 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.
Top

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

Re: [PLUGIN] VestaCP Tools Plugin
  • Quote

Post by 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.
Top

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

Os: Debian 7x
Web: apache + nginx
Re: [PLUGIN] VestaCP Tools Plugin
  • Quote

Post by Spheerys » Fri May 19, 2017 7:58 pm

I'm also interrested by the source code :)
Top

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

Re: [PLUGIN] VestaCP Tools Plugin
  • Quote

Post by ArisC » Fri May 19, 2017 8:06 pm

I think VestaCP team need to integrate this.
Top

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

Re: [PLUGIN] VestaCP Tools Plugin
  • Quote

Post by 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
Top

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

Os: Debian 7x
Web: apache + nginx
Re: [PLUGIN] VestaCP Tools Plugin
  • Quote

Post by Spheerys » Sat May 27, 2017 8:33 am

Thank you :)
Top


Post Reply
  • Print view

26 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password