Log in

View Full Version : Some help with making my mod


djdonx
09-29-2007, 12:16 PM
Okay, so I've made a form that gets sent to the administrator on submission but for one of the fields, I'd like a piece of pre-entered information.
It is for when a forum is locked, users can request the password so from the enter password page, a link will go to the form but can I make it so that the form will enter the forum that the user has just come from, automatically?

Thanks in advance for any help

djdonx
10-01-2007, 04:36 PM
I was speaking to a friend who said that it will probably be a hidden field on the forumdisplay template or something of the likes. Anyone know what I'm supposed to do? ;>

Dismounted
10-02-2007, 05:31 AM
On the link to the password request page, add a variable on the end of it, for example, if the link was:
http://www.yourforum.com/password_request.php
Make it:
http://www.yourforum.com/password_request.php?f={$vbulletin->GPC['f']}
Then on the form, add:
<input type="hidden" name="f" value="{$vbulletin->GPC['f']}" />

You'll need to clean the variable though.

djdonx
10-02-2007, 03:03 PM
Aha. Thanks for the help ;D

Just a quick question.. where is the forum page/template that you enter the password on? Havig some trouble finding it..