Campaign selection dropdown

  • SITech
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 8 months ago #11140 by SITech
Campaign selection dropdown was created by SITech
Clicking Donate (mod_jdonation) opens the donation page with dropdown campaign selection. However only 11 campaigns are listed.

Is there a coded limit that can be removed?

If the limit must remain, how does jdonation select amongst the available options - I can't see the pattern?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #11144 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign selection dropdown
Please make sure :

1. You published the campaigns .

2. The campaign start date must be before the current date (or leave it empty) and campaign end date must be greater than the current date (or leave it empty) .

After that, all the campaigns will be available in the dropdown !

Tuan

Please Log in or Create an account to join the conversation.

  • SITech
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 8 months ago - 12 years 8 months ago #11153 by SITech
Replied by SITech on topic Re: Campaign selection dropdown
Almost. Your comment got me looking at dates. Here's what I found.

Leaving dates blank when creating a campaign results in both start and end dates defaulting to 30-00-1999 on the Campaigns management page, or 1999-11-30 if editing a campaign. Each time a campaign is opened from the back end, the dates move 1 day earlier - to 29-00-1999, then 28-00-1999, etc.

Campaigns with the original dates display sataisfactorily in the front end drop down box. Those that had changed dates did not.

Setting the end date in the future solved the immediate problem, as you suggested. I'll leave it to you to figure out the other behaviour - perhaps make the default end date 2099 instead of 1999.
Last edit: 12 years 8 months ago by SITech.

Please Log in or Create an account to join the conversation.

  • SITech
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 8 months ago #11156 by SITech
Replied by SITech on topic Re: Campaign selection dropdown
After the end date is set in the future (I changed the year to 2099), each time the campaign is edited and saved the end date is reset to 1999, setting us up for a repeat of the problem.

Please Log in or Create an account to join the conversation.

  • SITech
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago #11642 by SITech
Replied by SITech on topic Re: Campaign selection dropdown
New version 2.8.2 fixed it. Thanks Tuan.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #11656 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign selection dropdown
Great, thanks for your feedback !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt