PDA


View Full Version : Problem specifying custom polls on custom pages


surfdude
12-04-2005, 07:35 PM
I have found problem with Poll in CMPS custom pages.

I added new 'template' pages, some with guides to different beaches, some for towns. I also created separate threads with polls in vB. On each of my custom vBa page, I try to specify corresponding poll, so visitor to each page can rate this beach or town and view current rating (Brian, remember venue hack that you wrote for me some years ago which did the same thing).

Problem arises when assigning particular poll to a particular page in Admin > vBa CMPS > Edit Pages. As far as I understand this, each new page added through CMPS can show unique Poll, as specified in 'Edit' page. But whole process is very messy and unreliable - or is it just me doing something wrong.

I would specify poll 1 for page 1, and check to see if it works. I would then specify poll 2 for page 2, and check this for correctness. Poll 3 for page 3 etc. But going back to page 1 would reveal that this page is now showing Poll X - last one I setup in Page 3 or default poll appearing on CMPS index page, and not related to these polls, or whatever. Correcting poll in Page 1 would mess Page 3 etc.

Another problem is trying to specify poll in Admin > vBa CMPS > Edit Pages > Edit Page X > Current Poll Options > Current Poll Threads > Edit Threads > new window. Here, I would be presented with Poll X (which I did not select previously) and a check-box to remove it, which would not do so. So I would then choose another poll, and would have, say, Poll 1 and Poll X as selected polls. I would use check box to remove Poll X, which would actually remove Poll 1?!?

I seem to be chasing my own tail trying to set up different poll on different pages, and for me this is the must have feature in order to get branding free licence. Is this a known problem?


note: this problem occurs on my test site, and not on one in my sig.

Brian
12-05-2005, 02:02 AM
Sounds like the same bug posted in this thread:

http://www.vbadvanced.com/forum/showthread.php?t=11627

surfdude
12-05-2005, 04:57 PM
Hi Brian,

I tried downloading those files again, but no luck. I have submitted support ticket with all the details, but have since realized I should have not done this unless asked by you :o . On the other hand, I also got branding free licence :) , so be easy on me!

surfdude
12-05-2005, 05:14 PM
STOP!

It is working now, after I suddenly tried different approach. Problem was that every page had inherited identical poll thread selection, even tho I created new pages through Add Page option, rather then using 'copy' method. So, in order to get it to work, in Admin > vBa CMPS > Edit Pages > Edit Page X > Current Poll Options > Current Poll Threads > Edit Threads > and in new window first thing was to navigate to ticked thread (I didn't do it!), unchecked it, then go to correct one and tick that one.

Perhaps, when new pages are created, Current Poll should be blank, I do not know how all pages had same Poll thread checked :confused: .

In any case, it is all fixed now, and one can continue with development.

Thanks Brian.

Brian
12-05-2005, 05:45 PM
Just to be sure... Were you trying to select the thread for your polls before actually saving the new/copied page? If so, then that would be exactly why you were experiencing problems. There is a bug in the current version that will still allow you to try and select threads even though the page has not been created. Since the page does not exist yet, it does not have a pageid to base the changes on and the system will think that you're trying to modify the option for the module instead of just that specific page. That sounds like what was happening here, but I just wanted to be sure. This will also be corrected in the next version so that it prints out an error message asking you to save the page first.

surfdude
12-05-2005, 07:47 PM
I had whole evening of setting up and playing with CMPS and current poll, and just as I set-up all the pages with corresponding polls, i realised home page poll has now changed as well. So I went to Edit Page, and reinstated proper poll for index page. Clicked Save and presto, all my hard work went to dust - all my pages now reverted to index poll I have just chosen........ahhhhhhhhhhh!

Time for sleep, more adventures tomorrow.