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.

nyunyu 11-19-2007 11:44 AM

i wish there is someone port it to compatible with 3.5.4.
Anyway, nice hack

Alfa1 11-21-2007 07:31 PM

Andreas, could you PM me the possibilities to get rid of the branding?

Andreas 11-22-2007 04:50 PM

readme.txt

Alfa1 11-22-2007 11:28 PM

Yes, I tried that, but got no response to my email.

Andreas 11-23-2007 03:44 AM

If the E-Mail that I answered just a few minutes ago (dated october 10th) was yours:
I am sorry. It was stuck in my spam folder.

Icy 12-19-2007 02:50 PM

I did something terrible. Now I can't remove this addon :( I Pmed you the details Andreas :) Help me when you are free.

TCooper 12-19-2007 08:59 PM

what about a version for version 3.7.0
not to mention i love this for my 3.6.8 board!

TCooper 12-19-2007 11:41 PM

really weird thing i did a fresh install for 3.7.0 beta 2 and installed this hack and have an error when you go to admincp/templateedits.php link in the admin area and then i have a test area i did an upgrade from 3.6.8 pl 2 to 3.7.0 beta 2 and dont get the error. why would that be....

KURTZ 12-25-2007 02:56 PM

is this hack compatible w/3.7.0 beta 3?

AWJunkies 12-25-2007 03:36 PM

GUYS no offense but nobody is going to support a BETA product until it is completely bug free. BETA IS NOT FOR LIVE SITES!!! So why would someone start working on programing for it when code keeps changing on it to fix bugs. You guys need to calm down and wait for final release of 3.7.0 and everyone most likely will upgrade their mods accordingly.

vgevolution 12-27-2007 01:06 AM

Is anyone else able to create modifications for the footer template? Mine aren't taking affect at all. Seems to work when I use either Show modified Template or Show commented modified Template from within the Style Manager, but then the changes aren't apply in production. All template mods are active. I'm using vb3.6.8p2, and this is the first time I've tried to modify the footer, so I don't know how long the problem has been occurring. All I'm trying to do is add target="_new" code to the admincp and modcp links.

vgevolution 12-27-2007 01:10 AM

Is the English version of this mod supposed to have the plugin names and footer credits in German?

Andreas 12-28-2007 12:09 PM

Yes, they are supposed to be in german.

Modifying the footer should work just fine.

Can you attach the XML that does not work?

Also, this Mod should work just fine with 3.7 as well.

vgevolution 12-28-2007 05:45 PM

Strange, it seems to be working now. Could template caching be delaying the changes?

Andreas 12-28-2007 06:00 PM

Depends on how you are 'caching templates' ...

TCE Killa 12-30-2007 01:46 PM

great mod thanks.

Nacho Love 01-03-2008 06:49 PM

Hello everyone,

I am currently trying to follow the instructions laid out in the following thread:

http://vbdrupal.org/forum/showthread.php?t=1011

In order to basically make my site look similar to the vbdrupal.org website. My goal is to eventually have my left navigation, header and footer drupal blocks displayed on my forums - giving the appearance that the forum loads within my drupal website.

I have installed the template-modifications manager but have been unsuccessful in getting my changes to take effect. However I am very certain that I am doing something wrong that is likely straightforward for most of you, so can anyone help with my remedial questions? :o

First I get to this screen - which option do I want?

http://www.howibeatpanicandanxiety.com/tool_1.jpg

I've been using the MASTER STYLE one - fyi

Once in there, I grasp the basic concepts here of loading up a template (such as header), however, I don't believe my changes are taking effect. On the following screen ,what exactly do I need to do to make the code changes? I've been making the code appear by clicking 'view template', but from here I'm unsure of what to do to make my code changes take effect. What about naming - does it matter at all? Can anyone please provide step by step instructions on what to do?

http://www.howibeatpanicandanxiety.com/tool_2.jpg

