View Single Post
  #91  
Old 04-22-2007, 10:14 AM
succo succo is offline
 
Join Date: Sep 2003
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i tried to install it, but it didn't work, as all the other mods which modify 'full page' templates... i explain... i'm running a vba-wrapped vbulletin, in which every page is wrapped with vbadvanced columns, and this causes all the templates to be rewritten with vba styles, even (and more than others) the ones containing a full page, not only the <body></body> part, so that every plugin rewriting the template (out of the 'body' tag) isn't going to work

i'd recommend adding a plugin which inserts the needed code (the one loading register.js) directly in headinclude... i had to do it many times with other mods (such as googlemap ones, just to say)... it's a simple plugin like this:
Code:
if (THIS_SCRIPT == 'register')
{
$str = '<!-- / CSS Stylesheet -->';
$vbulletin->templatecache['headinclude'] = str_replace($str,$str.'<script type=\"text/javascript\" src=\"./clientscript/register.js\"></script>
<script type=\"text/javascript\">						
	var ajaxreg_email_error_1 = \"$vbphrase[ajaxreg_email_error_1]\";
	var ajaxreg_email_error_2 = \"$vbphrase[ajaxreg_email_error_2]\";
	var ajaxreg_email_error_3 = \"$vbphrase[ajaxreg_email_error_3]\";
	var ajaxreg_email_error_4 = \"$vbphrase[ajaxreg_email_error_4]\";
	var ajaxreg_email_error_5 = \"$vbphrase[ajaxreg_email_error_5]\";
	var ajaxreg_email_error_6 = \"$vbphrase[ajaxreg_email_error_6]\";
	var ajaxreg_email_error_7 = \"$vbphrase[ajaxreg_email_error_7]\";
	var ajaxreg_email_error_8 = \"$vbphrase[ajaxreg_email_error_8]\";
	var ajaxreg_name_minuserlength = \"' . $minuserlength['minuserlength'] . '\";
	var ajaxreg_name_usernameregex = \"' . $usernameregex['usernameregex'] . '\";
	var ajaxreg_name_inuse = \"$vbphrase[ajaxreg_name_inuse]\";
	var ajaxreg_name_illegal = \"$vbphrase[ajaxreg_name_illegal]\";
	var ajaxreg_name_ok = \"$vbphrase[ajaxreg_name_ok]\";
	var ajaxreg_name_error_1 = \"$vbphrase[ajaxreg_name_error_1]\";
	var ajaxreg_name_error_2 = \"$vbphrase[ajaxreg_name_error_2]\";
	var ajaxreg_name_checking = \"$vbphrase[ajaxreg_name_checking]\";
	var ajaxreg_password_error_1 = \"$vbphrase[ajaxreg_password_error_1]\";
	var ajaxreg_password_ok = \"$vbphrase[ajaxreg_password_ok]\";
	var ajaxreg_password_nomatch = \"$vbphrase[ajaxreg_password_nomatch]\";
	var ajaxreg_password_match = \"$vbphrase[ajaxreg_password_match]\";
	var ajaxreg_email_ok = \"$vbphrase[ajaxreg_email_ok]\";
	var ajaxreg_email_nomatch = \"$vbphrase[ajaxreg_email_nomatch]\";
	var ajaxreg_email_match = \"$vbphrase[ajaxreg_email_match]\";
</script>',$vbulletin->templatecache['headinclude']);
}
or something like this, even if i usually do it using a template containing the code to be inserted
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01061 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete