Home arrow Forum NEW! SMF AJAX Polls module!
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 11:37:44 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  NEW! SMF AJAX Polls module!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: NEW! SMF AJAX Polls module!  (Read 2712 times)
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
NEW! SMF AJAX Polls module!
« on: November 26, 2006, 05:40:43 AM »

Hey all! I have recently created a module that displays any particular SMF's poll and allow users to vote using it. It is my first foray into the world of AJAX, so suggestions are definitely welcomed!

The module will take any poll settings from SMF and properly reflect them. Language translation is also supported. It also requires SMF and JSMF2.0 to be installed first, and was especially made for JSMF users Wink

To download or for more information, visit http://mike.simbunch.com Smiley

Regards, Mike
« Last Edit: November 26, 2006, 10:55:47 AM by p9939068 » Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #1 on: November 26, 2006, 05:11:40 PM »

Didn't have an account so when I registered I was taken to a page with this informational message.

Code:
Your account has been created and activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.

On this page your poll was shown on the right sidebar, and it had these errors:

 p9939068 Ajax SMF Poll
Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 322

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 323

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 325

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 326

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 327

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 322

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 323

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 332

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 333

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 340

hmmm... and then clicking my registration link I get this error:

Code:
There is no such account in our database or the account has already been activated.


So I tried to login via Joomla-SMF Login(hey that looks familiar Wink) and it worked.  Then I placed my vote, very well done Mike!  I like the way the items you voted for are in bold.  And the ability to remove vote is nice.  How are you doing the AJAX, using a framework or all by hand?  I have used xajax a lot recently but their rate of development has been slow so I am searching out better alternatives.  Or I might wait for incorporation of JSON into the core php. 

Sure you don't want to be part of the dev team!?  Tongue
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #2 on: November 26, 2006, 10:19:55 PM »

Didn't have an account so when I registered I was taken to a page with this informational message.

Code:
Your account has been created and activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.

On this page your poll was shown on the right sidebar, and it had these errors:

 p9939068 Ajax SMF Poll
Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 322

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 323

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 325

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 326

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 327

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 322

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 323

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 332

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 333

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/sbadmin/public_html/mike/modules/mod_smf_ajax_polls.php on line 340

hmmm... and then clicking my registration link I get this error:

Code:
There is no such account in our database or the account has already been activated.


So I tried to login via Joomla-SMF Login(hey that looks familiar Wink) and it worked.  Then I placed my vote, very well done Mike!  I like the way the items you voted for are in bold.  And the ability to remove vote is nice.  How are you doing the AJAX, using a framework or all by hand?  I have used xajax a lot recently but their rate of development has been slow so I am searching out better alternatives.  Or I might wait for incorporation of JSON into the core php. 

Sure you don't want to be part of the dev team!?  Tongue

Fixed the warning messages. It appears that i can't re-use form fields even though they're on other forms (in this case "task") with ajax Tongue

I'm doing this all by hand. Didn't want to use a framework cus 1) doing it manually allows me to learn from scratch, 2) there is actually no "x" in my ajax script Wink, and 3) my ajax script handles only 1 single form and outputs into 1 single div, so a framework will be kinda overkill.

I'm taking a break from work (as promised to my gf Embarrassed), and my other (non-web) projects are already a handful, so i really doubt i'll have any time left Smiley

Rgds, Mike
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Tom
Joomla Pro
**

Karma: +1/-10
Offline Offline

Posts: 80



View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #3 on: November 28, 2006, 07:19:56 PM »

This module works perfectly.

Thanks Mike  Smiley
Logged
Mongoose
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 31



View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #4 on: November 29, 2006, 12:11:25 PM »

Great module! I was serching for it long time. Thank you!

Little notice. Joomla and SMF on my site are using UTF-8 encoding. But your module have hardcoded ISO-encoding. To get entire encoding from SMF will be more convenient in this case, I think.
Logged
El Pollo
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3



View Profile
Re: NEW! SMF AJAX Polls module!
« Reply #5 on: November 30, 2006, 11:07:04 AM »

Nice work! ... and perfect timing!

I was looking for something like this so its come at just the right time. Works beautifully too!

Thanks!
Logged

Community web admin @ www.masheads.co.uk
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #6 on: December 03, 2006, 11:15:39 AM »

Great module! I was serching for it long time. Thank you!

Little notice. Joomla and SMF on my site are using UTF-8 encoding. But your module have hardcoded ISO-encoding. To get entire encoding from SMF will be more convenient in this case, I think.
Unfortunately i cant do that cos it's a joomla module afterall. i tried utf_encode it, but all i get is a '?'.

Nonetheless I've attached a copy with UTF "enabled". Please do me a favor and test it if it works. None of my sites are UTF configured, so I can't really test it. This version only converts the poll options to utf. Thanks.

For a new "non-testing" release, please download it at http://mike.simbunch.com
« Last Edit: December 03, 2006, 10:55:06 PM by p9939068 » Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Mongoose
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 31



View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #7 on: December 03, 2006, 05:24:29 PM »

Wow! A lot of work was done as I see. But module works fine only after I changed in 1.0.3
Code:
header("Content-Type: text/html; charset=iso-8859-1");
to
Code:
header("Content-Type: text/html; charset=utf-8");

What do changes mean that you maked in 1.0.4?
Logged
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #8 on: December 03, 2006, 10:54:14 PM »

Wow! A lot of work was done as I see. But module works fine only after I changed in 1.0.3
Code:
header("Content-Type: text/html; charset=iso-8859-1");
to
Code:
header("Content-Type: text/html; charset=utf-8");

What do changes mean that you maked in 1.0.4?
What do you mean it works only after you changed to 1.0.3..?

Sorry i forgot to change that line. i've overwritten the previous post with the updated version, though i still very doubt it'll work. Appreciate it if someone can point me in the right direction Smiley
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Mongoose
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 31



View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #9 on: December 04, 2006, 02:43:35 AM »

I mean that 1.0.3 works perfectly with UTF-8 after the ony one line changing and it is not necessary (I think) to improve hereafter.
Logged
p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #10 on: December 04, 2006, 11:01:00 AM »

I mean that 1.0.3 works perfectly with UTF-8 after the ony one line changing and it is not necessary (I think) to improve hereafter.

I see. Can you please do me a favor and upgrade to the version i uploaded on the previous post, then set it to UTF-8 in the module's config, and see if it works? Much appreciated, thanks! Smiley
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Exit
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: NEW! SMF AJAX Polls module!
« Reply #11 on: December 05, 2006, 02:18:47 PM »

http://www.simplemachines.org/community/index.php?topic=131895.0
Logged

p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #12 on: December 06, 2006, 12:57:44 PM »

Hi folks, I've just made an AJAX based joomla module that displays a user's cb connections. Works great for users who've integrated Joomla with SMF and CB.

More information and screenshots available at http://mike.simbunch.com/index.php?option=com_docman&task=cat_view&gid=2&Itemid=4 (remember to scroll down).

Any feedback is most welcomed!

Regards, Mike
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Mongoose
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 31



View Profile WWW
Re: NEW! SMF AJAX Polls module!
« Reply #13 on: December 06, 2006, 04:52:18 PM »

I see. Can you please do me a favor and upgrade to the version i uploaded on the previous post, then set it to UTF-8 in the module's config, and see if it works? Much appreciated, thanks! Smiley
No, it doesn't. Neither with "iso" nor with "utf" setting.
Logged
geddeth
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: NEW! SMF AJAX Polls module!
« Reply #14 on: January 19, 2007, 07:12:34 AM »

So this thing has gone commercial now, huh?
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use