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, 63 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 - Admin Authorization on Registration not working [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sun Sep 14, 2003 12:34 pm Reply with quoteBack to top

I have the snaps from only a day or two ago installed on one of my sites, it appears that the admin authorization isn't working as it should be.

When a user registers they get sent an email for confirmation/activation the same as they would if registration was set to user. The page that displays after they register is also the same as the one which would be displayed if registration is set to user.

I've tried to look at the code to see if I can find where the problem is, and haven't come up with anything yet.
Find all posts by IACOJView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sun Sep 14, 2003 3:42 pm Reply with quoteBack to top

This is not a bug. In fact I knew how to fix it all along. Rolling Eyes I'll post if for those who don't though.

When you install the bundle you have to profiles basically. The registration activation you set in the forums wont work if you still have the Nuke one enabled. So you have to point everything to the forum. Basically a modified vs of the forum registration hack.

Open Modules/Your_Account/Index.php

Find:
Code:
if ($userinfo[user_avatar]) { echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\"><br>\n"; }

replace with:
Code:
   {
$content .= "<br><center><img src=\"$userinfo[user_avatar]\"><br></center>\n";
}
else
if ($userinfo[user_avatar])
{
$content .= "<br><center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center><br>\n";
   }

Find:
Code:
    case "new_user":
        new_user();
        break;

replace with:
Code:
    case "new_user":
        Header("Refresh: 0; url=modules.php?name=Forums&file=profile&mode=register");   
        break;

Find:
Code:
    case "edituser":
        edituser();
        break;

replace with:
Code:
    case "edituser":
        Header("Refresh: 0; url=modules.php?name=Forums&file=profile&mode=editprofile");   
        break;


That's it, upload and the activation preferences set in the forum configuration work Smile
Find all posts by IACOJView user's profileSend private message
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-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.165 Seconds - 216 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::