TaskQueue link in AdvancedTools

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/20/2010 2:27:38 PM
Gravatar
Total Posts 8

TaskQueue link in AdvancedTools

In the file :

AdvancedTools.aspx.cs

the code :

if (WebConfigSettings.EnableNewsletter)
{
liTaskQueue.Visible = isAdmin || WebUser.IsNewsletterAdmin;
lnkTaskQueue.Text = Resource.TaskQueueMonitorHeading;
lnkTaskQueue.NavigateUrl = SiteRoot + "/Admin/TaskQueueMonitor.aspx";
}
else
{
liTaskQueue.Visible = false;
}

 

the condition should be :

if (WebConfigSettings.EnableTaskQueue)
 

Is there any connection between Newsletter and TaskQueue ? 

and for less code you can write the same code as (without the IF statement):

liTaskQueue.Visible = WebConfigSettings.EnableTaskQueue && (IsAdmin || WebUser.IsNewsletterAdmin);
lnkTaskQueue.Text = Resource.TaskQueueMonitorHeading;
lnkTaskQueue.NavigateUrl = SiteRoot + "/Admin/TaskQueueMonitor.aspx";
 

12/21/2010 8:03:12 AM
Gravatar
Total Posts 18439

Re: TaskQueue link in AdvancedTools

I will change it like this:

liTaskQueue.Visible = (!WebConfigSettings.DisableTaskQueue) && (isAdmin || WebUser.IsNewsletterAdmin);

since we have an existing setting for DisableTaskQueue

The connection with Newsletter is that when you send the newsletter to a list it is done as a task that runs in the task queue. In the first version of our Newsletter feature we actually would redirect to the task queue page after clicking the send button in the newsletter so you could monitor the progress from there, but later I implemented a jquery progress bar for the newsletter but it still polls a service page that checks the task status.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.