Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 11:02:39 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149695
Posts in
21103
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New Module - AJAX Survey
Pages: [
1
]
Go Down
Author
Topic: New Module - AJAX Survey (Read 3629 times)
SourDough
Offline
Posts: 47
New Module - AJAX Survey
«
on:
July 09, 2008, 05:09:50 PM »
Hi,
I've created a new page module - AJAX Survey. It is a five star rating survey that is based on
http://boedesign.com/2008/02/18/ajax-star-rating/
.
I'd appreciate any feedback.
Nick
«
Last Edit: July 11, 2008, 01:29:32 PM by SourDough
»
Logged
SourDough
Offline
Posts: 47
Re: New Module - AJAX Survey
«
Reply #1 on:
July 10, 2008, 09:14:27 PM »
I've attached a new rating_functions.ph
p to replace the existing file. In the new file, error_reporting is set to level 1 so that warning messages about the headers functions aren't displayed. This isn't an issue in WB 2.7, however upon testing it was an issue in WB 2.6.7.
Nick
Logged
Bramus
Forum Team
Offline
Posts: 600
Re: New Module - AJAX Survey
«
Reply #2 on:
July 10, 2008, 09:21:35 PM »
maybe zip the whole archive again and delete it from the first post, not everyone is reading all the posts, this makes it more clearer
And for the addition, i havent tested it yet, but i think it is a nice little addition! Nice job!
Logged
BRAMUS Internet Services
jar
Offline
Posts: 62
Re: New Module - AJAX Survey
«
Reply #3 on:
July 10, 2008, 09:43:11 PM »
Quote from: SourDough on July 09, 2008, 05:09:50 PM
Hi,
I've created a new page module - AJAX Survey. It is a five star rating survey that is based on
http://boedesign.com/2008/02/18/ajax-star-rating/
.
I'd appreciate any feedback.
Nick
does` n work
look here :
http://www.news-bucovina.ro/pages/vot.php
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - AJAX Survey
«
Reply #4 on:
July 10, 2008, 09:59:21 PM »
Add this in the <head> section of your template index page.
Code:
<?php
if(
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
); }
?>
It is explained here:
http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/enhanced-template-elements.php#anker4
This module needs the special frontend.css to display the images correctly.
Ruud
Logged
Professional WebsiteBaker Developer
cnwb
Offline
Posts: 234
Re: New Module - AJAX Survey
«
Reply #5 on:
July 11, 2008, 03:16:38 AM »
AJAX Survey
Repacked
ajaxsurvey-v1.0.zip
with the
rating_functions.zi
p
new rating_functions.ph
p
Just remember that you need to add the following
Code:
<?php
// automatically include optional WB module files (frontend.css, frontend.js)
if (
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
);
}
?>
within your header of the template index.php your using or it won't work...
Example on how it should look in your template
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=
<?php
echo
defined
(
'DEFAULT_CHARSET'
) ?
DEFAULT_CHARSET
:
'utf-8'
;
?>
" />
<meta name="description" content="
<?php page_description
();
?>
" />
<meta name="keywords" content="
<?php page_keywords
();
?>
" />
<?php
// automatically include optional WB module files (frontend.css, frontend.js)
if (
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
);
}
?>
<link rel="stylesheet" type="text/css" href="
<?php
echo
TEMPLATE_DIR
;
?>
/template.css" media="screen,projection" />
<link rel="stylesheet" type="text/css" href="
<?php
echo
TEMPLATE_DIR
;
?>
/print.css" media="print" />
<title>
<?php page_title
(
''
,
'[WEBSITE_TITLE]'
);
?>
</title>
</head>
Tested AJAX Survey using Internet Explorer 7 and Firefox 2.0.0.15 both worked fine for me!!
this module is based off a version created by
http://boedesign.com/2008/02/18/ajax-star-rating/
Which is based off a version created by
http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/
Nice work thank you for the module
«
Last Edit: January 01, 2009, 03:22:19 PM by cnwb
»
Logged
http://www.jcwebden.com
Argos
Moderator
Offline
Posts: 2084
Re: New Module - AJAX Survey
«
Reply #6 on:
July 12, 2008, 01:14:16 AM »
This has nothing to do with a survey. It's a rating function, not a survey function. Please rename, it's confusing now.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
cnwb
Offline
Posts: 234
Re: New Module - AJAX Survey
«
Reply #7 on:
July 12, 2008, 04:30:19 PM »
OK!!! After test this module and keeping track of the post here, Argos brought up a good point about
Quote
This has nothing to do with a survey. It's a rating function, not a survey function. Please rename, it's confusing now.
So I completely modified the module PHP and MYSQL files to reflect AJAX Star Rating instead of AJAX Survey..
and renamed the module..
I hope this clears up any confusion on the modules purpose..
You must do this FIRST!!!!!
If you previously installed ajaxsurvey.zip you will need to
delete any surveys from pages you created and then uninstall
module before installing this one or you will create problems in MYSQL..
«
Last Edit: January 01, 2009, 03:22:33 PM by cnwb
»
Logged
http://www.jcwebden.com
soki
Offline
Posts: 4
Re: New Module - AJAX Survey
«
Reply #8 on:
August 26, 2008, 12:09:52 PM »
It's a nice modul and it works fine.
But my problem is: I want to show the rating results on two pages (only the result!).
Does anyone have an idea how to do this?
Logged
SourDough
Offline
Posts: 47
Re: New Module - AJAX Survey
«
Reply #9 on:
August 26, 2008, 01:52:09 PM »
Quote from: soki on August 26, 2008, 12:09:52 PM
It's a nice modul and it works fine.
But my problem is: I want to show the rating results on two pages (only the result!).
Does anyone have an idea how to do this?
I'm not entirely clear. Do you want just the numerical data, or do you also want the rating graphic. I'm working on an update to this version that would provide a results page in the admin area. However, there is no reason it couldn't be presented in the frontend.
Can you be a bit more specific about "I
want to show the rating results on two pages (only the result!).
"
I guess I'd also be curious to know how you're using the module, any links?
Nick
Logged
soki
Offline
Posts: 4
Re: New Module - AJAX Survey
«
Reply #10 on:
August 26, 2008, 02:24:00 PM »
It's a new site which is not online. So I can't give you a link.
But I want to explain it with some more details.
On my new site, users can rate for dating sites.
The dating sites are in diffrent categories.
Example:
Categorie: Photo Voting Sites
provider 1 (here I want to show the result of rating)
provider 2 "
provider 3 "
And evry provider has its own detail site. On this detail site, users can rate.
Now I want to show the results of rating from the detail site additional on the categorie site (with rating graphic).
Logged
SourDough
Offline
Posts: 47
Re: New Module - AJAX Survey
«
Reply #11 on:
August 26, 2008, 06:00:48 PM »
I'm working on a snippet that should provide you with what you need.
Nick
Logged
soki
Offline
Posts: 4
Re: New Module - AJAX Survey
«
Reply #12 on:
August 27, 2008, 08:59:48 AM »
That's great ! Thank you
Sven
Logged
SourDough
Offline
Posts: 47
Re: New Module - AJAX Survey
«
Reply #13 on:
August 27, 2008, 02:44:22 PM »
I've posted the snippet in the following thread:
http://www.websitebaker2.org/forum/index.php/topic,10869.msg64592.html#msg64592
.
Nick
Logged
chnosli
Offline
Posts: 28
Re: New Module - AJAX Survey
«
Reply #14 on:
April 30, 2010, 02:37:53 PM »
hello
i'm a snippet-rookie. could you tell me how i can install AJAX?
i don't know how i can start with this modul.
thank's for your help!
claudia
Logged
Argos
Moderator
Offline
Posts: 2084
Re: New Module - AJAX Survey
«
Reply #15 on:
April 30, 2010, 05:58:39 PM »
It's not a module, but a snippet. Snippets are php code and cannotbe installed like module. Please read more about snippets on
http://www.websitebaker2.org/en/add-ons/modules/code-snippets.php
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...