PDA

View Full Version : Template Manager 0.6


Dream
25 Jun 2005, 09:12
Description
- Import / Export templates using XML files
- Copy / Delete multiple templates
- View / Save / Delete templates in history
- Download templates installation file

Installation
- Upload custom_template_manager.php to your admincp folder
- Upload cpnav_ctm.xml to your includes/xml folder

Reload your AdminCP, its below "Styles & Templates"

Enjoy :)

Dream
28 Jun 2005, 21:24
updated- test this out will ya?


version 0.2 beta
- changed xml format
- added basic xm importing
- added additional information in xml export
- added a bunch of javascripts to make the life easier

I only tested this with Firefox 1.0.4. the javascript/layout may have bugs in safari, internet explorer, opera etc. ill try to fix it if you find any.

Mentalist
28 Jun 2005, 23:04
Love the idea mate, and it's deffinatly getting there. Keep at it, havn't had much trouble yet! :P

Allan
28 Jun 2005, 23:14
screenshot please :)

Dream
28 Jun 2005, 23:32
Love the idea mate, and it's deffinatly getting there. Keep at it, havn't had much trouble yet! :P

cool thanks :)

theres a screenshot here (http://www.vbulletin.org/forum/showthread.php?t=91008), ill do another one when I have some time

Chris M
30 Jun 2005, 23:21
cool thanks :)

theres a screenshot here (http://www.vbulletin.org/forum/showthread.php?t=91008), ill do another one when I have some time
I click "Download Custom Templates Installation File" and it says "not implemented" - Que?:p

Satan

yinyang
01 Jul 2005, 08:44
awww man, where was this yesterday. *grumble*

loving it man!

uae
01 Jul 2005, 09:02
I'm sure I'll use this one :)

Thanks Dream

Installed here...

Dream
01 Jul 2005, 22:22
updated 0.3 beta

- finished importing xml function
- implemented half mass copy function (not finished)
- some stuff I cant remember

Dream
02 Jul 2005, 23:04
do you guys think you should be able to export regular vB templates aswell? like postbit, navbar etc?

the "custom template" definition is a template that vBulletin's Master Style doesn't have, and a "regular template" is an edited master style template.

not sure why this would be used, but its not hard to implement.

Bad Bunny
05 Jul 2005, 07:02
do you guys think you should be able to export regular vB templates aswell? like postbit, navbar etc?

the "custom template" definition is a template that vBulletin's Master Style doesn't have, and a "regular template" is an edited master style template.

not sure why this would be used, but its not hard to implement.
Well, I usually base my templates off of a vb page that is similar, so yeah, it would help. But I would not call it mandatory.

DS MrSinister
07 Jul 2005, 03:01
Great job.. this will come in handy later on..

Dream
09 Jul 2005, 22:14
thanks :)

updated 0.4
- finished copy function
- added view/edit links next to each template
- added install file fuction
- added view templates function

the code is a big mess right now, but it doesnt affect usability. and its done, enjoy :)

uae
11 Jul 2005, 20:20
Thanks Dream, I'll test this as soon as I get home :)

Barakat
12 Jul 2005, 03:24
Great Hack . thanks

yinyang
12 Jul 2005, 04:14
*installed*

cool, thanks!

uae
12 Jul 2005, 06:16
This got to be HOT, great work Dream, installed and working just fine.

Dream
13 Jul 2005, 07:27
this is actually working better than I thought :O its getting the normal edited templates nicely

im thinking about adding a "view templates in history", so you choose the style to see the list, ill see what I can do

Dream
14 Jul 2005, 04:15
right now this is exporting xml/copying/creating install file using wrong template codes, so dont use it :)

Dream
16 Jul 2005, 20:31
updated 0.5

- fixed bug when viewing templates with view and installation file
- fixed bug getting wrong template code for export, copy and installation file, was getting "template" field instead "template_un" (xml compatibility version was raised because of this)
- you can now export / copy / delete vBulletin templates, also you can choose vBulletin templates for the installation file
- added view / save / delete templates from history
- added "save a copy in history" when deleting
- it now has its own admincp menu section

lazorde
16 Jul 2005, 21:57
hi

ihave error


Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 769

to Upload Plugins

Dream
16 Jul 2005, 21:59
cpnav_ctm.xml is not a plugin, you upload it to "includes/xml" folder

lazorde
16 Jul 2005, 22:04
aha

isee

ok thanku

TTG
16 Jul 2005, 22:05
Excellent .. this will prove to be very valuable with all the updates due soon.

Dream
17 Jul 2005, 19:57
updated 0.6

- fixed bug when importing templates with a xml file, templates were being created with empty content

xxskullxx
17 Jul 2005, 21:27
Nice work. I was about to report the bug to here, but saw you already fixed it :)

This has been great for deleting 200+ custom templates from 3.07 that I'm no longer using.

FD929
30 Jul 2005, 18:58
I've got RC1 running and get numerous database errors and to be expected. The script is not calling my database. Is this a quick fix edit to the php file or do we need to wait for a re-write?

thanks, :)

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:
SELECT title, template_un FROM template
WHERE templateid = 6564 ORDER BY title;

MySQL Error : Table 'riders_vb.template' doesn't exist
Error Number : 1146
Date : Saturday, July 30th 2005 @ 12:56:19 PM
Script : /admincp/custom_template_manager.php
Referrer : /admincp/custom_template_manager.php

Username : FD929
Classname : vb_database

Dream
01 Aug 2005, 03:57
hey, ill have to look this script to comply with RC1 changes, tho im thinking in doing that when 3.5 is gold...

anyway some basic operations like viewing templates and exporting are working for me, what exactly were you trying to do?

FD929
01 Aug 2005, 16:21
On attempting to copy all templates from one style to another I get:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:
SELECT title, template_un FROM template
WHERE templateid = 5379 OR templateid = 5181 OR templateid = 5380 OR templateid = 5241 OR templateid = 4722 OR templateid = 6566 OR templateid = 4124 OR templateid = 4721 OR templateid = 4243 OR templateid = 4242 OR templateid = 4241 OR templateid = 4724 OR templateid = 4727 OR templateid = 4725 OR templateid = 4726 OR templateid = 4078 OR templateid = 5492 OR templateid = 4244 OR templateid = 6594 OR templateid = 6565 OR templateid = 6564 OR templateid = 6563 OR templateid = 6556 OR templateid = 6593 OR templateid = 6592 ORDER BY title;

MySQL Error : Table 'riders_vb.template' doesn't exist
Error Number : 1146
Date : Monday, August 1st 2005 @ 10:18:54 AM
Script : /admincp/custom_template_manager.php
Referrer : /admincp/custom_template_manager.php

Username : FD929
Classname : vb_database

1 thing is that my table prefix is vb3_ not riders_vb

Dream
01 Aug 2005, 18:42
I forgot to add the table prefix to that query :/

ill fix that in the next version, you can edit the php, find



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace for



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

FD929
08 Aug 2005, 18:34
:) Thank you so much.

Xplorer4x4
19 Aug 2005, 11:28
This saved me a tone of time and effort. :) Thanks

Sovereign
20 Aug 2005, 15:10
Thanks for the quick fix! [INSTALL]

Logik
31 Aug 2005, 03:07
Im not gettin anything, i uploaded the files like told, but no option.

Dream
31 Aug 2005, 08:57
Im not gettin anything, i uploaded the files like told, but no option.

are you using vb 3.5?

ctsolutions
24 Sep 2005, 15:36
Great job,Thanks

nitro
04 Oct 2005, 01:37
Hmmm quite nice. only used the kill custom page so far saved me 251 manual reverts so that has to be pretty good, and thats in one style only I have a few others to update to 3.50 ;)

Has to be the hottest admin cp hack going

nitro
15 Oct 2005, 11:15
Seems to have a problem importing custom templates in overwrite mode to a style. Its ok if you revert those templates first tho. ;) Maybe needs fixing up for gold as its an awsum hack

Also a nice addition i think would be able to set to export a set of templates as individual files. Like it uses a temp folder and gzips it then downloads. This would make style updating etc very simple as you could easily use somthing like beyond compare. :)

michaelbenson
15 Oct 2005, 12:12
Been looking for a hack like this for ages, finally i can actually move custom templates
^_^

Kihon Kata
21 Oct 2005, 20:11
updated- test this out will ya?


version 0.2 beta
- changed xml format
- added basic xm importing
- added additional information in xml export
- added a bunch of javascripts to make the life easier

I only tested this with Firefox 1.0.4. the javascript/layout may have bugs in safari, internet explorer, opera etc. ill try to fix it if you find any.

OMG, I'mm peeing myself

*installed

auz1111
21 Oct 2005, 21:15
thanks! this is awesome!

w00tworld
24 Oct 2005, 14:31
Does this actually work with 3.5.0 ?
Sorry to ask, but I am a little confused with all the beta and rc releases here, as it appears some work with 3.5.0 and some don't LOL.

Thanks

StarBuG
30 Oct 2005, 19:46
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I wanted to export all modified templates and got this after clicking Choose Templates

