Navigacija

Vartotojų tinkle

Prisijungusių svečių: 64
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,952
Naujausias narys: tomeem

Naujausi straipsniai

Paskutiniai nariai

asirija 1 diena
tomeem 2 savaitės
Reikalas 3 savaitės
weberiz 5 savaitės
mRokass 7 savaitės
kartoonas 8 savaitės
iaescortsmap 9 savaitės
ozzWANTED10 savaitės
grunskiz11 savaitės
Bruksnys12 savaitės
illusion12 savaitės
ordo13 savaitės
Jurgaila13 savaitės
originalcs1614 savaitės
Rytis14 savaitės
halis16 savaitės
junkus18 savaitės
morlis19 savaitės
Majakas20 savaitės
andsoft21 savaitės

Informacija:


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

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



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

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Š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
Comment popup
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Expert PHP, MySQL klausimai

Autorius: bad_user Peržiūrų: 2239      Spausdinti temą
2008 Bal. 13 12:04:49          1 žinutė iš 7
Spausdinti pranešimą
Sveiki. Turiu šiokį tokį klausimą. šypsosi

Pasidariau kad rašyti komentarą butu naujame langelije šypsosi Tik va nežinau ka darau ne taip. Man rodo visa puslapi (nuo a iki z) ir tada apačioje buna rašyti komentarą. Ka rašyti į new_comment.php failą, kad butu tik laukas komentarui su visais smailais ir pan? šypsosi

(kas net nežinot vapšė nerašykit) šypsosi

Rules: 21 & 22 Read first!
2008 Bal. 13 13:04:34          2 žinutė iš 7
Spausdinti pranešimą
į comments_include.php failo išsisimk formą šypsosi
2008 Bal. 13 13:04:02          3 žinutė iš 7
Spausdinti pranešimą
Išsiėmiau bet tada vapšė neveikia. Rodo balta langa akinanti šypsen

Rules: 21 & 22 Read first!
2008 Bal. 13 13:04:33          4 žinutė iš 7
Spausdinti pranešimą
opentable($locale['c102']);
   if (iMEMBER || $settings['guestposts'] == "1") {
      echo "<form name='inputform' method='post' action='$clink'>
<table align='center' cellspacing='0' cellpadding='0' class='tbl'>\n";
      if (iGUEST) {
         echo "<tr>
<td>".$locale['c103']."</td>
</tr>
<tr>
<td><input type='text' name='comment_name' maxlength='30' class='textbox' style='width:100%;'></td>
</tr>\n";
      }
      echo "<tr>
<td align='center'><textarea name='comment_message' rows='6' cols='74' class='textbox'></textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('comment_message', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('comment_message', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('comment_message', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<br><br>
".displaysmileys("comment_message")."
</tr>
<tr>
<td align='center'><input type='checkbox' name='disable_smileys' value='1'>".$locale['c107']."<br><br>
<input type='submit' name='post_comment' value='".$locale['c102']."' class='button'></td>
</tr>
</table>
</form>\n";
   } else {
      echo $locale['c105']."\n";
   }
   closetable();
}




2008 Bal. 13 13:04:20          5 žinutė iš 7
Spausdinti pranešimą
Va ka aš naudoju turinyje:


<?php
if (!defined("IN_FUSION")) { header("Location:../index.php"); exit; }

include LOCALE.LOCALESET."comments.php";

function showcomments($ctype,$cdb,$ccol,$cid,$clink) {

   global $settings,$locale,$userdata,$aidlink,$edit,$delete,$db_prefix;
   
      $deldata=dbarray(dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_id='".$delete."'"));
      $editdata=dbarray(dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_id='".$edit."'"));
      
      if (iMEMBER && isset($delete)) {
      if (checkrights("C") || $userdata['user_id'] == $deldata['comment_name']) {
      $result=dbquery("DELETE FROM ".$db_prefix."comments WHERE comment_id='".$delete."'");
      redirect($clink);
      } else {
      redirect($clink);
      }
      }

      if (iMEMBER && (checkrights("C") || $userdata['user_id'] == $editdata['comment_name']) && isset($_POST['edit_comment'])) {
      $comment_message = trim(stripinput(censorwords($_POST['comment_message'])));
      $comment_smileys = isset($_POST['disable_smileys']) ? "0" : "1";
      if ($comment_message != "") {
      $result = dbquery("UPDATE ".$db_prefix."comments SET comment_message='$comment_message', comment_smileys='$comment_smileys' WHERE comment_id='".$edit."'");
      }
      redirect($clink);
      } elseif ((iMEMBER || $settings['guestposts'] == "1") && isset($_POST['post_comment'])) {
      $flood = false;
      if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
      if (iMEMBER) {
         $comment_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == "1") {
         $comment_name = trim(stripinput($_POST['comment_name']));
         $comment_name = preg_replace("(^[0-9]*)", "", $comment_name);
         if (isNum($comment_name)) $comment_name="";
      }
      $comment_message = trim(stripinput(censorwords($_POST['comment_message'])));
      $comment_smileys = isset($_POST['disable_smileys']) ? "0" : "1";
      if ($comment_name != "" && $comment_message != "") {
         $result = dbquery("SELECT MAX(comment_datestamp) AS last_comment FROM ".DB_PREFIX."comments WHERE comment_ip='".USER_IP."'");
         if (!iSUPERADMIN || dbrows($result) > 0) {
            $data = dbarray($result);
            if ((time() - $data['last_comment']) < $settings['flood_interval']) {
               $flood = true;
               $result = dbquery("INSERT INTO ".DB_PREFIX."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
               if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
                  if (iMEMBER) $result = dbquery("UPDATE ".DB_PREFIX."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
               }
            }
         }
         if (!$flood) $result = dbquery("INSERT INTO ".DB_PREFIX."comments (comment_item_id, comment_type, comment_name, comment_message, comment_smileys, comment_datestamp, comment_ip) VALUES ('$cid', '$ctype', '$comment_name', '$comment_message', '$comment_smileys', '".time()."', '".USER_IP."')");
      }
      redirect($clink);
   }

   opentable($locale['c102']);
   

      
   if (iMEMBER || $settings['guestposts'] == "1") {
   $dta = dbarray(dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_id='".$edit."'"));
   if (isset($edit)) { $action="&edit=$edit"; $but="edit_comment"; $but2="Išsaugoti"; $value=$dta['comment_message']; } else { $action=""; $but="post_comment"; $but2=$locale['c102']; $value=""; }
      
      echo "<form name='inputform' method='post' action='$clink".$action."'>
<table align='center' cellspacing='0' cellpadding='0' class='tbl'>\n";
      if (iGUEST) {
         echo "<tr>
<td>".$locale['c103']."</td>
</tr>
<tr>
<td><input type='text' name='comment_name' maxlength='30' class='textbox' style='width:100%;'></td>
</tr>\n";
      }
      
      
      echo "<tr>
<td align='center'><textarea name='comment_message' rows='6' cols='74' class='textbox'>".$value."</textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('comment_message', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('comment_message', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('comment_message', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<br><br>
".displaysmileys("comment_message")."
</tr>
<tr>
<td align='center'><input type='checkbox' name='disable_smileys' value='1'>".$locale['c107']."<br><br>
<input type='submit' name='".$but."' value='".$but2."' class='button'></td>
</tr>
</table>
</form>\n";
   } else {
      echo $locale['c105']."\n";
   }
   closetable();
}
?>




Rules: 21 & 22 Read first!
2008 Bal. 13 13:04:46          6 žinutė iš 7
Spausdinti pranešimą
Manau tau nerodė, nes jeigu nori visą šitą naudoti kitame reikia panaudot funkciją showcomments()merkia akį
2008 Bal. 13 13:04:03          7 žinutė iš 7
Spausdinti pranešimą
Tai su šituo rodo bet tada rodo visą web šypsosi

Rules: 21 & 22 Read first!
Peršokti į forumą: