Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 16

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Development Announcements

Reply
 
LinkBack Thread Tools Display Modes
Old 23.06.2004, 10:44   #11 (permalink)
Baby Mamber
 
akuate's Avatar
 
Join Date: May 2004
Location: Bangalore, India
Posts: 22
akuate is on a distinguished road
Default Re: pre-release of extended Poll component available!

The new release is much better than the old one. Great work!!

I know that this release is to facilitate the mambo users, but here are some of the issues I found with the release. None of the issue is really big one but should help this great product to evolve into a mature one.

1. When you start adding options, the '+' sign with the question should be '-' as the option list is open
2. Mutliple voting checkbox is not behaving as it should, the checked box is gone once you do it. Same for other check box options too. The check is not appearing on admin UI though it is there in the database.
3. If the results are displayed on the main window, the poll is not shown on the screen (happens if we have only one poll published)
4. If we use "Initially hide options:" then we get javascript error alert on the site page once we choose the poll
5. The results if shown on the main window, then the first vote date and last vote date is coming arbit (sometimes the value is null)
6. The results if shown on the main window, then only the last poll os shown in polls position the previous poll(s) is not shown

Please let me know if any of the error description is not clear, I tried to be comprehensive.

I definitely feel this will be helpful for all the users. But want to appreciate the great module component that is extended poll. Great work!!

- akuate
__________________
Download Badword Filter Component from Mosforge.net
akuate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02.07.2004, 15:14   #12 (permalink)
Baby Mamber
 
akuate's Avatar
 
Join Date: May 2004
Location: Bangalore, India
Posts: 22
akuate is on a distinguished road
Default Re: pre-release of extended Poll component available!

Ok, here it is, I don't know the solution for all of the issues mentioned here but here are some solutions:

Quote:
Originally Posted by akuate
2. Mutliple voting checkbox is not behaving as it should, the checked box is gone once you do it. Same for other check box options too. The check is not appearing on admin UI though it is there in the database.
Now this problem id due to incorrect slashes in the code. Look at the backslash used in the end of lines in original code:
PHP Code:
<input type="checkbox" class="checkbox" name="mypoll[multivote]" value="1" <?php if ($mypoll[multivote] == 1) echo checked ?>\>
You have to replace all of these slashes like this to the forward slash like this:
PHP Code:
<input type="checkbox" class="checkbox" name="mypoll[multivote]" value="1" <?php if ($mypoll[multivote] == 1) echo checked ?>/>
You are done.

Now for the second one:
Quote:
Originally Posted by akuate
5. The results if shown on the main window, then the first vote date and last vote date is coming arbit (sometimes the value is null)
For this you have to modify some lines of code in pollxt.php (Lines 165 to around 185 or so) as
PHP Code:
        foreach ($questions as $question) {
         
$database->setQuery("SELECT * FROM #__pollsxt_options WHERE quid = '$question->id' ORDER BY id");
         
$options $database->loadObjectList();
           foreach (
$options as $o) {
                         
$database->setQuery("SELECT * FROM #__pollxt_data WHERE optid = '$o->id'");
                         
$data $database->loadObjectList();

                         
$votes[$j][$i]["text"] = $o->qoption;
                         
$votes[$j][$i]["hits"] = count($data);
                         
$i++;
                        }
                        
$j++; $i=0;
                     }
                    
/** added by akuate**/
                    
$database->setQuery("SELECT MAX(t1.datu) AS maxdate, MIN(t1.datu) AS mindate FROM #__pollxt_data as t1, #__pollsxt_options as t2, #__pollsxt_questions as t3, #__pollsxt as t4 where t4.id='$poll->id' AND t1.optid = t2.id AND t2.quid = t3.id AND t3.pollid = t4.id;");
                    
$dates $database->loadObjectList();
                    
$first_vote mosFormatDate$dates[0]->mindate_DATE_FORMAT_LC2 );
                    
$last_vote mosFormatDate$dates[0]->maxdate_DATE_FORMAT_LC2 );


        echo 
$database->getErrorMsg();
   if (!
$my->id$logonQuery "AND logon=0";
   else 
$logonQuery ""
Let me know if it helps!!
AKUATE
__________________
Download Badword Filter Component from Mosforge.net
akuate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21.07.2004, 04:45   #13 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Posts: 152
omerten is on a distinguished road
Send a message via ICQ to omerten
Default Re: pre-release of extended Poll component available!

Hola akuate,

first: sorry for my late response, was very busy and on holiday etc...
thanks for your detailed information, but I have several questions:
1.) I can not reproduce that... Do you have a javascript error or something like that?
2.) Thanks for the solution... will be included in .84
3.) I can not reproduce that... Do you have an example, where I can see it?
4.) will be solved with .84
5.) Your solution looks good, but I could not find any problems with my old solution... maybe I'll take yours ;-)
6.) I don't know if I understand the problem correctly... In the results always only one poll should be shown, the others can be selected via select-box.

Thanks again,

regards,

Oli
__________________
<formerly known as mambo>XT.com
omerten is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.07.2004, 08:09   #14 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Posts: 152
omerten is on a distinguished road
Send a message via ICQ to omerten
Default Re: pre-release of extended Poll component available!

Hola,

some additions, versions .85 (will be released tonight) will have your solution for 5.) (mine was in fact buggy) and some minor bugfixes in result display... probably 6. is solved with that?

Thanks for your hints,

regards,

Oli
__________________
<formerly known as mambo>XT.com
omerten is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.07.2004, 16:27   #15 (permalink)
Baby Mamber
 
akuate's Avatar
 
Join Date: May 2004
Location: Bangalore, India
Posts: 22
akuate is on a distinguished road
Default Re: pre-release of extended Poll component available!

Hi,

I just integrated v0.85 to the earlier release. I must say that you have provided a much better version this time. Congratulations!! The copy question, image size and link features are great.

I have a few feedbacks though!
1. As in the current release only one parameter out of image height or width can be specified. It would be really great if the user can specify both height and width. Adds a lot of value.

2. Stripslashes inclusions have been great but it has been missed out at one crucial part. The place where we show results. The change has to be done in pollxt.html.php (somehwhere near line 193)
PHP Code:
<?php echo $text?>
needs to be changed to:
PHP Code:
<?php echo stripslashes($text); ?>
3. Currently the polls results are shown in random order, it would be great if the results can be shown in descending order (based on number of hits). I'm using this code in pollxt.php (around line 183)
PHP Code:
$database->setQuery("SELECT a.*, COUNT(b.optid) as hits FROM #__pollsxt_options a, #__pollxt_data b WHERE a.quid = '$question->id' and a.id=b.optid group by a.qoption order by hits DESC"); 
But I guess the extended polls is stable now and you can release version 1.0. Best of luck!!

Regards,
Akuate
__________________
Download Badword Filter Component from Mosforge.net

Last edited by akuate; 22.08.2004 at 17:50.
akuate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.07.2004, 21:59   #16 (permalink)
Baby Mamber
 
akuate's Avatar
 
Join Date: May 2004
Location: Bangalore, India
Posts: 22
akuate is on a distinguished road
Default Re: pre-release of extended Poll component available!

Sorry for point three the query should be:
Code:
SELECT a.*, COUNT(b.optid) as hits FROM #__pollsxt_options a left outer join #__pollxt_data b on a.id=b.optid WHERE a.quid = '$question->id' group by a.qoption order by hits DESC, a.id ASC
__________________
Download Badword Filter Component from Mosforge.net
akuate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.07.2004, 03:35   #17 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Posts: 152
omerten is on a distinguished road
Send a message via ICQ to omerten
Default Re: pre-release of extended Poll component available!

Hi akuate,

thanks again for your recommendations and testing. But this time you were a little late ;-) At least the slashes are already stripped in version 0.86. I'm thinking about re-writing parts of the results display sooner or later, I guess your recommendation will be part of that.
Regarding images: I think definition of width or height is enough (otherwise you'd mess up the proportions of the image), but if you have some good reasons, I could be easily convinced...

Thanks,

Oli
__________________
<formerly known as mambo>XT.com
omerten is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 29.07.2004, 20:28   #18 (permalink)
Baby Mamber
 
akuate's Avatar
 
Join Date: May 2004
Location: Bangalore, India
Posts: 22
akuate is on a distinguished road
Default Re: pre-release of extended Poll component available!

Seems like you are releasing new version every day! That's good for the commnunity...

concerning version 0.87, what is the concept of obligatory question. Can you please explain the significance?

Regards,
Akuate
__________________
Download Badword Filter Component from Mosforge.net
akuate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Mambo sites tomwoods Development Discussions 101 17.11.2006 19:09
Users Component Under Development MamboJoe Component Development 50 21.04.2006 17:45
User Extended component is out MamboZ Development Announcements 106 03.09.2005 01:07
How to install the User Extended Component ? bat Component 'How Do I' Questions 2 08.05.2004 10:21
Extended link component ? pixelsoul Mambo 4.5 General Talk 0 21.04.2004 10:54


All times are GMT +2. The time now is 09:44.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.