Current time: 07-05-2009, 01:26 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Mass mail preview [C-Michael83]
10-20-2008, 12:47 PM
Post: #1
[F] Mass mail preview [C-Michael83]
The HTML code of the mass mail preview is incomplete:
Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/1">
        <title>Mass Email Preview</title>
        <link rel="stylesheet" href="styles/default/main.css" type="text/css" />
        <link rel="stylesheet" href="styles/default/popup.css" type="text/css" />
    </head>
    <body id="popup">
        <div id="popup_container">
        <div class="popup_title"><a href="#" onClick="window.close();" class="close_link"></a> Mass Email Preview</div>

        <div id="content">    
    rdhrtjrjzrjsdgv kzufgku6fzk

Greets,
Michael
-------------
German MyBB-Site
MyBBoard.de
Get the german languagepack here
Visit this user's website Find all posts by this user
10-20-2008, 04:23 PM (This post was last modified: 10-20-2008 04:29 PM by Ryan Gordon.)
Post: #2
RE: Mass mail preview
admin/modules/user/mass_mail.php

PHP Code:
if($mybb->input['action'] == "preview")
{
    
$query $db->simple_select("massemails""*""mid='".intval($mybb->input['mid'])."'");
    
$mass_email $db->fetch_array($query);
    
    if(!
$mass_email['mid'])
    {
        
flash_message($lang->error_invalid_mid'error');
        
admin_redirect("index.php?module=user/mass_mail");
    }
    
    
?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/1">
        <title>Mass Email Preview</title>
        <link rel="stylesheet" href="styles/<?php echo $page->style?>/main.css" type="text/css" />
        <link rel="stylesheet" href="styles/<?php echo $page->style?>/popup.css" type="text/css" />
    </head>
    <body id="popup">
        <div id="popup_container">
        <div class="popup_title"><a href="#" onClick="window.close();" class="close_link"><?php echo $lang->close_window?></a> Mass Email Preview</div>

        <div id="content">    
    <?php
    
    
if($mybb->input['format'] == 'text' || !$mass_email['message'])
    {
        
// Show preview of the text version
        
echo nl2br($mass_email['message']);
        exit;
    }
    else
    {
        
// Preview the HTML version
        
echo $mass_email['htmlmessage'];
        exit;
    }
    
        
?>
        </div>
    </div>
    </body>
    </html>
    <?php


The exit; needs to be placed right before the end bracket for the action

[Image: ryangordon.png]
My Blog - My Mods - My Site
Visit this user's website Find all posts by this user
10-21-2008, 01:03 AM
Post: #3
[F] Mass mail preview
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group

[Image: ryangordon.png]
My Blog - My Mods - My Site
Visit this user's website Find all posts by this user


Forum Jump: