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, 64 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Setting $userinfo[newsletter] default to 'yes' for new users [ ]
 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
infilms
Nuke Cadet
Nuke Cadet


Joined: Aug 24, 2003
Posts: 2


PostPosted: Sun Aug 24, 2003 9:31 am Reply with quoteBack to top

Any ideas on which file to hack and how?
Find all posts by infilmsView user's profileSend private messageVisit poster's website
Hadron
Corporal
Corporal


Joined: Aug 20, 2003
Posts: 61


PostPosted: Sun Aug 24, 2003 9:51 pm Reply with quoteBack to top

Open index.php in Your_Account. Look for:

Code:
function activate($username, $checknum....


Now scroll down till you see:

Code:
$result = $db->sql_query("INSERT INTO ".$user_prefix."_users....


After that line put in:

Code:

$res_id = $db -> sql_query("SELECT user_id FROM ".$user_prefix."_users ORDER BY user_id DESC");
list($new_uid) = $db -> sql_fetchrow($res_id);
$db -> sql_query("UPDATE ".$user_prefix."_users SET newsletter='1' WHERE user_id='$new_uid'");


--Hadron
Find all posts by HadronView user's profileSend private message
infilms
Nuke Cadet
Nuke Cadet


Joined: Aug 24, 2003
Posts: 2


PostPosted: Mon Aug 25, 2003 12:19 am Reply with quoteBack to top

Worked a treat!
Much appreciated, Hadron.
Find all posts by infilmsView user's profileSend private messageVisit poster's website
kjcdude
Captain
Captain


Joined: Jun 10, 2003
Posts: 441

Location: Southern California

PostPosted: Sun Aug 31, 2003 9:20 pm Reply with quoteBack to top

What versions does this work on?

_________________
Diablo Heat | The OC Sucks [b]Hot or Not[/b] | TheOCSucks.com The OC Sucks
Find all posts by kjcdudeView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Sun Aug 31, 2003 10:34 pm Reply with quoteBack to top

kjcdude wrote:
What versions does this work on?


6.0 and higher

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
kjcdude
Captain
Captain


Joined: Jun 10, 2003
Posts: 441

Location: Southern California

PostPosted: Sun Aug 31, 2003 10:48 pm Reply with quoteBack to top

I canot find
Code:
 
$result = $db->sql_query("INSERT INTO ".$user_prefix."_users

PHP-Nuke Version=6.8

But i do have some hacks.

Isnt there a way to do it in the database?

_________________
Diablo Heat | The OC Sucks [b]Hot or Not[/b] | TheOCSucks.com The OC Sucks
Find all posts by kjcdudeView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
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.817 Seconds - 432 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::