Page Index Toggle Pages: 1 2 [3] 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Adding fields to registration page SP1.1 (Read 22874 times)
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #30 - Aug 14th, 2002 at 5:50pm
Print Post  
write it after the last "print FILE" string there. standard is after
Code
Select All
print FILE "$member{'hideemail'}\n"; 


( mention the hide... )

to write all in one line u can write the following:
print FILE "$member{'bday3'}/$member{'bday2'}/$member{'bday1'}\n";

mention that u have to read it out correct before displaying it again in profile.
( sry 4 my bad english in the last sentence - hope u understand it Tongue )
  
Back to top
WWW  
IP Logged
 
chaospixel
New Member
*
Offline


..:: start.a.riot ::..

Posts: 23
Joined: Aug 12th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #31 - Aug 14th, 2002 at 8:27pm
Print Post  
thx for the information Smiley

well, i did like u said, only that i let it write it directly in line 17:

<search for>
     print FILE "\n\n\n0\n\n\n\n\n\n$txt{'209'}\nblank.gif\n$date\n\n\n\n\n";
</search for>

<replace>
     print FILE "\n\n\n0\n\n\n\n\n\n$txt{'209'}\nblank.gif\n$date\n\n";
print FILE "$member{'bday1'}/$member{'bday2'}/$member{'bday3'}\n";
print FILE "\n\n";

</replace>


so thx for your help Grin
  

:: Play the game - gaming is lame ::
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #32 - Aug 20th, 2002 at 9:58am
Print Post  
Hi,

I followed the tutorial exactly as told to (i think!), I got the new field to show up in the registration, which works fine. But if I go to profile it states the new field for example <b>Company:</b> but the field is blank.

Can you think of anything off the top of yur head why this is happening, I have gone over the tutorial many times without resolve and looked for a solution on the forum but came up with nothing.

Please help.

Leech
  

myProfile_pl.txt ( 41 KB | Downloads )
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #33 - Aug 20th, 2002 at 10:40am
Print Post  
Hi Me again,

It also doesn't show up in Posts or IM.

Thanks in advance,

Leeeeeeeeeech!
  
Back to top
WWWICQ  
IP Logged
 
chaospixel
New Member
*
Offline


..:: start.a.riot ::..

Posts: 23
Joined: Aug 12th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #34 - Aug 20th, 2002 at 1:53pm
Print Post  
check in which line it is written in the user file and change the memsettings value .. to the line number minus one.
  

:: Play the game - gaming is lame ::
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #35 - Aug 20th, 2002 at 2:09pm
Print Post  
Howdi,

Well, I have got alot futher by myself since I posted the message, in fact I am almost there. I got everything working, and I am messing about with the memsettings and user.dat files as you responded.

So you must put the line number -1. I will give it a shot,

Thanks for the response.

Much appreciated.

Leeeeeeeeech
  
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #36 - Aug 20th, 2002 at 2:20pm
Print Post  
Okie,

THanks Pixel, that worked, I think,

Let me ask you something though:

I noticed that on line 20 of the .dat files some other information is there, but assuming it counts line number -1,  I shouldn't need to worry about this. At the moment the added info is sitting on line 21, thus as you said, $memsettings[20] (line number -1)

Am I right??

Leeeeeeeeeeeech!
  
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #37 - Aug 20th, 2002 at 2:37pm
Print Post  
darn,

The only details I have on registering are the following:

Username
Email
Password
Confirm Password
Company Name

This works fine, so the user has now registered, he then goes to his profile and changes other details such as bithday, icq, etc

and when you update, it moves everything around, so the Company name ends up in E-Mail etc.

AND .. if its an admin it tells him the username you are trying to register is reserved, and makes him a guest, NASTY! ..

I saw the thread above which is similar but doesn't help me.

Leeeeeeeeeeeeech!
  
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #38 - Aug 20th, 2002 at 4:00pm
Print Post  
FINALLY! I sorted it out, it was a duplicate entry I made in the post section of the profile.pl

Okie,

thanks for the help.

Also, did anyone actually get their additions working first time from T-Masters tutorial??

Leeeeeeech!
  
Back to top
WWWICQ  
IP Logged
 
chaospixel
New Member
*
Offline


..:: start.a.riot ::..

Posts: 23
Joined: Aug 12th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #39 - Aug 20th, 2002 at 5:54pm
Print Post  
nice that u got it working Wink

all this thing about line number -1 is only because when the dat file is read out, the first line is not numbered with 1, but 0 .. so, 0, 1, 2, .... i tripped over that problem also the first time i tried tmasters tutorial Smiley
  

:: Play the game - gaming is lame ::
Back to top
WWWICQ  
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #40 - Aug 20th, 2002 at 7:36pm
Print Post  
yep right. in informatic mostly the numbers begins with 0.

i'll ask michael to change the tutorial.

but first: what other probs did u have and how did u solve them?
how should the tutorial be modified so other ppl doesn't make the same failures in the feature?
plz give me feadback Smiley
  
Back to top
WWW  
IP Logged
 
chaospixel
New Member
*
Offline


..:: start.a.riot ::..

Posts: 23
Joined: Aug 12th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #41 - Aug 20th, 2002 at 8:26pm
Print Post  
well, i think my main problem is, that the descriptions were not detailed enough. I dont know much about programming, so i missed a little why i had to do something. like the thing with memsettings... why do i need this number there? u should explain like that this number is needed to read out the correct line ( its an array, isnt it? ) if u can add not only the stuff u have to do, but why u have to do this and this, why this code has to be inserted there, or what dies code does exact, i think it would help alot.. in my opinion Smiley
  

:: Play the game - gaming is lame ::
Back to top
WWWICQ  
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #42 - Aug 21st, 2002 at 8:02am
Print Post  
Hi Guys,

Well, to be honest T-Master, I couldn't get much to work from your tutorial.

In the end I took this tutorial http://boardmod.yabbforum.com/yabb/YaBB.pl?board=tutorials;action=display;num=99...

Although this tutorial is from an earlier version of Yabb, I managed to figure out how to do things by combining your tutorial and this one.

I think the other tutorial is a little more clear and to the point. Don't get me wrong I think your help is great and it is much appreciated and please keep it up.

Hum, at the moment I have the registration working with an extra field, that updates the user.dat, and is output to the profiles pages. This is what I wanted.

I couldn't get any output to the actual posts or IMs.

I would have thought that you would need to edit your Display.pl to get output to these areas, but you never mentioned this in your tutorial so I just left it out.

Can you let me know how to do this, I can get it to display the name of the field, but not the value from the user.dat .. example:

Leech
Administrator
stars
Company name:

Avater

I obviously dont want the field name but the value.

Thanks to T-Master and chaospixel.


Leeeeeeeech!
  
Back to top
WWWICQ  
IP Logged
 
YZ400
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Aug 27th, 2002
Re: Adding fields to registration page SP1.1
Reply #43 - Aug 28th, 2002 at 5:40pm
Print Post  
Leech,

Can you help me out, You did the same thing i would like to do on my board.  Could you list your code on this board?  Kiss

Thanks
YZ400
  
Back to top
 
IP Logged
 
Leech
New Member
*
Offline



Posts: 37
Joined: Aug 15th, 2002
Gender: Male
Re: Adding fields to registration page SP1.1
Reply #44 - Aug 29th, 2002 at 8:39am
Print Post  
Howdy YZ400,

No Problem, I have attached the files to this message in zip format.

These 4 files have other mods and alterations, so it might look confusing, sorry.

If you need any more help or any other files get hold of me ASAP, because I am out at a client today, then I go on holiday for 2 weeks on friday.

Hope it helps you out,

Leeeeeeech!
  

Registration_field.zip ( 36 KB | Downloads )
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 
Send TopicPrint