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)

dartho 04-17-2009 12:26 AM

@TaMpE - those templates listed are different from the default vBulletin templates, I would assume you have a non-default style installed. If you wish to use TMS to further modify them, you can do so in that section.

If you wish to use TMS modify a template which is default (and as such not listed under the styles tree), you do so under the MASTER style in TMS. Any such modification will then be inherited by custom styles.

When I installed TMS, I went through all my non default templates and created TMS rules to make the modifications for me, and then reverted all my templates. My entire sites style is the result of TMS rules only applied to the default style - no actual direct template edits.

voter 04-20-2009 10:44 AM

Any idea how to correct this.
It appears when I am trying to import the xml of package.

Quote:

Database error in vBulletin 3.8.2:

Invalid SQL:

SELECT templateid
FROM vbtemplate
WHERE
edited=1
AND title IN ('footer');

MySQL Error : Unknown column 'edited' in 'where clause'
Error Number : 1054
Request Date : Monday, April 20th 2009 @ 05:41:58 AM
Error Date : Monday, April 20th 2009 @ 05:41:59 AM
Script : ...plugin.php?do=productimport
Referrer : ...plugin.php?do=productadd
Classname : vB_Database_MySQLi
MySQL Version : 5.0.75-community-log
I just added "edited" field into template table of database as THINYINT with size 1 and default value 0. Then installation went correctly - but I don't more need this plug - so unintslling

TaMpE 04-20-2009 11:35 AM

Quote:

Originally Posted by dartho (Post 1792930)
@TaMpE - those templates listed are different from the default vBulletin templates, I would assume you have a non-default style installed. If you wish to use TMS to further modify them, you can do so in that section.

If you wish to use TMS modify a template which is default (and as such not listed under the styles tree), you do so under the MASTER style in TMS. Any such modification will then be inherited by custom styles.

When I installed TMS, I went through all my non default templates and created TMS rules to make the modifications for me, and then reverted all my templates. My entire sites style is the result of TMS rules only applied to the default style - no actual direct template edits.

Quote:

Originally Posted by slyreptile (Post 1792750)
In your Template Modifications Manager, select Add Template-Modification under the MASTER STYLE dropdown box. This allows you to create the template edit for all styles without actually manually editing any template beforehand.

Thank you so much for helping me out. It's going to be a really nice plugin if it allows us to edit all at once! lol

oskqqqq 05-04-2009 06:10 PM

mod of the year...

Mrdby 05-10-2009 11:55 AM

I was trying to remove and got this.

* Removing old Template-Modifications ... Done!
* Removing all Template-Modifications from Templates ...
Warning: Unknown([path]/includes/adminfunctions_templateedits.php): failed to open stream: No such file or directory in [path]/admincp/plugin.php(1522) : eval()'d code on line 10
Fatal error: (null)(): Failed opening required '/hsphere/local/home/*****/*****.net/forum/includes/adminfunctions_templateedits.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/****/****.net/forum/admincp/plugin.php(1522) : eval()'d code on line 10

and the screen hasn't refreshed yet.

ragtek 05-10-2009 12:13 PM

it seems that you have deleted adminfunctions_templateedits.php and it's needed for the de installation

fukdawrld 05-11-2009 07:27 PM

Thanks for this great hack but it is causing an error on my board. When I try to edit a template or use the style manager my screen looks like this

https://vborg.vbsupport.ru/external/2009/05/36.png


When I disable the TMS it looks normal. I tried reinstalling and reupping the files but that didn't work. Thanks in advance for your help.

Andreas 05-12-2009 04:32 PM

It seems like you are using a strange/uncommon content compression configuration

Check php.ini/.htaccess settings
zlib.output_compression
zlib.output_handler
output_handler
output_buffering

Check settings for apache modules mod_deflate, mod_gzip

Check vBulletin GZip setting

GZip really should be turned on only once.

eXoOutsider 05-14-2009 07:16 PM

Hey, this mod has been amazing, life saver for me thus far. But now I have a problem, the navbar template is jsut gone from the mod. Anyone have any idea? It's just navbar under navigation/breadcrumbs, not navbar_link or anything

dancue 06-07-2009 04:28 PM

When using IE I noticed that the inactive edits are not crossed out. I just noticed.

Black Tiger 06-07-2009 08:31 PM

Which version of IE are you using?

SirHappy 06-20-2009 03:42 PM

thx. works in 3.8.3.

Andreas 06-27-2009 02:41 PM

Quote:

Originally Posted by dancue (Post 1825149)
When using IE I noticed that the inactive edits are not crossed out. I just noticed.

Yep. IE is dumb and does not understand CSS properly :)
That's the reason why [X] is added for this browser instead.

Shevko 06-27-2009 07:36 PM

Works great..

Harley D 07-21-2009 07:41 PM

