NOTE: The sympoll website seems to be gone.Ma.rkus.nl 2006/11/25 17:12

Adding sympoll to your blog

This is an HowTo add sympoll to your website.

This describes how you can add sympoll: http://www.ralusp.net/suchislife/sympoll.php to a nucleus blog.

Create a file mypoll.php and put this code in it (remember no blank lines and spaces before <?php and after ?>)

<?php
global $isinc_booth, $ext, $isinc_common, $isinc_poll;
global $sympvotes, $sympauth, $s_dbhost, $s_dbuser, $s_dbpass;
global $s_dbname, $s_dirurl, $s_tx, $s_bg, $s_bord, $s_qtx, $s_qbg;
global $s_optsize, $s_txtsize, $s_txtface, $s_width;
global $s_barimg, $s_barhite, $s_maxopts, $s_blength, $s_cookielog;
global $s_iplog, $s_polllist, $s_resultnums, $s_showtotal, $s_refer;
global $s_dbid, $s_dbnum, $need_ip, $SYMP_URL;
global $symp_lang1, $symp_lang2, $symp_lang3, $symp_lang4, $symp_lang5;
global $symp_lang6, $symp_lang7, $symp_lang8, $refer_href, $version;
global $s_lang_dir, $s_barimg_dir, $s_pollist_dir, $S_TYPE_RADIO, $k, $S_TYPECHECK;
 
require_once('**PATHTO_SYMPOLL**/booth.php');
display_booth(1);
 
sql_connect();
?>

After that edit your skin and you add the poll with

<%phpinclude(mypoll.php)%>

and you can cast your votes.

sympoll.txt · Last modified: 2006/11/25 17:13 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki