Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 78
7 members and 71 guests
asrapxl, claudiamazzonif, isrmxaeltsy5meo, lnkmastes, scigo6catica3gz, tax7bcslkk7daaw, whasst3xniisabs
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

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

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#11 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Jun 2004
Location: Portsmouth, UK
07-11-2004, 10:09 PM

Quote:
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]
  Send a message via MSN to stokerpoons  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#12 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-12-2004, 11:02 AM

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
Old
  (#13 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Jun 2004
Location: Portsmouth, UK
07-12-2004, 11:23 AM

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!
  Send a message via MSN to stokerpoons  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#14 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-12-2004, 11:38 AM

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
Old
  (#15 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Jun 2004
Location: Portsmouth, UK
07-12-2004, 11:49 AM

No worries Mighty_Y!
Your a Star
  Send a message via MSN to stokerpoons  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#16 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-12-2004, 12:18 PM

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
Old
  (#17 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Jun 2004
Location: Portsmouth, UK
07-12-2004, 12:20 PM

Cheers Mighty_Y. I will give it a shot later on tonight!
  Send a message via MSN to stokerpoons  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#18 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-12-2004, 01:35 PM

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
Old
  (#19 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-12-2004, 01:42 PM

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
Old
  (#20 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-12-2004, 01:49 PM

Quote:
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




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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