PDA

View Full Version : How to modify a form


MBAHRAIN.NET
10-15-2012, 06:54 PM
Dear all,

I am seeking help in a certian matter and I would be grateful if I found the solution.

I want to add a new form in our forum that is specified for the customer to order
a service, we want the member, who is registered, to have his/her username and email
appear automatically on the form once entered.

The form is wanted to be same as the form in sendmessage.php exactly.

The problem is not in designing it, as we have a program to do that, nor how to implement
it, it is in the face that we want the name and the email address of the member to appear
automatically.

Does anyone have any idea on how to do that?


The form is designed with KBI

Thanking you in advamce. :D

Brandon Sheley
10-15-2012, 09:10 PM
have you checked any of the form mods here?

MBAHRAIN.NET
10-15-2012, 10:48 PM
have you checked any of the form mods here?

We have checked in general, do you have any suggestions?

Lynne
10-16-2012, 03:25 PM
If you include global.php, then you should have access to $vbulletin->userinfo to get the name and email.

MBAHRAIN.NET
10-16-2012, 03:55 PM
If you include global.php, then you should have access to $vbulletin->userinfo to get the name and email.

Can you please specify more?
How is this done?

Lynne
10-16-2012, 05:22 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=228112" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=228112</a>

MBAHRAIN.NET
10-16-2012, 07:48 PM
https://vborg.vbsupport.ru/showthread.php?t=228112

Hello,

I have checked the link, I really appreciate the help, but this is not what am
looking for :(

Please do you know any thing that could help me?

Lynne
10-16-2012, 10:32 PM
That tells you how to include the global.php file in a custom page.

MBAHRAIN.NET
10-17-2012, 05:17 AM
That tells you how to include the global.php file in a custom page.

Meaning it could make the name and email of the member appear automatically in the form right?

Lynne
10-17-2012, 04:09 PM
Meaning it could make the name and email of the member appear automatically in the form right?
Yes, as I said previously.....
If you include global.php, then you should have access to $vbulletin->userinfo to get the name and email.

MBAHRAIN.NET
10-17-2012, 07:10 PM
Yes, as I said previously.....

Can you do this as a plugin for us? Our forum is VB3

Lynne
10-17-2012, 09:18 PM
Do it as a plugin? No. You said you had a custom page form for this, so there are no plugins in your custom code. You just need to put any code you want right in with your existing code.

MBAHRAIN.NET
10-18-2012, 07:31 PM
Do it as a plugin? No. You said you had a custom page form for this, so there are no plugins in your custom code. You just need to put any code you want right in with your existing code.

Can you do this job for us please?

ForceHSS
10-18-2012, 07:45 PM
you would be best to post in paid section if you need work done

Lynne
10-18-2012, 10:48 PM
I don't do custom jobs. You just need to use those variables in your form. Something *like*:

<input type="text" name="username" value="$vbulletin->userinfo[username]" />

Since we have no idea what your code is like, we can't write it exact for you, but that is something like what you would use.

MBAHRAIN.NET
10-19-2012, 09:12 AM
you would be best to post in paid section if you need work done

ok, thank you