Alright, That last post was a little off, I am having trouble adding scripts to that page. I am using the popup version of the profile editor, and it does not use any files from my theme. So, another approach:
I found the file that outputs the profile page.
/plugins/s2member/includes/classes/profile-in.inc.php
I could directly edit this page to remove the table markup...
There is a hook at the end of the class:
- Code: Select all
do_action ("ws_plugin__s2member_after_profile", get_defined_vars ());
So I made a filter:
- Code: Select all
function s2_fix_profile_markup ($content) {
$table_stuff = array('<td>','<tr>','</tr>','</td>');
$content=str_ireplace($table_stuff,'',$content);
return $content;
}
add_filter('ws_plugin__s2member_after_profile', 's2_fix_profile_markup');
But the filter is not working, I dont think that hook actually has the table data, because that file echo's out the information instead of storing it to be echo'ed out later... I'm not too fond of directly editing the plugin files. Do you guys know if there is a hook to filter that output? Or perhaps I bungled my code above... Anyways, help would be greatly appreciated!
Thanks,