Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
pdoobepd
Worker
Worker



Joined: May 07, 2005
Posts: 129

PostPosted: Sun Jun 18, 2006 7:55 pm Reply with quote

How do I change Newsletter Subscription Default from "No" to "Yes" ?

Where, what and how do I do an edit to accomplish this?

I am running Nuke 7.6/3.1 patched and am just using the PHPNuke Newsletter no special or additional newsletter modules.

Thanks!
Ginger


PS Never Mind I found the Fix...here it is for any others who want to change it...

Go to modules/your_account/index.php and find this:

Code:


   echo "<tr><td bgcolor='$bgcolor2'><b>"._RECEIVENEWSLETTER."</b></td><td bgcolor='$bgcolor3'>";
   if ($userinfo['newsletter'] == 1) {
       echo "<input type=\"radio\" name=\"newsletter\" value=\"1\">"._YES." &nbsp;"
      ."<input type=\"radio\" name=\"newsletter\" value=\"0\" checked>"._NO."";
   } elseif ($userinfo['newsletter'] == 0) {
       echo "<input type=\"radio\" name=\"newsletter\" value=\"1\">"._YES." &nbsp;"
      ."<input type=\"radio\" name=\"newsletter\" value=\"0\" checked>"._NO."";
   }


Replace with This
Code:


   echo "<tr><td bgcolor='$bgcolor2'><b>"._RECEIVENEWSLETTER."</b></td><td bgcolor='$bgcolor3'>";
   if ($userinfo['newsletter'] == 1) {
       echo "<input type=\"radio\" name=\"newsletter\" value=\"1\" checked>"._YES." &nbsp;"
      ."<input type=\"radio\" name=\"newsletter\" value=\"0\">"._NO."";
   } elseif ($userinfo['newsletter'] == 0) {
       echo "<input type=\"radio\" name=\"newsletter\" value=\"1\" checked>"._YES." &nbsp;"
      ."<input type=\"radio\" name=\"newsletter\" value=\"0\">"._NO."";
   }

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Jun 19, 2006 10:26 pm Reply with quote

Thanks for following up with the fix!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©