2010-02-13, 11:05 AM
I tried many ways and this function refused to change.
apparently it don't like spaces?
[edit]
I'm trying this way now.
here is the template, Im trying to change last line in this template
apparently it don't like spaces?
find_replace_templatesets("forumbit_depth2_forum_lastpost", "#".preg_quote("<br />{\$lang->by} {\$lastpost_profilelink}</span>")."#i", "</span>", 0);
[edit]
I'm trying this way now.
find_replace_templatesets("forumbit_depth2_forum_lastpost", "#".preg_quote("<br />{\$lastpost_date} {\$lastpost_time}<br />{\$lang->by} {\$lastpost_profilelink}</span>")."#ism", "<br />{\$lang->by} {\$lastpost_profilelink}<br />{\$lastpost_date} {\$lastpost_time}</span>");
here is the template, Im trying to change last line in this template
<span class="smalltext">
<a href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date} {$lastpost_time}<br />{$lang->by} {$lastpost_profilelink}</span>