changing location of Choose Payment form

6 replies [Last post]
ttbardj
User offline. Last seen 1 week 6 hours ago. Offline
Joined: 01/11/2010

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?

wildkatana
User offline. Last seen 3 hours 29 min ago. Offline
Joined: 06/03/2009
ttbardj, It was on the bottom

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

ttbardj
User offline. Last seen 1 week 6 hours ago. Offline
Joined: 01/11/2010
Which file exactly are you

Which file exactly are you referring to?  i looked in the module files for paypublish and paypal_api and didnt see anything....

wildkatana
User offline. Last seen 3 hours 29 min ago. Offline
Joined: 06/03/2009
ttbardj, ms_paypublish.module

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

ttbardj
User offline. Last seen 1 week 6 hours ago. Offline
Joined: 01/11/2010
think i am missing something

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

 

ttbardj
User offline. Last seen 1 week 6 hours ago. Offline
Joined: 01/11/2010
finally i 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.

ttbardj
User offline. Last seen 1 week 6 hours ago. Offline
Joined: 01/11/2010
BTW

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