- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 12.05.05
- Posts:
- 5
Yesterday, I tried to make a simple little change to the edituser() function in module/NS-Your_Account/user/modules.
I changed this line:
Code
echo "<input type=\"text\" name=\"name\" value=\"" . pnVarPrepForDisplay(pnUserGetVar('name')) . "\" size=\"30\" maxlength=\"60\">" . " " . _OPTIONAL . "</td>";
to
Code
echo "<input type=\"text\" name=\"name\" value=\"" . pnVarPrepForDisplay(pnUserGetVar('name')) . "\" size=\"30\" maxlength=\"60\">" . " (Required)</td>";
To simply make it appear that the user name is required. (PS - I know I could have changed this to the _REQUIRED define as this would be more language compliant. However, this is a simple test site intended for my purposes only so hard coding the string is fine).
Anyway, the problem is that when I click the Edit Your Information icon(user.php?op=edituser), my changes don't show up. It still says Optional next to Your Name. I tried clearing my internet cache and no change. I tried a different machine and I still didn't see the changes. I do NOT have caching in pnRenderer turned on.
Is there something else I am missing? Is this not the correct place to make the changes? Very little else on the site has been "customized".
Post Nuke version 0.7.5.0
Thanks,
JBreits -
- rank:
-
Professional
- registered:
- March 2002
- Status:
- offline
- last visit:
- 15.04.07
- Posts:
- 2489
I think you might be making the change in the wrong place. Have you looked for similar code in user.php? Of course, user.php might be including the file you're editing, so my apologies if you've already checked that angle.
Failing that, double check - did you save your changes and upload the file?
Frank
--
Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com
See what I do with PostNuke - http://surreal-dreams.com -
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 12.05.05
- Posts:
- 5
I did a grep search for the string '(optional)' and found that it is defined as _OPTIONAL. I then did a grep search for _OPTIONAL and the only real place it was found was in the changeinfo.php file.
I double checked my file on the server and yes it does have the changes. I installed a new test site in a directory. And uploaded. It worked OK on a "fresh" install. Maybe something in my DB got messed up?
Anybody have any ideas? I'd prefer not to have to redo the site from scratch.
Thanks,
JBreits -
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 10.01.08
- Posts:
- 1631
im not sure how you can make it required without using pnuserhack. There are many different places that you have to edit to make that sort of correction. What the user sees on signup is from the newuser module. What you see in edit user is from the changeinfo.php file you are talking about. http://dev.pnconcept.com has a lot of info in its forum about making these type of customizations. Even though its not suggested for .75, many people are using it and having great success with it. Just like me. =P -
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 12.05.05
- Posts:
- 5
I tried the pnUserHack and it gave compile errors so I decided to forget about it. At this point, I'm not actually trying to make it required. Right now, I just want to change the display so that it says it is required. Simple little trick.
Thanks,
JBreits -
- rank:
-
Professional
- registered:
- March 2002
- Status:
- offline
- last visit:
- 15.04.07
- Posts:
- 2489
Why not post a link? It might be some psycho cache somewhere.
Frank
--
Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com
See what I do with PostNuke - http://surreal-dreams.com -
- rank:
-
Professional
- registered:
- December 1969
- Status:
- offline
- last visit:
- 10.01.08
- Posts:
- 1631
Chestnut can tell you which two files you have to edit. I cant tell you off the top of my head right now. The changeinfo.php one should work for edit user. As far as registration, that would be located in the NewUser module -
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 12.05.05
- Posts:
- 5
I'd prefer not to post the link so it doesn't end up on any search engines. Anyway, I thought maybe there was some glaringly obvious cache thing that I was missing. It doesn't sound like there is, so before I waste any more of your time, I will delete the current site and re-install. If it works after all that, I will assume that there was something that got messed up. If it still doesn't work, I will be back.
Thanks!
JBreits -
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 12.05.05
- Posts:
- 5
Alright, I deleted the site, re-installed and the first thing I did was upload the changes. And I still got the problem. I played around with it a little bit and I think I know what is happening but I'm not sure why.
Here are 3 different scenarios:
1. Install new site, upload customized changeinfo.php file overwriting the original. Everything works fine.
2. Install new site, delete original NS-Your_Account folder, upload customized NS-Your_Account folder. Everything works.
3. Install new site, rename original NS-Your_Accound folder to anything (I have tried NS-Your_AccountORIG, BAK, J, etc), upload cusomized NS-Your_Account folder. The change information page under My Account still shows the original!!
It seems like the site always "finds" the original file and uses it unless I completely delete originals. Does that make any sense?
Thanks,
JBreits -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 28.11.08
- Posts:
- 13417
Are you sure you are changing the right area of the file?
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide
