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)

thincom2000 11-21-2008 05:07 PM

Quote:

Originally Posted by Andreas (Post 1666063)
No, it's a 3.8 issue.
An updated package will be released soon.

Yeah, they aren't deleted, they are just saved with a styleid = 0. In the update GPC list, ismaster was TYPE_NOOL, and styleid was TYPE_UINT. I had made a few changes to the product a while back to fix some content encoding issues I was having, but I don't think I messed with this.

Changing these to TYPE_BOOL and TYPE_INT respectively fixed any further "disappearances" in 3.8 for me.

fly 11-21-2008 05:16 PM

Quote:

Originally Posted by Andreas (Post 1666063)
No, it's a 3.8 issue.
An updated package will be released soon.

Any chance you've seen my posts and think its something you might be able to fix in this next version?

https://vborg.vbsupport.ru/showpost....&postcount=409

momo2 11-27-2008 05:30 PM

Also how do i get rid of the footer advertising for tms

Vinyljunky 11-28-2008 09:37 AM

Quote:

Originally Posted by Vinyljunky (Post 1668096)
Great mod installed and working for some time now :up:

Id like to use it for the VBStatus template mods such as:


PHP Code:

    Template Edit 1headinclude
    
    Add the Following HTML code to the BOTTOM of your template
:
    
<!--
BEGIN VBSTATUS-->
<!--
BEGIN VBSTATUS-->
<!--
BEGIN VBSTATUS-->
<if 
condition="$vbulletin->options['vbstatus_active']">
<
div id='mypopup' name='mypopup' style='z-index:1000; position: absolute; background: none; border: none;'></div>
<
script type="text/javascript" src="vbstatus/ajax_wrapper.js"></script>

<
script type="text/javascript" src="vbstatus/headerjavascript.js"></script>
</if>
<!--
END VBSTATUS-->
<!--
END VBSTATUS-->
<!--
END VBSTATUS--> 

How do I get TMS to add the code at the bottom?

Thanks :o

Any ideas to answer the above would be very welcome :)

In short: How do I get TMS to add stuff to the bottom of a template?

Thanks

VJ

K4GAP 12-01-2008 02:41 PM

I am like so many vb'ers in that I frequent this board looking for something to make my life easier as both a license holder and fan of Vbulletin.

My question is this...

I have a heavily modded style that I have played with and tweaked for months. I also have a bunch of mods installed. If I install this "TMS" what problems are there that I am likely to encounter?

dartho 12-02-2008 08:58 AM

1 Attachment(s)
Andreas - is there a manual work around to the 3.8 incompatibility?

Quote:

Originally Posted by Vinyljunky (Post 1674475)
Any ideas to answer the above would be very welcome :)

In short: How do I get TMS to add stuff to the bottom of a template?

Thanks

VJ

Search for
Code:

<!-- logo -->
and add below

-or-

I've attached my vBstatusTMS edits - try importing this

Deepdog009 12-02-2008 10:57 PM

Great Mod Andreas... Updating templates without it,,, is a pain in the A$$...;)

drsli 12-07-2008 10:13 AM

I simply love this modification and for me it?s definitely the most important enhancement for any vb-upgrade. I just can say "Thankyou so much" for giving us this tool.

Quote:

Originally Posted by thincom2000 (Post 1670173)
Changing these to TYPE_BOOL and TYPE_INT respectively fixed any further "disappearances" in 3.8 for me.

Could you please explain the steps to do this for a non-programmer, if it?s not too much striking out? I don?t fear to change any code, but I don?t know where to search for this type-variants.

I came across the same issues with diminishing template-edits, searched my database and found the described styleid-variable in the database. But in the end I made a switch back to 3.74pl1 to be safe with TMS.

dartho 12-07-2008 11:07 PM

I've not tested this personally yet, but thincom2000 was referring to the templateedits.php file. TO apply his/her 'fixes' for version 1.1.4:

Edit the admincp/templateedits.php file, search for :
PHP Code:

// update a modified templateedit
if ($_REQUEST['do'] == 'update')
{
    
$vbulletin->input->clean_array_gpc('p', array(
        
'searchorder' => TYPE_UINT,
        
'searchstr' => TYPE_NOTRIM,
        
'replacestr' => TYPE_NOTRIM,
        
'styleid' => TYPE_UINT,
        
'oldtemplate' => TYPE_STR,
        
'template' => TYPE_STR,
        
'title' => TYPE_NOHTML,
        
'oldproduct' => TYPE_STR,
        
'product' => TYPE_STR,
        
'varname' => TYPE_STR,
        
'oldvarname' => TYPE_STR,
        
'templateeditid' => TYPE_INT,
        
'templateeditlocationid' => TYPE_INT,
        
'method' => TYPE_STR,
        
'active' => TYPE_BOOL,
        
'ismaster' => TYPE_NOOL
    
)); 

and replace with

PHP Code:

// update a modified templateedit
if ($_REQUEST['do'] == 'update')
{
    
$vbulletin->input->clean_array_gpc('p', array(
        
'searchorder' => TYPE_UINT,
        
'searchstr' => TYPE_NOTRIM,
        
'replacestr' => TYPE_NOTRIM,
        
'styleid' => TYPE_INT,
        
'oldtemplate' => TYPE_STR,
        
'template' => TYPE_STR,
        
'title' => TYPE_NOHTML,
        
'oldproduct' => TYPE_STR,
        
'product' => TYPE_STR,
        
'varname' => TYPE_STR,
        
'oldvarname' => TYPE_STR,
        
'templateeditid' => TYPE_INT,
        
'templateeditlocationid' => TYPE_INT,
        
'method' => TYPE_STR,
        
'active' => TYPE_BOOL,
        
'ismaster' => TYPE_BOOL
    
)); 


dartho 12-08-2008 03:21 AM

After initial testing on a NOT LIVE site, the above change by Thincom2000 appears to address the issues under 3.8RC1.


All times are GMT. The time now is 05:26 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.03653 seconds
  • Memory Usage 1,770KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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