Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Fryzid (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-01-2001 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-01-2001, 03:20 PM
SteveK SteveK is offline
 
Join Date: Oct 2001
Location: Seattle, WA USA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Definately needed!
Reply With Quote
  #3  
Old 05-02-2001, 06:42 PM
Fryzid
Guest
 
Posts: n/a
Default

Here's the script. Not very nice but works for now:
Code:
get the script in the next post
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....
Reply With Quote
  #4  
Old 05-10-2001, 12:30 PM
Fryzid
Guest
 
Posts: n/a
Default

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: (21.4 KB, 139 views)
Reply With Quote
  #5  
Old 05-10-2001, 12:48 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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: (21.4 KB, 83 views)
Reply With Quote
  #6  
Old 05-10-2001, 01:12 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 05-10-2001, 02:27 PM
Fryzid
Guest
 
Posts: n/a
Default

What kind of error messages?

I only used it on my Windows machine.
Reply With Quote
  #8  
Old 05-10-2001, 02:58 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess it only works with Windows:

Code:
Directory ./templates doesn't exist! Being created...

Warning: MkDir failed (Permission denied) in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 25

Warning: fopen("./templates/headinclude","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/timezonelist","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/footer","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/whoposted","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/whopostedbit","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/forumdisplay_threadslist","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/forumdisplaybit","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/showmoderators","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/timezone_city","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/timezone_city_col","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/forumhome","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/welcome","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

Warning: fopen("./templates/messagecenter","w") - No such file or directory in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 33

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 34

Warning: Supplied argument is not a valid File-Handle resource in /home/ledge/public_html/tke/forum/admin/savetemplates.php on line 35

All Files have been successfully created in templates !
Nothing is created!
Reply With Quote
  #9  
Old 05-10-2001, 09:13 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create your directory and chmod it 777.
Reply With Quote
  #10  
Old 05-13-2001, 11:31 AM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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


All times are GMT. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04381 seconds
  • Memory Usage 2,316KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (6)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete