vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Template Manager 0.6 (https://vborg.vbsupport.ru/showthread.php?t=91038)

Dream 06-24-2005 10:00 PM

Template Manager 0.6
 
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 06-28-2005 07:24 PM

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 06-28-2005 09:04 PM

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

Allan 06-28-2005 09:14 PM

screenshot please :)

Dream 06-28-2005 09:32 PM

Quote:

Originally Posted by Mentalist
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, ill do another one when I have some time

Chris M 06-30-2005 09:21 PM

Quote:

Originally Posted by Dream
cool thanks :)

theres a screenshot here, 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 07-01-2005 06:44 AM

awww man, where was this yesterday. *grumble*

loving it man!

uae 07-01-2005 07:02 AM

I'm sure I'll use this one :)

Thanks Dream

Installed here...

Dream 07-01-2005 08:22 PM

updated 0.3 beta

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

Dream 07-02-2005 09:04 PM

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 07-05-2005 05:02 AM

Quote:

Originally Posted by Dream
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-07-2005 01:01 AM

Great job.. this will come in handy later on..

Dream 07-09-2005 08:14 PM

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 07-11-2005 06:20 PM

Thanks Dream, I'll test this as soon as I get home :)

Barakat 07-12-2005 01:24 AM

Great Hack . thanks

yinyang 07-12-2005 02:14 AM

*installed*

cool, thanks!

uae 07-12-2005 04:16 AM

This got to be HOT, great work Dream, installed and working just fine.

Dream 07-13-2005 05:27 AM

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 07-14-2005 02:15 AM

right now this is exporting xml/copying/creating install file using wrong template codes, so dont use it :)

Dream 07-16-2005 06:31 PM

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 07-16-2005 07:57 PM

hi

ihave error

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

to Upload Plugins

Dream 07-16-2005 07:59 PM

cpnav_ctm.xml is not a plugin, you upload it to "includes/xml" folder

lazorde 07-16-2005 08:04 PM

aha

isee

ok thanku

TTG 07-16-2005 08:05 PM

Excellent .. this will prove to be very valuable with all the updates due soon.

Dream 07-17-2005 05:57 PM

updated 0.6

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

xxskullxx 07-17-2005 07:27 PM

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 07-30-2005 04:58 PM

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 08-01-2005 01:57 AM

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 08-01-2005 02:21 PM

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 08-01-2005 04:42 PM

I forgot to add the table prefix to that query :/

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

Code:

        $sql = 'SELECT title, template_un FROM template
WHERE templateid = '.$ors.' ORDER BY title';

replace for

Code:

        $sql = 'SELECT title, template_un FROM ' . TABLE_PREFIX . 'template
WHERE templateid = '.$ors.' ORDER BY title';


FD929 08-08-2005 04:34 PM

:) Thank you so much.

Xplorer4x4 08-19-2005 09:28 AM

This saved me a tone of time and effort. :) Thanks

Sovereign 08-20-2005 01:10 PM

Thanks for the quick fix! [INSTALL]

Logik 08-31-2005 01:07 AM

Im not gettin anything, i uploaded the files like told, but no option.

Dream 08-31-2005 06:57 AM

Quote:

Originally Posted by Logik
Im not gettin anything, i uploaded the files like told, but no option.

are you using vb 3.5?

ctsolutions 09-24-2005 01:36 PM

Great job,Thanks

nitro 10-03-2005 11:37 PM

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 10-15-2005 09:15 AM

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 10-15-2005 10:12 AM

Been looking for a hack like this for ages, finally i can actually move custom templates
^_^

Kihon Kata 10-21-2005 06:11 PM

Quote:

Originally Posted by Dream
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


All times are GMT. The time now is 04:49 PM.

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.03233 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete