Home › Forums › Newsletter Plugin Support › Theming problem
- This topic has 7 replies, 3 voices, and was last updated 8 years, 4 months ago by
Anonymous.
-
AuthorPosts
-
November 7, 2013 at 6:01 pm #9740
crimson
ParticipantHi, first of all, i’m very thank you for developing this excellent plugin.
sorry for post in this section, i can’t post in the “Newsletter 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 8, 2013 at 11:19 pm #9762Stefano
KeymasterProblem maybe found. you have a PHP short tag ?= and not ?php echo in the body: try to change it.
November 12, 2013 at 12:10 pm #9784crimson
ParticipantOhhh man, thanks!!! I’m a stupid… that was the error, many thanks.
The only thing isn’t working is the “more=0” attr, to display the entire post in the mails. I was trying to edit the plugin.php to conrete that, because i think that the_content request is only for the first part of the post in the plugin code. If you can help me, you’re welcome, if i make it working i will share.
I will send you the theme by mails as you requested.
Thanks again.
November 12, 2013 at 12:11 pm #9785Stefano
KeymasterChange the theme, never the plugin. Change the_excerpt to the_content.
November 12, 2013 at 12:30 pm #9786crimson
ParticipantI’m using the_content(). That’s the core i’m using <?php global $more; $more = 0; the_content();?>
November 12, 2013 at 12:37 pm #9787crimson
ParticipantSorry, i changed to more=1 and it worked… Theres no ‘more’ to say.
Regards, thanks for your work, It’s fantastic. You are a good person. I like to colaborate with you but i haven’t digital pay methods, but i send a big hug and my best whishes
November 12, 2013 at 3:05 pm #9788Stefano
KeymasterAh, ok, I misunderstood you original request! 🙂
May 25, 2015 at 1:59 pm #16350Anonymous
InactiveHi!
I need to change the number of words shown in every post of my newsletter.
We see the entire title of the post and then…the starting text of the post but just like 9 words (not even the first sentence) and then it cuts with […].
I need to change the extension of this text shown.
Thank you,
-
AuthorPosts
- You must be logged in to reply to this topic.