vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - microNEWSLETTER (Mailinglist Manager) (https://vborg.vbsupport.ru/showthread.php?t=234208)

NFLfbJunkie 01-26-2010 05:51 PM

I have cPanel but do not have exactly 'mail log manager'. I have the 'Email Address to include as: From Email' set as my personal email. Does this email need to be a domain email address, such as contact@mysite.com?

NFLfbJunkie 01-26-2010 06:09 PM

I also just realized I can't edit messages. When I click edit all I get is the original subject but the message doesn't show.

Skyrider 01-26-2010 06:14 PM

Received an error when running the CRON:

Quote:

Database error in vBulletin 4.0.1:

Invalid SQL:
SELECT * FROM micronewsletter_subscribers WHERE email='Don'xxxxx@hotmail.com' ORDER BY email ASC LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxx@hotmail.com' ORDER BY email ASC LIMIT 1' at line 1
Error Number : 1064
Request Date : Tuesday, January 26th 2010 @ 09:12:29 PM
Error Date : Tuesday, January 26th 2010 @ 09:12:31 PM
Script : http://xxxxx/admincp/cronadmin.php?d...ron&cronid=117
Referrer : http://xxxx/admincp/cronadmin.php?do=modify
Username : FF|Skyrider
Classname : vB_Database
MySQL Version : 5.0.32-Debian_7etch11-log

UpFriends 01-26-2010 06:15 PM

Thank you, Thank you, Thank you for this!

Skyrider 01-26-2010 06:16 PM

Seems CRON doesn't like any ' in the email.

UpFriends 01-26-2010 06:46 PM

Downloaded, installed, and nominated :)

MaryTheG(r)eek 01-27-2010 03:17 AM

Quote:

Originally Posted by FF|Skyrider (Post 1967303)
Received an error when running the CRON:

To check for valid/invalid email address, I'm using the native vB function "is_valid_email()". Normally it must reject the email and continue to the next one. Strange that it brings mysql error.

Maria

thincom2000 01-27-2010 06:09 AM

missing $db->escape_string?

Krali 01-27-2010 06:46 AM

What is the link for users to unsubscribe?

I want to add it under a navigation button in the main menu, not only in the newsletter mail.

Great Mod and looking forward to full (pro) version.

MaryTheG(r)eek 01-27-2010 06:51 AM

Quote:

Originally Posted by thincom2000 (Post 1967707)
missing $db->escape_string?

I don't think so, as this is just a few lines before. Actually the problem is why this email has been accepted. I also added this function in the cron, just for an additional security check, but the problem is before, during record's save.

I seen again the code, and seems to me correct:
Code:

    $vbulletin->input->clean_array_gpc('p', array(
        'subscriberid'  => TYPE_INT,
        'groupid'      => TYPE_INT,
  'email'      => TYPE_STR
 ));
    // Get Values
    $subscriberid = $vbulletin->GPC['subscriberid'];
    $groupid = $vbulletin->GPC['groupid'];
 $email = $db->escape_string($vbulletin->GPC['email']);
    if($subscriberid != 0)
    {
      if(is_valid_email($email))
      {
          $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "micronewsletter_subscribers
                                      SET groupid = '$groupid',
                                          email = '$email' WHERE id=$subscriberid");
      } else {
        $vbulletin->url="newsletter.php?" . $vbulletin->session->vars['sessionurl'] . "do=main&tab=5";
        eval(print_standard_redirect('micronewsletter_invalid_email', true, true));
      }
    } else {
      if(is_valid_email($email))
      {

First I'm escaping the string and then I'm checking for valid email address. The only that maybe is wrong, is if it needs something else than "TYPE_STR". Is there "TYPE_EMAIL" ??

Maria


All times are GMT. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01261 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete