Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MYPS Backup
May 29, 2007, 11:54 AM (This post was last modified: Jun 22, 2007 04:57 PM by LeX-.)
Post: #1
MYPS Backup
Code:
/*

* User MYPS // MYPS Settings // MYPS LOGS BackUp Module (MYPS ADDON) for MyBB 1.2.7
* By: LeX-
* Website: http://www.thingiej.be
* Version: 1.0

*/


Read the "readme.txt" before doing anything ! It just needs a couple file/image uploads.

------------------------------------------------------


I've created some sort of 'backup system' in the ACP.

* - First its check if backup table exists ::

If not ::

[Image: first_acp.jpg]

If

[Image: second_acp.jpg]


* - When it's created you see a new button ( BackUp ) [ see above ], when pressing it

[Image: third_acp.jpg]

If you backup for a second or third ... time it will do a check. If myps in usertable == myps in backuptable for a certain user, it won't be updated, it will be skipped. Saves you a query =P

* - When the table is "filled" you will see another button appear ( Set ) + possibility to print out the content of the backup table

When pressing the set button, it sets the myps to each user back.
[Image: fourth_acp.jpg]

When pressing the print button ( for the test i gave in Users Per Page = 2 )
[Image: fifth_acp.jpg]


Attached File(s)
.zip  MYPS_BACKUP.zip (Size: 7.08 KB / Downloads: 50)

Visit this user's website Find all posts by this user
Quote this message in a reply
May 31, 2007, 02:06 PM (This post was last modified: May 31, 2007 02:19 PM by LeX-.)
Post: #2
RE: MYPS 1.09 Released ....again
labrocca Wrote:You can view it in the extras folder ..worktable.txt.


Quote:11. Create save settings ability for updating.

Done ^^ . Was almost the same as 'Backup User MYPS' .

Page

[Image: backup_acp.jpg]

Print Page

[Image: print_acp.jpg]

Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 10, 2007, 02:05 AM
Post: #3
RE: MYPS Backup
I just want to give a heads up that I have tested this addon and it seems to be functional. I fixed a couple bugs in it and some behaviors.

Lex...you had the form actions as myps.php instead of myps_backup.php. And I also removed the code where each table had a blank entry (assume that was for testing and not removed).

Check it and let me know. It's a good little addon you made and it will be VERY helpful. It's also better that it's NOT part of myps core. Very good and thanks once again.

The file I have already uploaded so feel free to check it.

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 10, 2007, 02:33 AM (This post was last modified: Jun 10, 2007 06:28 AM by LeX-.)
Post: #4
RE: MYPS Backup
labrocca Wrote:Lex...you had the form actions as myps.php instead of myps_backup.php. And I also removed the code where each table had a blank entry (assume that was for testing and not removed).


The form action i didn't notice, i've copied the code from the plugin, i first integrated it into the plugin and then decided to make an addon of it =P So original it was myps.php, but forgot to change it when it was in the addon =P
And the blank entry wasn't for testing ! =P That's for tracking down the time of the backup, i gave it 0 cause no user with myps has that uid , so it can't cause any problems =P Every time a backup takes place, the time of that uid gets updated ... =P I didn't put it into a setting, that can be seen from the Board Settings ... cause it may not be edited, else the backuptime will be screwed up =P ! And if people can't 'see' it, they will not try to change it =P

Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 10, 2007, 04:54 AM
Post: #5
RE: MYPS Backup
Worked a treat for me thanks
Find all posts by this user
Quote this message in a reply
Jun 10, 2007, 11:05 PM
Post: #6
RE: MYPS Backup
Oh hey...any chance you will backup the logs? Smile

CLICK HERE to find out more about a custom theme design for mybb.
[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 11, 2007, 10:07 AM (This post was last modified: Jun 11, 2007 11:57 AM by LeX-.)
Post: #7
RE: MYPS Backup
labrocca Wrote:Oh hey...any chance you will backup the logs? Smile

Great ID =P Will start on that this evening Wink

Edit ::

There's need for "printing out" ? =P

Edit2 ::

Done, but no print out =P

Visit this user's website Find all posts by this user
Quote this message in a reply
Oct 09, 2007, 11:54 PM
Post: #8
RE: MYPS Backup
Erm, what's this?
Find all posts by this user
Quote this message in a reply
Dec 06, 2007, 08:41 AM
Post: #9
RE: MYPS Backup
This is a brilliant idea. I've got a backup of my forum at all times (plugins deactivated) so this should help me keep track of everything

Super plugins Smile
Find all posts by this user
Quote this message in a reply
Mar 01, 2008, 07:03 PM
Post: #10
RE: MYPS Backup
Thanks mate, I'm always worried about losing everything on my site....specially considering im not very confident with editing it...I'm new to all this u see. Thanks for this.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  MYPS Referrals labrocca 3 315 Sep 20, 2008 08:42 PM
Last Post: labrocca
  MYPS Mybet labrocca 10 605 Sep 20, 2008 07:21 PM
Last Post: labrocca
  MYPS Log Prune labrocca 0 152 Mar 08, 2008 07:19 PM
Last Post: labrocca
  MYPS Restriction LeX- 1 544 May 18, 2007 05:03 PM
Last Post: labrocca

Forum Jump:



MyBB Topsite icon buffet