PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38943
Šiandien: 17
Prisijungę nariai
» Svečių: 10
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux21:01:17
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
\n\";
require_once BASEDIR.\"footer.php\";
?>



Redagavo bla 2008-05-27 15:33
 Spausdinti temą
Apklausa su nuotraukomos
bla
#1 Spausdinti pranešimą
parašyta 2008-05-26 14:11
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

Sveiki, norejau suzinoti is kur gauti tokias apklausas ant php-fusion (kaip saite http://www.vizu.com/index.html) kad tos apklausos butu su nuotraukomis, nes kiek zinau taip ju idet i apklausa su kodu nesigauna. Aciu.
 
PM
Nepster
#2 Spausdinti pranešimą
parašyta 2008-05-26 14:48
Vartotojo avataras

S.Administratorius



Reputacija: 0

Pranešimai: 670
Įstojo: 2007-01-02

pabandyk parsint bbkodus parseubb() tai liecia administration/polls.php ir infusions/ poll panel

pats pabandziau

member_poll_panel.php atsidarai
randi $poll_title keiti i ".parseubb($poll_title)."
zemiau
".($poll_title)." keiti i ".parseubb($poll_title)."

administravime rasysi prie klausimo [img]paveikslo url.jpg[/img]
Redagavo Nepster 2008-05-26 14:55
 
PM
bla
#3 Spausdinti pranešimą
parašyta 2008-05-26 15:16
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

Neveikia :(
 
PM
Nepster
#4 Spausdinti pranešimą
parašyta 2008-05-26 15:35
Vartotojo avataras

S.Administratorius



Reputacija: 0

Pranešimai: 670
Įstojo: 2007-01-02

McBoy para?:
Neveikia :(


jei man veikia vadinasi kazka negerai darai, nepatingek ir geriau paziurek koda
 
PM
bla
#5 Spausdinti pranešimą
parašyta 2008-05-26 15:40
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

ziurejau viska
".($poll_title)." poll.php faile nerandu
Redagavo bla 2008-05-26 18:25
 
PM
bla
#6 Spausdinti pranešimą
parašyta 2008-05-26 18:25
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

niekas neatraso :/
 
PM
MySQL Robotukas
#7 Spausdinti pranešimą
parašyta 2008-05-26 19:42
Vartotojo avataras

Draugas



Reputacija: 0

Pranešimai: 471
Įstojo: 2007-08-06

jeigu nera ".($poll_title)." tai surask ".$poll_title." arba pakeisk visus $poll_title, kurie yra atvaizduojami
# I`m a MAN !!!
# NIRVANA

SELECT user_name, GROUP_CONCAT(user_ip) as ip
FROM fusion_users
GROUP BY user_ip
 
PM
bla
#8 Spausdinti pranešimą
parašyta 2008-05-27 15:23
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

Kur keisti? :(

---

member_poll_panel.php

Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }
if (isset($poll_id) && !isNum($poll_id)) fallback(\"index.php\");

openside($locale['100']);
if (isset($_POST['cast_vote'])) {
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"poll_votes WHERE vote_user='\".$userdata['user_id'].\"' AND poll_id='$poll_id'\");
   if (dbrows($result) == \"0\") {
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"poll_votes (vote_user, vote_opt, poll_id) VALUES ('\".$userdata['user_id'].\"', '$voteoption', '$poll_id')\");
      header(\"Location: \".FUSION_SELF.(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\"));
   }
}
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"polls ORDER BY poll_started DESC LIMIT 1\");
if (dbrows($result) != 0) {
   $data = dbarray($result);
   $poll_title = $data['poll_title'];
   for ($i=0; $i<=9; $i++) {
      if ($data[\"poll_opt_\".$i]) $poll_option[$i] = $data[\"poll_opt_\".$i];
   }
   if (iMEMBER) $result2 = dbquery(\"SELECT * FROM \".$db_prefix.\"poll_votes WHERE vote_user='\".$userdata['user_id'].\"' AND poll_id='\".$data['poll_id'].\"'\");
   if ((!iMEMBER || !dbrows($result2)) && $data['poll_ended'] == 0) {
      $poll = \"\"; $i = 0; $num_opts = count($poll_option);
      while ($i < $num_opts) {
         $poll .= \" $poll_option[$i]

\n\";
         $i++;
      }
      echo \"

$poll_title


$poll
\n\";
      if (iMEMBER) {
         echo \"
\n\";
      } else {
         echo $locale['102'].\"\n\";
      }
      echo \"
\n\";
   } else {
      $poll =  \"\"; $i = 0; $num_opts = count($poll_option);
      $poll_votes = dbcount(\"(vote_opt)\", \"poll_votes\", \"poll_id='\".$data['poll_id'].\"'\");
      while ($i < $num_opts) {
         $num_votes = dbcount(\"(vote_opt)\", \"poll_votes\", \"vote_opt='$i' AND poll_id='\".$data['poll_id'].\"'\");
         $opt_votes = ($poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0);
         $poll .= \"
\".$poll_option[$i].\"

'\".$poll_option[$i].\"'

\".$opt_votes.\"% [\".$num_votes.\" \".($num_votes == 1 ? $locale['103'] : $locale['104']).\"]

\n\";
         $i++;
      }
      echo \"\".$poll_title.\"


$poll
\".$locale['105'].$poll_votes.\"

\".$locale['106'].showdate(\"shortdate\", $data['poll_started']);
      if ($data['poll_ended'] > 0) {
         echo \"
\n\".$locale['107'].showdate(\"shortdate\", $data['poll_ended']).\"\n\";
      }
      $result = dbquery(\"SELECT * FROM \".$db_prefix.\"polls\");
      if (dbrows($result) > 1) {
         echo \"

''
\".$locale['108'].\" ''\n\";
      }
      echo \"
\n\";
   }
} else {
   echo \"
\".$locale['004'].\"
\n\";
}
closeside();
?>




---

polls.php

Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once \"../maincore.php\";
require_once BASEDIR.\"subheader.php\";
require_once ADMIN.\"navigation.php\";
include LOCALE.LOCALESET.\"admin/polls.php\";

if (!checkrights(\"PO\") || !defined(\"iAUTH\") || $aid != iAUTH) fallback(\"../index.php\");
if (isset($poll_id) && !isNum($poll_id)) fallback(FUSION_SELF);

if (isset($status)) {
   if ($status == \"su\") {
      $title = $locale['400'];
      $message = \"\".$locale['401'].\"\";
   } elseif ($status == \"sn\") {
      $title = $locale['400'];
      $message = \"\".$locale['402'].\"\";
   } elseif ($status == \"del\") {
      $title = $locale['403'];
      $message = \"\".$locale['404'].\"\";
   }
   opentable($title);
   echo \"
\".$message.\"
\n\";
   closetable();
   tablebreak();
}

if (isset($_POST['save'])) {
   $poll_title = stripinput($poll_title);
   foreach($_POST['poll_option'] as $key => $value) {
      $poll_option[$key] = stripinput($_POST['poll_option'][$key]);
   }
   if (isset($poll_id)) {
      if (!isNum($poll_id)) fallback(\"polls.php\");
      $ended = (isset($_POST['close']) ? time() : 0);
      $result = dbquery(\"UPDATE \".$db_prefix.\"polls SET poll_title='$poll_title', poll_opt_0='$poll_option[0]', poll_opt_1='$poll_option[1]', poll_opt_2='$poll_option[2]', poll_opt_3='$poll_option[3]', poll_opt_4='$poll_option[4]', poll_opt_5='$poll_option[5]', poll_opt_6='$poll_option[6]', poll_opt_7='$poll_option[7]', poll_opt_8='$poll_option[8]', poll_opt_9='$poll_option[9]', poll_ended='$ended' WHERE poll_id='$poll_id'\");
      redirect(FUSION_SELF.$aidlink.\"&status=su\");
   } else {
      $result = dbquery(\"UPDATE \".$db_prefix.\"polls SET poll_ended='\".time().\"' WHERE poll_ended='0'\");
      $result = dbquery(\"INSERT INTO \".$db_prefix.\"polls (poll_title, poll_opt_0, poll_opt_1, poll_opt_2, poll_opt_3, poll_opt_4, poll_opt_5, poll_opt_6, poll_opt_7, poll_opt_8, poll_opt_9, poll_started, poll_ended) VALUES ('$poll_title', '$poll_option[0]', '$poll_option[1]', '$poll_option[2]', '$poll_option[3]', '$poll_option[4]', '$poll_option[5]', '$poll_option[6]', '$poll_option[7]', '$poll_option[8]', '$poll_option[9]', '\".time().\"', '0')\");
      redirect(FUSION_SELF.$aidlink.\"&status=sn\");
   }
} else if (isset($_POST['delete'])) {
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"polls WHERE poll_id='$poll_id'\");
   if (dbrows($result) != 0) $result = dbquery(\"DELETE FROM \".$db_prefix.\"polls WHERE poll_id='$poll_id'\");
   redirect(FUSION_SELF.$aidlink.\"&status=del\");
} else {
   if (isset($_POST['preview'])) {
      $poll = \"\"; $i = 0;
      $poll_title = stripinput($poll_title);
      while ($i < count($_POST['poll_option'])) {
         $poll_option[$i] = stripinput($_POST['poll_option'][$i]);
         $poll .= \" $poll_option[$i]

\n\";
         $i++;
      }
      $opt_count = (isset($_POST['opt_count']) && $_POST['opt_count'] != 10 ? count($poll_option) : $_POST['opt_count']);
      opentable($locale['410']);
      echo \"






$poll_title


$poll
\n\";
      closetable();
      tablebreak();
   }
   $editlist = \"\";
   $result = dbquery(\"SELECT * FROM \".$db_prefix.\"polls ORDER BY poll_id DESC\");
   if (dbrows($result) != 0) {
      while ($data = dbarray($result)) {
         $editlist .= \"\n\";
      }
      opentable($locale['420']);
      echo \"






\n\";
      closetable();
      tablebreak();
   }
   if (isset($_POST['edit'])) {
      if (!isNum($poll_id)) { header(\"Location:polls.php\"); exit; }
      $data = dbarray(dbquery(\"SELECT * FROM \".$db_prefix.\"polls WHERE poll_id='$poll_id'\"));
      $poll_title = $data['poll_title'];
      for ($i=0; $i<=9; $i++) {
         if ($data[\"poll_opt_\".$i]) $poll_option[$i] = $data[\"poll_opt_\".$i];
      }
      $opt_count = count($poll_option);
      $poll_started = $data['poll_started'];
      $poll_ended = $data['poll_ended'];
   }
   if (isset($_POST['addoption'])) {
      $poll_title = stripinput($_POST['poll_title']);
      foreach($_POST['poll_option'] as $key => $value) {
         $poll_option[$key] = stripinput($_POST['poll_option'][$key]);
      }
      $opt_count = ($_POST['opt_count'] != 10 ? count($poll_option) + 1 : $_POST['opt_count']);
   }
   $i = 0; $opt = 1;
   $poll_title = isset($poll_title) ? $poll_title : \"\";
   $opt_count = isset($opt_count) ? $opt_count : 2;
   if (isset($poll_id)) $poll_ended = isset($poll_ended) ? $poll_ended : 0;
   opentable((isset($poll_id) ? $locale['431'] : $locale['430']));
   echo \"





\n\";
   while ($i != $opt_count) {
      $poll_opt = isset($poll_option[$i]) ? $poll_option[$i] : \"\";
      echo \"\n\n\";
      echo \"\n\n\";
      $i++; $opt++;
   }
   echo \"
\".$locale['433'].\"
\".$locale['434'].\"$opt



\n\n

\n\";
   if (isset($poll_id) && $poll_ended == 0) {
      echo \"\".$locale['435'].\"

\n\";
   }
   if (!isset($poll_id) || isset($poll_id) && $poll_ended == 0) {
      echo \"


\n\";
   } else {
      echo $locale['436'].showdate(\"shortdate\", $poll_started).\"
\n\";
      echo $locale['437'].showdate(\"shortdate\", $poll_ended).\"
\n\";
   }
   echo \"
\n
\n\";
   closetable();
}

echo \"
 
PM
bla
#9 Spausdinti pranešimą
parašyta 2008-05-27 17:52
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-04-14

Padkite, labai pra?au. :(
 
PM
Sharkman
#10 Spausdinti pranešimą
parašyta 2008-05-28 05:56
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

Tau pasak visk k daryti o jog tu tingi ar blogai darai ne ms problemos.
 
PM
Peršokti į forumą: