The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

24.05.13 at 12:51:28, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 2 3 4 
Adding fields to registration page SP1.1 (Read 6965 times)
Tea-Master
Mod God
*****
Offline

north germany, Schleswig-Holstein, Germany
Posts: 1944




BoardMod Developer
Reply #30 - 14.08.02 at 18:50:19  
write it after the last "print FILE" string there. standard is after
Code:
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 )
 
IP Logged
 
chaospixel
Bloody Novice
*
Offline

Posts: 23



Reply #31 - 14.08.02 at 21:27:47  
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
 
IP Logged
 

:: Play the game - gaming is lame ::
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #32 - 20.08.02 at 10:58:48  
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
 
IP Logged
 

myProfile_pl.txt (41 KB | 76 )
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #33 - 20.08.02 at 11:40:18  
Hi Me again,

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

Thanks in advance,

Leeeeeeeeeech!
 
IP Logged
 
chaospixel
Bloody Novice
*
Offline

Posts: 23



Reply #34 - 20.08.02 at 14:53:48  
check in which line it is written in the user file and change the memsettings value .. to the line number minus one.
 
IP Logged
 

:: Play the game - gaming is lame ::
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #35 - 20.08.02 at 15:09:58  
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
 
IP Logged
 
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #36 - 20.08.02 at 15:20:39  
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!
 
IP Logged
 
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #37 - 20.08.02 at 15:37:56  
Damn,

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!
 
IP Logged
 
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #38 - 20.08.02 at 17:00:22  
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!
 
IP Logged
 
chaospixel
Bloody Novice
*
Offline

Posts: 23



Reply #39 - 20.08.02 at 18:54:58  
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
 
IP Logged
 

:: Play the game - gaming is lame ::
Tea-Master
Mod God
*****
Offline

north germany, Schleswig-Holstein, Germany
Posts: 1944




BoardMod Developer
Reply #40 - 20.08.02 at 20:36:08  
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
 
IP Logged
 
chaospixel
Bloody Novice
*
Offline

Posts: 23



Reply #41 - 20.08.02 at 21:26:21  
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
 
IP Logged
 

:: Play the game - gaming is lame ::
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #42 - 21.08.02 at 09:02:17  
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!
 
IP Logged
 
YZ400
Bloody Novice
*
Offline

Posts: 19



Reply #43 - 28.08.02 at 18:40:53  
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
 
IP Logged
 
Leech
Bloody Novice
*
Offline

Posts: 37



Reply #44 - 29.08.02 at 09:39:06  
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!
 
IP Logged
 
Pages: 1 2 3 4 
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum