i have successfully installed the pay to publish module, but the Choose Payment part on my node creation form is located in the middle of other information forms required for node creation... how do i change the weight so it is located at the bottom of the list, so it is the last option the choose?
changing location of Choose Payment form
Which file exactly are you referring to? i looked in the module files for paypublish and paypal_api and didnt see anything....
ttbardj,
ms_paypublish.module , at or around line 436
I have added and tested the functionality for a new admin setting so you can change the weight of it from the settings page, and it worked. I will get it released tomorrow, along with some other minor fixes.
Sincerely,
Leighton Whiting
in my ms_paypublish.module at line 436 is
//Fill in Custom Variables:
$variables = array(
'pid' => $plan->pid,
'days' => $plan->expire_days,
'nid' => arg(2),
'uid' => $account->uid
even searched for Choose Payment in the document and it was no where to be found
i was looking the file on my server and couldnt find it... but when i looked in the tar.gz originally downloaded i found it.
I had to change it's value to 49... when set to 50 it appears below the submit and preview buttons
Thanks for the help and keep up the good work... i love this module


ttbardj,
It was on the bottom of my demo sites and testing, so I haven't run into this problem before, but I can see now that the weight should be a setting on the admin page. I will put this in in the next release. In the mean time, you can go in the module to line 436 and change this:
$form['ms_paypublish'] = array(
'#type' => 'fieldset',
'#title' => t('Choose Payment'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
to this:
$form['ms_paypublish'] = array(
'#type' => 'fieldset',
'#title' => t('Choose Payment'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#weight' => 50,
);
Basically just added in the weight.
Let me know if it works.
Sincerely,
Leighton Whiting