Assuming I make the correct code changes, what are my next steps to apply these changes to my website? (pretend you're talking to an idiot :))

Thanks for the help, and sorry for being such a noob :erm:

goddess_dix 01-04-2008 03:22 PM

Quote:

Originally Posted by Nacho Love (Post 1414823)

Assuming I make the correct code changes, what are my next steps to apply these changes to my website? (pretend you're talking to an idiot :))

Thanks for the help, and sorry for being such a noob :erm:

after you set up and save your template changes (and have marked them active in your template setup), you must select the "rebuild all template modifications" option to have your site reflect the changes.

the fact it's for a vbdrupal site doesn't impact how tms works...all tms does is store you template edits in a central location, sort of like a parent style, so you can enable or disable them for different skins. basically it's a search/replace hack for your templates....you can also try making the changes directly in the templates to see how it looks and make sure you're getting the edits you want.

i'd put some random text in your edit so when you rebuild the template modifications, you can see easily whether it's taken or not, because if your simply judging by whether or not your vbdrupal content is showing, you might have another issue to resolve not related to tms.

Andreas 01-05-2008 05:29 AM

You don't have to rebuild all template modifications - rebuildung is being done automatically when necessary.

'Rebuild All Templates' is just for odd cases where automatic rebuilding failed.

Icy 01-05-2008 06:40 AM

Andreas, can I install this on vB 3.7.0 beta 3? If not then any ETA on releasing TMS for vB 3.7.0? One more question about the tms_debrand, can I run the query rather than installing the product? Or can I install the product then uninstall it? Also is this, this & this bugfixes implemented already? Or I have to do this myself?

Andreas 01-05-2008 08:30 AM

This is TMS for vBulelltin 3.7; unforfunetely I can only set 1 compatible version.

You can't 'install' tms_debrand.xml as the installation process will never complete - it's just to remove the branding.

The bugfixes have been implemented, but there is no ETA for a new version yet.

Icy 01-05-2008 09:12 AM

Thanks but this one still not implemented. Should I import the tms-plugin-outputbuffer.xml plugin?

Andreas 01-05-2008 09:48 AM

Please re-read my last post again ...

I said it's implemented, but there is no ETA for a new version yet.

Icy 01-05-2008 01:04 PM

Sorry. I thought these three bugfixes have been implemented in current version. Thanks for the reply.

alexgeek 01-17-2008 08:47 PM

Installed, thanks

KURTZ 01-18-2008 02:43 PM

i dont understand: is compatible or not with 3.7.0 B3?

Icy 01-18-2008 03:22 PM

Quote:

Originally Posted by KURTZ (Post 1423800)
i dont understand: is compatible or not with 3.7.0 B3?

I'm using it on my vB 3.7.0 B3 live forum :)

Hawaiian-TV 01-26-2008 04:10 AM

I hate to be the rotten apple in your basket but I just installed the TMS, clicked View Template, made some manual modifications to a template on the MASTER style, then clicked Save. Voila' ... the modifications were done on all templates. I was impressed!

I noticed though that the template I modified (which was for another mod) didn't work properly so I uninstalled it via the Product Manager. The templates were all the same of course because I hadn't modified them. Then I went back to the TMS, selected that same template to "Revert" the templates back, and hit the Revert button.

Unfortunately the templates did not revert. Worse yet, I noticed for the first time a notice in German at the bottom of every page on the website that the template had been modified by the TMS system. (it almost brought back memories of Nazi Germany, seeing the site having been defaced by the product). Thank God I did of course save a backup SQL file to undo any damage your product may have caused. Maybe one or more other template mods I installed is conflicting with TMS? All I know is if others are having this same problem I suggest this product be moved temporarily to the Product Graveyard until it is fixed.

By the way, we are using VBulletin version 3.6.8 Patch 2.

Computerman

Andreas 01-26-2008 12:18 PM

Quote:

Originally Posted by Hawaiian-TV (Post 1429089)
made some manual modifications to a template on the MASTER style, then clicked Save.

You should never ever modify templates in MASTER style (unless they are templates of a product you are deveoping).
Voila' ... the modifications were done on all templates. I was impressed!

Quote:

I noticed though that the template I modified (which was for another mod) didn't work properly so I uninstalled it via the Product Manager.
You can't 'uninstall' templates vir product manager, only producst?

Quote:

Unfortunately the templates did not revert.
If you manually modified a template in MASTER style, TMS won't ever revert those changed - as it has nothing to do with the modifications anyway.

Quote:

Worse yet, I noticed for the first time a notice in German at the bottom of every page on the website that the template had been modified by the TMS system.
It is clearly stated in the readme.txt that TMS puts a branding in the footer.

Quote:

All I know is if others are having this same problem I suggest this product be moved temporarily to the Product Graveyard until it is fixed.
There is no reason for such action; TMS runs fine on dozens of production sites.

Lionel 01-26-2008 07:56 PM

Quote:

Originally Posted by Andreas (Post 1429275)

There is no reason for such action; TMS runs fine on dozens of production sites.

You are being modest, Andreas, not dozens, HUNDREDS


All times are GMT. The time now is 03:17 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.01882 seconds
  • Memory Usage 1,844KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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