Home › Forums › Newsletter Plugin Support › Theming problem
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by
Stefano.
-
AuthorPosts
-
November 7, 2013 at 10:02 pm #9742
crimson
ParticipantHi, first of all, i’m very thank you for developing this excellent plugin.
I’m having problems for display the newsletter.
I created a theme, when i’m in the “NEW NEWSLETTER” section i have no problem, the prewiev is fine.The problem occurs when i go to “GO TO EDIT THIS MESSAGE”, so i can’t advance.
Here i post two images, the first is from “NEW NEWSLETTER”, the second from “GO TO EDIT THIS MESSAGE”.
http://i.imgur.com/lNl0Y1a.png?1
http://i.imgur.com/sJcfMIp.png?1
I was analiting my code and i’m think it’s fine, so i can’t figuere whats the problem.
Here is the code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”> <?php global $newsletter; global $post; $filters = array(); $filters['showposts'] = (int)$theme_options['theme_max_posts']; if ($filters['showposts'] == 0) $filters['showposts'] = 1; $posts = get_posts($filters);?> <html> <head> <title></title> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″> </head> <body style=”background:url(<?php bloginfo(‘template_url’ ); ?>/images/bg/0<?= rand(1, 7)?>.jpg);background-size:100%;background-repeat:no-repeat;background-attachment:fixed;”> <table style=”margin-top:10px;” align=”center” width=”600″> <tr> <td> <img src=”<?php bloginfo(‘template_directory’); ?>/images/brand-mailing.png” alt=”Logo” style=”float:left;”> </td> </tr> </table> <table style=”background-color:#C0C0C0;box-shadow:0px -3px 5px rgba(0,0,0,0.5);margin-top:15px;” width=”600″ align=”center” border=”0″ cellpadding=”0″ cellspacing=”0″> <tbody> <tr> <td style=”background-color:rgba(255,204,0,1);color:#000;font:normal 14px calibri,sans-serif;text-align:right;padding:5px 5px 5pxpx 0;border-bottom:1px solid black;”> <?php setlocale(LC_ALL,”es_ES”); echo ucwords(strftime(“%A %d, %B, %Y”));?><br><strong><?php echo “Gacetilla Nº:”; echo $theme_options['theme_numerogacetilla'];?></strong> </td> </tr> <tr> <?php foreach ($posts as $post) { setup_postdata($post);?> <td style=”padding:0 20px 10px 20px;border-bottom:1px dotted #333″> <?php $key=”volanta”; if (!empty($key)){ ?> <p style=”font-family:georgia,serif;line-height:1.5em;font-size:12px;font-style:italic;margin:0;padding:0;”><?php echo get_post_meta($post->ID, $key, true); ?></p> <?php } ?> <p style=”font-family:georgia,serif;color:#333;font-size:29px;line-height:31px;margin:0;padding:0 0 4px 0;”><a href=”<?php echo get_permalink(); ?>” style=”color:#333;text-decoration:none” target=”_blank”><?php the_title(); ?></a></p> <?php if (has_post_thumbnail()) {?> <div style=”min-width:100%;background:#A0A0A0;padding:0;margin:0;”> <?php the_post_thumbnail(‘noticias’, array(‘style’ => ‘margin-left:auto;margin-right:auto;display:block;’));?> </div> <?php };?> <p style=”width:100%;font-family:calibri,sans-serif;line-height:1.5em;font-size:14px;”> <?php global $more; $more = 0; the_content();?> </p> </td> <?php } ?> </tr> <tr> <td style=”color:#9ab;font:normal 11px helvetica,sans-serif;text-align:center;padding:10px 0 20px 0″> <p>Este correo le fue enviado porque está suscripto a nuestro sistema de gacetillas de prens.<a href=”<?php profile_url ?>”>Haga click aquí para modificar o cancelar su suscripción.</a></p> </td> </tr> </tbody> </table> </body> </html>
SORRY ABOUT MY ENGLISH….. 🙂
November 7, 2013 at 11:15 pm #9743Stefano
KeymasterThe code seems correct, but try to generate a content without any post to be sure is not a post content to create problem. Second try a body without styles (even if the slicer which extract the theme body toinject it into the visual editor should not got wrong with styles body.
Let me know.
November 8, 2013 at 4:38 pm #9757crimson
ParticipantHi Stefano, thanks for replying.
I tried the two posibilities that you exposed. The problem still here without posts and without styles. I’m trying to remove some code to find the problem, but, the problem still there…
I have a test server on localhost, and in localhost don’t work too…
Any idea?..
Thanks again 🙂
November 8, 2013 at 11:21 pm #9763Stefano
KeymasterCan you send my by email the theme?
-
AuthorPosts
- You must be logged in to reply to this topic.