Home Forums Newsletter Plugin Support Theming problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9740
    crimson
    Participant

    Hi, 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….. 🙂

    #9762
    Stefano
    Keymaster

    Problem maybe found. you have a PHP short tag ?= and not ?php echo in the body: try to change it.

    #9784
    crimson
    Participant

    Ohhh 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.

    #9785
    Stefano
    Keymaster

    Change the theme, never the plugin. Change the_excerpt to the_content.

    #9786
    crimson
    Participant

    I’m using the_content(). That’s the core i’m using <?php global $more; $more = 0; the_content();?>

    #9787
    crimson
    Participant

    Sorry, 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

    #9788
    Stefano
    Keymaster

    Ah, ok, I misunderstood you original request! 🙂

    #16350
    Anonymous
    Inactive

    Hi!

    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,

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.