Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 57
1 members and 56 guests
int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Forum Registration Hack
Old
  (#1 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
Forum Registration Hack - 01-07-2003, 02:31 PM

I'm wondering if I need to change this:
Code:
define("_ASREGISTERED","Don't have an account yet? You can <a href=\"modules.php?name=Your_Account\">create one</a>. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.");
define("_MENUFOR","Menu for");
To this:
Code:
define("_ASREGISTERED","Don't have an account yet? You can <a href=\"modules.php?name=Forums&file=profile&mode=register\">create one</a>. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.");
define("_MENUFOR","Menu for");
There are two instances of it in the language\lang-english.php seperate from the one that looks like this:
Code:
modules.php?name=$module_name&amp;op=new_user\
Which I changed, but I wanted to make sure that I don't need to change the others, because they are creating an account.

Thanks for your help
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-07-2003, 02:37 PM

Yes you are correct...there are little intances all thru Nuke that point to the Your Account new_user registration..You'll want to change all those to the Forum's registration if you are wanting to use the Forum reg hack 100% throughout your site.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-07-2003, 02:50 PM

Thanks Mikem

Also would you mind clarifying what I am changing in the admin/language/lang-english.php. The only reference I found to editing users is:
Code:
define("_EDITUSERS","Edit Users");
Thanks again[/code]
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-07-2003, 02:53 PM

Quote:
Originally Posted by IACOJ
Thanks Mikem

Also would you mind clarifying what I am changing in the admin/language/lang-english.php. The only reference I found to editing users is:
Code:
define("_EDITUSERS","Edit Users");
Thanks again[/code]
that particular find is ONLY for the Edit Users under the Nuke Admin page..it just defiines the text for Edit Users. It has nothign to do with any links.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-07-2003, 03:10 PM

Ok so I don't have to change it to anything then.

It is listed as one of the files to check in the hack, so I wasn't entirely sure what I was supposed to do with it.

Thanks again
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-10-2003, 08:49 PM

As I was going through looking for all the files that need to point to the forums. I noticed that in certain places it also looks to "Your Account" for user info, like theme.php. So what I'm wondering is whether this

Code:
if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
Should be changed to something like this?

Code:
if($informant != "") { 
       $content = "<a href=\"modules.php?name=Forums&file=profile&uname=$informant\">$informant</a> "; 
   } else { 
       $content = "$anonymous ";
Thanks for your help
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-11-2003, 01:31 PM

Quote:
Originally Posted by IACOJ
As I was going through looking for all the files that need to point to the forums. I noticed that in certain places it also looks to "Your Account" for user info, like theme.php. So what I'm wondering is whether this

Code:
if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
Should be changed to something like this?

Code:
if($informant != "") { 
       $content = "<a href=\"modules.php?name=Forums&file=profile&uname=$informant\">$informant</a> "; 
   } else { 
       $content = "$anonymous ";
Thanks for your help
No. Because the Forum uses UID to identify users and point to their Profiles. The Nuke side uses uname or uname. That change would require a code change to query the Database to grab the uid and then use it instead of uname.
A little more involved hacking there.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-11-2003, 02:40 PM

Thanks Mikem,

I'll just be leavin that alone then

Will it still give up to date user info when news and the like are submitted?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-11-2003, 04:54 PM

Ok I know I said I would leave it alone, but I think I'm hooked now

What about this?

Code:
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$aid\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
I know you said uid, but I put aid in there because there was already an "if" command in there. This is from subSystem theme.php btw

Am I way off on this? If I am I promise I wont bug you about it anymore.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-11-2003, 06:12 PM

Quote:
Originally Posted by IACOJ
Ok I know I said I would leave it alone, but I think I'm hooked now

What about this?

Code:
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$aid\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
I know you said uid, but I put aid in there because there was already an "if" command in there. This is from subSystem theme.php btw

Am I way off on this? If I am I promise I wont bug you about it anymore.
That will just produce a broken link.

The same method of change you are trying to apply there is sort of the same method used to point the links of the users in the User Info block to the Forums profile. Look at the code in the phpBB User info block from our downloads to get more of an idea.

One reason we opted to stay away from the code you are messing with there is because that affects the NEWS in Nuke. That is why we use our phpBB fetch all news on our site instead of Nuke's NEWS module. We wanted to hack the least amount of code as possible.
It all goes back to our themes. WE change so many themes all the time that any code changes may not stay in effect each time we change, thus we decided to stick to mostly stock parts of Nuke in order to eliminate problems when we change themes.

But, as for your situation, you are right on track. Keep plugging away..you'll figure it out.


mikem

mikem

mikem

did I actually type my name threee times..WOW..I better go to bed :?
   
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
Forum Registration hack ported for 6.7? Zathu_Koon Other "stuff" 0 07-10-2003 04:00 PM
Question for the Auothor of the Forum Registration hack... Rhyan Purged Topics 2 07-06-2003 11:42 AM
Registration hack Problem!!!!! G2F Purged Topics 2 03-24-2003 08:23 PM
Registration Hack Kelu Purged Topics 1 01-21-2003 06:17 PM
Forum Registration Hack Konan Purged Topics 3 12-30-2002 10:58 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