Hello,
trying after a long while to reinstate this functionality.
I'm using it in conjunction with your 'edit new thread button' hack to open a classified adverts form for several specific (classifieds) forums.
So I need to have an &f=n in the link to the form.
E.g.
And you have a comment in your plugin which says
Quote:
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
|
So I did this:
PHP Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'ad_type' => TYPE_STR,
'ad_title' => TYPE_STR,
'ad_location' => TYPE_STR,
'ad_agree' => TYPE_STR,
'f' => TYPE_STR
));
// Part 2
$ad_type = $vbulletin->GPC['ad_type'];
$ad_title = $vbulletin->GPC['ad_title'];
$ad_location = $vbulletin->GPC['ad_location'];
$ad_agree = $vbulletin->GPC['ad_agree'];
$f = $vbulletin->GPC['f'];
and I put this in, 'just in case'
PHP Code:
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
if (!$f) {$f=62;} // default forum is av kit for sale
$formforumid = $f;
But the value of f isn't being assigned to the parameter variable. It's always 62
What additional stuff do I need, please?
And do I need to create a hidden input in the form value of $f to pass it on?