Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 12:43 pm EDT

Geeklog Forums

Fullname and 1.3.9


Status: offline

Norgs

Forum User
Junior
Registered: 12/16/03
Posts: 17
My GL website( www.hawthornhockeyclub.asn.au ) has been up for a while now I have been using the full name mod (located here). All was working sweetly with 1.3.8.
Recently I upgraded to GL 1.3.9 and now I have a couple of problems. The code that is in user.php is slightly different now. In the case statement, inside MAIN there seems to be some syntax checking..

1.3.9 user.php:
Text Formatted Code

...

<snip>

case 'create':
    $display .= createuser (COM_applyFilter ($HTTP_POST_VARS['username']),
                            COM_applyFilter ($HTTP_POST_VARS['email']));
    break;
</snip>

 



I looked in the lib-common.php for the COM_applyFilter function, and it seems that this function just strips the slashes etc etc.. I tried to follow suit and change the code like so..


edited 1.3.9 user.php:
Text Formatted Code

...

<snip>

case 'create':
    $display .= createuser (COM_applyFilter ($HTTP_POST_VARS['username']),
                            COM_applyFilter ($HTTP_POST_VARS['email'])
                            COM_applyFilter ($HTTP_POST_VARS['fullname']));
    break;
</snip>


 


The error I get is something about the email address field being valid whenever I change any of this function.
Anyone able to help?

Thanks

Norgs
 Quote

Status: offline

Norgs

Forum User
Junior
Registered: 12/16/03
Posts: 17
bump!
Dirk?
*hint hint* Razz
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
Dirk is offline until next week *hint*hint*

geKow
 Quote

Status: offline

Norgs

Forum User
Junior
Registered: 12/16/03
Posts: 17
Well,

I feel about as big as a bees weaner right now... It seems due to my general stupidness and rush to upgrade and reimpliment this realname hack, I seem to have forgotten to follow the steps carefully.

A big thankyou to Wim (remy) who orrigonally wrote this hack. I sent him an email about the differences between 1.3.8 and 1.3.9. He responded, and thus I have a solution.

Now if you want to impliment his realname hack with GL 1.3.9, here is what to do.

1. Download the origonal code written by remy here.

2. There is a simple change needed to the edit of users.php which I nearly got right in the above posts. remy's code looks like this:
Text Formatted Code

...
<snip>
----> modify this line
    $display .= createuser($HTTP_POST_VARS['username'],$HTTP_POST_VARS['email']);
----> into this line
    $display .= createuser($HTTP_POST_VARS['username'],$HTTP_POST_VARS['email'],$HTTP_POST_VARS['fullname']);


 


It simply needs to be made look look like the equivilent code in GL 1.3.9:

Text Formatted Code

    $display .= createuser (COM_applyFilter ($HTTP_POST_VARS['username']),
                            COM_applyFilter ($HTTP_POST_VARS['email']),
                            COM_applyFilter ($HTTP_POST_VARS['fullname']));

 


Note, I got the comma's right this time.

3. Also, GL 1.3.9 has changed the format of some thtml files, so in your public_html/layout/theme_dir/users directory you need to edit registrationform.thtml

remy had the following code:
Text Formatted Code

...
<snip>

                                                <tr>
                                                    <td align="right"><b>{lang_fullname}:</b></td>
                                                    <td>{form_fullname}</td>
                                                </tr>

<snip>
...

 


It now needs to look like this:

Text Formatted Code

...

                                                <tr>
                                                    <td align="right"><b>{lang_fullname}:</b></td>
                                                    <td><input type="text" size="16" maxlength="80" name="fullname"></td>
                                                </tr>

...

 


Remember to do this for all the themes on your site.

Apart from those 2 areas, you can follow remy's code and all should be good. I understand he is going to release an updated version of his fullname hack with this changed included.
 Quote

All times are EDT. The time is now 12:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content