» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 52
0 members and 52 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Your Newsletter Module within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; Originally Posted by Mighty_Y find in modules/Newsletter/index.php Code: $query = "SELECT email, uid FROM ${prefix}...


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-11-2004, 10:09 PM
Junior Member
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 15
Send a message via MSN to stokerpoons
Originally Posted by Mighty_Y
find in modules/Newsletter/index.php
Code:
    $query = "SELECT email, uid FROM ${prefix}_users WHERE uid = '$cookie[0]'";
and replace with
Code:
    $query = "SELECT user_email, user_id FROM $prefix_users WHERE user_id = '$cookie[0]'";
try that and report back
Hi Mighty Y! I have tried this but still get the error with line 48

error
Quote:
Warning: Supplied argument is not a valid MySQL result resource in /home/stokerpoons/public_html/modules/Newsletter/index.php on line 48
line 48
Quote:
list($usermail) = mysql_fetch_row($result);
Thanks anyway! [/quote]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-12-2004, 11:02 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
replace
Code:
global $prefix, $user, $modul_name;
with
Code:
global $prefix, $user, $modul_name, $db;
and replace
Code:
    $query = "SELECT email, uid FROM ${prefix}_users WHERE uid = '$cookie[0]'";
    $result = mysql_query($query);
    list($usermail) = mysql_fetch_row($result);
with
Code:
    $query = "SELECT user_email, user_id FROM ".$prefix."_users WHERE uid = '$cookie[0]'";
    $result = $db->sql_query($query);
    list($usermail) = $db->sql_fetchrow($result);
Normally it should work now, or atleast another error should pop in
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-12-2004, 11:23 AM
Junior Member
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 15
Send a message via MSN to stokerpoons
I dont get any errors anymore but there are still no emails added to the list even though it confirms that the email has been added :?
It even sends the email saying that the user has been added but no joy!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 07-12-2004, 11:38 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I'm gonna modify this thing
A little bit patience please
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 07-12-2004, 11:49 AM
Junior Member
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 15
Send a message via MSN to stokerpoons
No worries Mighty_Y!
Your a Star
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 07-12-2004, 12:18 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
here is the fully working (atleast on my system ) version of the newsletter module:
http://users.skynet.be/fa091229/newsletter1.70.zip

It won't stay on my server forever, so you are warned (it stays there, till I forget what it is or why it is there, and then I delete it )
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 07-12-2004, 12:20 PM
Junior Member
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 15
Send a message via MSN to stokerpoons
Cheers Mighty_Y. I will give it a shot later on tonight!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 07-12-2004, 01:35 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Sorry to chime in again.
While you wait, you can "try" this one.
http://www.fauxpas.org/mystuff/Newsletter6.5.zip

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 07-12-2004, 01:42 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
Mikem, I compared yours with my modified version and it seems I went a little bit further in adjusting (I use $db almost everywhere) so i have put my index.php in your package (with the block and more structurised):
http://users.skynet.be/fa091229/Newsletter.zip
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 07-12-2004, 01:49 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by Mighty_Y
Mikem, I compared yours with my modified version and it seems I went a little bit further in adjusting (I use $db almost everywhere) so i have put my index.php in your package (with the block and more structurised):
http://users.skynet.be/fa091229/Newsletter.zip
roger..yes, I had not made the new db changes for the new sql layering..blah blah.... :roll: ..thanks Mighty..hopefully that will work for him :wink:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
newsletter problem boaw Nuke 7.x - General 3 08-27-2006 12:04 PM
Newsletter questions silence_gr Nuke 7.x - Modules 1 11-03-2004 01:59 PM
Newsletter Module XtraX Nuke 6.5 to 6.9 - Modules 3 08-10-2003 12:39 PM
Looking for enhanced newsletter module crypto Nuke 6.5 to 6.9 - Modules 0 06-27-2003 04:26 PM
Newsletter Module nopeace4u nukemods.com 1 03-18-2003 09:08 AM


All times are GMT -5. The time now is 12:12 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31