Register Members List Search Today's Posts Mark Forums Read

 
 
Mod Options
  #1  
Old 01 May 2001, 16:04
Fryzid
Guest
 
Save template to textfile

To compare templates easily I'd like to have a script that will save each template of a style to a textfile named like the template or even something like styelid_templatename.txt.

I think its easier to update modified or translated templates when you can use a comparison tool like BeyondCompare for example.

Perhaps someone has got the time to make this script. I don't have it right now. :(

Thanks.
Comments
  #2  
Old 01 May 2001, 16:20
SteveK SteveK is offline
 
Join Date: Oct 2001
Definately needed!
  #3  
Old 02 May 2001, 19:42
Fryzid
Guest
 
Here's the script. Not very nice but works for now:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Put the script in your admin dir.
Just change the $tempsetid to save a different template set.
All templates will be saved in a directory called after the templatesetid.
Perhaps I will improve it later....
  #4  
Old 10 May 2001, 13:30
Fryzid
Guest
 
Now it's much nicer with the ability to select the style via dropdown box.
You can name the directory now. If you leave the field blank it will name the directory after the templatesetid.

Put the script in your admin dir an run it.

I hope you can read german
Attached Files
File Type: txt savetemplates.txt (1.6 KB, 139 views)
  #5  
Old 10 May 2001, 13:48
Christian Christian is offline
 
Join Date: Nov 2001
Cool

I have dared to translate it into English!

If you want me to remove the English version from this post just tell me!
Attached Files
File Type: txt savetemplates.english.txt (1.6 KB, 83 views)
  #6  
Old 10 May 2001, 14:12
Christian Christian is offline
 
Join Date: Nov 2001
Question

One question:

I got a lot of error messages as I ran it!

I tried it then with your original German version and it was the same!

Can it be that it only works with Windows servers?
  #7  
Old 10 May 2001, 15:27
Fryzid
Guest
 
What kind of error messages?

I only used it on my Windows machine.
  #8  
Old 10 May 2001, 15:58
Christian Christian is offline
 
Join Date: Nov 2001
I guess it only works with Windows:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Nothing is created!
  #9  
Old 10 May 2001, 22:13
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
Create your directory and chmod it 777.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Take vBulletin to the next level - vBCodex. Find Tips, Tutorials, and Resources.
  #10  
Old 13 May 2001, 12:31
wacnstac wacnstac is offline
 
Join Date: Nov 2001
I get the following error when I run this utility:


Fatal error: Call to undefined function: maketableheader() in /home/msports/michigan-sportsman-www/forum/admin/savetemplates.php on line 47


Any ideas? I desperately need to run this utility to make upgrading my templates managable.
  #11  
Old 13 May 2001, 14:55
Fryzid
Guest
 
this function is not in previous vb versions. so try this script

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i hope this will do it.
  #12  
Old 13 May 2001, 18:01
Streicher Streicher is offline
 
Join Date: Oct 2001
Can a moderator move this thread to the Releases-Forum
__________________
ChemieOnline
  #13  
Old 27 May 2001, 09:50
Streicher Streicher is offline
 
Join Date: Oct 2001
*bump* Can this hack be moved to the other releases please. This hack would be helpful for other members.
__________________
ChemieOnline
  #14  
Old 27 May 2001, 13:00
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Yes indeed it would!
  #15  
Old 21 Oct 2001, 17:02
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Does this hack work with 2.03 or is it incompatible? I need to compare the new 2.03 templates with my old 2.01 templates. The hack seems to wirte my old 2.01 templates out fine, but the 2.03 templates never seem to get written out....
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 12:53.

Layout Options | Width: Wide Color: