Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Product Suggestions

Product Suggestions Do you have any suggestion for this version? Please, share it here.

Reply
 
Thread Tools Display Modes
Old 05-10-2012, 04:28 PM   #1
rdarling
New Vivvo User
 
Join Date: Aug 2010
Posts: 16
Rep Power: 0
rdarling is on a distinguished road
Default Restore Database

I just wanted to say "Thank you!!!!" for not putting a JavaScript confirm dialog box on the link that allows you to restore a database. I was going through deleting backups and managed to accidentally click "Restore Database" instead of "Delete" on the maintenance page and now I have lost all the work done for the day. Again I say "Thank you!!!"

Once again it looks like I will have to sift through the code in this horribly documented system so that I may fix the problem myself.
rdarling is offline   Reply With Quote
Old 05-11-2012, 04:08 AM   #2
noncasus
Senior Vivvo User
 
Join Date: Dec 2008
Posts: 422
Rep Power: 5
noncasus is on a distinguished road
Default

Happened to me too, but I had lost about a week's worth of data
noncasus is offline   Reply With Quote
Old 05-17-2012, 06:58 PM   #3
rdarling
New Vivvo User
 
Join Date: Aug 2010
Posts: 16
Rep Power: 0
rdarling is on a distinguished road
Default Confirmation Dialog Box for Restore Database

If anybody is wondering I went ahead and made a fix for this issue.

Open 'admin\templates\maintenance\backup_files.xml'
Around line 45 you will find something like this:

<img src="img/icon_database_restore.gif" onclick="$('report_window').src = 'db_maintence.php?restore&amp;file={file.get_basen ame}.{file.extension}';" alt="{LNG_ADMIN_DATABASE_RESTORE}" title="{LNG_ADMIN_DATABASE_RESTORE}" />

Add the following just before '$('report_window')'

if(confirm('Are you sure you want to restore from this backup?'))

The whole line should look like the one below.

<img src="img/icon_database_restore.gif" onclick="if(confirm('Are you sure you want to restore from this backup?'))$('report_window').src = 'db_maintence.php?restore&amp;file={file.get_basen ame}.{file.extension}';" alt="{LNG_ADMIN_DATABASE_RESTORE}" title="{LNG_ADMIN_DATABASE_RESTORE}" />

This will now make a confirmation dialog box appear when you click the restore button.
rdarling is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 09:20 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.