heloo every one ..
i have i small code ..
and i dont now where i can put it .. (hook)
i build a littel Hack ANd i Hava a littel repalce in some template
see my Code :
PHP Code:
//################### Editor Clientscript ###################//
$vbulletin->templatecache['editor_clientscript'] = str_replace(
array(
'vbphrase["insert_all"] = "$vbphrase[insert_all]";'
),
array(
'vbphrase["insert_all"] = "$vbphrase[insert_all]";
$vbulletin->templatecache['Alzaabi_editor_clientscript']'
),
$vbulletin->templatecache['editor_clientscript']
);
//################### Headinclude ###################//
$vbulletin->templatecache['headinclude'] = str_replace(
array(
'<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>'
),
array(
'<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
$vbulletin->templatecache['Alzaabi_headinclude']'
),
$vbulletin->templatecache['headinclude']
);
//################### Quickreply ###################//
$vbulletin->templatecache['showthread_quickreply'] = str_replace(
array(
' <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
</if>'
),
array(
'<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
$vbulletin->templatecache['Alzaabi_showthread_quickreply']'
),
$vbulletin->templatecache['showthread_quickreply']
);
wait Help ..