You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 83 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - bariba.de Newsletter 1.7 fix for php-nuke 7.3 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Thu Sep 30, 2004 5:08 pm Reply with quoteBack to top

Kilkenny at bariba.de has updated the Newsletter module to accommodate later versions of php-nuke. When I installed it, however, I got a sql query error for index.php line 58. This is the fix for php-nuke 7.3. It may work for other versions, too.

The section of index.php just before line 58 should read:

Quote:
if ($cookie[0] > 0) // If logged in as user get the mailaddress -- note -- changed uid to user_id to correct sql query error//
{
$query = "SELECT user_email, user_id FROM ${prefix}_users WHERE user_id = '$cookie[0]'";
$result = mysql_query($query);
list($usermail) = mysql_fetch_row($result);
}

The comment there about the change is mine. With this fix, the user's e-mail address will be displayed in the e-mail field, as intended.

If you also get a sql query error for line 11 of index.php, change it to:
Quote:

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {

from
Quote:
if (!eregi("modules.php", $PHP_SELF)) {


Bariba Newsletter 1.7 seems to work for me with these changes.

HalJordan, admin, www.stfrancishighschool.com/nuke

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.374 Seconds - 272 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::