Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Template Manager 0.6 Details »»
Template Manager 0.6
Version: 0.7, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 06-24-2005 Last Update: 01-14-2006 Installs: 160
Re-useable Code Additional Files  
No support by the author.

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

Show Your Support

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

Comments
  #62  
Old 12-31-2005, 01:55 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yorixz
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:
	$sql = 'SELECT title, template_un FROM template
with
Code:
	$sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template
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:

PHP Code:
 Invalid SQL:
SELECT titletemplate_un FROM " . TABLE_PREFIX . "template
WHERE templateid 
388 ORDER BY title;

MySQL Error  You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "template
WHERE templateid = 388 ORDER BY tit
Error Number : 1064
Date         : Saturday, December 31st 2005 @ 04:40:42 PM
Script       : /Doms/admincp/custom_template_manager.php
Referrer     : /Doms/admincp/custom_template_manager.php
IP Address   : 
Username     : Xplorer4x4
Classname    : vb_database 
Reply With Quote
  #63  
Old 12-31-2005, 01:58 PM
waza waza is offline
 
Join Date: Apr 2005
Location: Belgium
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

".TABLE_PREFIX." should be with ' ' instead of " "
so replace that with ' . TABLE_PREFIX . '
and it will work

grz,
seba
Reply With Quote
  #64  
Old 12-31-2005, 02:06 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waza
".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.
Reply With Quote
  #65  
Old 01-01-2006, 10:11 AM
waza waza is offline
 
Join Date: Apr 2005
Location: Belgium
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k, srry

I guess you now have:
Quote:
$sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template
Replace that with:
Quote:
$sql = 'SELECT title, template_un FROM ' . TABLE_PREFIX . 'template
so you see, the [" "] have been replaced with [' ']

grz,
seba
Reply With Quote
  #66  
Old 01-02-2006, 11:31 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice but is this going to work on v3.5.2?
Reply With Quote
  #67  
Old 01-02-2006, 03:19 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks wazza and i had no problems running this on 3.5.2.
Reply With Quote
  #68  
Old 01-02-2006, 05:35 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aftermath
Nice but is this going to work on v3.5.2?
Is there someone who is gonna answer back to my question?
Reply With Quote
  #69  
Old 01-02-2006, 05:37 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read my post before yours......

https://vborg.vbsupport.ru/showpost....5&postcount=66
Reply With Quote
  #70  
Old 01-02-2006, 05:59 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoa my bad.
Reply With Quote
  #71  
Old 01-03-2006, 01:23 AM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this put templates into groups?
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 12:36 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.07329 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (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
  • (4)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