Navigacija

Vartotojų tinkle

-> Prisijungusių svečių: 30
-> Prisijungusių narių: 0
Prisijungusių narių nėra

-> Registruoti nariai: 25,744
-> Naujausias narys: voltas

Naujausi straipsniai

Paskutiniai nariai

-> etr08:05:30
-> Steve13:29:12
-> MaFetas 1 diena
-> nesby 1 diena
-> avice 2 dienos
-> mynootropics 3 dienos
-> voltas 6 dienos
-> jsac 6 dienos
-> Deiviux 6 dienos
-> JaWa 1 savaitė
-> minimukas 1 savaitė
-> blenderis 1 savaitė
-> Creatium 1 savaitė
-> niekam111 1 savaitė
-> Aiste1233 1 savaitė
-> detected 1 savaitė
-> Bucis 1 savaitė
-> Vaitiekus 2 savaitės
-> sL1m 2 savaitės
-> AlgirdasVat 2 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 34.236.216.93
Naujienų: 521
Straipsnių: 235
Temų: 52,452
Postų: 522,224
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Hey.lt lankomumo statistika

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

-> nesby
2019/10/16 15:28
Sveiki vyrai

-> niekam111
2019/10/06 17:48
Sveiki, superku Facebook anketas. Jeigu turite ka pasiulyti rasykite el.pastu : niekamtinkamas@gmail.c
om


-> avice
2019/09/26 20:14
Ahhha klaidingai pats parasiai akinanti šypsen pagal `WebDnD` randa tik php-fusion grupe. Reikes uzeit

-> ozzWANTED
2019/09/26 14:14
Ir dar meetupus turime kartą per sezoną - https://www.meetup.com
/EnvatoVilnius/ - arba tiesiog WPVilnius.lt ar EnvatoVilnius.lt


-> ozzWANTED
2019/09/26 14:13
Avice, jeigu ką tai aš apie https://www.facebook.c
om/groups/programuotoj
ai


-> Šaukyklos archyvas ->

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
-> Archyvas ->
Reklama 400x60
Nesuprantu kodėl taip:
Forumas | PHP-Fusion, Wordpress, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: House Peržiūrų: 2240      Spausdinti temą
2010-11-08 16:54          1 žinutė iš 5
Spausdinti pranešimą


kodėl skiriasi tarpai tarp panelių? čia tik apklausos panelei tai yra.

čia yra ip_poll_panel infusionas


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: ip_poll_panel.php
| Author: Jeepers1993
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

