vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   PLS Hard Install Template Wizard (https://vborg.vbsupport.ru/showthread.php?t=73513)

Darkwaltz4 12-29-2004 10:00 PM

PLS Hard Install Template Wizard
 
Introduction:
-------------
Do you have 7 styles and the instructions to a hack you are installing only allow you to do one at a time?
Tired of having to keep track of changes over your 7 styles, and wish that you only had to edit one of the custom templates you added?
---OR EVEN---
Do you want a backup that you can just run by itself without requiring you to manually run a dozen programs, and follow vague instructions?
Are you a hack writer and give up on writing installers for your templates, because the vbulletin template system is so messy?

Well, now with the PLS Hard Install Template Wizard, you can manage all of these things quickly and easily.
The Press function allows you to make any custom template/edited template one of the templates in the master set, cleaning up your template system, and quickly passing on changes to your templates to all of your styles at once, and they become more permanant, allowing you to revert back to the state you Press it to, even if you do more edits.
The Lift function will take the templates that you select and render a new php file, which you can run by itself to install those templates to the master set for backup. If you write hacks, you can create your templates live and then this wizard will automatically create template installers from them, you can just toss the file it creates in with the rest of the installation files for your hack, and the templates will be installed to the master set, which is far more convenient for your clients.

Installation is quick, just place this one file into your admincp folder, and edit the index if you want a link to it.
If you do use the Stick files in your hack installer, just don't edit out the credit line to me.
If you use this hack, do click install so you will be alerted to updates should you need anything.
As with all of my hacks, I am willing to help with any problem you might encounter, and entertain any suggestion, since I usually take awhile to believe I'm done with a hack myself!

Update v3.1.2:
--Main:
Cleaner files, less security loops
Error message on empty selections
Clearer and cleaner instructions
Better Navigation
Screenshots (Attachment: pls_screens.zip)
--Pressing:
Removed edit links from list, security issue
Error message on Master Set Pressing attempt
Press confirmation requirement
Option to delete custom templates from selected styles or all styles
--Lifting:
Download now on blank screen, static issues
Support for version data
--Sticking:
More visually appealing
Cleaner and smaller files, less security issues
Stick confirmation requirement
Removed delete routine, now message advising revert
Flat queries, instead of one per template

Upgrade Instructions:
Upload new pls_admin.php file to admincp folder
Any previously created Stick files will still work

Future Features:
Checkall Box
Phrasing Support

SnowBot 12-30-2004 06:40 PM

Any screenshots / demos please.

Floris 12-31-2004 01:31 AM

Sorry for being dumb as I didn't try the hack yet.

Doesn't vBulletin do this in default?

Master style : drop down > add template > adds to all templates.

parent style : edit a template > inherits to all child template.

theArchitect 12-31-2004 02:42 AM

Quote:

Originally Posted by floris
Sorry for being dumb as I didn't try the hack yet.

Doesn't vBulletin do this in default?

Master style : drop down > add template > adds to all templates.

parent style : edit a template > inherits to all child template.

I am of a similar mind. Though not being a master at vB modifications I could be missing something.

Darkwaltz4 12-31-2004 04:48 AM

Quote:

Originally Posted by floris
Sorry for being dumb as I didn't try the hack yet.

Doesn't vBulletin do this in default?

Master style : drop down > add template > adds to all templates.

parent style : edit a template > inherits to all child template.

the press function has the effect of adding a template to all styles, but what it DOES, is make a custom version of a template become the 'default' template, by replacing it into the master template set (id: -1) such that further edits to such templates become revertable, not deletable. additionally, newly added templates can be pressed onto the master set as well, and even adding a new style will make the custom template now part of the set that is created. also, the other half of this wizard is useful for hack writers, such that admins can select templates that they have worked on, live on their test forums, and have this wizard lift them off and render a php file which can be run again (by itself) to install those templates into the master set. so, if they want to have an install file for the templates of their hack, they can use this wizard to create them in a matter of seconds, and the people who then install their hacks just have to run the file along with the rest of the install things, except that the templates wont require complicated import instructions, or requiring them to manually add in 20 templates to each of their styles.

i actually wrote this for myself, for the template install file rendering feature, and some of my other vborg hacks will be using pls-rendered files for the templates :-p

screenshots arent interesting because this is a utility hack....the main screen has a style chooser and an option chooser (press or lift), and then clicking submit brings up the list of available templates to choose from, you check the checkboxes next to the ones you want, and it does its job (or a download prompt). after downloading a lifted file, you can re-upload it again and run it to hard-install those templates, such as for future backup, or as a template installer as part of another hack. (again, not really needing screenshots). however, when i update my dorm hack ill link to the file that this hack produces, as an example of the output file if youd like

lasto 01-10-2005 02:57 AM

zip is weird can see 2 files in it but when go to extract get this error

! \Desktop\pls_hitw.zip: Unknown method in pls_admin.php
! \Desktop\pls_hitw.zip: Unknown method in instructions.txt
! \Desktop\pls_hitw.zip: No files to extract

Darkwaltz4 01-15-2005 11:51 PM

Update v3.1.2:
--Main:
Cleaner files, less security loops
Error message on empty selections
Clearer and cleaner instructions
Better Navigation
Screenshots (Attachment: pls_screens.zip)
--Pressing:
Removed edit links from list, security issue
Error message on Master Set Pressing attempt
Press confirmation requirement
Option to delete custom templates from selected styles or all styles
--Lifting:
Download now on blank screen, static issues
Support for version data
--Sticking:
More visually appealing
Cleaner and smaller files, less security issues
Stick confirmation requirement
Removed delete routine, now message advising revert
Flat queries, instead of one per template

Upgrade Instructions:
Upload new pls_admin.php file to admincp folder
Any previously created Stick files will still work

Future Features:
Checkall Box
Phrasing Support

Darkwaltz4 01-16-2005 02:12 AM

snowbot: heres some screenshots of the new version for you..

lasto: ive updated the file archive, and downloaded it for a test, it works for me with winzip

and heres the zip file of screenshots, which ill put on the first post too, descriptions are in the zip file

Zachariah 03-31-2005 09:54 PM

Thanks - I'll take a look. This should save me a lot of time on upgrades

khaleel 04-03-2005 11:25 AM

Code:

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT title,template_un,dateline,username,version FROM template WHERE templateid IN(2497,2498,2499) ORDER BY title ASC
mysql error: Table 'deathea_vbbackup.template' doesn't exist

mysql error number: 1146

Date: Sunday 03rd of April 2005 08:22:54 AM
Script: http://www.death-eater.net/forum/admincp/pls_admin.php
Referer: http://www.death-eater.net/forum/admincp/pls_admin.php
Username: kaz
IP Address: 217.42.244.217

I get that error

emtee 04-17-2005 12:09 AM

You need to fix your zip files man. Bad zip files...

tp214 04-17-2005 01:12 AM

yeah totally bad, dont even work

Marco van Herwaarden 04-17-2005 06:10 AM

Files download ok for me, also no problem opening them in WinZip.

Darkwaltz4 04-18-2005 03:56 AM

Downloads have, and continue, to both download, unzip, and very easily install for me, i dont know what is wrong with regards to that

khaleel: the problem was a bunch of table prefix things, which i fixed with the new file up there, so just slap that in place of the old one,thats all you have to do to fix it

emtee 04-19-2005 11:25 PM

Open using Winzip 9. It says error, go to http://www.winzip.com/zip20.htm

I went there and it says:

Quote:

Unsupported Zip format

If you have been directed to this web page, it may be that you are running an older version of WinZip. The current release is WinZip 9.0. All registered users can download a free upgrade. If you have not registered, you can click here to download a fully functional evaluation version.

WinZip supports the Zip 2.0 standard file format, which is the specification used by the vast majority of applications on the market that process Zip files. Some older versions of WinZip, however, may not support recent changes and enhancements to the Zip file format. The current release of WinZip, WinZip 9.0, supports many changes to the Zip file format that had been documented at the time WinZip 9.0 was released.

You can determine the installed release of WinZip by clicking the About button in the initial WinZip Wizard panel, or by clicking the About WinZip item on the Help menu in the WinZip Classic interface.
You need to use a new version of WinZip, man. I even use WinRAR to try to open it, but still, errors occur.

MarcoH64, what version of WinZip do you use???

Marco van Herwaarden 04-20-2005 03:28 AM

Winzip 9 (6028)

emtee 04-20-2005 04:30 AM

Ok I downloaded WinZip 9 and it can extract the file. Your zip files are not compatible with WinZip 8!!! Thanks MarcoH64

mholtum 04-20-2005 08:56 AM

Quote:

Originally Posted by floris
Sorry for being dumb as I didn't try the hack yet.

Doesn't vBulletin do this in default?

Master style : drop down > add template > adds to all templates.

parent style : edit a template > inherits to all child template.

I have found that generally it does. I have had numerous instances where this did not happen and I had to modify a few templates in multiple styles.

However, I no longer use multiple skins..

nfe 06-02-2005 04:12 PM

Intrested in how i can use the stick file created to make it easier for me to install all my custom templates again ?

Darkwaltz4 07-31-2005 06:30 PM

Khaleel: you appear to not have a template table (or your config file does not have the prefix listed as the one you are using. How my page could be the only one giving you this error I have no clue, although I'm sure youve fixed this by now :-p

nfe: Easy, just run it, select Lift after selecting the style your custom templates are on, and if you run the resulting stick file, it will hard-install them on whatever its run on (by itself, which is the beauty of it, absolutely nothing to install for the person who runs a stick file)

so select your custom templates, and save the stick file for the future. this seems for me best for when doing hacks, as i can make a template-install system which saves even the 'last edited by Darkwaltz4 on July 30, 2005' message :-p also, for when i fiddle with a hack on my test site, and then decide its time for upgrades, i select the templates that changed, make a stick file, and it becomes the template installer for the upgrade script. then i press those custom files, and then take a new stick file of all of them, and i have a template install script for the new version.

for a good example of where i used this (and i recommend you use this for your own hacks [at least for 3.0] in the same way):
My vBTripleTriad Hack


All times are GMT. The time now is 06:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01219 seconds
  • Memory Usage 1,793KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete