![]() |
Find Replace into Template PlugIn Code
Hi all,
in vb3 i use that code to make changes to templates (parse_templates hook) PHP Code:
Thanks in Advance SorentoUltimate --------------- Added [DATE]1307191611[/DATE] at [TIME]1307191611[/TIME] --------------- can someone help me on the above? i need to make automatic template edits into plugins with code. |
Have you tried this in vb4? I haven't tried it but all the same functions/variables seem to be there.
|
i try that code:
PHP Code:
Quote:
|
Lynne has a modification here you should view the .xml and see where your going wrong, will help you visualize how it's done in vB4 ;).
https://vborg.vbsupport.ru/showthread.php?t=229290 |
Hi again,
Here are the Templates and Plugin Code to help me solve the problem : a.Template "greeklish2greek_SHOWTHREAD_fnd" Code:
<div class="blockfoot actionbuttons"> b.Template "greeklish2greek_SHOWTHREAD_rpl" Code:
<div class="blockfoot actionbuttons"> c.Part of Template "SHOWTHREAD" Code:
..... d.Plugin "parse_templates" Code Code:
$find_string = vB_Template::fetch_template_raw('greeklish2greek_SHOWTHREAD_fnd'); but not work, i need your help !!!! |
any help???????????
|
<a href="https://vborg.vbsupport.ru/showthread.php?p=2204110#post2204110" target="_blank">https://vborg.vbsupport.ru/showt...10#post2204110</a>
|
Hi Boofo,
i try that but not work Code:
$find_string = ''; any idea what i'm doing wrong? |
Use the code EXACTLY as I posted. You can't change the position and syntax of the lines to what you want them to be. Just add your code to find and replace where I showed you in red. The template name is all you should be changing.
|
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|