vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Changing templates with plugins (https://vborg.vbsupport.ru/showthread.php?t=230202)

ragtek 12-17-2009 06:58 PM

My question is a little bit offtopic.

Can the new vB4 Template Mering be used for this?
http://www.vbulletin.com/forum/entry...Way-Comparison

Anybody tried this?

BBR-APBT 12-17-2009 07:29 PM

Quote:

Originally Posted by ragtek (Post 1932437)
My question is a little bit offtopic.

Can the new vB4 Template Mering be used for this?
http://www.vbulletin.com/forum/entry...Way-Comparison

Anybody tried this?

It should stay there with upgrade but I don't trust it my self as I haven't tested that feature out enough yet.

Mrajp 12-18-2009 08:28 AM

Quote:

Originally Posted by BBR-APBT (Post 1932431)
Try this
Code:

$str = "<!-- Some Comment -->";

$replace = '<br /><input type="checkbox" name="resolved" value="1" />Resolution?';


    $vbulletin->templatecache['newreply'] = str_replace($str,$str.$replace,$vbulletin->templatecache['newreply']);

I switched the " and ' around.

Switching the string identifiers fixed the problem. Thank you so very much! :)

Quote:

Originally Posted by ragtek (Post 1932437)
My question is a little bit offtopic.

Can the new vB4 Template Mering be used for this?
http://www.vbulletin.com/forum/entry...Way-Comparison

Anybody tried this?

This looks interesting, I'm going to have a lot of style changes to make and I may try this.

ragtek 12-18-2009 08:33 AM

If it's not working, try tms!


All times are GMT. The time now is 05:00 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.01124 seconds
  • Memory Usage 1,726KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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