Not Solved Find the last div
#1
Not Solved
I want to add some codes after the last </div> or at the end of the template. How do i achieve this?

Scheme:


<div><div>
<tr>
<td>
...
</td>
</td>
</div>
</div>
<!-- CODES_TO_ADD -->


find_replace_templatesets("sometemplatefile", "#".preg_quote('LAST_DIV?')."#i", 'CODES_TO_ADD');
Reply
#2
Not Solved
Which template do you mean exactly?
Reply
#3
Not Solved
(2017-01-15, 11:34 AM)SvePu Wrote: Which template do you mean exactly?

It's actually showthread_ratethread
Reply
#4
Not Solved
Ok .... please try:
find_replace_templatesets("showthread_ratethread","#".preg_quote('</div>\n</div>')."#i","</div>\n</div>\n...YOURCODE...");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)