Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 257
Total: 258

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - treasurenet

Pages: [1] 2 3
1
Support / Lists duplicating
« on: August 19, 2009, 02:10:00 am »
Is this normal?

When I try to send out a new newsletter....  I go to....

http://www.mysite.com/index.php?action=news;sa=mailingmembers

I deselect all the recipients...  admin, mod, newbies, etc. 

Then I select an item from the pull down menu...  "Use Saved List".  In my test case, I had three recipients....

Then I select an item from the pull down menu...  "Use Saved Message"

The next time I go into that page, there are TWO items in each pull down menu.... under Use Saved List, I have one list with 3 emails and one list with zero items.

What gives?


2
Support / Re: Message Editor?
« 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

3
Support / Re: Message Editor?
« 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!   :-\




4
Support / Re: Message Editor?
« 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










5
Support / Re: Message Editor?
« on: August 18, 2009, 02:12:30 am »
Can you check my template file please? It's attached. Thanks.


6
Support / Re: Message Editor?
« 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.


7
Support / Re: Message Editor?
« 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)




8
Support / Re: Message Editor?
« 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?



9
Support / Re: Message Editor?
« on: August 16, 2009, 05:47:26 pm »
Nope - still no unsubscribe link.  ???

FYI - this is all I am putting in the newsletter... not sure if that would make any dif...

Code: [Select]
<html>
<head>
</head>
<body>
Hello
</body>
</html>

10
Support / Re: Message Editor?
« on: August 16, 2009, 04:57:40 pm »
I am attaching my ManageNews.php file - I just downloaded the latest version of it from smf, and reinstalled your code in it - can you take a look and see if you see any problems?

Thanks!

11
Support / Re: Message Editor?
« on: August 16, 2009, 04:25:10 pm »
SMF 1.1.10

Safari on a Mac... is there a demo to see if I can get it to work on my browser?

I think I have used that editor before.

12
General SMF Forum / Re: Dissclaimer or Terms of use per Board
« on: August 16, 2009, 04:00:26 pm »
I am looking for a mod that will allow me to put a disclaimer or terms of use on a particular board. One of my boards will be discussing topics that inherently dangerous and I think it is very important that the users are reminded of this fact and that they agree to hold me or my site harmless for information they receive. Does anyone have something like this or would be willing to make me something like this.

Thanks

While this seems to be more of a question for the simplemachines forum, you might want to check out hat's called the Affiliate mod...  it ill let you add unique text to the top of any board.

http://custom.simplemachines.org/mods/index.php?mod=1297

Maybe it's overkill - maybe not - or just create a new sticky topic!


13
Support / Re: Message Editor?
« on: August 16, 2009, 04:17:57 am »
hmm, well, I have the underscore and it still is not appearing for my very recent download and installation.

what should the permissions be set as?

I have even tried chmod -R 755 tiny_mce AND chmod -R 777 tiny_mce!


tiny_mce changed to 0777
tiny_mce/langs changed to 0777
.....snip....
tiny_mce/tiny_mce_popup.js changed to 0777
tiny_mce/tiny_mce_src.js changed to 0777
tiny_mce/tiny_mce.js changed to 0777



14
Support / custom fields re-ordering isn't working.
« on: August 05, 2009, 05:41:17 pm »
I click up it goes down, I click down it goes up, then the final result is opposite of what you'd expect.
  ???

15
Support / Re: Who is viewing gallery is not working.
« on: August 01, 2009, 12:53:54 am »
1.1.10

Pages: [1] 2 3

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal