Statistics: Posted by Cristián Lávaque — October 1st, 2011, 2:24 am
echo str_ireplace(array('<td>', '</td>', '<table cellpadding="0" cellspacing="0">', '<tbody>', '</tbody>', '</table>', '<tr>', '</tr>', '<br />'), '', do_shortcode('[s2Member-Profile /]'));
Statistics: Posted by Cristián Lávaque — September 28th, 2011, 3:30 am
<?php
/**
* Template Name: Edit Profile
*/
get_header(); ?>
<div id="content" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php
function s2_fix_profile_markup ($content) {
$table_stuff = array('<td>',/* '<tr>','</tr>', */'</td>', '<table cellpadding="0" cellspacing="0">', '<tbody>', '</tbody>', '</table>');
$content = str_ireplace($table_stuff,'',$content);
$div_stuff = array('');
$content = str_ireplace('<tr>', '', $content);
$content = str_ireplace('</tr>', '', $content);
$content = str_ireplace('<br />', '', $content);
return $content;
}
$profile = do_shortcode('[s2Member-Profile /]');
$profile = s2_fix_profile_markup($profile);
echo $profile;
?>
<?php the_content(); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Statistics: Posted by MODassic — September 26th, 2011, 10:08 am
Statistics: Posted by Cristián Lávaque — September 25th, 2011, 5:00 pm
do_action ("ws_plugin__s2member_after_profile", get_defined_vars ());
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');
Statistics: Posted by MODassic — September 22nd, 2011, 11:24 am
<script>
$(document).ready(function(){
$("td").each(function () {
$(this).replaceWith($(this.childNodes));
});
$("tr").each(function () {
$(this).replaceWith($(this.childNodes));
});
$("tbody").each(function () {
$(this).replaceWith($(this.childNodes));
});
$("table").each(function () {
$(this).replaceWith($(this.childNodes));
});
});
Statistics: Posted by MODassic — September 22nd, 2011, 10:55 am
<script type="javascript">
document.getElementById('custom-form').style.width = "25%";
document.getElementById('custom-form').style.float = "right";
</script>
Statistics: Posted by Bruce C — September 21st, 2011, 6:57 pm
Statistics: Posted by MODassic — September 21st, 2011, 3:49 pm