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)

Marv 03-05-2014 05:31 PM

Hi all,
hi Andreas.

I am running TMS since a few years and hadn?t touched it in the last year. End of february I?ve tried to do a little template change and noticed the same day here on vb.org, that TMS has an update and a patch available, so I?ve installed them first.

Since this moment TMS wasn?t working proper anymore, means: I couldn?t do new changes. Even though the changes I?ve made before the update seemd to work as before.

Today I had to learn it the hard way, to never change a running system: I had a look at my AdSense-Account and I was shocked about the loss of clicks and revenue. Costs for site and server are barely covered by the revenue and the loss of 70% clicks was some kind of wake-up call.

It took a while to notice, that 2 custom ad-placements I have created years ago were gone. They are still in the TMS and TMS tells me, they are working - but they don?t. The error message is saying:
Quote:

A curly bracket wasn?t closed. Do you have inserted a curly bracket without content between ( {} )? If so, enclose the complete code with <vb:literal>Your code</vb:literal>.
Has anyone an idea, what I can do now?

I?m now in a situation, that I can?t do changes to the showthread template. Wether through TMS nor through direct template edits. It always displays this error message as shown above. Even when trying to save the original non-altered showthread template.

-- Edit--

Problem solved.
This error occured because of this mod: https://vborg.vbsupport.ru/showthread.php?t=308620 . It?s now in the graveyard for a good reason (the idea sounds promising though, but the code has to be rewritten). For the other 3 who have that addon installed - after you have uninstalled this addon you HAVE TO revert your SHOWTHREAD template or you will have the risk of code fragments still sitting in the SHOWTHREAD template. The uninstall routine hadn?t worked properly in my installation and left changes in the template that caused that error. May be one of the mods could attach this info to the Addon in the graveyard.

BirdOPrey5 03-06-2014 08:11 PM

Quote:

Originally Posted by Marv (Post 2485241)
Problem solved.
This error occured because of this mod: https://vborg.vbsupport.ru/showthread.php?t=308620 . It?s now in the graveyard for a good reason (the idea sounds promising though, but the code has to be rewritten). For the other 3 who have that addon installed - after you have uninstalled this addon you HAVE TO revert your SHOWTHREAD template or you will have the risk of code fragments still sitting in the SHOWTHREAD template. The uninstall routine hadn?t worked properly in my installation and left changes in the template that caused that error. May be one of the mods could attach this info to the Addon in the graveyard.

I'm glad revering the template helped you but I don't think the problem came from the Panda mod.

RavenDust 03-21-2014 09:26 AM

Quote:

Originally Posted by Phaedrus (Post 2475733)
On Version 4.2.2

I rem'd out line 20 in the forums/admincp/templateedits.php file and it now works again.

Right as rain...

This:
Code:

// double output buffering does some weird things, so turn it off
define('CVS_REVISION', '$RCSfile$ - $Revision: 146 $');
define('NOZIP', 1);
$vbulletin->nozip = true;

Became this:
Code:

// double output buffering does some weird things, so turn it off
define('CVS_REVISION', '$RCSfile$ - $Revision: 146 $');
define('NOZIP', 1);
//$vbulletin->nozip = true;


You could alway do the (kind of) right thing and do something like

Code:

// double output buffering does some weird things, so turn it off
define('CVS_REVISION', '$RCSfile$ - $Revision: 146 $');
define('NOZIP', 1);
$vbulletin = new stdClass();
$vbulletin->nozip = true;

That way you retain the original function of the code, but disable the warning. At least for php 5.4. I mean, this worked fine on my server. No guarantees^^

Phaedrus 04-07-2014 11:57 PM

Quote:

Originally Posted by RavenDust (Post 2488699)
You could alway do the (kind of) right thing and do something like

Code:

// double output buffering does some weird things, so turn it off
define('CVS_REVISION', '$RCSfile$ - $Revision: 146 $');
define('NOZIP', 1);
$vbulletin = new stdClass();
$vbulletin->nozip = true;

That way you retain the original function of the code, but disable the warning. At least for php 5.4. I mean, this worked fine on my server. No guarantees^^

This worked better than my cutthroat method/quick fix. Some day I'll have time to dig into this. I just don't know when someday is on the calendar.

Alan_SP 01-10-2015 06:57 PM

Does this extremely useful mod still works on vB4.2.2 and 4.2.3b? I see that there needs some lines of code to be modified.

How it works for you? I'm thinking about upgrading to 4.2.2 and this is important mod for my site.

Toorak Times 02-23-2015 11:24 AM

Quote:

Originally Posted by Alan_SP (Post 2531742)
Does this extremely useful mod still works on vB4.2.2 and 4.2.3b? I see that there needs some lines of code to be modified.

How it works for you? I'm thinking about upgrading to 4.2.2 and this is important mod for my site.


I'd like to know too Alan. How does it affect template changes made before installation?

Black Tiger 02-23-2015 11:47 AM

I'm wondering about this too. Best mod made ever which makes admin live lots easyer, especially when upgrading after a lot of changes.
It should have been bought by vB and implemented by default.

Alan_SP 02-23-2015 09:47 PM

Or some other developer start developing similar mod with same functionality and using same data format, for example DBTech. If only Andreas would keep supporting his great mods.

ndahiya 03-14-2015 09:57 PM

Quote:

Originally Posted by Alan_SP (Post 2531742)
Does this extremely useful mod still works on vB4.2.2 and 4.2.3b? I see that there needs some lines of code to be modified.

How it works for you? I'm thinking about upgrading to 4.2.2 and this is important mod for my site.

This still works great as of 4.2.3 b4.
Install the mod, install the patch (opening post), and then the one small change below.

ndahiya

Quote:

Originally Posted by RavenDust (Post 2488699)
You could alway do the (kind of) right thing and do something like

Code:

// double output buffering does some weird things, so turn it off
define('CVS_REVISION', '$RCSfile$ - $Revision: 146 $');
define('NOZIP', 1);
$vbulletin = new stdClass();
$vbulletin->nozip = true;

That way you retain the original function of the code, but disable the warning. At least for php 5.4. I mean, this worked fine on my server. No guarantees^^


Alan_SP 03-19-2015 04:07 PM

Thank you very much for your info. :up:


All times are GMT. The time now is 11:48 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.02498 seconds
  • Memory Usage 1,755KB
  • 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
  • (5)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)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