![]() |
bump. i want to - have to - use this (it's really neat if it works for me in the end)...help!
|
ummmmmmmmmmmmm...well...chmodded 777 and it worked. it didn't work BEFORE on 777 though...my host sucks :P
|
FireFly , I still have some problems with the import feature, as said on post #64 .... :bored:
After upgrading board, i tried to import the just-exported templates (with today's date) were deleted by the upgradeXX.php (we have another thread open about in General Discussion ... Do you remember ? :bandit: ) Well. I put in the import form the exact formatted date I used above to export templates, but as you can see in the attached screenshot, their name wasn't adjusted (truncating the date prefix), but were imported just with their actual filename ... I saw also a php error at the top of the selection list when I had to choose one or all of them before the import. Note: as suggested, I used '.htt' filenames .... What do you think about ? What could I check in TBS to solve the problem ? Thanks P.S.: I solved my problem updating the DB with a query like this: Code:
UPDATE `template` Thank you very much, again. P.P.S.: comparing the dbs (before and after the above ops), I noticed first those templates were listed in the Default section. After the import (and the db correction) they were listed in the Custom section. Does it mean that, since now, when upgrading again I shouldn't have any more the problem they are deleted by the upgradeXX.php ... Is it true ? Bye |
[QUOTE]Originally posted by Jawelin
FireFly , I still have some problems with the import feature, [...] Well. I put in the import form the exact formatted date I used above to export templates, but as you can see in the attached screenshot, their name wasn't adjusted (truncating the date prefix), but were imported just with their actual filename ... I saw also a php error at the top of the selection list when I had to choose one or all of them before the import. Note: as suggested, I used '.htt' filenames .... |
:(
This went too down without an answer !! Bump! :bandit: |
Just installed the hack in one minute. Works perfect, thanks.
|
Yes, of course.... Less than 1 minute installing.
But I found that problem in the import feature... Nobody found the same ? Is it mine a correct workaround ? Thnx |
Chen this is a fantastic hack. Installed quickly with clear instructions. Fixed the typo and all is working perfectly.
I can export and import templates without any problems. |
not sure why this isnt working, but i installed this hack on vb 2.2.5, when i hit export it doesnt give me a list like in your screen shot, it just goes back to the main tbs menu and then i check my templates folder and its empty. Im running on windows xp by the way and not unix. this hack use to work for me when i ran vb2.2.1, not sure if its incompatibility problem or what. but i made a templates folder in my root, my forum root and in my admin root folder jus to be safe, and i checked each one, and all empty... =( whats going on... i installed the hack and checked over many times to see if i installed it right and i did....
|
this is a wonderful Hack FireFly...
|
great hack, works great, except after i export, and then its done, i try hittint the [edit] button and i get a db error: it says this
Database error in vBulletin Control Panel 2.2.5: Invalid SQL: SELECT templateid,templatesetid,title,template FROM template WHERE templateid= mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 Date: Saturday 27th of April 2002 05:22:41 AM Script: http://localhost/forum/forum/admin/t...it&templateid= Referer: http://192.168.0.2/forum/admin/tbs.php whats wrong? it only happens when i try to edit the original templates. but the ones in red and orange i can edit, just not the originals, why? |
One small thing I would like to see added to this hack, is the ability to delete exported files from the server that it creates. (This only applies when it creates its own folder. If I created the fodler and chmod it to 777 first through FTP I have no problem. But I made a typo in the destination folder once and it created its own folder which I am having a lot of difficulty removing)
Mainly because my FTP access gives me permission denied when I try to delete them myself after downloading them all. It seems this program creates the templates and gives ownership to "web" on my server and on my virtial shared server, I don't have access to the "web" account, so removing the files is almost impossible. Maybe it could be modified to create folders with 777 permissions? |
Installed and backup all my templates.
Works fine on my 2.2.5 Thanks |
when i try to export the templates i get this error
Warning: fopen("./templates/chat.html", "w") - Permission denied in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 158 Warning: Supplied argument is not a valid File-Handle resource in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 160 Warning: Supplied argument is not a valid File-Handle resource in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 162 Warning: fopen("./templates/chatmain.html", "w") - Permission denied in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 158 Warning: Supplied argument is not a valid File-Handle resource in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 160 Warning: Supplied argument is not a valid File-Handle resource in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 162 Warning: fopen("./templates/chatnoreg.html", "w") - Permission denied in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 158 Warning: Supplied argument is not a valid File-Handle resource in /usr/home/emusa/emusanet.com/public_html/forums/admin/adminfunctions.php on line 160 goes on for ages, i guess its every template gives a error msg |
Make sure the folder you are backing the templates up to is set to 777.
|
Ops...
Since upgrade to PHP 4.2.0 the template-names are gone @ TBS like they do before patching the template.php freddie mentioned here @ vbulletin.com. What do I have to do to fix that. |
I'll release a fix shortly.
|
Just wondering nobody else found this "bug". Hhmmm... :D
|
Should be fixed now.
|
verry nice :up:
[high]* X3ON clicks install button[/high] |
Thanks FireFly! :D
|
I just switched servers and the template backup system doesn't work the same on the new server....
if there are no files in the templates directory, the backup system work fine. but if there are existing files with the same name and I try to do a backup to overwrite the files I get the following messages! Warning: SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access ./templates/alinks.html owned by uid 0 in /home/virtual/site1/fst/var/www/html/forums/admin/adminfunctions.php on line 150 Warning: SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access ./templates/alinks.html owned by uid 0 in /home/virtual/site1/fst/var/www/html/forums/admin/adminfunctions.php on line 158 Warning: fopen("./templates/alinks.html","w") - Success in /home/virtual/site1/fst/var/www/html/forums/admin/adminfunctions.php on line 158 Warning: Supplied argument is not a valid File-Handle resource in /home/virtual/site1/fst/var/www/html/forums/admin/adminfunctions.php on line 160 Warning: Supplied argument is not a valid File-Handle resource in /home/virtual/site1/fst/var/www/html/forums/admin/adminfunctions.php on line 162 this repeats over and over for each file it seems! any ideas would be appreciated. for now I just ftp and delete all previous files before doing backup -dave |
Seems to be caused by running in safe mode, ask your host to turn it off.
|
what happens if I am my host... is it easy to turn off or do I start searchin the net..
BTW great hack (like all of your hacks) and talk about support! I was barley done the post :) thanks |
This is the part that controls Safe Mode in php.ini:
Code:
; Code:
safe_mode = Off Code:
safe_mode_gid = Off |
VERY USEFUL! Just installed lesane's hack with it. :D
|
Hi, Chen.
A (simple) request: could it be possible to export - export only (not needed import...) - ALL TEMPLATES including default ones, for example with a differend prefix, suffix or directory ? I mean, if a template exists with more templatesetids (tipically 1 and -1), could it be possible to export both to different targets ? Obviously, this feature should be very very useful when upgrading VB, to perform an easier check of changes in the '-1' set, otherwise not exported... Thanks a lot. LMK Bye |
[QUOTE]Originally posted by Jawelin
[B]Hi, Chen. A (simple) request: could it be possible to export - export only (not needed import...) - ALL TEMPLATES including default ones, for example with a differend prefix, suffix or directory ? I mean, if a template exists with more templatesetids (tipically 1 and -1), could it be possible to export both to different targets ? |
[QUOTE]Originally posted by kippesp
Default templates can already be exported. After you've upgraded your PHP files, add a new template set. Then export the new set. |
Just reinstalled this hack (with the new tbs.php) and all works fine on V2.2.6 with PHP4.1.2.
Darren. |
I installed this on 2.2.5 as well, it went flawlessly :)
However, I do have one MAJOR request, that would really make this hack usefull. If this hack had the ability to create folders, with the appropriate templates following those groups, that would make things a lot easier when sorting them out :( For example, for the postbit group: <--- POSBIT Group --> <----------postbit.html <----------postbit_attatchment.html <----------postbit_attatchmentimage.html And for each template group a new template would be made with the corresponding templates. I suggest doing that for the TBS, chen. It would definatly make this a much more worthy hack for Hotm :) |
Maybe when vB3 is out, I am not going to hack anymore until it's released. :)
|
[QUOTE]Originally posted by FireFly
Maybe when vB3 is out, I am not going to hack anymore until it's released. :) |
Thx a lot, really helpfull when you have a lot of templates to install (Lesane Store Hack ;) )
Great Job Firefly |
Chen: I noticed that on vBulletin 2.2.6 on 4.2.1, this hack doesn't work properly. When you go to export a lot of screwy errors happen, and it doesn't export all of the templates. There is nothing wrong on my part, that I know of, as I've chmodded the folder in which it is exported to, and all the other steps needed.
If you could fix this, it would be most appreciated. |
[QUOTE]Originally posted by Henry-RS
Chen: I noticed that on vBulletin 2.2.6 on 4.2.1, this hack doesn't work properly. When you go to export a lot of screwy errors happen, and it doesn't export all of the templates. There is nothing wrong on my part, that I know of, as I've chmodded the folder in which it is exported to, and all the other steps needed. If you could fix this, it would be most appreciated. |
Kickass hack, FireFly, thanks.
/me installs..... |
[QUOTE]Originally posted by Henry-RS
Chen: I noticed that on vBulletin 2.2.6 on 4.2.1, this hack doesn't work properly. When you go to export a lot of screwy errors happen, and it doesn't export all of the templates. There is nothing wrong on my part, that I know of, as I've chmodded the folder in which it is exported to, and all the other steps needed. If you could fix this, it would be most appreciated. |
wow....been searching for this for like weeks! thanx!!
|
At the very top of the page when exporting the template I have this text. The colours for the original and the default templates seem to be the wrong way around.
Templates with this color are templates you have created from scratch. Templates with this color are original templates you have edited. Templates with this color are the default templates that come with vBulletin. In the tick box selection list of the templates the colours are correct (green for original and blue for edited and red for new). The code at the bottom of my cp.css file is this Code:
/* global and custom color definitions */ |
All times are GMT. The time now is 07:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|