Ditutup

Embedding of php poll in digg-like website

This is a small project, but you must have:

* PHP with Mysql database knowledge

* knowledge of the Smarty template engine for PHP

[url removed, login to view]

We are developping a new digg-like website using open

source PHP/Mysql solution available on the web.

This system is using Smarty templates engine.

On the other side we have small poll script written

in PHP/Mysql but without using Smarty templates.

*****************************************************

We would like just to embedd this pool script into our

digg-like website and get the following functions:

WEBSITE REGISTERED MEMBER MODE

=================================

Each member should be able to ADD a new poll at the bottom of his post

form EXACTLY like on phpBB forum (so if he leaves poll form blank

it will be any poll displayed in his post)

The number of options for member polls should be limited to 3 or 4

while unlimited for admins;

WEBSITE VISITORS MODE

======================

If the user answers the poll by clicking on one of the options,

the result is sent to a PHP page (part of existing poll script).

This page:

* records the answer in the poll results and updates the statistics

* checks the HTTP_REFERRER and returns to the same page which included

the poll (the referrer) using header("location: $referrer")

* the referrer page (which includes the poll code) will display directly

the result for this poll so that the visitors can see the results for

the poll they have just answered

ADMIN MODE

==========

There is almost nothing to do because we keep the same admin script.

The only change would be to get an additional "category" variable

for each poll, in view to be able to display on the same page

all the old polls grouped by the same category.

This requires to add an additional field to polls mysql table

which will be used by both members and admins for each new pool.

Category variable is already present as required option to choose

for each new post.

===> It should be also possible to create a new pool through admin

script (this is working w/o any problems now) AND display it on any

page of our website using smarty templates calls.

There is ANY DESIGN work to do, only PHP coding.

To resume:

Poll script is fully operational so the main task would be to just

get it working with Smarty templates, add one additional field "category"

and finally embedd the possibility to create a new poll for each member

posting a new article with submit script (like phpBB).

Normally poll script has to be included in any PHP page with the

following:

poll_id(14);

?>

but when testing we get mysql errors related to smarty templates

and database connection.

Kemahiran: PHP

Lihat lebih lanjut: working limited, web testing resume, website header design templates, web php templates, testing resume, source php forum, script resume, resume one page, problems statistics, php main functions, php forum script, php forum open source, php create table, php mysql connection, operational statistics, open source template website, one page resume, mysql php website templates, location testing, in sent, get web statistics, get website visitors, get answers, create table php, checks unlimited

Tentang Majikan:
( 6 ulasan ) VERNEUIL SUR SEINE, France

ID Projek: #64009