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

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

Prisijungimų istorija:
tabux11:36:02
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ą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v6 ?aukykla:redagavimas-trinimas(padekit)
irmux112
#1 Spausdinti pranešimą
parašyta 2010-01-23 13:41
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 45
Įstojo: 2009-08-02

Sveiki.
Susiduriau su tokia problema jog para?s narys ?aukykloje ?inut jos nebegali redaguoti ir i?trinti.A? kaip adminas galiu.
Tai k reiktu keisti pridti shoutbox_panel.php faile , kad nariai galt redaguoti-trinti tik savo para?ytas ?inutes.

shoutbox_panel.php failas stai

Download source  Parser note: Code too big for GeSHi! Using code tag instead:
/*---------------------------------------------------+
| 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
+----------------------------------------------------+
| Shoutbox v6.01.4.2r - Modded by Shedrock 2006
+----------------------------------------------------*/

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

   if (file_exists(INFUSIONS.\"shoutbox_panel/locale/\".$settings['locale'].\".php\")) {
   include INFUSIONS.\"shoutbox_panel/locale/\".$settings['locale'].\".php\";
   } else {
   include INFUSIONS.\"shoutbox_panel/locale/English.php\";
}
   require_once INFUSIONS.\"shoutbox_panel/parser.php\";
   echo \"\";
   echo \"\";

openside($locale['120']);

/**
* Set minimum and maximum shouts you want displayed on each level.
*/
   $min=8;       //minimum visible shouts in first level.
   $max=5;        //maximum number of shouts in second level (hidden).


      if (checkrights(\"S\") && $action == \"delete\" && isNum($shout_id)) {
      $result = dbquery(\"DELETE FROM \".DB_PREFIX.\"shoutbox WHERE shout_id='$shout_id'\");
}
      if (iMEMBER || $settings['guestposts'] == \"1\") {
      if (isset($_POST['post_shout'])) {
      $flood = false;
      if (iMEMBER) {
         $shout_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == \"1\") {
         $shout_name = trim(stripinput($_POST['shout_name']));
         $shout_name = preg_replace(\"(^[0-9]*)\", \"\", $shout_name);
         if (isNum($shout_name)) $shout_name=\"\";
      }
         $shout_message = str_replace(\"\n\", \" \", $_POST['shout_message']);
         $shout_message = preg_replace(\"/^(.{255}).*$/\", \"$1\", $shout_message);
         $shout_message = preg_replace(\"/([^\s]{45})/\", \"$1\n\", $shout_message);
         $shout_message = trim(stripinput(censorwords($shout_message)));
         $shout_message = str_replace(\"\n\", \"
\", $shout_message);

      if ($shout_name != \"\" && $shout_message != \"\") {
         $result = dbquery(\"SELECT MAX(shout_datestamp) AS last_shout FROM \".$db_prefix.\"shoutbox WHERE shout_ip='\".USER_IP.\"'\");
      if (!iSUPERADMIN || dbrows($result) > 0) {
            $data = dbarray($result);
      if ((time() - $data['last_shout']) < $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.\"shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '\".time().\"', '\".USER_IP.\"')\");
                        paygold($userdata['user_name'],$userdata['user_id'],'1');
      }
      fallback(FUSION_SELF.(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\"));
   }

/**
* Ban Mod start.
*/
      if ($step == \"ban\") {
      if ($act == \"on\") {
      if ($user_id != 1) {
            $result = dbquery(\"UPDATE \".$db_prefix.\"users SET user_status='1' WHERE user_id='$user_id'\");
            header(\"Location:\".BASEDIR.\"news.php\");
         }
      } elseif ($act == \"off\") {
         $result = dbquery(\"UPDATE \".$db_prefix.\"users SET user_status='0' WHERE user_id='$user_id'\");
            header(\"Location:\".BASEDIR.\"news.php\");
      }
   }
/**
* End Ban Mod.
*/

/**
* Smiley Popup Script.
*/
      echo \"

   

   
\".$locale['fb_001'].\"

   
   
   
   
   
   
\n\";
      if (iGUEST) {
      echo $locale['121'].\"

   
\".$locale['122'].\"
\n\";
   }
      echo \"
   

   
   

   'ALT'
   ','');\\">'ALT'
   'ALT'


   

   

   
   

   
\";

   } else {
      echo \"
\".$locale['125'].\"

\n\";
}
      $result = dbquery(\"SELECT count(shout_id) FROM \".$db_prefix.\"shoutbox\");
      $numrows = dbresult($result, 0);
      $result = dbquery(
      \"SELECT * FROM \".$db_prefix.\"shoutbox LEFT JOIN \".$db_prefix.\"users
      ON \".$db_prefix.\"shoutbox.shout_name=\".$db_prefix.\"users.user_id
      ORDER BY shout_datestamp DESC LIMIT $min\"
);
      if (dbrows($result) != 0) {
      $i = 0;
      while ($data = dbarray($result)) {

/**
* Modded for user ban display names, send private message and member homepage.
*/
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      echo \"@\".$data['user_name'].\":%20-%20','');\\">'\".$locale['fb_006'].\"' \";
}
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else{
      if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      echo \"'\".$locale['fb_007'].\"' \";
      }else{
      echo \"'bullet' \";
}
   }
}
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else{
      if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      if ($data['user_web']) {
      if (!strstr($data['user_web'], \"http://\")) { $urlprefix = \"http://\"; } else { $urlprefix = \"\"; }
      echo \"'\".$locale['fb_013'].\"' \";
      }else{
      echo \"\";
}
      }
   }
}
    }   else if ($data['user_status'] == \"1\") {
      echo \"# \";
      }else if ($data['user_status'] == \"0\"){
      echo \"'bullet' \";
   }
      if ($data['user_status'] == 1) {
      if (iMEMBER){
      echo \"# \";
      }else if ($data['user_status'] == \"0\"){
      echo \"'bullet' \";
   }
}
/**
* End ban display names.
*/

/**
* Modded for colored names.
*/

$lastseen = time() - $data['user_lastvisit'];

   if($lastseen < 60) {
   $lastseen = \">\".$data['user_name'].\" \".$locale['fb_017'].\"');\\"onMouseOut=\\"toolTip();\\"'>\";
} else {
   $lastseen = \">\".$data['user_name'].\" \".$locale['fb_018'].\"');\\"onMouseOut=\\"toolTip();\\"'>\";
}

      $shoutcount = dbcount(\"(shout_id)\", \"shoutbox\", \"shout_name='\".$data['user_id'].\"'\");
      if ($data[user_level] == \"103\") {
      $userx = \"\".$data[user_name].\"\";
      }else if ($data[user_level] == \"102\") {
      $userx = \"\".$data[user_name].\"\";
      }else if ($data[user_level] == \"101\") {
      $userx = \"\".$data[user_name].\"\";
      }if ($data['user_status'] == 1) {
      $userx = \"\".$data[user_name].\"\";
}
/**
* End color mod.
*/
      if ($data['user_name']) {
         if ($data['user_avatar'] != \"\") { $avatar = \"\"; } else { $avatar = \"\"; }
       echo \">$avatar

\".$locale['fb_019'].\"
\".$data['user_name'].\"

\".$locale['fb_020'].\"

\".getuserlevel($data['user_level']).\"

\".$locale['fb_021'].\"
\".showdate(\"shortdate\", $data['user_joined']).\"

\".$locale['fb_022'].\"
\".showdate(\"shortdate\", $data['user_lastvisit']).\"

\".$locale['fb_023'].\"
$shoutcount \".$locale['fb_024'].\"');\\" onMouseOut=\\"toolTip();\\" href='\".BASEDIR.\"profile.php?lookup=\".$data['user_id'].\"' class='side'>$userx'\".$locale['fb_016'].\"'\";
      echo \" $lastseen\";
      //echo \"$userx'\".$locale['fb_016'].\"' $lastseen\n\";
      } else {
         echo $data['shout_name'].\"\n\";
      }
      echo \"
\n\".showdate(\"shortdate\", $data['shout_datestamp']).\"\";

      if ($userdata['user_level'] >= 103) {
      echo \"
\n[\".$locale['048'].\" - \".$locale['fb_014'].\"] \";
      /*if ($data['user_status'] == \"1\") {
      echo \"[\".$locale['fb_009'].\"]\";
      }else if ($data[user_level] == \"103\") {
      echo\"\";
      }else if ($data['user_status'] == \"0\") {
      echo \"[\".$locale['fb_010'].\"]\";
      }*/
      echo \"
\";
      //\".$locale['fb_011'].\"\".$data['user_ip'].\"
\";
      } else {
      echo \"
\n\";
}
      echo \"\".parseshoutubb(parseubb(parsesmileys_shout($data['shout_message']))).\"
\n\";
      if ($i != $numrows) echo \"
\n\";
   }
      } else {
      echo \"
\".$locale['127'].\"
\n\";
}

/**
* Begin show more feature.
*/
      echo \"
'Bullet' \".$locale['fb_008'].\" 'Bullet'

\";
/**
* End show more feature.
*/

      $result = dbquery(\"SELECT count(shout_id) FROM \".$db_prefix.\"shoutbox\");
      $numrows = dbresult($result, 0);
      $result = dbquery(
      \"SELECT * FROM \".$db_prefix.\"shoutbox LEFT JOIN \".$db_prefix.\"users
      ON \".$db_prefix.\"shoutbox.shout_name=\".$db_prefix.\"users.user_id
      ORDER BY shout_datestamp DESC LIMIT $min, $max\"
);
      if (dbrows($result) != 0) {
      $i = 0;
      while ($data = dbarray($result)) {

/**
* Modded for user ban display names, send private message and member homepage.
*/
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      echo \"@\".$data['user_name'].\":%20-%20','');\\">'\".$locale['fb_006'].\"' \";
}
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else{
      if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      echo \"'\".$locale['fb_007'].\"' \";
      }else{
      echo \"'bullet' \";
}
   }
}
      if (iMEMBER){if ($data['user_status'] == 1) {
      echo \"\";
      }else{
      if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
      if ($data['user_web']) {
      if (!strstr($data['user_web'], \"http://\")) { $urlprefix = \"http://\"; } else { $urlprefix = \"\"; }
      echo \"'\".$locale['fb_013'].\"' \";
      }else{
      echo \"\";
}
      }
   }
}
      }else if ($data['user_status'] == \"1\") {
      echo \"# \";
      }else if ($data['user_status'] == \"0\"){
      echo \"'bullet' \";
   }
      if ($data['user_status'] == 1) {
      if (iMEMBER){
      echo \"# \";
      }else if ($data['user_status'] == \"0\"){
      echo \"'bullet' \";
   }
}
/**
* End ban display names.
*/

/**
* Modded for colored names.
*/

$lastseen = time() - $data['user_lastvisit'];

   if($lastseen < 60) {
   $lastseen = \">\".$data['user_name'].\" \".$locale['fb_017'].\"');\\"onMouseOut=\\"toolTip();\\"'>\";
} else {
   $lastseen = \">\".$data['user_name'].\" \".$locale['fb_018'].\"');\\"onMouseOut=\\"toolTip();\\"'>\";
}

      $shoutcount = dbcount(\"(shout_id)\", \"shoutbox\", \"shout_name='\".$data['user_id'].\"'\");
      if ($data[user_level] == \"103\") {
      $userx = \"\".$data[user_name].\"\";
      }else if ($data[user_level] == \"102\") {
      $userx = \"\".$data[user_name].\"\";
      }else if ($data[user_level] == \"101\") {
      $userx = \"\".$data[user_name].\"\";
      }if ($data['user_status'] == 1) {
      $userx = \"\".$data[user_name].\"\";
}
/**
* End color mod.
*/
      if ($data['user_name']) {
         if ($data['user_avatar'] != \"\") { $avatar = \"\"; } else { $avatar = \"\"; }
       echo \">$avatar

\".$locale['fb_019'].\"
\".$data['user_name'].\"

\".$locale['fb_020'].\"

\".getuserlevel($data['user_level']).\"

\".$locale['fb_021'].\"
\".showdate(\"shortdate\", $data['user_joined']).\"

\".$locale['fb_022'].\"
\".showdate(\"shortdate\", $data['user_lastvisit']).\"

\".$locale['fb_023'].\"
$shoutcount \".$locale['fb_024'].\"');\\" onMouseOut=\\"toolTip();\\" href='\".BASEDIR.\"profile.php?lookup=\".$data['user_id'].\"' class='side'>$userx'\".$locale['fb_016'].\"'\";
      echo \" $lastseen\";
      //echo \"$userx'\".$locale['fb_016'].\"' $lastseen\n\";
      } else {
         echo $data['shout_name'].\"\n\";
      }
      echo \"
\n\".showdate(\"shortdate\", $data['shout_datestamp']).\"\";

      $shout_message = nl2br(parseshoutubb(parseubb(parsesmileys_shout($data['shout_message']))));

      if ($userdata['user_level'] >= 103) {
      echo \"
\n[\".$locale['048'].\" - \".$locale['fb_014'].\"] \";
      /*if ($data['user_status'] == \"1\") {
      echo \"[\".$locale['fb_009'].\"]\";
      }else if ($data[user_level] == \"103\") {
      echo\"\";
      }else if ($data['user_status'] == \"0\") {
      echo \"[\".$locale['fb_010'].\"]\";
      }*/
      echo \"
\";
      //\".$locale['fb_011'].\"\".$data['user_ip'].\"
\";
      } else {
      echo \"
\n\";
}
      echo \"\".$shout_message.\"
\n\";
      if ($i != $numrows) echo \"
\n\";
   }
      if ($numrows > $settings['numofshouts']) {
}
      } else {
      echo \"
\".$locale['127'].\"
\n\";
}
      echo\"
\";

      if (iMEMBER) {
      echo \"
\n'bullet' \";
      echo \"\".$locale['126'].\" \";
      echo \"'bullet'
\";
      echo \"'bullet' \";
      echo \"\".$locale['fb_015'].\" \";
      echo \"'bullet'
\n\";
      } else {
      echo \"
\n\";
}

closeside();
?>



 
PM
aqditt
#2 Spausdinti pranešimą
parašyta 2010-01-23 14:06
Savekas



Reputacija: 0

Pranešimai: 159
Įstojo: 2009-12-25

Susirask ?aujykla su tom funkcijom, ir i?simes jas bandyk sidt, jei visada darysim u? jus, niekad nei?moksit.
 
PM
irmux112
#3 Spausdinti pranešimą
parašyta 2010-01-23 14:46
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 45
Įstojo: 2009-08-02

aqditt
nepadeda jokiu funkciju isemimas cia reikia redaguoti kazka pns i sita:
Download source  GeSHi: PHP
  1. if ($userdata['user_level'] >= 103) {
  2. echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['fb_014']."</a>] ";
  3.  
Parsed in 0.020 seconds, using GeSHi 1.0.8.10
 
PM
Peršokti į forumą: