vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931)

yoyoyoyo 11-12-2007 10:53 PM

Quote:

Originally Posted by Andreas (Post 1381105)
What does "customized template support" mean?

@yoyoyo
Smth. like 'Download Plugins' is already planned.

cool

"customized template support" refers to templates that are specific to a certain style

Icy 11-13-2007 06:05 AM

1 Attachment(s)
Quote:

Originally Posted by Andreas (Post 1381105)
What does "customized template support" mean?

Sorry for the missunderstanding. I recheck & finally understand how it works. In master style I'll find all templates & in normal style I'll find only those templates which has been customized/edited.

Anyway I believe there is a bug. When I enable the TMS I can edit templates but I can't save it because there is no Save or Save & Reload button. If I disable TMS then everything go back to normal. I've attached 2 screenshot. I reproduced the problem both in Firefox & Opera. I have not try Internet Explorer though.

Andreas 11-16-2007 03:53 PM

@yoyoyo
Erm, TMS works just fine with custom/customized templates?

Do you want to create "virtual" templates, eg. advise TMS to apply modification X to template foo in style Y only, without template foo being customized in style Y?
That is (and most likely never will be) possible: If a template is not customized in a certain style, it does not physically exist - it's just a reference to the inherited template.

@Icy
Sorry, but I can't help you (without an ACP login for you board) as I am unable to reproduce the problem locally.

Icy 11-17-2007 02:05 PM

Quote:

Originally Posted by Andreas (Post 1383825)
@Icy
Sorry, but I can't help you (without an ACP login for you board) as I am unable to reproduce the problem locally.

PM sent

Andreas 11-18-2007 02:21 PM

1 Attachment(s)
@All those having problems with TMS in ACP (Style Manager & Product Manager)
Could you check if the attached plugin fixes the problems?

nyunyu 11-18-2007 04:19 PM

Sorry, this might not be any useful post as I just wanted to know if this hack can be use in 3.5.4 version of vbulletin?

Thanks

nyunyu 11-18-2007 05:52 PM

maybe I was dumb...I installed this hack on 3.5.4 and it give me this error

HTML Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
        (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
        ('1', '5', 'Event-Handler: Produkt aktivieren/deaktivieren', 'admin_complete', '// Handle enabling/disabling Product \r\nif (($_REQUEST[\'do\'] == \'productenable\' OR $_REQUEST[\'do\'] == \'productdisable\') AND $vbulletin->GPC[\'productid\'] AND $vbulletin->adminloggedin AND can_administer(\'canadminplugins\'))\r\n{\r\n        global $product_update;\r\n        if (is_array($product_update) AND !empty($product_update))\r\n        {\r\n                require_once(DIR . \'/includes/adminfunctions_templateedits.php\');\r\n                if ($_REQUEST[\'do\'] == \'productenable\' OR !in_array(\'tms\', $product_update))\r\n                {\r\n                        $templates = array();\r\n                        $templatesq = $vbulletin->db->query_read(\"SELECT template FROM \" . TABLE_PREFIX . \"templateeditlocation WHERE product IN (\'\" . implode(\"\', \'\", $product_update) . \"\') GROUP BY template\");\r\n                        while ($templateedit = $vbulletin->db->fetch_array($templatesq))\r\n                        {\r\n                                $templates[] = $templateedit[\'template\'];\r\n                        }        \r\n                }\r\n                else\r\n                {\r\n                        define(\'TMSDEACTIVATED\', true);\r\n                        $templates = \'\';\r\n                }\r\n                rebuild_template_edits(\'\', $templates);\r\n        }\r\n}', 'tms');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date        : Monday, November 19th 2007 @ 03:48:36 AM
Script      : http://nyunyu.info/animeproject/admincp/plugin.php
Referrer    : http://nyunyu.info/animeproject/admincp/plugin.php?do=productadd
IP Address  : 121.xxx.xxx.xxx
Username    : nyunyu
Classname    : vb_database


how to revert back?

dartho 11-18-2007 10:59 PM

Edit: Confirmed by Andreas that it will not be compatible

[S]you may be able to get it running under 3.5.4 by editing the product-tms.xml file and replace all occurences.

BUT - If there are 3.6.x code dependent hooks, it likely will not work and you may need to disable all plugins so you can then uninstall. AFter looking through all the posts in this thread, there is no menation of people NOT being able to get it working on 3.5.x..... yet[/s]
[s]<plugin active="1" executionorder="5">[/s]
with
[s]<plugin active="1">[/s]
[s]then try and install again?[/s]




Otherwise the uninstallation instructions in the readme.txt file are:
Quote:

Originally Posted by readme.txt
Uninstallation
--------------
1) Uninstall product'Template Modification System' in ACP 'Products & Plugins / Manage Products'
2) Delete the following files
- includes/xml/cpnav_tms.xml
- admincp/templateedits.php
- includes/adminfunctions_templateedits.php
- clientscript/tms_templateeditmgr.js
- clientscript/tms_ajax.js
- includes/md5_sums_tms.php

You won't need to do step 1 if the install is failing

Andreas 11-19-2007 03:36 AM

Due to the fact that there are no "always execute" installation codes (eg. version = *) in vBulletin 3.5.x, you won't be able to get this working properly on 3.5.x.

yoyoyoyo 11-19-2007 03:53 AM

Quote:

Originally Posted by Andreas (Post 1383825)
@yoyoyo
Erm, TMS works just fine with custom/customized templates?

Do you want to create "virtual" templates, eg. advise TMS to apply modification X to template foo in style Y only, without template foo being customized in style Y?
That is (and most likely never will be) possible: If a template is not customized in a certain style, it does not physically exist - it's just a reference to the inherited template.

OK - that makes sense - it would be nice to be able to customize modified templates in certain styles, though, but I can see how that would be a problem.


All times are GMT. The time now is 04:25 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.01635 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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