w00tworld
05 Nov 2005, 23:13
Does this actually work with 3.5.0 ?
Sorry to ask, but I am a little confused with all the beta and rc releases here, as it appears some work with 3.5.0 and some don't LOL.

Thanks


Please has anyone successfully installed this on 3.5.0 gold?

Synth
06 Nov 2005, 00:02
hasnt worked for me on gold yet, getting errors Failed to open stream

hornstar1337
10 Nov 2005, 01:13
im getting this error

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT title, template_un FROM template
WHERE templateid = 16996 OR templateid = 16997 OR templateid = 16978 OR templateid = 16999 OR templateid = 16998 OR templateid = 17000 ORDER BY title;

MySQL Error : Table 'gamerzne_gamerzneeds.template' doesn't exist
Error Number : 1146


I know what the error is basically instead of from template it should be vb3_template for me

i'm using vb 3.5.1

What files and parts of files will i need to edit to fix this problem, thanks

King Kovifor
12 Nov 2005, 21:44
Question: Does it only work with YOUR hack to install the templates?

hornstar1337
13 Nov 2005, 07:21
just wondering if anyone has an answer for mine, as I dont want to install any other skins until i get this working. Thanks

hornstar1337
15 Nov 2005, 22:57
Its been a few days, thought someone would have been able to provide an answer for my question above...i really need this to work guys, some help would be kindly appreciated, thanks

Supes
26 Nov 2005, 14:25
Just installed on VB 3.5.1 and it works great!! What a fantastic hack, just used it to update my navbar to show the arcade link for all my skins. :D

cheech4487
26 Nov 2005, 16:39
Awesome job!!!
clicks install !

hornstar1337
29 Nov 2005, 11:18
guess no one can fix my problem above, or does someone know how to fix it

Flow Fusion
29 Nov 2005, 11:56
This is a great addition. Thanks.

Hellcat
01 Dec 2005, 11:40
I just installed it into my 3.5.1 and it seems to work flawlessly.

This is just what I needed!
Great Addon!

divided_by_fear
10 Dec 2005, 16:08
i like the mod dont get me wrong but what would be nice to see is a check box next to each difference it found this way you can select which merges you want to install and which you dont... this way you can test each hack out as you merge it and so on... and it would also i think be more user friendly that way

AWI
11 Dec 2005, 10:10
Installed on 3.5.2, let me know if there is any update thanks :)

TheMusicMan
13 Dec 2005, 23:50
Am I missing something or is it not supposed to allow you to copy a modified template from an existing style to a new one?

Hellcat
14 Dec 2005, 01:20
Am I missing something or is it not supposed to allow you to copy a modified template from an existing style to a new one?
Hmm, I did that as well.
If it's a modified default template be sure to check "[action] vBulletin Default Templates" and enable "Allow overwrite".

I copied some of the modified default templates over to other styles, works like a charm :)

Yorixz
22 Dec 2005, 15:55
This hack seems to work correctly on vB 3.5.2 - the only (quite big) error I'm getting is that it can't find the table with the templates, which is correct because it's ignoring my prefix.

Does anyone know a way to solve this?

Edit:
Got it.

In line 1834 replace

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Except for that place everywhere it's checked if you're using a prefix ;)

XtAzY
30 Dec 2005, 16:15
im gettin this error when i have copy edited vb templates checked

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/custom_template_manager.php on line 1074

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1542

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1556

Xplorer4x4
31 Dec 2005, 15:55
This hack seems to work correctly on vB 3.5.2 - the only (quite big) error I'm getting is that it can't find the table with the templates, which is correct because it's ignoring my prefix.

Does anyone know a way to solve this?

Edit:
Got it.

In line 1834 replace

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Except for that place everywhere it's checked if you're using a prefix ;)

Done and I still have the problem:
Database error in vBulletin 3.5.1:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

waza
31 Dec 2005, 15:58
".TABLE_PREFIX." should be with ' ' instead of " "
so replace that with ' . TABLE_PREFIX . '
and it will work

grz,
seba

Xplorer4x4
31 Dec 2005, 16:06
".TABLE_PREFIX." should be with ' ' instead of " "
so replace that with ' . TABLE_PREFIX . '
and it will work

grz,
seba

Um can I can I get an example? Not quite understanding you. Sorry, and Thanks.

waza
01 Jan 2006, 12:11
k, srry

I guess you now have:

$sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template


Replace that with:

$sql = 'SELECT title, template_un FROM ' . TABLE_PREFIX . 'template


so you see, the [" "] have been replaced with [' ']

grz,
seba

Snake
02 Jan 2006, 13:31
Nice but is this going to work on v3.5.2?

Xplorer4x4
02 Jan 2006, 17:19
Thanks wazza and i had no problems running this on 3.5.2.

Snake
02 Jan 2006, 19:35
Nice but is this going to work on v3.5.2?

Is there someone who is gonna answer back to my question?

Xplorer4x4
02 Jan 2006, 19:37
Read my post before yours......

http://www.vbulletin.org/forum/showpost.php?p=862635&postcount=66

Snake
02 Jan 2006, 19:59
Whoa my bad. :D

Yarub
03 Jan 2006, 03:23
Can this put templates into groups?

Snake
03 Jan 2006, 13:50
I guess so.

VBUsers
10 Jan 2006, 11:10
i get this error when i try to copy a template. can anyone help me out?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

VBUsers
15 Jan 2006, 07:59
i get this error when i try to copy a template. can anyone help me out?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




can anyone help me out?

Xplorer4x4
15 Jan 2006, 08:03
http://www.vbulletin.org/forum/showpost.php?p=861687&postcount=64
Try that

Dream
15 Jan 2006, 08:17
updated 0.7, added that last missing table prefix

VBUsers
15 Jan 2006, 08:27
hey explorer thanks for the help and dream the update did it thanks alot! much appreciated and you have saved me so much time!

bashy
15 Jan 2006, 13:05
Hi

I have installed this an all seams well until....

When trying to view template history i get this error

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 475

Any ideas?

gothicuser
15 Jan 2006, 16:47
Hi

I have installed this an all seams well until....

When trying to view template history i get this error

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 475

Any ideas?
Thats exactly what is happening here too. :tired:

StarBuG
17 Jan 2006, 18:47
I still get an error when I try to export edited templates with 0.7

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/custom_template_manager.php on line 520

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1542

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1556

Please help

EasyTarget
17 Jan 2006, 20:22
is this hack compatible with this one by kirby?
http://www.vbulletin.org/forum/showthread.php?t=102416

XtAzY
22 Jan 2006, 05:40
I still get an error when I try to export edited templates with 0.7

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/custom_template_manager.php on line 520

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1542

Warning: Invalid argument supplied for foreach() in /admincp/custom_template_manager.php on line 1556

Please help

same here, this error happens when i try to copy templates on the first two styles listed....

is there a way to fix this soon?

ammarcom004
22 Jan 2006, 11:08
thanks, and is a nice hack

euan doc
31 Jan 2006, 04:45
Nice one. This will come in handy

Tidy
31 Jan 2006, 05:46
Very Nice, Thanks Very Much

hornstar1337
31 Jan 2006, 11:08
I guess there are still a few bugs in this, guess we will have to wait until 0.8 release

Zia
02 Feb 2006, 07:04
klikcs install

ammarcom004
01 Mar 2006, 10:34
thanks alot

Torqued
20 Mar 2006, 21:45
Any chance of getting this updated to fix the above errors and be sure its compatible with 3.5.4? :)

XtAzY
23 Mar 2006, 00:50
hmm upgrading to MySQL 5.0+ fixes my error above =]

rareclownfish
06 Apr 2006, 02:53
I get an error saying Invalid File Specified, when I try to add this plugin via the manager?

nitro
06 Apr 2006, 21:05
IS that in the product import page or the plugin installer page ?

RemiAlone
17 May 2006, 09:15
click! :)

MissKalunji
05 Aug 2006, 14:49
will it work with 3.6?

WebsiteDonation
12 Aug 2006, 13:04
I like this plugin much and I've made a test. There are many wrong statements with Arrays

Example about the error in Post #77:
- Line 193: foreach ($varname AS $styleid => $templates)
- Line 475: foreach ($varname["$styleid"] AS $template)

Similarly with the error in Post #79. I have to uninstall this. Good idea anyhow.

Barakat
19 Aug 2006, 17:07
its a great hack but need to be upgraded to 3.6.0 coz all the 3.5.x styles works on it but the new 3.6.0 styles wont work and gives errors ,
maybe coz of the code changes..

Stoebi
19 Aug 2006, 19:43
its a great hack but need to be upgraded to 3.6.0 coz all the 3.5.x styles works on it but the new 3.6.0 styles wont work and gives errors ,
maybe coz of the code changes..

Works fine here with 3.6.0. Thx Dream :)

I like this plugin much and I've made a test. There are many wrong statements with Arrays

Example about the error in Post #77:
- Line 193: foreach ($varname AS $styleid => $templates)
- Line 475: foreach ($varname["$styleid"] AS $template)

Similarly with the error in Post #79. I have to uninstall this. Good idea anyhow.

No wrong statements, works perfekt with these statements. :)



Regards, Stoebi

GrendelKhan{TSU
25 Aug 2006, 06:51
work for 3.6.0 gold? I used this all the time.

Stoebi
25 Aug 2006, 09:24
work for 3.6.0 gold? I used this all the time.

Yes, but it needs some corrections...
Any interests? I would publish the changes here


Regards, Stoebi

mhc1576
03 Sep 2006, 22:28
Yes Stobie please post the corrections for 3.6.

VBUsers
04 Sep 2006, 03:13
Yes Stobie please post the corrections for 3.6.

yea i def need the fix i need to make changes to my sites 2.

Stoebi
04 Sep 2006, 07:43
Hi,

thank you for your interest :)

Download the current "template manager 0.7.zip" archive (first post -> Dream) and the zip file BC-Report.zip attached with this post.
Open the file custom_template_manager.php in your favourite editor
Open the file BC_Report.html in your favourite browser.
I think, everything else speaks for itself. (Hope, it's correct english *urks* sorry).


Fixed lot of warnings (array_merge etc.)
Export is working again.
Compatible with "Merge Templates".

Tested with PHP 4 and PHP 5 and with vBulletin 3.6.0 only :(



Lot of thanks to Dream for this nice addon. I appreciate his works. :)


Is it permitted to attach the full edited file?



Regards, Stoebi

Snake
12 Sep 2006, 09:33
Hi Sto. Yes please post the full edited file. I am very interested. Thanks! :)

daylight
20 Sep 2006, 17:47
it works fine with 3.6.1

Dream
08 Oct 2006, 17:26
Guys im not sure Ill be continuing this hack, if anyone wants to take it from here be my guest.

You don't need to ask my permission to do so.

Stoebi
08 Oct 2006, 19:52
Guys im not sure Ill be continuing this hack, if anyone wants to take it from here be my guest.

You don't need to ask my permission to do so.


Thx a lot Dream :cool:

Working version with php4/php5 and vBulletin 3.6.x.


Regards, Stoebi

puertoblack2003
20 Oct 2006, 14:24
Thx a lot Dream :cool:

Working version with php4/php5 and vBulletin 3.6.x.


Regards, Stoebi

wow i was hoping there's a fix thanks:)

daylight
07 Feb 2007, 21:41
Thx a lot Dream :cool:

Working version with php4/php5 and vBulletin 3.6.x.


Regards, Stoebi

it is working cool in 3.6.4 php 5.
and thanks for solving the problem as the orginal version doesn't show up the custom templates anymore and telling me there is no custom templete.
thanks again:up:

FireFish
17 Feb 2007, 05:51
Not knowing much about this mod, here's my issue:

I've spent countless hours modifying my site's current main style to accomidate many PHP modifications I've implemented over the last 2 years.

Now I'm getting feedback that users want a different style.

Can this mod automatically export all of my modifications & overwrite the code in a new style with these modifications?

OR; is it merely a means of backing up your current style in the event you need to reimport it for whatever reason.

I specifically need something that will take ALL modified templates in 1 style & automatically modify all the same templates in another.
Is this my solution?!?!:confused:

Please help me understand this one a bit better.

rjmjr69
16 Mar 2007, 08:12
Not knowing much about this mod, here's my issue:

I've spent countless hours modifying my site's current main style to accomidate many PHP modifications I've implemented over the last 2 years.

Now I'm getting feedback that users want a different style.

Can this mod automatically export all of my modifications & overwrite the code in a new style with these modifications?

OR; is it merely a means of backing up your current style in the event you need to reimport it for whatever reason.

I specifically need something that will take ALL modified templates in 1 style & automatically modify all the same templates in another.
Is this my solution?!?!:confused:

Please help me understand this one a bit better.


After reading thru the Two pages of info I have to say thats a big 10 -- 4 good buddy.....lol
Its exactly what your looking for


Everything seems to be working just fine in 3.6.4 although I have not tested every function for I do not know how or what they all do. Is there anyone who can clue me in with some instructions or tips please. Like if I wanted to take all my current custom templates and copy them to a new skin how would I achieve this?

Thanks

Adam21
28 May 2007, 16:53
This great mod still works for 367pl1 with no issues for me.Very useful and easy for new users who wish to copy template changes to another easily!In fact,i've been using this since 360 onwards with no complications.Good job!

*Thumbs up!*

Dream
29 May 2007, 19:38
Guys I updated this to 3.6, the new thread is here

http://www.vbulletin.org/forum/showthread.php?t=148411

It's really just Stoebi's version reposted, thanks for your guys support :)