Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: anket sayfamda görünmüyor

Author Message

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6312   2007-09-11 21:38 GMT      

Merhaba, kontrol panelinden anket oluşturduğum halde sayfada görünmüyor. Bilgisayarımda Wamp'da çalıştırdığımda bir sorun yok. Ama web sayfamda anket görünmüyor. Kontrol panelindeki tüm ayarları kontrol ettim, bir eksiklik yok. Bu sorunu nereden kaynaklanabilir.

Teşekkkürler...

keahya

Members


Online status

28 posts

Location: Turkey
Occupation:
Age:

#6313   2007-09-11 21:40 GMT      
anked kodlamasını yas burayada yardımcı olmaya çalışalım !!

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6314   2007-09-11 21:44 GMT      

anket kodlaması bu mu oluyor?



<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=polls.php
Version=120
Updated=2007-mar-03
Type=Core
Author=Neocrome
Description=Polls
[END_SED]

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

/* === Hook === */
$extp = sed_getextplugins('polls.first');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('polls', 'a');
sed_block($usr['auth_read']);

$polls_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode)
{ window.open('plug.php?h='+rcode,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=32,top=16'); }
function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=16,top=16'); }
function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=512,top=16'); }
function pfs(id,c1,c2)
{
window.open('pfs.php?userid='+id+'&c1='+c1+'&c2='+c2,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16');
}
//-->
</script>";

$polls_header2 = "</head><body>";
$polls_footer = "</body></html>";

$id = sed_import('id','G','ALP', ;
$vote = sed_import('vote','G','INT');
$comments = sed_import('comments','G','BOL');
$ratings = sed_import('ratings','G','BOL');

if ($id=='viewall')
{
$sql = sed_sql_query("SELECT * FROM $db_polls WHERE poll_state=0 AND poll_type=0 ORDER BY poll_id DESC");
}
else
{
$id = sed_import($id,'D','INT');
$sql = sed_sql_query("SELECT * FROM $db_polls WHERE poll_id='$id' AND poll_state=0");

if ($row = sed_sql_fetcharray($sql))
{
$poll_state = $row['poll_state'];
$poll_minlevel = $row['poll_minlevel'];

if ($usr['id']>0)
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND (pv_userid='".$usr['id']."' OR pv_userip='".$usr['ip']."') LIMIT 1"); }
else
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND pv_userip='".$usr['ip']."' LIMIT 1"); }

$alreadyvoted = (sed_sql_numrows($sql2)>0) ? 1 : 0;

if ($a=='send' && empty($error_string) && !$alreadyvoted)
{
$sql2 = sed_sql_query("UPDATE $db_polls_options SET po_count=po_count+1 WHERE po_pollid='$id' AND po_id='$vote'");
if (sed_sql_affectedrows()==1)
{
$sql2 = sed_sql_query("INSERT INTO $db_polls_voters (pv_pollid, pv_userid, pv_userip) VALUES (".(int)$id.", ".(int)$usr['id'].", '".$usr['ip']."')");
$votecasted = TRUE;
$alreadyvoted = TRUE;
}
}

$sql2 = sed_sql_query("SELECT SUM(po_count) FROM $db_polls_options WHERE po_pollid='$id'");
$totalvotes = sed_sql_result($sql2,0,"SUM(po_count)");

$sql1 = sed_sql_query("SELECT po_id,po_text,po_count FROM $db_polls_options WHERE po_pollid='$id' ORDER by po_id ASC");
$error_string = (sed_sql_numrows($sql1)<1) ? $L['wrongURL'] : '';
}
else
{ $error_string = $L['wrongURL']; }

}

$out['subtitle'] = $L['Polls'];

/* === Hook === */
$extp = sed_getextplugins('polls.main');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$t = new XTemplate("skins/".$skin."/polls.tpl");

$t->assign(array(
"POLLS_HEADER1" => $polls_header1,
"POLLS_HEADER2" => $polls_header2,
"POLLS_FOOTER" => $polls_footer,
));

if (!empty($error_string))
{
$t->assign("POLLS_EXTRATEXT",$error_string);
$t->parse("MAIN.POLLS_EXTRA");
}
elseif ($id=='viewall')
{
$result = "<table class=\"cells\">";

if (sed_sql_numrows($sql)==0)
{ $result .= "<tr><td>".$L['None']."</td></tr>"; }
else
{
while ($row = sed_sql_fetcharray($sql))
{
$result .= "<tr>";
$result .= "<td style=\"width:128px;\">".date($cfg['formatyearmonthday'], $row['poll_creationdate'] + $usr['timezone'] * 3600)."</td>";
$result .= "<td><a href=\"polls.php?id=".$row['poll_id']."\"><img src=\"system/img/admin/polls.gif\" alt=\"\" /></a></td>";
$result .= "<td>".sed_parse(sed_cc($row['poll_text']),1 ,1 ,1)."</td>";
$result .= "</tr>";
}
}
$result .= "</table>";

$t->assign(array(
"POLLS_LIST" => $result,
));

$t->parse("MAIN.POLLS_VIEWALL");
}
else
{
$result = "<table class=\"cells\">";

while ($row1 = sed_sql_fetcharray($sql1))
{
$po_id = $row1['po_id'];
$po_count = $row1['po_count'];
$percent = @round(100 * ($po_count / $totalvotes),1);
$percentbar = floor($percent * 2.24);

$result .= "<tr><td>";
$result .= ($alreadyvoted) ? sed_parse(sed_cc($row1['po_text']), 1, 1, 1) : "<a href=\"polls.php?a=send&amp;".sed_xg()."&amp;id=".$id."&amp;vote=".$po_id."\">".sed_parse(sed_cc($row1['po_text']), 1, 1, 1)."</a>";
$result .= "</td><td><div style=\"width:256px;\"><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percent."%;\"></div></div></div></td><td>$percent%</td><td>(".$po_count.")</td></tr>";

}

$result .= "</table>";

$item_code = 'v'.$id;
list($comments_link, $comments_display) = sed_build_comments($item_code, "polls.php?id=".$id, $comments);

$t->assign(array(
"POLLS_VOTERS" => $totalvotes,
"POLLS_SINCE" => date($cfg['dateformat'], $row['poll_creationdate'] + $usr['timezone'] * 3600),
"POLLS_TITLE" => sed_parse(sed_cc($row['poll_text']), 1, 1, 1),
"POLLS_RESULTS" => $result,
"POLLS_COMMENTS" => $comments_link,
"POLLS_COMMENTS_DISPLAY" => $comments_display,
"POLLS_VIEWALL" => "<a href=\"polls.php?id=viewall\">".$L['polls_viewarchives']."</a>",
));

$t->parse("MAIN.POLLS_VIEW");

if ($alreadyvoted)
{ $extra = ($votecasted) ? $L['polls_votecasted'] : $L['polls_alreadyvoted']; }
else
{ $extra = $L['polls_notyetvoted']; }

$t->assign(array(
"POLLS_EXTRATEXT" => $extra,
));

$t->parse("MAIN.POLLS_EXTRA");

}

/* === Hook === */
$extp = sed_getextplugins('polls.tags');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$t->parse("MAIN");
$t->out("MAIN");

sed_sendheaders();
@ob_end_flush();
@ob_end_flush();

?>

keahya

Members


Online status

28 posts

Location: Turkey
Occupation:
Age:

#6315   2007-09-11 21:52 GMT      
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=polls.php
Version=120
Updated=2007-mar-03
Type=Core
Author=Neocrome
Description=Polls
[END_SED]

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

/* === Hook === */
$extp = sed_getextplugins('polls.first');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('polls', 'a');
sed_block($usr['auth_read']);

$polls_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode)
{ window.open('plug.php?h='+rcode,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=32,top=16'); }
function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=16,top=16'); }
function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=512,top=16'); }
function pfs(id,c1,c2)
{
window.open('pfs.php?userid='+id+'&c1='+c1+'&c2='+c2,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16');
}
//-->
</script>";

$polls_header2 = "</head><body>";
$polls_footer = "</body></html>";

$id = sed_import('id','G','ALP', 8);
$vote = sed_import('vote','G','INT');
$comments = sed_import('comments','G','BOL');
$ratings = sed_import('ratings','G','BOL');

if ($id=='viewall')
{
$sql = sed_sql_query("SELECT * FROM $db_polls WHERE poll_state=0 AND poll_type=0 ORDER BY poll_id DESC");
}
else
{
$sql = sed_sql_query("SELECT * FROM $db_polls WHERE poll_id='$id' AND poll_state=0");

if ($row = sed_sql_fetcharray($sql))
{
$poll_state = $row['poll_state'];
$poll_minlevel = $row['poll_minlevel'];

if ($usr['id']>0)
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND (pv_userid='".$usr['id']."' OR pv_userip='".$usr['ip']."') LIMIT 1"); }
else
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$id' AND pv_userip='".$usr['ip']."' LIMIT 1"); }

$alreadyvoted = (sed_sql_numrows($sql2)>0) ? 1 : 0;

if ($a=='send' && empty($error_string) && !$alreadyvoted)
{
$sql2 = sed_sql_query("UPDATE $db_polls_options SET po_count=po_count+1 WHERE po_pollid='$id' AND po_id='$vote'");
if (sed_sql_affectedrows()==1)
{
$sql2 = sed_sql_query("INSERT INTO $db_polls_voters (pv_pollid, pv_userid, pv_userip) VALUES (".(int)$id.", ".(int)$usr['id'].", '".$usr['ip']."')");
$votecasted = TRUE;
$alreadyvoted = TRUE;
}
}

$sql2 = sed_sql_query("SELECT SUM(po_count) FROM $db_polls_options WHERE po_pollid='$id'");
$totalvotes = sed_sql_result($sql2,0,"SUM(po_count)");

$sql1 = sed_sql_query("SELECT po_id,po_text,po_count FROM $db_polls_options WHERE po_pollid='$id' ORDER by po_id ASC");
$error_string = (sed_sql_numrows($sql1)<1) ? $L['wrongURL'] : '';
}
       else
{ $error_string = $L['wrongURL']; }

}

$out['subtitle'] = $L['Polls'];

/* === Hook === */
$extp = sed_getextplugins('polls.main');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$t = new XTemplate("skins/".$skin."/polls.tpl");

$t->assign(array(
"POLLS_HEADER1" => $polls_header1,
"POLLS_HEADER2" => $polls_header2,
"POLLS_FOOTER" => $polls_footer,
));

if (!empty($error_string))
{
$t->assign("POLLS_EXTRATEXT",$error_string);
$t->parse("MAIN.POLLS_EXTRA");
}
elseif ($id=='viewall')
{
$result = "<table class=\"cells\">";

if (sed_sql_numrows($sql)==0)
{ $result .= "<tr><td>".$L['None']."</td></tr>"; }
       else
{
while ($row = sed_sql_fetcharray($sql))
{
$result .= "<tr>";
$result .= "<td style=\"width:128px;\">".date($cfg['formatyearmonthday'], $row['poll_creationdate'] + $usr['timezone'] * 3600)."</td>";
$result .= "<td><a href=\"polls.php?id=".$row['poll_id']."\"><img src=\"system/img/admin/polls.gif\" alt=\"\" /></a></td>";
$result .= "<td>".sed_parse(sed_cc($row['poll_text']),1 ,1 ,1)."</td>";
$result .= "</tr>";
}
}
$result .= "</table>";

$t->assign(array(
"POLLS_LIST" => $result,
));

$t->parse("MAIN.POLLS_VIEWALL");
}
else
{
$result = "<table class=\"cells\">";

while ($row1 = sed_sql_fetcharray($sql1))
{
$po_id = $row1['po_id'];
$po_count = $row1['po_count'];
$percent = @round(100 * ($po_count / $totalvotes),1);
$percentbar = floor($percent * 2.24);

$result .= "<tr><td>";
$result .= ($alreadyvoted) ? sed_parse(sed_cc($row1['po_text']), 1, 1, 1) : "<a href=\"polls.php?a=send&amp;".sed_xg()."&amp;id=".$id."&amp;vote=".$po_id."\">".sed_parse(sed_cc($row1['po_text']), 1, 1, 1)."</a>";
$result .= "</td><td><div style=\"width:256px;\"><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percent."%;\"></div></div></div></td><td>$percent%</td><td>(".$po_count.")</td></tr>";

}

$result .= "</table>";

$item_code = 'v'.$id;
list($comments_link, $comments_display) = sed_build_comments($item_code, "polls.php?id=".$id, $comments);

$t->assign(array(
"POLLS_VOTERS" => $totalvotes,
"POLLS_SINCE" => date($cfg['dateformat'], $row['poll_creationdate'] + $usr['timezone'] * 3600),
"POLLS_TITLE" => sed_parse(sed_cc($row['poll_text']), 1, 1, 1),
"POLLS_RESULTS" => $result,
"POLLS_COMMENTS" => $comments_link,
"POLLS_COMMENTS_DISPLAY" => $comments_display,
"POLLS_VIEWALL" => "<a href=\"polls.php?m=viewall\">".$L['polls_viewarchives']."</a>",
));

$t->parse("MAIN.POLLS_VIEW");

if ($alreadyvoted)
{ $extra = ($votecasted) ? $L['polls_votecasted'] : $L['polls_alreadyvoted']; }
else
{ $extra = $L['polls_notyetvoted']; }

$t->assign(array(
"POLLS_EXTRATEXT" => $extra,
));

$t->parse("MAIN.POLLS_EXTRA");

}

/* === Hook === */
$extp = sed_getextplugins('polls.tags');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$t->parse("MAIN");
$t->out("MAIN");

sed_sendheaders();
@ob_end_flush();
@ob_end_flush();

?>



Bu şekilde dene çalışması lasım ..

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6316   2007-09-11 22:00 GMT      
Değişen bir şey olmadı. Anket görünmüyor.

Xiao

Moderators


Online status

851 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#6337   2007-09-13 12:17 GMT      
1.sorum anketin etiketini index.tpl e yerleştirdin mi?
2.sorum Konfigürasyon >> Anketler kısmından anetin açık olup olmadığını kontrol ettin mi?
3.sorum Diğer >> Anket kısmından aknet sorusunu eklendikten sonra soruya tıklayıp seçenekleri ekledin mi?
Haziran 2008 Seditio Site Yarışması >> http://www.seditione.com

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6376   2007-09-14 20:37 GMT      
Öncelikle anketi index.tpl'ye yerleştirdim
Anket konfigürasyondan açık
Seçenek ekledim

Bunlara rağmen anket sayfamda görünmüyor...

Xiao

Moderators


Online status

851 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#6377   2007-09-14 21:35 GMT      
recentitems eklentisi yüklü mü?
Haziran 2008 Seditio Site Yarışması >> http://www.seditione.com

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6378   2007-09-14 21:41 GMT      

Evet yüklü

iplikci

Members


Online status

35 posts

Location: Turkey
Occupation:
Age:

#6379   2007-09-14 21:46 GMT      
Kardeş sorun halloldu. Recentitems ayarında anket gösterme "0" yazıyordu. Yardımın için tşk.ler.
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279] [280] [281] [282] [283] [284] [285] [286] [287] [288] [289] [290] [291] [292] [293] [294] [295] [296] [297] [298] [299] [300] [301] [302] [303] [304] [305] [306] [307] [308] [309] [310] [311] [312] [313] [314] [315] [316] [317] [318] [319] [320] [321] [322] [323] [324] [325] [326] [327] [328] [329] [330] [331] [332] [333] [334]