editing profile_add_body.tpl help

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

editing profile_add_body.tpl help

Post by Jacko » Mon Sep 30, 2002 8:58 pm

Why is it when i delete the cells and tables in profile_add_body.tpl i get an error when my users click submit. ???

they get the "could not update users table"

does a script check for each cell and make sure its on the template or something..??

how can i get around this??
Image

Drummer4Life05
Registered User
Posts: 545
Joined: Sun Jul 28, 2002 1:52 am
Location: \\phpbb\forum
Contact:

Post by Drummer4Life05 » Mon Sep 30, 2002 10:11 pm

Does this have to do with a MOD? I think it's in the wrong forum...should be here. (methinks)
MOD Authors Support Forum Description wrote: A forum for MOD-Authors seeking help developing their MOD's.

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB » Mon Sep 30, 2002 10:16 pm

...moved...

Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

Post by Jacko » Mon Sep 30, 2002 10:32 pm

it is part of a mod yes.. sorry forgot to mention but my other thread got a bit complicated..

Abela feel free to close or delete my old thread.. thank you.
Image

NLIS
Registered User
Posts: 13
Joined: Sat Aug 17, 2002 8:44 pm

Post by NLIS » Mon Sep 30, 2002 10:34 pm

I have found certain fields need to be kept.

When registering all you need is "username, password x2 and email".

But when i found when i split the profile into different section, i found in order to update your sig, you needed the simile info.

So try doing a hidden field with the smile value set, and see if it works then, it solves my problem.

If that does not work (don't see why not), elimate the fields, remove one by one to see which one is kicking up the problem.

Drummer4Life05
Registered User
Posts: 545
Joined: Sun Jul 28, 2002 1:52 am
Location: \\phpbb\forum
Contact:

Post by Drummer4Life05 » Mon Sep 30, 2002 10:38 pm

Good idea, NLIS.

Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

Post by Jacko » Mon Sep 30, 2002 10:44 pm

ok i eliminated as much of the cells as possible and now im down to:

username:
Email:
Password: (current, 2x new)

Then the signature Box and "show smilies"

right i need to only show the Signature box..

How can i hide the rest??
Image

DJ P@CkMaN
Registered User
Posts: 194
Joined: Thu Jun 06, 2002 12:55 am
Location: Brisbane, Australia
Contact:

Post by DJ P@CkMaN » Tue Oct 01, 2002 4:01 am

It comes up with an error because the back-end side of the script is trying to process those textboxes to include in the database and they are not there so it, technically speaking, shits itself. The way to fix that is to take out what ever filds you don't want in the template and then remove all the references to those fields in the script.

If you get what I'm talking about, good luck in your MOD, but if you don't, PM me and I will be glad to help you out.

Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

Post by Jacko » Tue Oct 01, 2002 9:04 am

ok the mod is nearly completed.. and can be seen here:

http://www.realgaming.net/phpbb/station.php

you will have to sign up to check it out. but please do and pass on some feedback.

Thank you.
Image

NLIS
Registered User
Posts: 13
Joined: Sat Aug 17, 2002 8:44 pm

Post by NLIS » Tue Oct 01, 2002 1:12 pm

looks good, and is a nice idea.

The "title square" didn't work from the link, but the others loaded up just fine, and i also found that in the Avatar square you are missing the form information, because when you click on submit it does nothing.

Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

Post by Jacko » Tue Oct 01, 2002 3:02 pm

its still buggy.. i kow and the title square isnt there yet.. as i need to install a mod to edit users title but thats next..


i am having this problem also:

when profile square is accessed and modified by a user.. the signature box is cleared so everytime the user updates his profile the signature need to be done again..

im confused now. :roll: 8O :?:

and i am sorting the avatar one out now...
Image

DJ P@CkMaN
Registered User
Posts: 194
Joined: Thu Jun 06, 2002 12:55 am
Location: Brisbane, Australia
Contact:

Post by DJ P@CkMaN » Wed Oct 02, 2002 3:12 am

I'm not sure on the purpose of the above post but if you're looking for help, we need to see some code.

NLIS
Registered User
Posts: 13
Joined: Sat Aug 17, 2002 8:44 pm

Post by NLIS » Wed Oct 02, 2002 10:53 am

Jacko wrote: when profile square is accessed and modified by a user.. the signature box is cleared so everytime the user updates his profile the signature need to be done again..


I just noticed that bug on my forums as i am working on a simular thing.

what you will need to do is do some more hidden fields with the information in it, such as all the veriables from the other pages, but make them hidden.

Jacko
Registered User
Posts: 88
Joined: Mon May 27, 2002 2:06 am
Location: Stoke-on-Trent, UK
Contact:

Post by Jacko » Mon Oct 07, 2002 10:52 am

yes. but in theory it works but when it comes to coding it i suck...!
Image

Post Reply

Return to “[2.0.x] MOD Writers Discussion”