Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-26-2001 Last Update: Never Installs: 0
Is in Beta Stage  
No support by the author.

I'm releasing this as beta because:
  • This has not been tested enough to prove it's working 100%.
  • Your templates aren't something that can be compromised.

In short, what does this hack do:
  • Can write all your templates into files, with any extension you'd like (.html is my favorite), having each template in its own file.
  • Can read from existing template files and save them back to your forum system.
  • Now with option to selectively choose what templates to import / export!

To install:
  • Download the attached ZIP file, extract it and upload do_template.php to your forum admin folder.
  • Go to the file in your browser.
  • If you are not on a Windows server, make sure PHP has permission to write (CHMOD 0777) in the folder you specify.
  • If the folder doesn't exist, PHP will attempt to create it, but you will need write permissions (CHMOD 0777) in the parent folder of it.

Please test this if you can.
If you're trying this out on your real board, it should be safe, but I highly recommend backing up your styles before using it.

This is the place to make suggestions, I expect some!

Show Your Support

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

Comments
  #12  
Old 11-28-2001, 12:27 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally.

Now you can select which templates to export or import then you run the script (there is a little drop down menu for selecting Yes or No).

Just upload the new file to 'upgrade'.
Reply With Quote
  #13  
Old 11-29-2001, 10:43 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chen:

Thanks for the upgrade and the explanation.

Great hack!!

Parker
Reply With Quote
  #14  
Old 12-01-2001, 10:11 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very cool, Chen!
Reply With Quote
  #15  
Old 12-02-2001, 02:46 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good Grief Chen,

I don't know which is better. The new hack for including WOL links. Or this. Or the Advertisement hack.

They are all great. I have been backing up my templates into text files by hand since I purchased vBulletin. This is unreal. What took me a half hour now litteraly takes me less than 5 seconds. And the select what templates to import and export....all I can say is WOW. I went ahead and added it to the Admin CP.

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

Question: When downloading a template set other than the default it always says that it downloaded the default. What might cause this? It seems to be backing up the correct template set, but for some reason it says default no matter what the name of the template set is. Sorry if someone already asked.

Question: I am not seeing a section that says downloading Users Custom Templates. What might be the cause of this? Sorry if someone already asked.

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

Thanks Chen.
Reply With Quote
  #16  
Old 12-02-2001, 10:10 AM
Crinos's Avatar
Crinos Crinos is offline
 
Join Date: Oct 2001
Location: Los Angeles, CA
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working great for downloading the template files

Haven't tried the import feature yet though
Reply With Quote
  #17  
Old 12-02-2001, 11:53 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is it saying Default all the time?
When it says "Done exporting default templates!", it doesn't mean it exported the default template set, but it just means it's done exporting templates that weren't changed in the template set you selected.
(these are the templates that are colored green in the template list)

You're not seeing the part where it says downloading Users Custom Templates?
Maybe you have no custom templates in the template set you selected. Are you sure you have some?
Also does it say something like "No custom templates to export"!, or just displays nothing? A screen shot would help.

[QUOTE]Originally posted by Hooper
They are all great. I have been backing up my templates into text files by hand since I purchased vBulletin. This is unreal. What took me a half hour now litteraly takes me less than 5 seconds. And the select what templates to import and export....all I can say is WOW. I went ahead and added it to the Admin CP.
Reply With Quote
  #18  
Old 12-02-2001, 04:10 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome!

Oh yeah. I have a bunch of custom templates in 2 different styles. It says nothing at all about downloading them. Nor are they there when I check the server for them. I've tried both the News Template set and my Main set. I'll work on this today and post some shots. But never does it say anything about the Custom User Template set.

Any chance of having the name of the set you are backing up and importing to have the name on it. With this being the templates, It makes a user quite ..well....let's say "On the edge" with not seeing exactly what is going on. So If I had seen the name of my template set before and after the backup, I will feel much more comfortable with the situation.

Backing up News Templates.....DONE!

I have a a bunch of customized and quite a few custom templates.

Thanks Chen
Reply With Quote
  #19  
Old 12-02-2001, 04:38 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Hooper
Oh yeah. I have a bunch of custom templates in 2 different styles. It says nothing at all about downloading them. Nor are they there when I check the server for them. I've tried both the News Template set and my Main set. I'll work on this today and post some shots. But never does it say anything about the Custom User Template set.
Reply With Quote
  #20  
Old 12-02-2001, 04:41 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it is weird. It didn't back up my Custom User Templates at all.

What I would like to see is


Downloading....Custom User Template Set

Downloading.... News Template Set

and so on.... Only saying default if it is indeed the default template set that is being up or downloaded.

Having 5 sets and always seeing Default is just not going to satisfy my nerves when I am messing with a bunch of highly changed templates and days (scratch days... Try weeks) of hard work.

I need to know what it is doing...
Reply With Quote
  #21  
Old 12-02-2001, 04:58 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hooper, I really have no idea what could be wrong.

Anyway, I re-did the whole way you are shown templates that are exported / imported - you should be satisfied with this version.
They are now displayed in one big table, with [edit] links next to each template(!!!).

Also new, in the select box where you select templates to export / import, original temlpates are colored green, and modified templates are colored blue. How user friendly is that?

Just finishing it off and I'll put the new version up in a bit.
Now that I have the [edit] link, please test it and make sure it really links to the right template!
Reply With Quote
Reply

Thread Tools

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 10:41 AM.


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.08223 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
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
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete