Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12324
Latest: videorepair
New This Month: 11
New This Week: 1
New Today: 1
Stats
Total Posts: 39696
Total Topics: 6993
Most Online Today: 30
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 13
Total: 13

Author Topic: Message Editor?  (Read 17458 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #15 on: August 16, 2009, 06:05:22 pm »
The message editor does not appear either?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #16 on: August 16, 2009, 06:09:20 pm »
nope....  but I do see most of the functionality...

SETTINGS       LISTS   MESSAGES   REPORTS   CAMPAIGNS   SIGNUP FORM   MANAGE LINKS   UNSUBSCRIBE LIST   


etc....  they all seem to be ok....  btw how does the system know a newsletter has been viewed?


« Last Edit: August 16, 2009, 06:11:32 pm by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #17 on: August 16, 2009, 06:15:02 pm »
Can you attach a copy of the html of the message creation page on the newsletter page? Save the webpage to afile

What about the editor Newsletter Pro -> messages -> Add Message does it appear there?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #18 on: August 16, 2009, 06:27:40 pm »
Can you attach a copy of the html of the message creation page on the newsletter page? Save the webpage to afile

What about the editor Newsletter Pro -> messages -> Add Message does it appear there?

It does not appear there either...  and I have been watching the Safari activity window and see no errors.

Attached is the html of....

http://.mysite.com/index.php?action=newspro;sa=addmessage

(minus header and personal info)



« Last Edit: August 16, 2009, 06:29:33 pm by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #19 on: August 16, 2009, 06:56:18 pm »
http://www.mysite.com/tiny_mce/tiny_mce.js
Does that show anything when you load it?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #20 on: August 17, 2009, 02:57:48 am »
http://www.mysite.com/tiny_mce/tiny_mce.js
Does that show anything when you load it?

Yes.  A bunch of javascript text only.

« Last Edit: August 17, 2009, 04:41:59 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #21 on: August 17, 2009, 07:19:00 pm »
hmm not sure what's up I tried your attached file and replaced it with my url and it works fine with the editor loading.
I also installed Sarfari on windows and the editor loaded.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #22 on: August 18, 2009, 02:12:30 am »
Can you check my template file please? It's attached. Thanks.

Using SMF 1.1.10, Gallery Pro 2.5

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #23 on: August 18, 2009, 02:46:09 am »
I even went so far as to redo your install file.... (because from a manual install perspective, it was confusing to edit the ManageNews.php file, then the ManageNews.template.php file, then back to the MangeNews.php file etc.  It had me going back and forth between files...  I edited the file so I could focus on one file at a time.  8)

I also downloaded ALL the latest 1.1.10 news files and re-installed your mod...   still no editor.

Attached is what I did to your mod file - if you're interested.

SIGH.

One thing that may be worthwhile...  you do a find - if not found ignore.....

then you do a find for a very similar block of text....   the section that starts with

"// This is here to prevent spam filters from tagging this as spam."

I am assuming that block should be replaced either way.  My text editor doesn't find that block either way.

Below is what I replaced......


Code: [Select]
// This is here to prevent spam filters from tagging this as spam.
if (!empty($_POST['send_html']) && preg_match('~\<html~i', $_POST['message']) == 0)
{
if (preg_match('~\<body~i', $_POST['message']) == 0)
$_POST['message'] = '<html><head><title>' . $_POST['subject'] . '</title></head>' . "\n" . '<body>' . $_POST['message'] . '</body></html>';
else
$_POST['message'] = '<html>' . $_POST['message'] . '</html>';
}

$result = db_query("
SELECT realName, memberName, ID_MEMBER, emailAddress
FROM {$db_prefix}members
WHERE emailAddress IN ('" . implode("', '", addslashes__recursive($send_list)) . "')
AND is_activated = 1", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
unset($send_list[$row['emailAddress']]);

$to_member = array(
$row['emailAddress'],
!empty($_POST['send_html']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
$row['ID_MEMBER'],
$row['realName']
);

// Send the actual email off, replacing the member dependent variables.
sendmail($row['emailAddress'], str_replace($from_member, $to_member, addslashes($_POST['subject'])), str_replace($from_member, $to_member, addslashes($_POST['message'])), null, null, !empty($_POST['send_html']));
}
mysql_free_result($result);

// Send the emails to people who weren't members....
if (!empty($send_list))
foreach ($send_list as $email)
{
$to_member = array(
$email,
!empty($_POST['send_html']) ? '<a href="mailto:' . $email . '">' . $email . '</a>' : $email,
'??',
$email
);

sendmail($email, str_replace($from_member, $to_member, addslashes($_POST['subject'])), str_replace($from_member, $to_member, addslashes($_POST['message'])), null, null, !empty($_POST['send_html']));
}



with.....

Code: [Select]

// Modified by Newsletter Pro
// This is here to prevent spam filters from tagging this as spam.
if (!empty($_POST['send_html']) && preg_match('~\<html~i', $_POST['message']) == 0)
{
if (preg_match('~\<body~i', $_POST['message']) == 0)
$_POST['message'] = '<html><head><title>' . $_POST['subject'] . '</title></head>' . "\n" . '<body>' . $_POST['message'] . '<#unsubscribe#><#trackimg#></body></html>';
else
$_POST['message'] = '<html>' . $_POST['message'] . '<#unsubscribe#><#trackimg#></html>';
}
   

global $boardurl;

// Replace Links
$pattern  = "/((@import\s+[\"'`]([\w:?=@&\/#._;-]+)[\"'`];)|";
    $pattern .= "(:\s*url\s*\([\s\"'`]*([\w:?=@&\/#._;-]+)";
    $pattern .= "([\s\"'`]*\))|<[^>]*\s+(href)\=[\"'`]*";
    $pattern .= "([^\"'`]+)[\"'`]*[^>]*>))/is";
    preg_match_all($pattern, $_POST['message'], $matches);

       foreach($matches[8] as $tmp)
       {
              if ($tmp != "" && !stristr($tmp, "mailto:") && !preg_match('/^#/', $tmp))
              {
                  $link = CreateMessageLink($tmp,$context['ID_LETTER']);
                  $_POST['message'] = preg_replace("/href=[\"'`]*?".str_replace("/", "\/",
preg_quote($tmp))."[\"'`]/is", 'href="'. $link.'"', $_POST['message']);
               }
       }
     


// Create Unsubscribe link
if (empty($modSettings['newspro_set_nounsubscribe']))
$_POST['message'] = str_replace('<#unsubscribe#>','<a href="' . $boardurl . '/newstracking.php?a=u&c=' . $context['ID_LETTER'] . '&i=#ID_EMAIL#">' . $txt['newspro_unsubscribe'] . '</a>',$_POST['message']);
else
$_POST['message'] = str_replace('<#unsubscribe#>','',$_POST['message']);

// Add tracking pixel
$_POST['message'] = str_replace('<#trackimg#>','<img src="' . $boardurl . '/newstracking.php?a=v&c=' . $context['ID_LETTER'] . '&i=#ID_EMAIL#">',$_POST['message']);


$result = db_query("
SELECT m.realName, m.memberName, m.ID_MEMBER, l.email, u.ID_OPTOUT, l.ID_EMAIL   
FROM " . $context['list_tableid'] . " AS l
LEFT JOIN {$db_prefix}members AS m ON (l.email = m.emailAddress)
LEFT JOIN {$db_prefix}newspro_unsubscribe AS u ON (l.email = u.emailAddress)
WHERE l.email IN ('" . implode("', '", addslashes__recursive($send_list)) . "')", __FILE__, __LINE__);

$emailCount = 0;
while ($row = mysql_fetch_assoc($result))
{

// Check if this email is on the unsubscribe list
if (!empty($row['ID_OPTOUT']))
continue;

$tempMSG = $_POST['message'];

// Add the tracking
$tempMSG = str_replace("#ID_EMAIL#",$row['ID_EMAIL'],$tempMSG);


if (!empty($row['realName']))
{
$to_member = array(
$row['email'],
!empty($_POST['send_html']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
$row['ID_MEMBER'],
$row['realName']
);

// Send the actual email off, replacing the member dependent variables.
sendmail($row['email'], str_replace($from_member, $to_member, addslashes($_POST['subject'])), str_replace($from_member, $to_member, addslashes($tempMSG)), null, null, !empty($_POST['send_html']));
$emailCount++;
}
else
{
// Send the emails to people who weren't members....
$to_member = array(
$row['email'],
!empty($_POST['send_html']) ? '<a href="mailto:' . $row['email'] . '">' .$row['email'] . '</a>' : $row['email'],
'??',
$row['email']
);

sendmail($row['email'], str_replace($from_member, $to_member, addslashes($_POST['subject'])), str_replace($from_member, $to_member, addslashes($tempMSG)), null, null, !empty($_POST['send_html']));
$emailCount++;
}

}
mysql_free_result($result);

// Increase the sent count
$result = db_query("
UPDATE {$db_prefix}newspro_newsletters SET sent = sent + $emailCount
WHERE ID_LETTER = "  . $context['ID_LETTER'], __FILE__, __LINE__);


// End modified Code by NewsLetter Pro









« Last Edit: August 19, 2009, 08:03:21 am by SMFHacks »
Using SMF 1.1.10, Gallery Pro 2.5

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #24 on: August 18, 2009, 03:08:53 am »
I just did a clean install on 1.1.10, and it installed fine, AND the editor IS there.... hmm...  I'll figure this out!  Sorry for the outburst!

I also see that my tracking showing emails read (does it doit with the SMF key?)

Dang I hope I can get this working on my main site!   :-\



« Last Edit: August 18, 2009, 03:45:37 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #25 on: August 18, 2009, 07:59:03 am »
Tracking is based on a pixel added to each email sent out which allows me track whether a message was viewed or not.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline treasurenet

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Message Editor?
« Reply #26 on: August 19, 2009, 02:02:21 am »
Well - as I said in a pm to you, I just woke up this morning and the editor was there and all is fine!  Apparently Safari had cached the javascript files when the permissions where bunged up! (non-readable)   I wish I had restarted Safari to days ago!   :P
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14867
    • View Profile
Re: Message Editor?
« Reply #27 on: August 19, 2009, 08:01:01 am »
Wow that was crazy glad it is working now.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3757 Views
Last post July 01, 2008, 07:00:59 pm
by SMFHacks
2 Replies
2826 Views
Last post August 23, 2009, 07:33:23 pm
by CWVRV
7 Replies
2219 Views
Last post August 31, 2018, 02:03:34 am
by shuban
16 Replies
948 Views
Last post October 19, 2018, 11:26:45 pm
by dan42101
1 Replies
222 Views
Last post April 14, 2019, 09:36:06 am
by SMFHacks

+- Recent Topics

Which Options To Disable If I Don't Want Auction Listings by ajac63
May 19, 2019, 11:03:42 pm

About Layout Options by ajac63
May 18, 2019, 07:22:19 am

Lost images by pete
May 17, 2019, 04:41:51 am

Q's on Integrating SMF Classifieds with current theme by ajac63
May 08, 2019, 01:46:06 pm

Just a hello by SMFHacks
May 06, 2019, 10:30:20 pm

Contact Page Problem by Acans
May 06, 2019, 01:54:08 am

Trying to install 8.0.5a after upgrade to RC2 by SMFHacks
April 30, 2019, 06:04:34 am

Classified Ads Mod by SMFHacks
April 29, 2019, 07:44:44 pm

Video Player by SMFHacks
April 24, 2019, 03:38:50 am

Seller View Log.. Can I delete? by SMFHacks
April 22, 2019, 07:54:29 am

Powered by EzPortal