if (file_exists(INFUSIONS."ip_poll_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."ip_poll_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."ip_poll_panel/locale/Lithuanian.php";
}
 
openside($locale['PLAN_100']);
if (isset($_POST['cast_vote'])) {
$voteoption = $_POST['voteoption'];
$poll_id = $_POST['poll_id'];
$sql = dbquery("SELECT * FROM ".$db_prefix."ip_polls WHERE poll_id='$poll_id'");
$data = dbarray($sql);
$poll_ips = explode("|", $data['poll_ips']);
if (!in_array(USER_IP, $poll_ips)) {
array_push($poll_ips, USER_IP);
$poll_ips = implode("|", $poll_ips);
$result = dbquery("UPDATE ".$db_prefix."ip_polls SET poll_votes_$voteoption=poll_votes_$voteoption+1, poll_ips='$poll_ips' WHERE poll_id=$poll_id");
header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
}
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls ORDER BY poll_started DESC LIMIT 1");
if (dbrows($result) != 0) {
$data = dbarray($result);
$poll_title = $data['poll_title'];
$poll_ips = explode("|", $data['poll_ips']);
$poll_votes = 0;
for ($i=0; $i<=9; $i++) {
if ($data["poll_opt_".$i]) $poll_option[$i] = $data["poll_opt_".$i];
$poll_votes = $poll_votes + $data["poll_votes_".$i];
}
if (!in_array(USER_IP, $poll_ips) && $data['poll_ended'] == 0) {
$poll = ""; $i = 0; $num_opts = count($poll_option);
while ($i < $num_opts) {
$poll .= "<input type='radio' name='voteoption' value='$i'> $poll_option[$i]<br>\n";
$i++;
}
echo "<form name='voteform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
<b>$poll_title</b><br><br>
$poll<center><input type='hidden' name='poll_id' value='"
.$data['poll_id']."'>
<input type='submit' name='cast_vote' value='"
.$locale['PLAN_101']."' class='button'></center>
</form>\n"
;
} else {
$poll = ""; $i = 0; $num_opts = count($poll_option);
while ($i < $num_opts) {
$num_votes = $data["poll_votes_".$i];
$opt_votes = ($poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0);
$poll .= "<div>".$poll_option[$i]."</div>
<div><img src='"
.THEME."images/pollbar.gif' alt='".$poll_option[$i]."' height='12' width='$opt_votes%' class='poll'></div>
<div>"
.$opt_votes."% [".$num_votes." ".($num_votes == 1 ? $locale['PLAN_102'] : $locale['PLAN_103'])."]</div><br>\n";
$i++;
}
echo "<b>".$poll_title."</b><br>
$poll
<center>"
.$locale['PLAN_104'].$poll_votes."<br>
"
.$locale['PLAN_105'].showdate("shortdate", $data['poll_started']);
if ($data['poll_ended'] > 0) {
echo "<br>\n".$locale['PLAN_106'].showdate("shortdate", $data['poll_ended'])."\n";
}
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls");
if (dbrows($result) > 1) {
echo "<br><br><img src='".THEME."images/bullet.gif'>
<a href='"
.INFUSIONS."ip_poll_panel/ip_poll_archive.php' class='side'>".$locale['PLAN_107']."</a> <img src='".THEME."images/bulletb.gif'>\n";
}
echo "</center>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
?>


Ačiū už pagalbą
pagarbiai, Aidas

Portfolio 70%

4 atsakymai:
2010-11-08 17:09          2 žinutė iš 5
Spausdinti pranešimą
Galiu būt neteisus, eik į savo dizaino styles.css susirask side_left ir side_right ir ten pridėk eilutę : background-repeat: no-repeat;
+2


Labas.
2010-11-08 19:58          3 žinutė iš 5
Spausdinti pranešimą

<?php
 
/*-------------------------------------------------------+
 
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
 
| Copyright © 2002 - 2008 Nick Jones
 
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
 
+--------------------------------------------------------+
 
| Filename: ip_poll_panel.php
 
| Author: Jeepers1993
 
+--------------------------------------------------------+
 
| This program is released as free software under the
 
| Affero GPL license. You can redistribute it and/or
 
| modify it under the terms of this license which you
 
| can read by viewing the included agpl.txt or online
 
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
 
| copyright header is strictly prohibited without
 
| written permission from the original author(s).
 
+--------------------------------------------------------*/

 
if (file_exists(INFUSIONS."ip_poll_panel/locale/".$settings['locale'].".php")) {
 
include INFUSIONS."ip_poll_panel/locale/".$settings['locale'].".php";
 
} else {
 
include INFUSIONS."ip_poll_panel/locale/Lithuanian.php";
 
}
 
 
 
openside($locale['PLAN_100']);
 
if (isset($_POST['cast_vote'])) {
 
$voteoption = $_POST['voteoption'];
 
$poll_id = $_POST['poll_id'];
 
$sql = dbquery("SELECT * FROM ".$db_prefix."ip_polls WHERE poll_id='$poll_id'");
 
$data = dbarray($sql);
 
$poll_ips = explode("|", $data['poll_ips']);
 
if (!in_array(USER_IP, $poll_ips)) {
 
array_push($poll_ips, USER_IP);
 
$poll_ips = implode("|", $poll_ips);
 
$result = dbquery("UPDATE ".$db_prefix."ip_polls SET poll_votes_$voteoption=poll_votes_$voteoption+1, poll_ips='$poll_ips' WHERE poll_id=$poll_id");
 
header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
 
}
 
}
 
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls ORDER BY poll_started DESC LIMIT 1");
 
if (dbrows($result) != 0) {
 
$data = dbarray($result);
 
$poll_title = $data['poll_title'];
 
$poll_ips = explode("|", $data['poll_ips']);
 
$poll_votes = 0;
 
for ($i=0; $i<=9; $i++) {
 
if ($data["poll_opt_".$i]) $poll_option[$i] = $data["poll_opt_".$i];
 
$poll_votes = $poll_votes + $data["poll_votes_".$i];
 
}
 
if (!in_array(USER_IP, $poll_ips) && $data['poll_ended'] == 0) {
 
$poll = ""; $i = 0; $num_opts = count($poll_option);
 
while ($i < $num_opts) {
 
$poll .= "<input type='radio' name='voteoption' value='$i'> $poll_option[$i]<br>\n";
 
$i++;
 
}
 
echo "<form name='voteform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
 
<b>$poll_title</b><br><br>
 
$poll<center><input type='hidden' name='poll_id' value='"
.$data['poll_id']."'>
 
<input type='submit' name='cast_vote' value='"
.$locale['PLAN_101']."' class='button'></center>
 
</form>\n"
;
 
} else {
 
$poll = ""; $i = 0; $num_opts = count($poll_option);
 
while ($i < $num_opts) {
 
$num_votes = $data["poll_votes_".$i];
 
$opt_votes = ($poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0);
 
$poll .= "<div>".$poll_option[$i]."</div>
 
<div><img src='"
.THEME."images/pollbar.gif' alt='".$poll_option[$i]."' height='7' width='$opt_votes%' class='poll'></div>
 
<div>"
.$opt_votes."% [".$num_votes." ".($num_votes == 1 ? $locale['PLAN_102'] : $locale['PLAN_103'])."]</div><br>\n";
 
$i++;
 
}
 
echo "<b>".$poll_title."</b><br>
 
$poll
 
<center>"
.$locale['PLAN_104'].$poll_votes."<br>
 
"
.$locale['PLAN_105'].showdate("shortdate", $data['poll_started']);
 
if ($data['poll_ended'] > 0) {
 
echo "<br>\n".$locale['PLAN_106'].showdate("shortdate", $data['poll_ended'])."\n";
 
}
 
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls");
 
if (dbrows($result) > 1) {
 
echo "<br><br><img src='".THEME."images/bullet.gif'>
 
<a href='"
.INFUSIONS."ip_poll_panel/ip_poll_archive.php' class='side'>".$locale['PLAN_107']."</a> <img src='".THEME."images/bulletb.gif'>\n";
 
}
 
echo "</center>\n";
 
}
 
} else {
 
echo "<center>".$locale['004']."</center>\n";
 
}
 
closeside();
 
?>
+1

House
VIP narys
Pulkininkas

Nario avataras

Pranešimai: 340
Įstojęs: 08.08.21
2010-11-08 20:35          4 žinutė iš 5
Spausdinti pranešimą
Supratau kame bėda. Locale/lithuanian.php pasirodo jeigu UTF koduotė tada taip pasidaro
0Geriausias atsakymas


Portfolio 70%
2010-11-08 18:46          5 žinutė iš 5
Spausdinti pranešimą
nepasiteisino. mano galva čia infusione bėda. nes sukodavau tai tvarkingai viską. tiesiog būtent tam infusionui taip. Kitom panelem viskas gerai. ačiū už bandymą.
0


Portfolio 70%
Peršokti į forumą: