Problem with portal:Subscribe control

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.
2/4/2012 10:24:41 AM
Gravatar
Total Posts 2253

Problem with portal:Subscribe control

Hi Joe,

I've placed the portal:Subscribe control in the layout.master to make it available on all pages. This works fine except for on pages with event calendar pro. When one clicks to advance the calendar a month or selects an event to view it's detail, the watermarktext box reverts to "enter search terms," the "emailformat" radio buttons show up, and the button stops working.

You can see this at http://dev1.acckc.org/news-events.aspx.

I'm running 2.3.8.1 MSSQL in Full Trust. Here's the control I'm using for the subscription input:

<portal:Subscribe ID="subscribe1" runat="server" ButtonText="Get Our Newsletter"
   HtmlIsDefault="true" ShowFormatOptions="false" ShowList="false"
   ShowMoreInfoLink="false" ShowPreviousEditionsLink="false"
   WatermarkText="Email address"
/>

Thanks,
Joe 

2/4/2012 11:03:50 AM
Gravatar
Total Posts 18439

Re: Problem with portal:Subscribe control

Hi Joe,

That is very strange. At the moment I'm stumped why it isn't working. I can see that the javascript for it is different on the page where it isn't working but I don't know why that would happen unless somehow pageload event is not firing in the SubscribeControl. I would try different skins and see if that is a factor.

Best,

Joe

2/4/2012 11:22:56 AM
Gravatar
Total Posts 2253

Re: Problem with portal:Subscribe control

Hi Joe,

I managed to replicate it using the artisteer31-alphamotors skin. If I place the portal:subscribe control in the right column and then turn on the "Show Page Right Content In All Views" option in ECP, the problem shows up.

You can see it here: http://d.thedemowebsite.com/events-pro.aspx

I was also able to reproduce the issue on the demo site using the Newsletter SignUp Control. Same scenario, placed it in the right column and enabled "Show Page Right Content In All Views." https://demo.mojoportal.com/events-pro

Thanks,
Joe D. 

2/4/2012 11:54:08 AM
Gravatar
Total Posts 18439

Re: Problem with portal:Subscribe control

Hi Joe,

I was able to see the problem by stepping through the code. The Subscribe control is apparently inheriting Visible="false" from its parent container divRight, though divRight is being set to visible it is happening after the page load event fires in the Subscribe control where we have 

if (!Visible) { return; }

so it is not loading the settings.

I was able to workaround it by setting AlwaysShowRightColumn="true" on <portal:StyleSheetCombiner so that divRight is set to visible earlier in the page lifecycle. Is that a workable solution for you?

I will remove the code shown above from Subscribe for the next release, I did not realise it would inherit that form a parent control.

Best,

Joe

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