I love the mod but found it to be giving me server configuration errors and low memory errors, that went away once I deactivated.

Its HIGHLY possible that its conflicting with another mod... I researching that possibility now.

VB 3.8.3
PHP Version 5.2.9

bada_bing 08-29-2009 01:19 AM

Quote:

Originally Posted by Andreas (Post 1809469)
It seems like you are using a strange/uncommon content compression configuration

Check php.ini/.htaccess settings
zlib.output_compression
zlib.output_handler
output_handler
output_buffering

Check settings for apache modules mod_deflate, mod_gzip

Check vBulletin GZip setting

GZip really should be turned on only once.

Andreas,

I am having the same issues and I did validate that Gzip is no enabled withing VB. My site is also hosted in a Windows Server. If I disable this plugin my templates display correclty but I have vbspell that relies on this plugin...

Andreas 09-30-2009 01:28 PM

Please post the values of the mentioned PHP settings.

bada_bing 09-30-2009 01:58 PM

Quote:

Originally Posted by Andreas (Post 1892812)
Please post the values of the mentioned PHP settings.

What values and how can I get them.. Sorry

Andreas 09-30-2009 03:58 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1876145&postcount=536" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=536</a>

bada_bing 10-02-2009 01:33 PM

Quote:

Originally Posted by Andreas (Post 1892889)

Where can I look to get those exact perameters

fly 10-02-2009 02:41 PM

Quote:

Originally Posted by bada_bing (Post 1893717)
Where can I look to get those exact perameters

I'd guess you could probably get them from phpinfo

Andreas 10-04-2009 07:39 AM

Quote:

Originally Posted by bada_bing (Post 1893717)
Where can I look to get those exact perameters

In the place they are defined, eg. php.ini, httpd.conf, vHost configuration or .htaccess :)

Where they are defined exactly depends on yoru configuration, so you (so your hoster) is the only one who could tell where to look.

AfterWorldForum 10-15-2009 09:33 AM

Loving this mod. I really really hope that this will still work with vB4, as this mod is a time-saver, and will be a major factor in succesfully migrating mods and styles to VB4.

Thanks Andreas :)

DiGiSYS 11-02-2009 03:34 AM

Hi there.

i want add this product https://vborg.vbsupport.ru/showthread.php?t=222190
but win i upload the product i have this
Quote:

Error de Base de Datos en vBulletin 3.8.4:

Invalid SQL:

SELECT templateid
FROM p_template
WHERE
edited=1
AND title IN ('footer');

MySQL Error : Unknown column 'edited' in 'where clause'
Error Number : 1054
Request Date : Monday, November 2nd 2009 @ 12:33:44 AM
Error Date : Monday, November 2nd 2009 @ 12:33:45 AM
Script : http://puritanias.com/.../plugin.php?do=productimport
Referrer : http://puritanias.com/.../plugin.php?do=productadd
IP Address : 170.51.245.31
Username : DiGiSYS
Classname : vB_Database
MySQL Version : 5.0.81-community-log

i try uninstall TMS 1.1.5 but have same error in DB :confused:
Quote:

Error de Base de Datos en vBulletin 3.8.4:

Invalid SQL:

SELECT templateid
FROM p_template
WHERE
edited=1;

MySQL Error : Unknown column 'edited' in 'where clause'
Error Number : 1054
Request Date : Monday, November 2nd 2009 @ 12:29:44 AM
Error Date : Monday, November 2nd 2009 @ 12:29:44 AM
Script : http://puritanias.com/.../plugin.php?do=productkill
Referrer : http://puritanias.com/.../plugin.php...oductid=tms&s=
IP Address : 170.51.245.31
Username : DiGiSYS
Classname : vB_Database
MySQL Version : 5.0.81-community-log

Andreas 11-02-2009 11:27 AM

Quote:

Originally Posted by TMS readme.txt
Warning
-------
The maintenance function 'Rebuild all Styles' MUST NOT be executed when the Plugin System or TMS is disabled!

There you go - you most likely executed that function with either TMS or Plugin-System disabled => DB corrupted.

Best advice I could give is to reload your backup, sorry.

DiGiSYS 11-02-2009 02:56 PM

:D my backup its too old... 9 days ago... i will try 1st delete and reinstall all styles or upload only template table... and post results

Black Tiger 11-16-2009 01:04 AM

1 Attachment(s)
Found a little problem with TMS and don't know how to fix it.

I've got the template "ad_footer_end" customized in my main style.

Now I want to make a little temporary adjustment to it, but now te problem occurs. I use TMS, select the "ad_foter_end" template and choose to "view content", but I only get an empty box. Is does not show the adjustments made.

Now I just put in the main box the text which is in the original ad_footer_end and in the replacement box the temporary replacement and this works on my forums. But when I use the "test template modifications" option the "Master" will display the "0 Edit" function, which means there is a problem.
Attachment 106178

But on the bottom of this test page, the "Checking Template-Modifications: vBulletin 3" (my main style) gives the OK sign.
Attachment 106179
I guess it hass something to do with the fact that the ad_footer_end templates is integrated in the footer template with the $ad_footer_end variable and I even changed that position in the original footer template. I put it a bit lower.

But seems to me this is not oke, the Master should give an "oke" just as the main style at the bottom does.
Furthermore the picture which I added on the left side of the banner in the footer, contains no border, but on the right side it does (as it should), see my forums at satellitefun.org to see what I mean.

Help?

Andreas 11-20-2009 01:32 PM

The ad_footer_end template in MASTER style is always empty ... so there is really nothing you could search and replace there?

Black Tiger 11-20-2009 08:53 PM

Standard it's empty indeed, but they are ment to put some ad in there, which I did.

And now the search and replace funktion of TMS is not working correctly, because I do a search of text, which TMS thinks is not present, and replace it with text which is present.

Which causes the template test to give a failure like in the screenshot.
If I leave the search window empty and only put the replace part in there, I get my banner numerous times.
So something is really wrong there. It should be possible to also use that template in TMS, shouldn't it?

I would like the border around that picture and I would like the error in the TMS test templates funktion to be gone.

Maybe I can solve it by doe a TMS search/replace on the footer template, which has the ad_footer_end template variable included and it will work, but still I find it strange then that the ad_footer_end template (and probably the others too) can't be used with TMS.

TheSupportForum 11-24-2009 07:11 AM

will this mod be introduced for vbulletin 4 ?

Andreas 11-27-2009 05:19 PM

Quote:

Originally Posted by Black Tiger (Post 1917991)
So something is really wrong there. It should be possible to also use that template in TMS, shouldn't it?

Yes - for a Non-Master Style.

So if you customized the template and added foo in there you can use TMS to replace that foo with bar.

If you add a modification for this template in MASTER style (where it will always be empty) you will obviously get an error when you test the modification (searching for smth. in an empty template does fail).

Black Tiger 11-27-2009 09:13 PM

Ah oke, thank you Andreas, now I understand.
I need the change in all styles, so I would have to do them seperately in all styles then.

In that case I can better use TMS in the Master Style on the Footer template and add the images around the $ad_footer_end variable because that works also, and without the error notice.

Thank you for your explanation and your patience with me.

ndahiya 12-31-2009 06:36 PM

this mod appears to work in vb4 without any change, thought a lot of the mods have to reapplied (coz of code changes, search strings can not be found).

fly 01-01-2010 11:47 AM

Aww man, you had to install it on 4.0? I was hoping Andreas would be able to slip this into production. :(

AWJunkies 01-15-2010 02:03 PM

This should be standard in vBulletin for sure. So we 100% this works in 4.0 any confirmation from developer?

lgnd 01-15-2010 04:10 PM

It's working on my test board but it's recommended to completetly uninstall before upgrading to 4.x.x I had problems when upgraded my test board with TMS installed even with removed template mods.

The best mod for vB ever!

Videx 01-15-2010 04:25 PM

Quote:

Originally Posted by lgnd (Post 1956630)
It's working on my test board but it's recommended to completetly uninstall before upgrading to 4.x.x I had problems when upgraded my test board with TMS installed even with removed template mods.

The best mod for vB ever!

yes, I understand I'll have to disable hooks entirely in the config.php file when upgrading. But if you remember what the troubles were and how you fixed them, could you let us know? Had you disabled hooks?

lgnd 01-16-2010 11:14 AM

I completly uninstalled TMS before the upgrade. There are few files you'll have to manually delete after uninstallation, check the readme file. First time I forgot to delete those files and it caused problems after the upgrade on my test board.

So I did my template mods in my test enviroment with tms and after upgrading my live site I imported the template mods from the test forum into the live forum tms.

Side note the branding notice is not visible in the footer I hope Andreas will fix this problem!

Videx 01-16-2010 01:25 PM

Quote:

Originally Posted by lgnd (Post 1957269)
I completly uninstalled TMS before the upgrade. There are few files you'll have to manually delete after uninstallation, check the readme file. First time I forgot to delete those files and it caused problems after the upgrade on my test board.

That's just odd. Why would a few files sitting there, being called by nothing, cause trouble? Oh well, I'll do as told.

fly 01-30-2010 08:21 PM

I fear that I have done something very, very wrong. This mod seems to work great on vB4. However, I just disabled and then enabled this hack. After re-enabling it, I get nothing but a blank page in the admincp.

I'm trying not to panic, but can anyone help?

edit: Odd. It was suhosin, if anyone cares. I made some changes to it yesterday. I guess TMS didn't like the changes...


All times are GMT. The time now is 08:14 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.02203 seconds
  • Memory Usage 1,842KB
  • 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
  • (15)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