2012-03-29, 12:43 PM
I'm having trouble getting it to do a match and replace. This is what I have, but it isn't working.
Basically I'm trying to create a new table that lists the social groups a member is in. I know how to manually add them, but the plugin should do it automatically.
find_replace_templatesets("member_profile", "#".preg_quote("<td class=\"{\$bgcolors['msn']}\"><strong>{\$lang->msn}</strong></td>
<td class=\"{\$bgcolors['msn']}\"><a href=\"javascript:;\" onclick=\"MyBB.popupWindow('misc.php?action=imcenter&imtype=msn&uid={$uid}', 'imcenter', 450, 300);\">{\$memprofile['msn']}</a></td>
</tr></table>")."#i", "<td class=\"{\$bgcolors['msn']}\"><strong>{\$lang->msn}</strong></td>
<td class=\"{\$bgcolors['msn']}\"><a href=\"javascript:;\" onclick=\"MyBB.popupWindow('misc.php?action=imcenter&imtype=msn&uid={$uid}', 'imcenter', 450, 300);\">{\$memprofile['msn']}</a></td>
</tr></table><br /><!--Social Groups-->{\$socialgroups}<!--Social Groups-->");
Basically I'm trying to create a new table that lists the social groups a member is in. I know how to manually add them, but the plugin should do it automatically.