Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1106
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ME_Haber 2.3..
(109082 okuma, 145 yanıt)
 Resim Galerisi Modülü 2.0..
(122310 okuma, 173 yanıt)
 Ustalardan Bir Ricam Olac..
(13663 okuma, 6 yanıt)
 nukecode.com will close..
(11226 okuma, 5 yanıt)
 super youtube player a lo..
(6350 okuma, 1 yanıt)
 Need good PHP Haber port..
(5617 okuma, 0 yanıt)
 Forum Nasil Tam Sayfa Olu..
(35239 okuma, 40 yanıt)
 Php nuke Forumu Düzenleme..
(9963 okuma, 6 yanıt)
 Yeni Üyelik Aktivasyon Li..
(11004 okuma, 6 yanıt)
 Aşk Flashları Modülü..
(7001 okuma, 2 yanıt)
 resim galeri 2.0 da kateg..
(11445 okuma, 9 yanıt)
 Yeni iki modul: Merhumlar..
(32446 okuma, 36 yanıt)
 ürün tanıtım modülü..
(25275 okuma, 23 yanıt)
 PHP Nuke is out..
(15073 okuma, 13 yanıt)
 MSN Video Bing Video oldu..
(5208 okuma, 0 yanıt)
 haberhit.com..
(5802 okuma, 1 yanıt)
 Bilgi Yarışması 1.0 tama..
(52129 okuma, 72 yanıt)
 Musıc Box elinde olan var..
(6704 okuma, 2 yanıt)
 Online Okey , Batak , Tav..
(173753 okuma, 340 yanıt)
 Emlak Modül ve Blockları ..
(12326 okuma, 8 yanıt)
 WM who ist shampions..
(5055 okuma, 1 yanıt)
 coppermine resim galerisi..
(5498 okuma, 1 yanıt)
 Forumda Teşekkür Eklentis..
(9101 okuma, 7 yanıt)
 free wordpress themes..
(5589 okuma, 1 yanıt)
 JW image rotator for nsn ..
(7669 okuma, 4 yanıt)
 need Iletisim module..
(11047 okuma, 8 yanıt)
 Yeni modul: İletişim modu..
(27725 okuma, 33 yanıt)
 Başvuru Modulu ve Etkinli..
(5843 okuma, 1 yanıt)
 world cup flash..
(5053 okuma, 0 yanıt)
 ..:: Php Nuke FTP link Ha..
(4949 okuma, 0 yanıt)
 yeni phpnuke youtube 2.0..
(5172 okuma, 1 yanıt)
 Content Plus Önceki Konu ..
(4782 okuma, 0 yanıt)
 Php nuke Tickets Modülü..
(7993 okuma, 5 yanıt)
 need help to news time..
(4556 okuma, 0 yanıt)
 NSN News v3.0 new plugin..
(4844 okuma, 0 yanıt)
 how to save flash as imag..
(6068 okuma, 2 yanıt)
 Video Blok Yardım Lütfen...
(6002 okuma, 2 yanıt)
 gazete ara..
(9810 okuma, 5 yanıt)
 Bizim Yazarlar ve Bizim Ş..
(14994 okuma, 14 yanıt)
 Nuke Reflections v2 Türkç..
(14597 okuma, 14 yanıt)
 CNB Your Account 750 442 ..
(14296 okuma, 13 yanıt)
 Admin panelindeki simge ç..
(12386 okuma, 9 yanıt)
 Hosting Modülü..
(14051 okuma, 13 yanıt)
 Bizim şairler Modülü..
(5191 okuma, 1 yanıt)
 new plugin for nsn news v..
(4770 okuma, 1 yanıt)
 php nuke 8.0 türkce dil s..
(6939 okuma, 3 yanıt)
 Kan Bankası Modül istek..
(6150 okuma, 2 yanıt)
 Haber Konulari Sayfasinda..
(5769 okuma, 2 yanıt)
 Kan Bankası Modülünde İsi..
(7078 okuma, 3 yanıt)
 sonhaberler flash block ..
(6636 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Shout Box Mesajlaşma Bloğu
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


Shout Box Mesajlaşma Bloğu

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
efsanevi
Mesaj: 100+
Mesaj: 100+





Kayıt: Dec 04, 2007
Mesajlar: 162

MesajTarih: 2008-01-06, 21:48:09    Mesaj konusu: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

Bunu duzgun calisan1n1 bulan varm1 bende hatalar verdide yazilar duzgun c1km1yo menu yaz1lar1nda mesala G%'^^der Gibi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 20:12:42    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Bankocu
Editör
Editör





Kayıt: Jun 02, 2003
Mesajlar: 1842
Konum: Istanbul

MesajTarih: 2008-01-06, 22:50:46    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

http://eski.netopsiyon.com/modules.php?name=Forums&file=viewtopic&t=36790&highlight=literat%FCre

Linkinde benim düzenlediğim Sohbet Kutusunun linki vardı.
Orayı takip edin.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-01-07, 00:47:58    Mesaj konusu: Alıntıyla Cevap Gönder

ben kurdum gayet iyi çalışıyor

tek sorun her mesaj yazılışında sayfayı indexlemesi ve yeni mesajları görebilmek için sayfayı indexlemeniz lağzım

alper usta müsait bir zamanınızda bakabilirmisiniz
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
efsanevi
Mesaj: 100+
Mesaj: 100+





Kayıt: Dec 04, 2007
Mesajlar: 162

MesajTarih: 2008-01-07, 12:48:52    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

Tam yerini yazarmısın kardes bulamadım hemde turkcemi acaba bana tam kurulumunu gonderirimisin bulamadımda :S
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-01-07, 13:00:43    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

Modül buradan indirebilirsiniz :
http://eski.netopsiyon.com/modules.php?name=NG_Dosyalar&d_op=getit&lid=125

Dil dosyasıda buradan :
http://eski.netopsiyon.com/modules.php?name=NG_Dosyalar&d_op=getit&lid=425

Kurulum :

- Shout_Box\sql\phpMyAdmin_install\ içinde Shout_Box.sql isimli dosya var bu dosya ile sitenizde sql sorgusunu yapın 12 tane tablo yüklenmiş olacak.
- public_html içindeki dosyaları anadizinine ilgili yerlere yollayın
- Shout_Box\public_html\shoutbox.js dosyasını ana dizine yollayın
- Shout_Box\sql\SB_SQL_installer.php dosyasını ana dizine yollayın
- sitenizde admin panelinden modüllerdeki ve bloklardaki Shout_Box'ları seçerek hem modülü hem de bloğu aktif edin
- www.siteadi.com/SB_SQL_installer.php dosyasını çalıştırarak install ediyoruz. Çıkan sayfada "configure SQL for v.8.5" seçeneğini tıklıyoruz ve kurulumu bitiriyoruz. (install ettikten sonra bu dosyayı ana dizinden silmeyi unutmuyoruz)

kurulumu doğru tamamlamışsanız admin menüsende 2 adet shoutBox menü olması gerekir. Bu menüler sayesinde gerekli ayarlamaları yapabilirsiniz.

Kolay gelsin
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
efsanevi
Mesaj: 100+
Mesaj: 100+





Kayıt: Dec 04, 2007
Mesajlar: 162

MesajTarih: 2008-01-07, 13:29:06    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

Cok tesekur ederim kardesim gercek ten cok YARDIMın dokundu ise yaradı sapa saglam :)))))
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-01-07, 14:38:51    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

rica ederim

her mesaj yazdığında sayfayı indexleme problemi vardı
bankocu abimin dediğini yapabildinmi.? Ben iş yerindeyim de burdan yapamıyorum ama çok merak ettim.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
efsanevi
Mesaj: 100+
Mesaj: 100+





Kayıt: Dec 04, 2007
Mesajlar: 162

MesajTarih: 2008-01-07, 14:49:50    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

denemedim ama bi bakayım :)
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 20:12:42    Mesaj konusu: Forum Arası Reklamlar


Başa dön
SiverekFm
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 26, 2008
Mesajlar: 3

MesajTarih: 2008-04-28, 00:53:53    Mesaj konusu: Alıntıyla Cevap Gönder

kardesim özel msj attım okurmusun mersoy
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
abisii
Mesaj: 200+
Mesaj: 200+





Kayıt: Aug 01, 2007
Mesajlar: 270

MesajTarih: 2008-04-28, 09:03:58    Mesaj konusu: Alıntıyla Cevap Gönder

Arkadaşlar sayfayı indexlemeden yazdığımız mesajların anında görüntülenmesini bilenler var sanırım......
Bizimle de paylaşırmısınız
şimdiden teşekkürlerrrrrrr
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-04-28, 11:54:48    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

kendi yazdığım mesajların sayfa yenilemeden anında gözükmesi sağladık. Coşkun'un katkılarıyla.
Umarım birileri dahada geliştirerek karşı tarafın gönderdiği mesajlarıda anında ekrana yazdırabilir.

ben anlatayımda birilerinin işine yarayabilir


alttaki kodları block-shoutboxsohbet.php olarak kaydedip blokların altına atıp etkinleştiriyoruz.
Kod:

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-shoutboxsohbet.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content .="<i f r a m e SRC=http://www.siteadi.com/shoutbox.php frameborder=0 width=100% height=230 marginwidth=0 marginheight=0 scrolling=no></i f r a m e>";
?>


daha sonra ana dizinde shoutbox.php altına bir dosya daha ekleyip içine şu kodları ekliyoruz.

Kod:
<?php
require_once("mainfile.php");

$index =1;
echo"<LINK REL=\"StyleSheet\" HREF=\"themes/SENİNTEMAN/style/style.css\" TYPE=\"text/css\">";

global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $c o o k i e, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang;

function ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid) {

   global $admin, $admin_file, $currentlang, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight;

   $self = ereg_replace("/", "",$_SERVER['PHP_SELF']);
   if ($admin_file == '') { $admin_file = 'admin'; }
   if ((is_admin($admin)) AND ("".$admin_file.".php" == $self)) {
      $sqlV = "select * from ".$prefix."_config";
      $resultV = $db->sql_query($sqlV);
      $confV = $db->sql_fetchrow($resultV);
      if ($confV['Version_Num'] >= '7.6') {
         $preURL = 'index.php?url=';
      } else {
         $preURL = '';
      }
   }

   if ($currentlang) {
      include_once("modules/Shout_Box/lang-block/lang-$currentlang.php");
   } else {
      include_once("modules/Shout_Box/lang-block/lang-english.php");
   }

   $PreviousShoutComment = $ShoutComment;

   include("config.php");

   c o o k i edecode($user);
   $username = $c o o k i e[1];

   if ($username == "") { $username = "Anonymous"; }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $result = $db->sql_query($sql);
   $conf = $db->sql_fetchrow($result);

   // Check if block is in center position
   $sql = "select bposition from ".$prefix."_blocks where blockfile='block-Shout_Box.php'";
   $SBpos = $db->sql_query($sql);
   $SBpos = $db->sql_fetchrow($SBpos);
   if ($SBpos['bposition'] == 'c' || $SBpos['bposition'] == 'd') {
      $SBpos = 'center';
      $SBborder = 1;
   } else {
      $SBpos = 'side';
      $SBborder = 0;
   }

   // Find user's IP
   if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) {
      $uip = getenv("HTTP_CLIENT_IP");
   } else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) {
      $uip = getenv("HTTP_X_FORWARDED_FOR");
   } else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) {
      $uip = getenv("REMOTE_ADDR");
   } else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) {
      $uip = $_SERVER['REMOTE_ADDR'];
   } else {
      $uip = "";
   }
   if ($uip == 'unknown') { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = "noip"; }
   if ($uip == 'unknown') { $uip = "noip"; }

   //do IP test then ban if on list
   if($conf['ipblock'] == "yes") {
      $sql = "select * from ".$prefix."_shoutbox_ipblock";
      $ipresult = $db->sql_query($sql);
      while ($badips = $db->sql_fetchrow($ipresult)) {
         if (eregi("\*", $badips['name'])) { // Allow for Subnet bans like 123.456.*
            $badipsArray = explode(".",$badips['name']);
            $uipArray = explode(".",$uip);
            $i = 0;
            foreach($badipsArray as $badipsPart) {
               if ($badipsPart == "*") { $BannedShouter = "yes"; break; }
               if ($badipsPart != $uipArray[$i] AND $badipsPart != "*") { break; }
               $i++;
            }
         } else {
            if($uip == $badips['name']) { $BannedShouter = "yes"; break; }
         }
      }
   }
   //do name test then ban if on list (only applies to registered users)
   if ($conf['nameblock'] == "yes" AND $BannedShouter != "yes") {
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if ($username == $badname['name']) { $BannedShouter = "yes"; break; }
      }
   }
   if ($BannedShouter != "yes") {

   if ($ShoutSubmit == "ShoutPost") {
   // start processing shout
   if ($shoutuid) { $username = "$shoutuid"; }
   //shoutuid tests
   $username = trim($username); // remove whitespace off ends of nickname
   if($conf['anonymouspost'] == "yes") {
      $unum = strlen($username);
      if ($unum < 2) { $ShoutError = ""._NICKTOOSHORT.""; }
      if (!$username OR $username == ""._NAME."") { $ShoutError = ""._NONICK.""; }
      if (eregi(".xxx", $username) AND $conf['blockxxx'] == "yes") { $username = "Anonymous"; }
      if (eregi("j a v a s c r i p t:(.*)", $username)) { $username = "Anonymous"; }
      $username = htmlspecialchars($username, ENT_QUOTES);
      $username = ereg_replace("&amp;amp;", "&amp;",$username);
   }
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $username = ereg_replace(" ", "_",$username);
   }

   $ShoutComment = trim($ShoutComment); // remove whitespace off ends of shout
   $ShoutComment = preg_replace('/\s+/', ' ', $ShoutComment); // convert double spaces in middle of shout to single space
   $num = strlen($ShoutComment);
   if ($num < 1) { $ShoutError = ""._SHOUTTOOSHORT.""; }
   if ($num > 2500) { $ShoutError = ""._SHOUTTOOLONG.""; }
   if (!$ShoutComment) { $ShoutError = ""._NOSHOUT.""; }
   if ($ShoutComment == ""._SB_MESSAGE."") { $ShoutError = ""._NOSHOUT.""; }
   $ShoutComment = ereg_replace(" [.] ", ".",$ShoutComment);
   if (eregi(".xxx", $ShoutComment) AND $conf['blockxxx'] == "yes") {
      $ShoutError = ""._XXXBLOCKED."";
      $PreviousShoutComment = "";
   }
   if (eregi("j a v a s c r i p t:(.*)", $ShoutComment)) {
      $ShoutError = ""._JSINSHOUT."";
      $PreviousShoutComment = "";
   }

   $ShoutComment = htmlspecialchars($ShoutComment, ENT_QUOTES);
   $ShoutComment = ereg_replace("&amp;amp;", "&amp;",$ShoutComment);

   // Scan for links in the shout. If there is, replace it with [URL] or block it if disallowed
   $i = 0;
   $ShoutNew = '';
   $ShoutArray = explode(" ",$ShoutComment);
   foreach($ShoutArray as $ShoutPart) {
      if (is_array($ShoutPart) == TRUE) { $ShoutPart = $ShoutPart[0]; }
      if (eregi("http:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         // fix for users adding text to the beginning of links: HACKhttp://www.website.com
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"http://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi("ftp:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"ftp://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">FTP</a>]";
      } elseif (eregi("irc:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"irc://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">IRC</a>]";
      } elseif (eregi("teamspeak:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"teamspeak://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">TeamSpeak</a>]";
      } elseif (eregi("aim:goim", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"aim:goim");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">AIM</a>]";
      } elseif (eregi("gopher:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"gopher://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">Gopher</a>]";
      } elseif (eregi("mailto:", $ShoutPart)) {
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"mailto:");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"$ShoutPart\">E-Mail</a>]";
      } elseif (eregi("www\.", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"www.");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi('@', $ShoutPart) AND eregi('\.', $ShoutPart)) {
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"mailto:$ShoutPart\">E-Mail</a>]";
      } elseif ((eregi("\.(us|tv|cc|ws|ca|de|jp|ro|be|fm|ms|tc|ph|dk|st|ac|gs|vg|sh|kz|as|lt|to)", substr("$ShoutPart", -3,3))) OR (eregi("\.(com|net|org|mil|gov|biz|pro|xxx)", substr("$ShoutPart", -4,4))) OR (eregi("\.(info|name|mobi)", substr("$ShoutPart", -5,5))) OR (eregi("\.(co\.uk|co\.za|co\.nz|co\.il)", substr("$ShoutPart", -6,6)))) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (strlen(html_entity_decode($ShoutPart, ENT_QUOTES)) > 21) {
         $ShoutNew[$i] = htmlspecialchars(wordwrap(html_entity_decode($ShoutPart, ENT_QUOTES), 21, " ", 1), ENT_QUOTES);

         $ShoutNew[$i] = str_replace("[ b]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[b ]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/b ]", "[/b] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ i]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[i ]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/i ]", "[/i] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ u]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[u ]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/u ]", "[/u] ",$ShoutNew[$i]);
      } else { $ShoutNew[$i] = $ShoutPart; }
      $i++;
   }
   if ($ShoutError == "") { $ShoutComment = implode(" ",$ShoutNew); }

   //Smilies from database
   $ShoutArrayReplace = explode(" ",$ShoutComment);
   $ShoutArrayScan = $ShoutArrayReplace;
   $sql = "select * from ".$prefix."_shoutbox_emoticons";
   $eresult = $db->sql_query($sql);
   while ($emoticons = $db->sql_fetchrow($eresult)) {
      $i = 0;
      foreach($ShoutArrayScan as $ShoutPart) {
         if ($ShoutPart == $emoticons['text']) { $ShoutArrayReplace[$i] = $emoticons['image']; }
         $i++;
      }
   }
   $ShoutComment = implode(" ",$ShoutArrayReplace);

   //do name test then error if on list
   if($conf['nameblock'] == "yes"){
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if($username == $badname['name']) {
            $ShoutError = ""._BANNEDNICK."";
         }
      }
   }

   // check for anonymous users cloning/ghosting registered users' nicknames
   c o o k i edecode($user);
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $sql = "select * from ".$prefix."_users where username='$username'";
      $nameresult = $db->sql_query($sql);
      $row = $db->sql_fetchrow($nameresult);
      if ($row) {
         $ShoutError = ""._NOCLONINGNICKS."";
      }
   }

   //look for bad words, then censor them.
   if($conf['censor'] == "yes") {
      // start Anonymous nickname censor check here. If bad, replace bad nick with 'Anonymous'
      if (!is_user($user) && ($username) && $username != "Anonymous") {
         $sql = "select * from ".$prefix."_shoutbox_censor";
         $cresult = $db->sql_query($sql);
         while ($censor = $db->sql_fetchrow($cresult)) {
            if ($username != 'Anonymous') {
               $one = strtolower($censor['text']);
               $usernameL = strtolower($username);
               if (stristr($usernameL, $one) !== false) {
                  $username = "Anonymous";
               }
            }
         }
      }
      // Censor of posting text
      $ShoutArrayReplace = explode(" ",$ShoutComment);
      $ShoutArrayScan = $ShoutArrayReplace;
      $sql = "select * from ".$prefix."_shoutbox_censor";
      $cresult = $db->sql_query($sql);
      while ($censor = $db->sql_fetchrow($cresult)) {
         $i = 0;
         foreach($ShoutArrayScan as $ShoutPart) {
            $ShoutPart = strtolower($ShoutPart);
            $censor['text'] = strtolower($censor['text']);
            if ($ShoutPart == $censor['text']) { $ShoutArrayReplace[$i] = $censor['replacement']; }
            $i++;
         }
      }
      $ShoutComment = implode(" ",$ShoutArrayReplace);

      /*
      // Phrase censor - Needs work before implementing
      $sql = "select * from ".$prefix."_shoutbox_emoticons";
      $eresult = $db->sql_query($sql);
      while ($emoticons = $db->sql_fetchrow($eresult)) {
         $ShoutComment = str_replace($emoticons['text'],$emoticons['image'],$ShoutComment);
      }
      */
   }

   // duplicate posting checker. stops repeated spam attacks
   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT 5";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      if ($row['comment'] == $ShoutComment) {
         $ShoutError = ""._DUPLICATESHOUT."";
      }
   }

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
         $ShoutError = ""._ONLYREGISTERED2."";
   }

   if (!$ShoutError) {
      $sql = "select * from ".$prefix."_shoutbox_date";
      $resultD = $db->sql_query($sql);
      $rowD = $db->sql_fetchrow($resultD);

      // Special thanks to JRSweets for tipping me off to the timestamp option in date()
      if ($conf['timeOffset'] == 0) {
         $day = date("$rowD[date]");
         $time = date("$rowD[time]");
      } elseif (strstr($conf['timeOffset'], '+')) {
         $sbTimeMultiplier = str_replace('+', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp + $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp + $sbTimeOffset));
      } else {
         $sbTimeMultiplier = str_replace('-', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp - $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp - $sbTimeOffset));
      }

      $currentTime = time();

      $sql = "INSERT INTO ".$prefix."_shoutbox_shouts (id,name,comment,date,time,ip,timestamp) VALUES ('0','$username','$ShoutComment','$day','$time','$uip','$currentTime')";
      $db->sql_query($sql);

      // if v7.0 of nuke or higher, add points earned per shout
      $sqlVer = "select * from ".$prefix."_config";
      $resultVer = $db->sql_query($sqlVer);
      $confVer = $db->sql_fetchrow($resultVer);
      if (is_user($user) AND $confVer['Version_Num'] >= '7.0' AND $conf['pointspershout'] > 0) {
         $sqlP = "select user_id,points from ".$prefix."_users WHERE username='$username'";
         $resultP = $db->sql_query($sqlP);
         $userP = $db->sql_fetchrow($resultP);
         $userPoints = $userP['points'] + $conf['pointspershout'];
         $sqlP = "UPDATE ".$prefix."_users set points='$userPoints' where user_id='$userP[user_id]'";
         $db->sql_query($sqlP);
      }

      $PreviousShoutComment = "";
      $PreviousComment = "";
   } else {
      if ($username != ""._NAME."") {
         $PreviousUsername = $username;
      }
      if ($PreviousShoutComment != ""._SB_MESSAGE."") {
         $PreviousComment = $PreviousShoutComment;
      }
   }

   }

   //Display Content From here on down

   if (!is_user($user) && ($username) && $username != "Anonymous") { $username = "Anonymous"; }

   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_theme_images WHERE themeName='$ThemeSel'";
   $result = $db->sql_query($sql);
   $themeRow = $db->sql_fetchrow($result);

   if ($themeRow['blockBackgroundImage'] != '' AND file_exists("modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]")) {
      $showBackground = 'yes';
   } else {
      $showBackground = 'no';
   }

   if (file_exists("modules/Shout_Box/images/up/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $up_img = "modules/Shout_Box/images/up/$themeRow[blockArrowColor]";
   } else {
      $up_img = "modules/Shout_Box/images/up/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/down/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $down_img = "modules/Shout_Box/images/down/$themeRow[blockArrowColor]";
   } else {
      $down_img = "modules/Shout_Box/images/down/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/pause/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $pause_img = "modules/Shout_Box/images/pause/$themeRow[blockArrowColor]";
   } else {
      $pause_img = "modules/Shout_Box/images/pause/Black.gif";
   }

   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT $conf[number]";
   $result = $db->sql_query($sql);

   // Top half

   // shout error reporting
   $top_content = "";
   if ($ShoutError) {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\"><tr><td style=\"background-color: #FFFFE1;\"><b>"._SB_NOTE.":</b> $ShoutError</td></tr></table>";
   }

   // table that holds the scrolling area
   if ($showBackground == 'yes') {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: url(modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]);\" height=\"$conf[height]\">\n";
   } else {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"$conf[height]\">\n";
   }
   // end top content

   // table of the actual scrolling content
   if ($showBackground == 'yes') {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"5\">";
   } else {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"2\">";
   }
   $flag = 1;
   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_themes WHERE themeName='$ThemeSel'";
   $resultT = $db->sql_query($sql);
   $rowColor = $db->sql_fetchrow($resultT);

   if (is_user($user)) {
      $username = $c o o k i e[1];
      if ($username != '') {
         $sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";
         $resultF = $db->sql_query($sqlF);
         $userSetup = $db->sql_fetchrow($resultF);
      }
   }
   $sql = "select * from ".$prefix."_shoutbox_date";
   $resultD = $db->sql_query($sql);
   $rowD = $db->sql_fetchrow($resultD);

   // Sticky shouts
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=0";
   $stickyResult = $db->sql_query($sql);
   $stickyRow0 = $db->sql_fetchrow($stickyResult);
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=1";
   $stickyResult = $db->sql_query($sql);
   $stickyRow1 = $db->sql_fetchrow($stickyResult);

   if ($stickyRow0) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor1];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow0[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow0['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow0['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow0['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   if ($stickyRow1) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor2];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow1[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow1['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow1['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow1['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   // end sticky shouts

   $i = 0;
   while ($row = $db->sql_fetchrow($result)) {
      if ($flag == 1) { $bgcolor = $rowColor['blockColor1']; }
      if ($flag == 2) { $bgcolor = $rowColor['blockColor2']; }
      if ($showBackground == 'yes') {
         $tempContent[$i] = "<tr><td>";
      } else {
         $tempContent[$i] = "<tr><td style=\"background-color: $bgcolor;\">";
      }
      $ShoutComment = str_replace('src=', 'src="', $row['comment']);
      $ShoutComment = str_replace('.gif>', '.gif" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.jpg>', '.jpg" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.png>', '.png" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.bmp>', '.bmp" alt="" />', $ShoutComment);
      $ShoutComment = str_replace("http:", "".$preURL."http:", $ShoutComment);
      $ShoutComment = str_replace("ftp:", "".$preURL."ftp:", $ShoutComment);

      // BB code [b]word[/b] [i]word[/i] [u]word[/u]
      if ((eregi("[b]", $ShoutComment)) AND (eregi("[/b]", $ShoutComment)) AND (substr_count("$ShoutComment","[b]") == substr_count("$ShoutComment","[/b]"))) {
         $ShoutComment = eregi_replace("\[b\]","<span style=\"font-weight: bold\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/b\]","</span>","$ShoutComment");
      }
      if ((eregi("[i]", $ShoutComment)) AND (eregi("[/i]", $ShoutComment)) AND (substr_count("$ShoutComment","[i]") == substr_count("$ShoutComment","[/i]"))) {
         $ShoutComment = eregi_replace("\[i\]","<span style=\"font-style: italic\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/i\]","</span>","$ShoutComment");
      }
      if ((eregi("[u]", $ShoutComment)) AND (eregi("[/u]", $ShoutComment)) AND (substr_count("$ShoutComment","[u]") == substr_count("$ShoutComment","[/u]"))) {
         $ShoutComment = eregi_replace("\[u\]","<span style=\"text-decoration: underline\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/u\]","</span>","$ShoutComment");
      }
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$sqlZ = "select * from ".$prefix."_users where username='$row[name]'";
$nameresultN = $db->sql_query($sqlZ);
$rowZ = $db->sql_fetchrow($nameresultZ);
$color = $rowZ['user_color_gc'];
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/

      if ($username == "Anonymous") {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
      }
      else {
         // check to see if nickname is a user in the DB
         $sqlN = "select * from ".$prefix."_users where username='$row[name]'";
         $nameresultN = $db->sql_query($sqlN);
         $rowN = $db->sql_fetchrow($nameresultN);
/********************************************* ***/
/* MOD - Advanced Username Color START */
/************************************************/
$color = $rowN['user_color_gc'];
/******************************************* *****/
/* MOD - Advanced Username Color END */
/************************************************/
         if (($rowN) AND ($row['name'] != "Anonymous")) {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\" target=\"_top\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
} else {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
         }
      }
      if ($conf['date'] == "yes") {
         if ($row['timestamp'] != '') {
            // reads unix timestamp and formats it to the viewer's timezone
            if (is_user($user)) {
               // time adjustment for following user's timezone
               $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
               $displayTime = $displayTime * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixTime";
            } else {
               // adjustmet for timezone offset
               $displayTime = $conf['timeOffset'] * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixDay = date("$rowD[date]", $newTimestamp);
               $unixTime = date("$rowD[time]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixDay&nbsp;$unixTime";
            }
         } else {
            $tempContent[$i] .= "<br />$row[date]&nbsp;$row[time]";
         }
      }
      $tempContent[$i] .= "</td></tr>";
      if ($flag == 1) { $flag = 2; }
      elseif ($flag == 2) { $flag = 1; }
      $i++;
   }
   // Reversing the posts
   if ($conf['reversePosts'] == "no") {
      for ($j = 0; $j < $conf['number']; $j++) {
         $mid_content .= $tempContent[$j];
      }
   } else {
      for ($j = $conf['number']; $j >= 0; $j = $j - 1) {
         $mid_content .= $tempContent[$j];
      }
   }
   // You may not remove or edit this copyright!!! Doing so violates the GPL license.
   $mid_content .= "<tr><td align=\"right\"><a title=\"Free scripts!\" target=\"_blank\" href=\"http://www.ourscripts.net\"><span style=\"font-size: 9;\">Shout Box &copy;</span></a></td></tr></table>";
   // end copyright.
   // end mid content
   // start bottom content $bottom_content

   $bottom_content = "</td></tr></table>\n";

   // bottom half

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
      $bottom_content .= "<div style=\"padding: 1px;\" align=\"center\" class=\"content\"><a href=\"modules.php?name=Shout_Box\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</div><div style=\"padding: 1px; text-align: center;\" class=\"content\"><br />"._ONLYREGISTERED." <a href=\"modules.php?name=Your_Account\"  target=\"_top\">"._SHOUTLOGIN."</a> "._OR." <a href=\"modules.php?name=Your_Account&op=new_user\">"._CREATEANACCT."</a>.</div>";
   } else {
      $bottom_content .= "<form name=\"shoutform1\" method=\"post\" action=\"\" style=\"margin-bottom: 0px; margin-top: 0px\">";
      $bottom_content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">";
      $bottom_content .= "<tr><td align=\"center\"><a href=\"modules.php?name=Shout_Box\" target=\"_top\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</td></tr>\n";
      // Start smilie Drop-Down Code
      $messageDefinition = ""._SB_MESSAGE."";

      if (eregi("MSIE(.*)", $_SERVER['HTTP_USER_AGENT']) || eregi("Konqueror/3(.*)", $_SERVER['HTTP_USER_AGENT']) || (eregi("Opera(.*)", $_SERVER['HTTP_USER_AGENT']))) {
         $ShoutNameWidth = $conf['textWidth'];
         $ShoutTextWidth = $conf['textWidth'];
      } else {
         // Firefox, Mozilla, NS, and any others.
         $ShoutNameWidth = $conf['textWidth'] - 4;
         $ShoutTextWidth = $conf['textWidth'] - 4;
      }
      if ($conf['anonymouspost'] == "yes" && $username == "Anonymous") {
         if ($PreviousUsername) { $boxtext = $PreviousUsername; } else { $boxtext = ""._NAME.""; }
         $bottom_content .= "<tr><td align=\"center\"><input type=\"text\" name=\"shoutuid\" size=\"$ShoutNameWidth\" value=\"$boxtext\" maxlength=\"25\" onfocus=\"if ( this.value == '"._NAME."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._NAME."' }\" /></td></tr>\n";
      }
      if ($PreviousComment) { $boxtext = $PreviousComment; } else { $boxtext = ""._SB_MESSAGE.""; }
      $bottom_content .= "<tr><td align=\"center\" nowrap=\"nowrap\"><input type=\"text\" name=\"ShoutComment\" size=\"$ShoutTextWidth\" value=\"$boxtext\" maxlength=\"2500\" onfocus=\"if ( this.value == '"._SB_MESSAGE."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._SB_MESSAGE."' }\" /></td></tr>";

      $bottom_content .= "<tr><td align=\"center\"><input type=\"hidden\" name=\"ShoutSubmit\" value=\"ShoutPost\" />";

      $bottom_content .= "<div id=\"smilies_hide\" style=\"display: block;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('show'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span></div></div>";

      $bottom_content .= "<div id=\"smilies_show\" style=\"display: none;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('hide'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span><br /><br />";

      $sql = "select distinct image from ".$prefix."_shoutbox_emoticons";
      $nameresult1 = $db->sql_query($sql);
      $flag = 1;
      $second = 0;
      while ($return = $db->sql_fetchrow($nameresult1)){
         $sql = "select * from ".$prefix."_shoutbox_emoticons where image='$return[0]' limit 1";
         $nameresult = $db->sql_query($sql);
         while ($emoticons = $db->sql_fetchrow($nameresult)){
            $emoticons[3] = str_replace('>', '', $emoticons['image']);
            $emoticons[3] = str_replace('src=', 'src="', $emoticons[3]);
            $bottom_content .= "<span style=\"cursor: hand;\" onclick=\"DoSmilie(' $emoticons[text] ','$messageDefinition');\">$emoticons[3]\" border=\"0\" alt=\"\" /></span>&nbsp;";
            if ($flag == $conf['smiliesPerRow']) {
               $bottom_content .="<br /><br />\n";
               $flag = 1;
               continue;
            }
            $flag++;
         }
      }
      $bottom_content .= "</div></div></td></tr>\n";

      $bottom_content .= "</table></form>\n";
   }

   } else {
      $top_content = "<p class=\"title\" align=\"center\"><b>";
      $mid_content = ""._YOUAREBANNED."";
      $bottom_content = "</b></p>";
   }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $resultsize = $db->sql_query($sql);
   $rowsize = $db->sql_fetchrow($resultsize);
   $ShoutMarqueeheight = $rowsize['height'];

}

switch($ShoutSubmit) {
   default:
   ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid);
   break;
}

?>
<script type="text/j a v a s c r i p t">
var SBheight = '<?php echo "$ShoutMarqueeheight"; ?>';
var SBcontent = new String('<?php echo "$mid_content"; ?>');
</script>
<script type="text/j a v a s c r i p t" src="shoutbox.js"></script>
<?php
echo "  <fieldset style=\"border-color: #70c6ff; border-style: solid; border-width : 1px;\">
   <legend><font color=\"boxcontent\">Mini Sohbet</font></legend>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">";
echo "<tr>";
echo "<td width=\"100%\">$top_content\n";
echo "<div align=\"center\"><script type=\"text/j a v a s c r i p t\">document.write(SBtxt);</script></div>\n";
echo "$bottom_content</td>\n";
echo "</tr>";
echo "</table></fieldset>";


?>


kodların içindeki tema yolunu değişmeyi unutmayın
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
ramx
Mesaj: 200+
Mesaj: 200+





Kayıt: Feb 08, 2008
Mesajlar: 246

MesajTarih: 2008-05-02, 01:32:58    Mesaj konusu: Alıntıyla Cevap Gönder

abilerim ben bu shoutbox dediginiz gibi kurdum herşey dediginiz gibi

ancak msj yazdıgımda blockda çıkmıyo
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
ramx
Mesaj: 200+
Mesaj: 200+





Kayıt: Feb 08, 2008
Mesajlar: 246

MesajTarih: 2008-05-02, 01:56:22    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

mersoy :
kendi yazdığım mesajların sayfa yenilemeden anında gözükmesi sağladık. Coşkun'un katkılarıyla.
Umarım birileri dahada geliştirerek karşı tarafın gönderdiği mesajlarıda anında ekrana yazdırabilir.

ben anlatayımda birilerinin işine yarayabilir


alttaki kodları block-shoutboxsohbet.php olarak kaydedip blokların altına atıp etkinleştiriyoruz.
Kod:

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-shoutboxsohbet.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content .="<i f r a m e SRC=http://www.siteadi.com/shoutbox.php frameborder=0 width=100% height=230 marginwidth=0 marginheight=0 scrolling=no></i f r a m e>";
?>


daha sonra ana dizinde shoutbox.php altına bir dosya daha ekleyip içine şu kodları ekliyoruz.

Kod:
<?php
require_once("mainfile.php");

$index =1;
echo"<LINK REL=\"StyleSheet\" HREF=\"themes/SENİNTEMAN/style/style.css\" TYPE=\"text/css\">";

global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $c o o k i e, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang;

function ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid) {

   global $admin, $admin_file, $currentlang, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight;

   $self = ereg_replace("/", "",$_SERVER['PHP_SELF']);
   if ($admin_file == '') { $admin_file = 'admin'; }
   if ((is_admin($admin)) AND ("".$admin_file.".php" == $self)) {
      $sqlV = "select * from ".$prefix."_config";
      $resultV = $db->sql_query($sqlV);
      $confV = $db->sql_fetchrow($resultV);
      if ($confV['Version_Num'] >= '7.6') {
         $preURL = 'index.php?url=';
      } else {
         $preURL = '';
      }
   }

   if ($currentlang) {
      include_once("modules/Shout_Box/lang-block/lang-$currentlang.php");
   } else {
      include_once("modules/Shout_Box/lang-block/lang-english.php");
   }

   $PreviousShoutComment = $ShoutComment;

   include("config.php");

   c o o k i edecode($user);
   $username = $c o o k i e[1];

   if ($username == "") { $username = "Anonymous"; }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $result = $db->sql_query($sql);
   $conf = $db->sql_fetchrow($result);

   // Check if block is in center position
   $sql = "select bposition from ".$prefix."_blocks where blockfile='block-Shout_Box.php'";
   $SBpos = $db->sql_query($sql);
   $SBpos = $db->sql_fetchrow($SBpos);
   if ($SBpos['bposition'] == 'c' || $SBpos['bposition'] == 'd') {
      $SBpos = 'center';
      $SBborder = 1;
   } else {
      $SBpos = 'side';
      $SBborder = 0;
   }

   // Find user's IP
   if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) {
      $uip = getenv("HTTP_CLIENT_IP");
   } else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) {
      $uip = getenv("HTTP_X_FORWARDED_FOR");
   } else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) {
      $uip = getenv("REMOTE_ADDR");
   } else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) {
      $uip = $_SERVER['REMOTE_ADDR'];
   } else {
      $uip = "";
   }
   if ($uip == 'unknown') { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = "noip"; }
   if ($uip == 'unknown') { $uip = "noip"; }

   //do IP test then ban if on list
   if($conf['ipblock'] == "yes") {
      $sql = "select * from ".$prefix."_shoutbox_ipblock";
      $ipresult = $db->sql_query($sql);
      while ($badips = $db->sql_fetchrow($ipresult)) {
         if (eregi("\*", $badips['name'])) { // Allow for Subnet bans like 123.456.*
            $badipsArray = explode(".",$badips['name']);
            $uipArray = explode(".",$uip);
            $i = 0;
            foreach($badipsArray as $badipsPart) {
               if ($badipsPart == "*") { $BannedShouter = "yes"; break; }
               if ($badipsPart != $uipArray[$i] AND $badipsPart != "*") { break; }
               $i++;
            }
         } else {
            if($uip == $badips['name']) { $BannedShouter = "yes"; break; }
         }
      }
   }
   //do name test then ban if on list (only applies to registered users)
   if ($conf['nameblock'] == "yes" AND $BannedShouter != "yes") {
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if ($username == $badname['name']) { $BannedShouter = "yes"; break; }
      }
   }
   if ($BannedShouter != "yes") {

   if ($ShoutSubmit == "ShoutPost") {
   // start processing shout
   if ($shoutuid) { $username = "$shoutuid"; }
   //shoutuid tests
   $username = trim($username); // remove whitespace off ends of nickname
   if($conf['anonymouspost'] == "yes") {
      $unum = strlen($username);
      if ($unum < 2) { $ShoutError = ""._NICKTOOSHORT.""; }
      if (!$username OR $username == ""._NAME."") { $ShoutError = ""._NONICK.""; }
      if (eregi(".xxx", $username) AND $conf['blockxxx'] == "yes") { $username = "Anonymous"; }
      if (eregi("j a v a s c r i p t:(.*)", $username)) { $username = "Anonymous"; }
      $username = htmlspecialchars($username, ENT_QUOTES);
      $username = ereg_replace("&amp;amp;", "&amp;",$username);
   }
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $username = ereg_replace(" ", "_",$username);
   }

   $ShoutComment = trim($ShoutComment); // remove whitespace off ends of shout
   $ShoutComment = preg_replace('/\s+/', ' ', $ShoutComment); // convert double spaces in middle of shout to single space
   $num = strlen($ShoutComment);
   if ($num < 1) { $ShoutError = ""._SHOUTTOOSHORT.""; }
   if ($num > 2500) { $ShoutError = ""._SHOUTTOOLONG.""; }
   if (!$ShoutComment) { $ShoutError = ""._NOSHOUT.""; }
   if ($ShoutComment == ""._SB_MESSAGE."") { $ShoutError = ""._NOSHOUT.""; }
   $ShoutComment = ereg_replace(" [.] ", ".",$ShoutComment);
   if (eregi(".xxx", $ShoutComment) AND $conf['blockxxx'] == "yes") {
      $ShoutError = ""._XXXBLOCKED."";
      $PreviousShoutComment = "";
   }
   if (eregi("j a v a s c r i p t:(.*)", $ShoutComment)) {
      $ShoutError = ""._JSINSHOUT."";
      $PreviousShoutComment = "";
   }

   $ShoutComment = htmlspecialchars($ShoutComment, ENT_QUOTES);
   $ShoutComment = ereg_replace("&amp;amp;", "&amp;",$ShoutComment);

   // Scan for links in the shout. If there is, replace it with [URL] or block it if disallowed
   $i = 0;
   $ShoutNew = '';
   $ShoutArray = explode(" ",$ShoutComment);
   foreach($ShoutArray as $ShoutPart) {
      if (is_array($ShoutPart) == TRUE) { $ShoutPart = $ShoutPart[0]; }
      if (eregi("http:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         // fix for users adding text to the beginning of links: HACKhttp://www.website.com
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"http://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi("ftp:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"ftp://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">FTP</a>]";
      } elseif (eregi("irc:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"irc://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">IRC</a>]";
      } elseif (eregi("teamspeak:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"teamspeak://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">TeamSpeak</a>]";
      } elseif (eregi("aim:goim", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"aim:goim");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">AIM</a>]";
      } elseif (eregi("gopher:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"gopher://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">Gopher</a>]";
      } elseif (eregi("mailto:", $ShoutPart)) {
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"mailto:");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"$ShoutPart\">E-Mail</a>]";
      } elseif (eregi("www\.", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"www.");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi('@', $ShoutPart) AND eregi('\.', $ShoutPart)) {
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"mailto:$ShoutPart\">E-Mail</a>]";
      } elseif ((eregi("\.(us|tv|cc|ws|ca|de|jp|ro|be|fm|ms|tc|ph|dk|st|ac|gs|vg|sh|kz|as|lt|to)", substr("$ShoutPart", -3,3))) OR (eregi("\.(com|net|org|mil|gov|biz|pro|xxx)", substr("$ShoutPart", -4,4))) OR (eregi("\.(info|name|mobi)", substr("$ShoutPart", -5,5))) OR (eregi("\.(co\.uk|co\.za|co\.nz|co\.il)", substr("$ShoutPart", -6,6)))) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (strlen(html_entity_decode($ShoutPart, ENT_QUOTES)) > 21) {
         $ShoutNew[$i] = htmlspecialchars(wordwrap(html_entity_decode($ShoutPart, ENT_QUOTES), 21, " ", 1), ENT_QUOTES);

         $ShoutNew[$i] = str_replace("[ b]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[b ]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/b ]", "[/b] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ i]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[i ]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/i ]", "[/i] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ u]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[u ]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/u ]", "[/u] ",$ShoutNew[$i]);
      } else { $ShoutNew[$i] = $ShoutPart; }
      $i++;
   }
   if ($ShoutError == "") { $ShoutComment = implode(" ",$ShoutNew); }

   //Smilies from database
   $ShoutArrayReplace = explode(" ",$ShoutComment);
   $ShoutArrayScan = $ShoutArrayReplace;
   $sql = "select * from ".$prefix."_shoutbox_emoticons";
   $eresult = $db->sql_query($sql);
   while ($emoticons = $db->sql_fetchrow($eresult)) {
      $i = 0;
      foreach($ShoutArrayScan as $ShoutPart) {
         if ($ShoutPart == $emoticons['text']) { $ShoutArrayReplace[$i] = $emoticons['image']; }
         $i++;
      }
   }
   $ShoutComment = implode(" ",$ShoutArrayReplace);

   //do name test then error if on list
   if($conf['nameblock'] == "yes"){
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if($username == $badname['name']) {
            $ShoutError = ""._BANNEDNICK."";
         }
      }
   }

   // check for anonymous users cloning/ghosting registered users' nicknames
   c o o k i edecode($user);
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $sql = "select * from ".$prefix."_users where username='$username'";
      $nameresult = $db->sql_query($sql);
      $row = $db->sql_fetchrow($nameresult);
      if ($row) {
         $ShoutError = ""._NOCLONINGNICKS."";
      }
   }

   //look for bad words, then censor them.
   if($conf['censor'] == "yes") {
      // start Anonymous nickname censor check here. If bad, replace bad nick with 'Anonymous'
      if (!is_user($user) && ($username) && $username != "Anonymous") {
         $sql = "select * from ".$prefix."_shoutbox_censor";
         $cresult = $db->sql_query($sql);
         while ($censor = $db->sql_fetchrow($cresult)) {
            if ($username != 'Anonymous') {
               $one = strtolower($censor['text']);
               $usernameL = strtolower($username);
               if (stristr($usernameL, $one) !== false) {
                  $username = "Anonymous";
               }
            }
         }
      }
      // Censor of posting text
      $ShoutArrayReplace = explode(" ",$ShoutComment);
      $ShoutArrayScan = $ShoutArrayReplace;
      $sql = "select * from ".$prefix."_shoutbox_censor";
      $cresult = $db->sql_query($sql);
      while ($censor = $db->sql_fetchrow($cresult)) {
         $i = 0;
         foreach($ShoutArrayScan as $ShoutPart) {
            $ShoutPart = strtolower($ShoutPart);
            $censor['text'] = strtolower($censor['text']);
            if ($ShoutPart == $censor['text']) { $ShoutArrayReplace[$i] = $censor['replacement']; }
            $i++;
         }
      }
      $ShoutComment = implode(" ",$ShoutArrayReplace);

      /*
      // Phrase censor - Needs work before implementing
      $sql = "select * from ".$prefix."_shoutbox_emoticons";
      $eresult = $db->sql_query($sql);
      while ($emoticons = $db->sql_fetchrow($eresult)) {
         $ShoutComment = str_replace($emoticons['text'],$emoticons['image'],$ShoutComment);
      }
      */
   }

   // duplicate posting checker. stops repeated spam attacks
   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT 5";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      if ($row['comment'] == $ShoutComment) {
         $ShoutError = ""._DUPLICATESHOUT."";
      }
   }

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
         $ShoutError = ""._ONLYREGISTERED2."";
   }

   if (!$ShoutError) {
      $sql = "select * from ".$prefix."_shoutbox_date";
      $resultD = $db->sql_query($sql);
      $rowD = $db->sql_fetchrow($resultD);

      // Special thanks to JRSweets for tipping me off to the timestamp option in date()
      if ($conf['timeOffset'] == 0) {
         $day = date("$rowD[date]");
         $time = date("$rowD[time]");
      } elseif (strstr($conf['timeOffset'], '+')) {
         $sbTimeMultiplier = str_replace('+', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp + $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp + $sbTimeOffset));
      } else {
         $sbTimeMultiplier = str_replace('-', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp - $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp - $sbTimeOffset));
      }

      $currentTime = time();

      $sql = "INSERT INTO ".$prefix."_shoutbox_shouts (id,name,comment,date,time,ip,timestamp) VALUES ('0','$username','$ShoutComment','$day','$time','$uip','$currentTime')";
      $db->sql_query($sql);

      // if v7.0 of nuke or higher, add points earned per shout
      $sqlVer = "select * from ".$prefix."_config";
      $resultVer = $db->sql_query($sqlVer);
      $confVer = $db->sql_fetchrow($resultVer);
      if (is_user($user) AND $confVer['Version_Num'] >= '7.0' AND $conf['pointspershout'] > 0) {
         $sqlP = "select user_id,points from ".$prefix."_users WHERE username='$username'";
         $resultP = $db->sql_query($sqlP);
         $userP = $db->sql_fetchrow($resultP);
         $userPoints = $userP['points'] + $conf['pointspershout'];
         $sqlP = "UPDATE ".$prefix."_users set points='$userPoints' where user_id='$userP[user_id]'";
         $db->sql_query($sqlP);
      }

      $PreviousShoutComment = "";
      $PreviousComment = "";
   } else {
      if ($username != ""._NAME."") {
         $PreviousUsername = $username;
      }
      if ($PreviousShoutComment != ""._SB_MESSAGE."") {
         $PreviousComment = $PreviousShoutComment;
      }
   }

   }

   //Display Content From here on down

   if (!is_user($user) && ($username) && $username != "Anonymous") { $username = "Anonymous"; }

   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_theme_images WHERE themeName='$ThemeSel'";
   $result = $db->sql_query($sql);
   $themeRow = $db->sql_fetchrow($result);

   if ($themeRow['blockBackgroundImage'] != '' AND file_exists("modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]")) {
      $showBackground = 'yes';
   } else {
      $showBackground = 'no';
   }

   if (file_exists("modules/Shout_Box/images/up/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $up_img = "modules/Shout_Box/images/up/$themeRow[blockArrowColor]";
   } else {
      $up_img = "modules/Shout_Box/images/up/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/down/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $down_img = "modules/Shout_Box/images/down/$themeRow[blockArrowColor]";
   } else {
      $down_img = "modules/Shout_Box/images/down/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/pause/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $pause_img = "modules/Shout_Box/images/pause/$themeRow[blockArrowColor]";
   } else {
      $pause_img = "modules/Shout_Box/images/pause/Black.gif";
   }

   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT $conf[number]";
   $result = $db->sql_query($sql);

   // Top half

   // shout error reporting
   $top_content = "";
   if ($ShoutError) {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\"><tr><td style=\"background-color: #FFFFE1;\"><b>"._SB_NOTE.":</b> $ShoutError</td></tr></table>";
   }

   // table that holds the scrolling area
   if ($showBackground == 'yes') {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: url(modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]);\" height=\"$conf[height]\">\n";
   } else {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"$conf[height]\">\n";
   }
   // end top content

   // table of the actual scrolling content
   if ($showBackground == 'yes') {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"5\">";
   } else {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"2\">";
   }
   $flag = 1;
   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_themes WHERE themeName='$ThemeSel'";
   $resultT = $db->sql_query($sql);
   $rowColor = $db->sql_fetchrow($resultT);

   if (is_user($user)) {
      $username = $c o o k i e[1];
      if ($username != '') {
         $sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";
         $resultF = $db->sql_query($sqlF);
         $userSetup = $db->sql_fetchrow($resultF);
      }
   }
   $sql = "select * from ".$prefix."_shoutbox_date";
   $resultD = $db->sql_query($sql);
   $rowD = $db->sql_fetchrow($resultD);

   // Sticky shouts
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=0";
   $stickyResult = $db->sql_query($sql);
   $stickyRow0 = $db->sql_fetchrow($stickyResult);
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=1";
   $stickyResult = $db->sql_query($sql);
   $stickyRow1 = $db->sql_fetchrow($stickyResult);

   if ($stickyRow0) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor1];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow0[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow0['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow0['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow0['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   if ($stickyRow1) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor2];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow1[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow1['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow1['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow1['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   // end sticky shouts

   $i = 0;
   while ($row = $db->sql_fetchrow($result)) {
      if ($flag == 1) { $bgcolor = $rowColor['blockColor1']; }
      if ($flag == 2) { $bgcolor = $rowColor['blockColor2']; }
      if ($showBackground == 'yes') {
         $tempContent[$i] = "<tr><td>";
      } else {
         $tempContent[$i] = "<tr><td style=\"background-color: $bgcolor;\">";
      }
      $ShoutComment = str_replace('src=', 'src="', $row['comment']);
      $ShoutComment = str_replace('.gif>', '.gif" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.jpg>', '.jpg" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.png>', '.png" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.bmp>', '.bmp" alt="" />', $ShoutComment);
      $ShoutComment = str_replace("http:", "".$preURL."http:", $ShoutComment);
      $ShoutComment = str_replace("ftp:", "".$preURL."ftp:", $ShoutComment);

      // BB code [b]word[/b] [i]word[/i] [u]word[/u]
      if ((eregi("[b]", $ShoutComment)) AND (eregi("[/b]", $ShoutComment)) AND (substr_count("$ShoutComment","[b]") == substr_count("$ShoutComment","[/b]"))) {
         $ShoutComment = eregi_replace("\[b\]","<span style=\"font-weight: bold\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/b\]","</span>","$ShoutComment");
      }
      if ((eregi("[i]", $ShoutComment)) AND (eregi("[/i]", $ShoutComment)) AND (substr_count("$ShoutComment","[i]") == substr_count("$ShoutComment","[/i]"))) {
         $ShoutComment = eregi_replace("\[i\]","<span style=\"font-style: italic\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/i\]","</span>","$ShoutComment");
      }
      if ((eregi("[u]", $ShoutComment)) AND (eregi("[/u]", $ShoutComment)) AND (substr_count("$ShoutComment","[u]") == substr_count("$ShoutComment","[/u]"))) {
         $ShoutComment = eregi_replace("\[u\]","<span style=\"text-decoration: underline\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/u\]","</span>","$ShoutComment");
      }
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$sqlZ = "select * from ".$prefix."_users where username='$row[name]'";
$nameresultN = $db->sql_query($sqlZ);
$rowZ = $db->sql_fetchrow($nameresultZ);
$color = $rowZ['user_color_gc'];
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/

      if ($username == "Anonymous") {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
      }
      else {
         // check to see if nickname is a user in the DB
         $sqlN = "select * from ".$prefix."_users where username='$row[name]'";
         $nameresultN = $db->sql_query($sqlN);
         $rowN = $db->sql_fetchrow($nameresultN);
/********************************************* ***/
/* MOD - Advanced Username Color START */
/************************************************/
$color = $rowN['user_color_gc'];
/******************************************* *****/
/* MOD - Advanced Username Color END */
/************************************************/
         if (($rowN) AND ($row['name'] != "Anonymous")) {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\" target=\"_top\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
} else {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
         }
      }
      if ($conf['date'] == "yes") {
         if ($row['timestamp'] != '') {
            // reads unix timestamp and formats it to the viewer's timezone
            if (is_user($user)) {
               // time adjustment for following user's timezone
               $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
               $displayTime = $displayTime * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixTime";
            } else {
               // adjustmet for timezone offset
               $displayTime = $conf['timeOffset'] * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixDay = date("$rowD[date]", $newTimestamp);
               $unixTime = date("$rowD[time]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixDay&nbsp;$unixTime";
            }
         } else {
            $tempContent[$i] .= "<br />$row[date]&nbsp;$row[time]";
         }
      }
      $tempContent[$i] .= "</td></tr>";
      if ($flag == 1) { $flag = 2; }
      elseif ($flag == 2) { $flag = 1; }
      $i++;
   }
   // Reversing the posts
   if ($conf['reversePosts'] == "no") {
      for ($j = 0; $j < $conf['number']; $j++) {
         $mid_content .= $tempContent[$j];
      }
   } else {
      for ($j = $conf['number']; $j >= 0; $j = $j - 1) {
         $mid_content .= $tempContent[$j];
      }
   }
   // You may not remove or edit this copyright!!! Doing so violates the GPL license.
   $mid_content .= "<tr><td align=\"right\"><a title=\"Free scripts!\" target=\"_blank\" href=\"http://www.ourscripts.net\"><span style=\"font-size: 9;\">Shout Box &copy;</span></a></td></tr></table>";
   // end copyright.
   // end mid content
   // start bottom content $bottom_content

   $bottom_content = "</td></tr></table>\n";

   // bottom half

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
      $bottom_content .= "<div style=\"padding: 1px;\" align=\"center\" class=\"content\"><a href=\"modules.php?name=Shout_Box\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</div><div style=\"padding: 1px; text-align: center;\" class=\"content\"><br />"._ONLYREGISTERED." <a href=\"modules.php?name=Your_Account\"  target=\"_top\">"._SHOUTLOGIN."</a> "._OR." <a href=\"modules.php?name=Your_Account&op=new_user\">"._CREATEANACCT."</a>.</div>";
   } else {
      $bottom_content .= "<form name=\"shoutform1\" method=\"post\" action=\"\" style=\"margin-bottom: 0px; margin-top: 0px\">";
      $bottom_content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">";
      $bottom_content .= "<tr><td align=\"center\"><a href=\"modules.php?name=Shout_Box\" target=\"_top\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</td></tr>\n";
      // Start smilie Drop-Down Code
      $messageDefinition = ""._SB_MESSAGE."";

      if (eregi("MSIE(.*)", $_SERVER['HTTP_USER_AGENT']) || eregi("Konqueror/3(.*)", $_SERVER['HTTP_USER_AGENT']) || (eregi("Opera(.*)", $_SERVER['HTTP_USER_AGENT']))) {
         $ShoutNameWidth = $conf['textWidth'];
         $ShoutTextWidth = $conf['textWidth'];
      } else {
         // Firefox, Mozilla, NS, and any others.
         $ShoutNameWidth = $conf['textWidth'] - 4;
         $ShoutTextWidth = $conf['textWidth'] - 4;
      }
      if ($conf['anonymouspost'] == "yes" && $username == "Anonymous") {
         if ($PreviousUsername) { $boxtext = $PreviousUsername; } else { $boxtext = ""._NAME.""; }
         $bottom_content .= "<tr><td align=\"center\"><input type=\"text\" name=\"shoutuid\" size=\"$ShoutNameWidth\" value=\"$boxtext\" maxlength=\"25\" onfocus=\"if ( this.value == '"._NAME."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._NAME."' }\" /></td></tr>\n";
      }
      if ($PreviousComment) { $boxtext = $PreviousComment; } else { $boxtext = ""._SB_MESSAGE.""; }
      $bottom_content .= "<tr><td align=\"center\" nowrap=\"nowrap\"><input type=\"text\" name=\"ShoutComment\" size=\"$ShoutTextWidth\" value=\"$boxtext\" maxlength=\"2500\" onfocus=\"if ( this.value == '"._SB_MESSAGE."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._SB_MESSAGE."' }\" /></td></tr>";

      $bottom_content .= "<tr><td align=\"center\"><input type=\"hidden\" name=\"ShoutSubmit\" value=\"ShoutPost\" />";

      $bottom_content .= "<div id=\"smilies_hide\" style=\"display: block;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('show'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span></div></div>";

      $bottom_content .= "<div id=\"smilies_show\" style=\"display: none;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('hide'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span><br /><br />";

      $sql = "select distinct image from ".$prefix."_shoutbox_emoticons";
      $nameresult1 = $db->sql_query($sql);
      $flag = 1;
      $second = 0;
      while ($return = $db->sql_fetchrow($nameresult1)){
         $sql = "select * from ".$prefix."_shoutbox_emoticons where image='$return[0]' limit 1";
         $nameresult = $db->sql_query($sql);
         while ($emoticons = $db->sql_fetchrow($nameresult)){
            $emoticons[3] = str_replace('>', '', $emoticons['image']);
            $emoticons[3] = str_replace('src=', 'src="', $emoticons[3]);
            $bottom_content .= "<span style=\"cursor: hand;\" onclick=\"DoSmilie(' $emoticons[text] ','$messageDefinition');\">$emoticons[3]\" border=\"0\" alt=\"\" /></span>&nbsp;";
            if ($flag == $conf['smiliesPerRow']) {
               $bottom_content .="<br /><br />\n";
               $flag = 1;
               continue;
            }
            $flag++;
         }
      }
      $bottom_content .= "</div></div></td></tr>\n";

      $bottom_content .= "</table></form>\n";
   }

   } else {
      $top_content = "<p class=\"title\" align=\"center\"><b>";
      $mid_content = ""._YOUAREBANNED."";
      $bottom_content = "</b></p>";
   }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $resultsize = $db->sql_query($sql);
   $rowsize = $db->sql_fetchrow($resultsize);
   $ShoutMarqueeheight = $rowsize['height'];

}

switch($ShoutSubmit) {
   default:
   ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid);
   break;
}

?>
<script type="text/j a v a s c r i p t">
var SBheight = '<?php echo "$ShoutMarqueeheight"; ?>';
var SBcontent = new String('<?php echo "$mid_content"; ?>');
</script>
<script type="text/j a v a s c r i p t" src="shoutbox.js"></script>
<?php
echo "  <fieldset style=\"border-color: #70c6ff; border-style: solid; border-width : 1px;\">
   <legend><font color=\"boxcontent\">Mini Sohbet</font></legend>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">";
echo "<tr>";
echo "<td width=\"100%\">$top_content\n";
echo "<div align=\"center\"><script type=\"text/j a v a s c r i p t\">document.write(SBtxt);</script></div>\n";
echo "$bottom_content</td>\n";
echo "</tr>";
echo "</table></fieldset>";


?>


kodların içindeki tema yolunu değişmeyi unutmayın


ABİ BUNU HAZIR YAPIP UPLOAD YAPSAN BİZ SADECE TEM YOLUNU DEİŞTİRSEK ÇÜNKÜ BEN TAM ANLAYAMADIM DEMEK İSTEDİGİNİ
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
metalmuzik
Mesaj: 300+
Mesaj: 300+





Kayıt: Jan 21, 2007
Mesajlar: 457

MesajTarih: 2008-05-02, 02:01:09    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

kardeş o sorun banada olurdu söyle yap o türkce sorunu o başka bir sey deil sunu yap bak
modules/Shout_Box/language/lang-turkish.php su dosyayı bul yada "lang-english.php" ikisinin icindekileride bunla deiş işin cözülücektir sanırım ok kolay gele..

Kod:
<?php
// ==========================================
// PHP-NUKE: Shout Box
// ==========================
//
// Copyright (c) 2004 by Aric Bolf (SuperCat)
// http://www.OurScripts.net
//
// This program is free software. You can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation
// ===========================================
// Turkish Translation by: GANYANCI
// http://www.alperbalci.com
// ===========================================

define("_SHOUTHISTORY","Sohbet Arşivi");
define("_SEARCHRESULTS","Arama Sonuçları");
define("_EDIT","Düzenle");
define("_DELETE","Sil");
define("_NORESULTS","Sonuç Bulunamadı!");
define("_SEARCHBOX","Arama Kutusu");
define("_SHOUTS","Sohbetlerde");
define("_SBNICKNAMES","Üye Adlarında");
define("_SBBOTH","Her İkisinde");
define("_EXACTPHRASE","Tüm Sözcükler");
define("_FUZZY","Herhangi Bir Sözcük");
define("_SBRESULTS","Sonuç");
define("_ANYTIME","Tüm Zamanlar");
define("_PAST3MO","Son 3 Aydakiler");
define("_PAST6MO","Son 6 Aydakiler");
define("_PASTYEAR","Bu Yılın Mesajları");
define("_NEWESTFIRST","Yeniler Önce");
define("_OLDESTFIRST","Eskiler Önce");
define("_SBSEARCH","Arama");
define("_SHOUTBOXEDIT","Sohbet Kutusu Düzenleyici");
define("_SB_NOTE","Not");
define("_UPDATE","Güncelle");
define("_SHOUTBOXHISTORY","Sohbet Kutusu Arşivi");
define("_EDITINGOTHERSDISALLOWED","Başka Birisinin Sohbetlerini Düzenleyemezsiniz.");
define("_EDITINGDISABLEDBYADMIN","Sohbetlerde Düzenleme ve Silme Yönetim Tarafından Devre Dışı Bırakılmıştır.");
define("_SHOUTTOOSHORT","Sohbet Çok Kısa.");
define("_SHOUTTOOLONG","Sohbet Çok Uzun.");
define("_NOSHOUT","Sohbet Yok.");
define("_SB_MESSAGE","Mesaj");
define("_XXXBLOCKED",".XXX Adresleri Yasaklıdır");
define("_JSINSHOUT","Sohbetlerde JavaScript izni yoktur.");
define("_URLNOTALLOWED","Sohbetlerde URL kullanamazsınız.");
define("_PREVIOUS","Önceki");
define("_PAGE","Sayfa");
define("_NEXT","Sonraki");
define("_YOUAREBANNEDM","Bu Sohbetten YASAKLANDINIZ!");

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
ramx
Mesaj: 200+
Mesaj: 200+





Kayıt: Feb 08, 2008
Mesajlar: 246

MesajTarih: 2008-05-02, 02:04:44    Mesaj konusu: Alıntıyla Cevap Gönder

KARDEŞ BEN İLK SORUNUMU HALLETTİM DE
kendi yazdığım mesajların sayfa yenilemeden anında gözükmesi sağladık. Coşkun'un katkılarıyla.
Umarım birileri dahada geliştirerek karşı tarafın gönderdiği mesajlarıda anında ekrana yazdırabilir.

BUNU NASIL YAPACAGIMI ANLAMADIM
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-05-02, 08:23:58    Mesaj konusu: Re: Shout Box Mesajlaşma Bloğu Alıntıyla Cevap Gönder

mersoy :
alttaki kodları block-shoutboxsohbet.php olarak kaydedip blokların altına atıp etkinleştiriyoruz.
Kod:

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-shoutboxsohbet.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content .="<i f r a m e SRC=http://www.siteadi.com/shoutbox.php frameborder=0 width=100% height=230 marginwidth=0 marginheight=0 scrolling=no></i f r a m e>";
?>


daha sonra ana dizinde shoutbox.php altına bir dosya daha ekleyip içine şu kodları ekliyoruz.

Kod:
<?php
require_once("mainfile.php");

$index =1;
echo"<LINK REL=\"StyleSheet\" HREF=\"themes/SENİNTEMAN/style/style.css\" TYPE=\"text/css\">";

global $prefix, $ShoutSubmit, $ShoutComment, $db, $user, $c o o k i e, $shoutuid, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight, $currentlang;

function ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid) {

   global $admin, $admin_file, $currentlang, $top_content, $mid_content, $bottom_content, $ShoutMarqueewidth, $ShoutMarqueeheight;

   $self = ereg_replace("/", "",$_SERVER['PHP_SELF']);
   if ($admin_file == '') { $admin_file = 'admin'; }
   if ((is_admin($admin)) AND ("".$admin_file.".php" == $self)) {
      $sqlV = "select * from ".$prefix."_config";
      $resultV = $db->sql_query($sqlV);
      $confV = $db->sql_fetchrow($resultV);
      if ($confV['Version_Num'] >= '7.6') {
         $preURL = 'index.php?url=';
      } else {
         $preURL = '';
      }
   }

   if ($currentlang) {
      include_once("modules/Shout_Box/lang-block/lang-$currentlang.php");
   } else {
      include_once("modules/Shout_Box/lang-block/lang-english.php");
   }

   $PreviousShoutComment = $ShoutComment;

   include("config.php");

   c o o k i edecode($user);
   $username = $c o o k i e[1];

   if ($username == "") { $username = "Anonymous"; }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $result = $db->sql_query($sql);
   $conf = $db->sql_fetchrow($result);

   // Check if block is in center position
   $sql = "select bposition from ".$prefix."_blocks where blockfile='block-Shout_Box.php'";
   $SBpos = $db->sql_query($sql);
   $SBpos = $db->sql_fetchrow($SBpos);
   if ($SBpos['bposition'] == 'c' || $SBpos['bposition'] == 'd') {
      $SBpos = 'center';
      $SBborder = 1;
   } else {
      $SBpos = 'side';
      $SBborder = 0;
   }

   // Find user's IP
   if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) {
      $uip = getenv("HTTP_CLIENT_IP");
   } else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) {
      $uip = getenv("HTTP_X_FORWARDED_FOR");
   } else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) {
      $uip = getenv("REMOTE_ADDR");
   } else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) {
      $uip = $_SERVER['REMOTE_ADDR'];
   } else {
      $uip = "";
   }
   if ($uip == 'unknown') { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = $_SERVER['REMOTE_ADDR']; }
   if ($uip == "") { $uip = "noip"; }
   if ($uip == 'unknown') { $uip = "noip"; }

   //do IP test then ban if on list
   if($conf['ipblock'] == "yes") {
      $sql = "select * from ".$prefix."_shoutbox_ipblock";
      $ipresult = $db->sql_query($sql);
      while ($badips = $db->sql_fetchrow($ipresult)) {
         if (eregi("\*", $badips['name'])) { // Allow for Subnet bans like 123.456.*
            $badipsArray = explode(".",$badips['name']);
            $uipArray = explode(".",$uip);
            $i = 0;
            foreach($badipsArray as $badipsPart) {
               if ($badipsPart == "*") { $BannedShouter = "yes"; break; }
               if ($badipsPart != $uipArray[$i] AND $badipsPart != "*") { break; }
               $i++;
            }
         } else {
            if($uip == $badips['name']) { $BannedShouter = "yes"; break; }
         }
      }
   }
   //do name test then ban if on list (only applies to registered users)
   if ($conf['nameblock'] == "yes" AND $BannedShouter != "yes") {
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if ($username == $badname['name']) { $BannedShouter = "yes"; break; }
      }
   }
   if ($BannedShouter != "yes") {

   if ($ShoutSubmit == "ShoutPost") {
   // start processing shout
   if ($shoutuid) { $username = "$shoutuid"; }
   //shoutuid tests
   $username = trim($username); // remove whitespace off ends of nickname
   if($conf['anonymouspost'] == "yes") {
      $unum = strlen($username);
      if ($unum < 2) { $ShoutError = ""._NICKTOOSHORT.""; }
      if (!$username OR $username == ""._NAME."") { $ShoutError = ""._NONICK.""; }
      if (eregi(".xxx", $username) AND $conf['blockxxx'] == "yes") { $username = "Anonymous"; }
      if (eregi("j a v a s c r i p t:(.*)", $username)) { $username = "Anonymous"; }
      $username = htmlspecialchars($username, ENT_QUOTES);
      $username = ereg_replace("&amp;amp;", "&amp;",$username);
   }
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $username = ereg_replace(" ", "_",$username);
   }

   $ShoutComment = trim($ShoutComment); // remove whitespace off ends of shout
   $ShoutComment = preg_replace('/\s+/', ' ', $ShoutComment); // convert double spaces in middle of shout to single space
   $num = strlen($ShoutComment);
   if ($num < 1) { $ShoutError = ""._SHOUTTOOSHORT.""; }
   if ($num > 2500) { $ShoutError = ""._SHOUTTOOLONG.""; }
   if (!$ShoutComment) { $ShoutError = ""._NOSHOUT.""; }
   if ($ShoutComment == ""._SB_MESSAGE."") { $ShoutError = ""._NOSHOUT.""; }
   $ShoutComment = ereg_replace(" [.] ", ".",$ShoutComment);
   if (eregi(".xxx", $ShoutComment) AND $conf['blockxxx'] == "yes") {
      $ShoutError = ""._XXXBLOCKED."";
      $PreviousShoutComment = "";
   }
   if (eregi("j a v a s c r i p t:(.*)", $ShoutComment)) {
      $ShoutError = ""._JSINSHOUT."";
      $PreviousShoutComment = "";
   }

   $ShoutComment = htmlspecialchars($ShoutComment, ENT_QUOTES);
   $ShoutComment = ereg_replace("&amp;amp;", "&amp;",$ShoutComment);

   // Scan for links in the shout. If there is, replace it with [URL] or block it if disallowed
   $i = 0;
   $ShoutNew = '';
   $ShoutArray = explode(" ",$ShoutComment);
   foreach($ShoutArray as $ShoutPart) {
      if (is_array($ShoutPart) == TRUE) { $ShoutPart = $ShoutPart[0]; }
      if (eregi("http:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         // fix for users adding text to the beginning of links: HACKhttp://www.website.com
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"http://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi("ftp:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"ftp://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">FTP</a>]";
      } elseif (eregi("irc:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"irc://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">IRC</a>]";
      } elseif (eregi("teamspeak:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"teamspeak://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">TeamSpeak</a>]";
      } elseif (eregi("aim:goim", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"aim:goim");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">AIM</a>]";
      } elseif (eregi("gopher:\/\/", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"gopher://");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutNew[$i] = "[<a rel=\"nofollow\" href=\"$ShoutPart\">Gopher</a>]";
      } elseif (eregi("mailto:", $ShoutPart)) {
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"mailto:");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"$ShoutPart\">E-Mail</a>]";
      } elseif (eregi("www\.", $ShoutPart)) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPartL = strtolower($ShoutPart);
         $spot = strpos($ShoutPartL,"www.");
         if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (eregi('@', $ShoutPart) AND eregi('\.', $ShoutPart)) {
         // email encoding to stop harvesters
         $ShoutPart = bin2hex($ShoutPart);
         $ShoutPart = chunk_split($ShoutPart, 2, '%');
         $ShoutPart = '%' . substr($ShoutPart, 0, strlen($ShoutPart) - 1);
         $ShoutNew[$i] = "[<a href=\"mailto:$ShoutPart\">E-Mail</a>]";
      } elseif ((eregi("\.(us|tv|cc|ws|ca|de|jp|ro|be|fm|ms|tc|ph|dk|st|ac|gs|vg|sh|kz|as|lt|to)", substr("$ShoutPart", -3,3))) OR (eregi("\.(com|net|org|mil|gov|biz|pro|xxx)", substr("$ShoutPart", -4,4))) OR (eregi("\.(info|name|mobi)", substr("$ShoutPart", -5,5))) OR (eregi("\.(co\.uk|co\.za|co\.nz|co\.il)", substr("$ShoutPart", -6,6)))) {
         if (((!is_user($user)) AND ($conf['urlanononoff'] == "no")) OR ((is_user($user)) AND ($conf['urlonoff'] == "no"))) { $ShoutError = ""._URLNOTALLOWED.""; break; }
         $ShoutPart = "http://" . $ShoutPart;
         $ShoutNew[$i] = "[<a rel=\"nofollow\" target=\"_blank\" href=\"$ShoutPart\">URL</a>]";
      } elseif (strlen(html_entity_decode($ShoutPart, ENT_QUOTES)) > 21) {
         $ShoutNew[$i] = htmlspecialchars(wordwrap(html_entity_decode($ShoutPart, ENT_QUOTES), 21, " ", 1), ENT_QUOTES);

         $ShoutNew[$i] = str_replace("[ b]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[b ]", " [b]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ b]", "[/b] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/b ]", "[/b] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ i]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[i ]", " [i]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ i]", "[/i] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/i ]", "[/i] ",$ShoutNew[$i]);

         $ShoutNew[$i] = str_replace("[ u]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[u ]", " [u]",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[ /u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/ u]", "[/u] ",$ShoutNew[$i]);
         $ShoutNew[$i] = str_replace("[/u ]", "[/u] ",$ShoutNew[$i]);
      } else { $ShoutNew[$i] = $ShoutPart; }
      $i++;
   }
   if ($ShoutError == "") { $ShoutComment = implode(" ",$ShoutNew); }

   //Smilies from database
   $ShoutArrayReplace = explode(" ",$ShoutComment);
   $ShoutArrayScan = $ShoutArrayReplace;
   $sql = "select * from ".$prefix."_shoutbox_emoticons";
   $eresult = $db->sql_query($sql);
   while ($emoticons = $db->sql_fetchrow($eresult)) {
      $i = 0;
      foreach($ShoutArrayScan as $ShoutPart) {
         if ($ShoutPart == $emoticons['text']) { $ShoutArrayReplace[$i] = $emoticons['image']; }
         $i++;
      }
   }
   $ShoutComment = implode(" ",$ShoutArrayReplace);

   //do name test then error if on list
   if($conf['nameblock'] == "yes"){
      $sql = "select * from ".$prefix."_shoutbox_nameblock";
      $nameresult = $db->sql_query($sql);
      while ($badname = $db->sql_fetchrow($nameresult)){
         if($username == $badname['name']) {
            $ShoutError = ""._BANNEDNICK."";
         }
      }
   }

   // check for anonymous users cloning/ghosting registered users' nicknames
   c o o k i edecode($user);
   if (!is_user($user) && ($username) && $username != "Anonymous") {
      $sql = "select * from ".$prefix."_users where username='$username'";
      $nameresult = $db->sql_query($sql);
      $row = $db->sql_fetchrow($nameresult);
      if ($row) {
         $ShoutError = ""._NOCLONINGNICKS."";
      }
   }

   //look for bad words, then censor them.
   if($conf['censor'] == "yes") {
      // start Anonymous nickname censor check here. If bad, replace bad nick with 'Anonymous'
      if (!is_user($user) && ($username) && $username != "Anonymous") {
         $sql = "select * from ".$prefix."_shoutbox_censor";
         $cresult = $db->sql_query($sql);
         while ($censor = $db->sql_fetchrow($cresult)) {
            if ($username != 'Anonymous') {
               $one = strtolower($censor['text']);
               $usernameL = strtolower($username);
               if (stristr($usernameL, $one) !== false) {
                  $username = "Anonymous";
               }
            }
         }
      }
      // Censor of posting text
      $ShoutArrayReplace = explode(" ",$ShoutComment);
      $ShoutArrayScan = $ShoutArrayReplace;
      $sql = "select * from ".$prefix."_shoutbox_censor";
      $cresult = $db->sql_query($sql);
      while ($censor = $db->sql_fetchrow($cresult)) {
         $i = 0;
         foreach($ShoutArrayScan as $ShoutPart) {
            $ShoutPart = strtolower($ShoutPart);
            $censor['text'] = strtolower($censor['text']);
            if ($ShoutPart == $censor['text']) { $ShoutArrayReplace[$i] = $censor['replacement']; }
            $i++;
         }
      }
      $ShoutComment = implode(" ",$ShoutArrayReplace);

      /*
      // Phrase censor - Needs work before implementing
      $sql = "select * from ".$prefix."_shoutbox_emoticons";
      $eresult = $db->sql_query($sql);
      while ($emoticons = $db->sql_fetchrow($eresult)) {
         $ShoutComment = str_replace($emoticons['text'],$emoticons['image'],$ShoutComment);
      }
      */
   }

   // duplicate posting checker. stops repeated spam attacks
   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT 5";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      if ($row['comment'] == $ShoutComment) {
         $ShoutError = ""._DUPLICATESHOUT."";
      }
   }

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
         $ShoutError = ""._ONLYREGISTERED2."";
   }

   if (!$ShoutError) {
      $sql = "select * from ".$prefix."_shoutbox_date";
      $resultD = $db->sql_query($sql);
      $rowD = $db->sql_fetchrow($resultD);

      // Special thanks to JRSweets for tipping me off to the timestamp option in date()
      if ($conf['timeOffset'] == 0) {
         $day = date("$rowD[date]");
         $time = date("$rowD[time]");
      } elseif (strstr($conf['timeOffset'], '+')) {
         $sbTimeMultiplier = str_replace('+', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp + $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp + $sbTimeOffset));
      } else {
         $sbTimeMultiplier = str_replace('-', '', $conf['timeOffset']);
         $sbTimeOffset = $sbTimeMultiplier * 3600;
         $sbTimeTemp = time();
         $time = date("$rowD[time]", ($sbTimeTemp - $sbTimeOffset));
         $day = date("$rowD[date]", ($sbTimeTemp - $sbTimeOffset));
      }

      $currentTime = time();

      $sql = "INSERT INTO ".$prefix."_shoutbox_shouts (id,name,comment,date,time,ip,timestamp) VALUES ('0','$username','$ShoutComment','$day','$time','$uip','$currentTime')";
      $db->sql_query($sql);

      // if v7.0 of nuke or higher, add points earned per shout
      $sqlVer = "select * from ".$prefix."_config";
      $resultVer = $db->sql_query($sqlVer);
      $confVer = $db->sql_fetchrow($resultVer);
      if (is_user($user) AND $confVer['Version_Num'] >= '7.0' AND $conf['pointspershout'] > 0) {
         $sqlP = "select user_id,points from ".$prefix."_users WHERE username='$username'";
         $resultP = $db->sql_query($sqlP);
         $userP = $db->sql_fetchrow($resultP);
         $userPoints = $userP['points'] + $conf['pointspershout'];
         $sqlP = "UPDATE ".$prefix."_users set points='$userPoints' where user_id='$userP[user_id]'";
         $db->sql_query($sqlP);
      }

      $PreviousShoutComment = "";
      $PreviousComment = "";
   } else {
      if ($username != ""._NAME."") {
         $PreviousUsername = $username;
      }
      if ($PreviousShoutComment != ""._SB_MESSAGE."") {
         $PreviousComment = $PreviousShoutComment;
      }
   }

   }

   //Display Content From here on down

   if (!is_user($user) && ($username) && $username != "Anonymous") { $username = "Anonymous"; }

   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_theme_images WHERE themeName='$ThemeSel'";
   $result = $db->sql_query($sql);
   $themeRow = $db->sql_fetchrow($result);

   if ($themeRow['blockBackgroundImage'] != '' AND file_exists("modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]")) {
      $showBackground = 'yes';
   } else {
      $showBackground = 'no';
   }

   if (file_exists("modules/Shout_Box/images/up/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $up_img = "modules/Shout_Box/images/up/$themeRow[blockArrowColor]";
   } else {
      $up_img = "modules/Shout_Box/images/up/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/down/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $down_img = "modules/Shout_Box/images/down/$themeRow[blockArrowColor]";
   } else {
      $down_img = "modules/Shout_Box/images/down/Black.gif";
   }
   if (file_exists("modules/Shout_Box/images/pause/$themeRow[blockArrowColor]") AND $themeRow['blockArrowColor'] != '') {
      $pause_img = "modules/Shout_Box/images/pause/$themeRow[blockArrowColor]";
   } else {
      $pause_img = "modules/Shout_Box/images/pause/Black.gif";
   }

   $sql = "select * from ".$prefix."_shoutbox_shouts order by id DESC LIMIT $conf[number]";
   $result = $db->sql_query($sql);

   // Top half

   // shout error reporting
   $top_content = "";
   if ($ShoutError) {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\"><tr><td style=\"background-color: #FFFFE1;\"><b>"._SB_NOTE.":</b> $ShoutError</td></tr></table>";
   }

   // table that holds the scrolling area
   if ($showBackground == 'yes') {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: url(modules/Shout_Box/images/background/$themeRow[blockBackgroundImage]);\" height=\"$conf[height]\">\n";
   } else {
      $top_content .= "<table style=\"cursor: text;\" width=\"100%\" border=\"$SBborder\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"$conf[height]\">\n";
   }
   // end top content

   // table of the actual scrolling content
   if ($showBackground == 'yes') {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"5\">";
   } else {
      $mid_content = "<table style=\"table-layout: fixed; width: 100%;\" border=\"0\" align=\"left\" cellspacing=\"0\" cellpadding=\"2\">";
   }
   $flag = 1;
   $ThemeSel = get_theme();
   $sql = "select * from ".$prefix."_shoutbox_themes WHERE themeName='$ThemeSel'";
   $resultT = $db->sql_query($sql);
   $rowColor = $db->sql_fetchrow($resultT);

   if (is_user($user)) {
      $username = $c o o k i e[1];
      if ($username != '') {
         $sqlF = "SELECT user_timezone, user_dateformat from ".$prefix."_users WHERE username='$username'";
         $resultF = $db->sql_query($sqlF);
         $userSetup = $db->sql_fetchrow($resultF);
      }
   }
   $sql = "select * from ".$prefix."_shoutbox_date";
   $resultD = $db->sql_query($sql);
   $rowD = $db->sql_fetchrow($resultD);

   // Sticky shouts
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=0";
   $stickyResult = $db->sql_query($sql);
   $stickyRow0 = $db->sql_fetchrow($stickyResult);
   $sql = "select * from ".$prefix."_shoutbox_sticky where stickySlot=1";
   $stickyResult = $db->sql_query($sql);
   $stickyRow1 = $db->sql_fetchrow($stickyResult);

   if ($stickyRow0) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor1];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow0[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow0['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow0['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow0['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   if ($stickyRow1) {
      if ($showBackground == 'yes') {
         $mid_content .= "<tr><td>";
      } else {
         if ($flag == 1) { $flag = 2; }
         elseif ($flag == 2) { $flag = 1; }
         $mid_content .= "<tr><td style=\"background-color: $rowColor[blockColor2];\">";
      }
      $mid_content .= "<b>"._SB_ADMIN.":</b> $stickyRow1[comment]";
      if ($conf['date'] == "yes") {
         if (is_user($user)) {
            // add time adjustment for following user's timezone
            $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
            $displayTime = $displayTime * 3600;
            $newTimestamp = $stickyRow1['timestamp'] + $displayTime;
            $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
            $mid_content .= "<br />$unixTime";
         } else {
            $unixDay = date("$rowD[date]", $stickyRow1['timestamp']);
            $unixTime = date("$rowD[time]", $stickyRow1['timestamp']);
            $mid_content .= "<br />$unixDay&nbsp;$unixTime";
         }
      }
      $mid_content .= "</td></tr>";
   }
   // end sticky shouts

   $i = 0;
   while ($row = $db->sql_fetchrow($result)) {
      if ($flag == 1) { $bgcolor = $rowColor['blockColor1']; }
      if ($flag == 2) { $bgcolor = $rowColor['blockColor2']; }
      if ($showBackground == 'yes') {
         $tempContent[$i] = "<tr><td>";
      } else {
         $tempContent[$i] = "<tr><td style=\"background-color: $bgcolor;\">";
      }
      $ShoutComment = str_replace('src=', 'src="', $row['comment']);
      $ShoutComment = str_replace('.gif>', '.gif" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.jpg>', '.jpg" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.png>', '.png" alt="" />', $ShoutComment);
      $ShoutComment = str_replace('.bmp>', '.bmp" alt="" />', $ShoutComment);
      $ShoutComment = str_replace("http:", "".$preURL."http:", $ShoutComment);
      $ShoutComment = str_replace("ftp:", "".$preURL."ftp:", $ShoutComment);

      // BB code [b]word[/b] [i]word[/i] [u]word[/u]
      if ((eregi("[b]", $ShoutComment)) AND (eregi("[/b]", $ShoutComment)) AND (substr_count("$ShoutComment","[b]") == substr_count("$ShoutComment","[/b]"))) {
         $ShoutComment = eregi_replace("\[b\]","<span style=\"font-weight: bold\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/b\]","</span>","$ShoutComment");
      }
      if ((eregi("[i]", $ShoutComment)) AND (eregi("[/i]", $ShoutComment)) AND (substr_count("$ShoutComment","[i]") == substr_count("$ShoutComment","[/i]"))) {
         $ShoutComment = eregi_replace("\[i\]","<span style=\"font-style: italic\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/i\]","</span>","$ShoutComment");
      }
      if ((eregi("[u]", $ShoutComment)) AND (eregi("[/u]", $ShoutComment)) AND (substr_count("$ShoutComment","[u]") == substr_count("$ShoutComment","[/u]"))) {
         $ShoutComment = eregi_replace("\[u\]","<span style=\"text-decoration: underline\">","$ShoutComment");
         $ShoutComment = eregi_replace("\[\/u\]","</span>","$ShoutComment");
      }
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$sqlZ = "select * from ".$prefix."_users where username='$row[name]'";
$nameresultN = $db->sql_query($sqlZ);
$rowZ = $db->sql_fetchrow($nameresultZ);
$color = $rowZ['user_color_gc'];
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/

      if ($username == "Anonymous") {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
      }
      else {
         // check to see if nickname is a user in the DB
         $sqlN = "select * from ".$prefix."_users where username='$row[name]'";
         $nameresultN = $db->sql_query($sqlN);
         $rowN = $db->sql_fetchrow($nameresultN);
/********************************************* ***/
/* MOD - Advanced Username Color START */
/************************************************/
$color = $rowN['user_color_gc'];
/******************************************* *****/
/* MOD - Advanced Username Color END */
/************************************************/
         if (($rowN) AND ($row['name'] != "Anonymous")) {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$row[name]\" target=\"_top\"><font color=$color><b>$row[name]:</b></font></a> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
} else {
/************************************************/
/* MOD - Advanced Username Color START */
/************************************************/
$tempContent[$i] .= "<font color=$color><b>$row[name]:</b></font> $ShoutComment";
/************************************************/
/* MOD - Advanced Username Color END */
/************************************************/
         }
      }
      if ($conf['date'] == "yes") {
         if ($row['timestamp'] != '') {
            // reads unix timestamp and formats it to the viewer's timezone
            if (is_user($user)) {
               // time adjustment for following user's timezone
               $displayTime = $userSetup['user_timezone'] - $conf['serverTimezone'];
               $displayTime = $displayTime * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixTime = date("$userSetup[user_dateformat]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixTime";
            } else {
               // adjustmet for timezone offset
               $displayTime = $conf['timeOffset'] * 3600;
               $newTimestamp = $row['timestamp'] + $displayTime;
               $unixDay = date("$rowD[date]", $newTimestamp);
               $unixTime = date("$rowD[time]", $newTimestamp);
               $tempContent[$i] .= "<br />$unixDay&nbsp;$unixTime";
            }
         } else {
            $tempContent[$i] .= "<br />$row[date]&nbsp;$row[time]";
         }
      }
      $tempContent[$i] .= "</td></tr>";
      if ($flag == 1) { $flag = 2; }
      elseif ($flag == 2) { $flag = 1; }
      $i++;
   }
   // Reversing the posts
   if ($conf['reversePosts'] == "no") {
      for ($j = 0; $j < $conf['number']; $j++) {
         $mid_content .= $tempContent[$j];
      }
   } else {
      for ($j = $conf['number']; $j >= 0; $j = $j - 1) {
         $mid_content .= $tempContent[$j];
      }
   }
   // You may not remove or edit this copyright!!! Doing so violates the GPL license.
   $mid_content .= "<tr><td align=\"right\"><a title=\"Free scripts!\" target=\"_blank\" href=\"http://www.ourscripts.net\"><span style=\"font-size: 9;\">Shout Box &copy;</span></a></td></tr></table>";
   // end copyright.
   // end mid content
   // start bottom content $bottom_content

   $bottom_content = "</td></tr></table>\n";

   // bottom half

   if ($conf['anonymouspost'] == "no" && $username == "Anonymous") {
      $bottom_content .= "<div style=\"padding: 1px;\" align=\"center\" class=\"content\"><a href=\"modules.php?name=Shout_Box\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</div><div style=\"padding: 1px; text-align: center;\" class=\"content\"><br />"._ONLYREGISTERED." <a href=\"modules.php?name=Your_Account\"  target=\"_top\">"._SHOUTLOGIN."</a> "._OR." <a href=\"modules.php?name=Your_Account&op=new_user\">"._CREATEANACCT."</a>.</div>";
   } else {
      $bottom_content .= "<form name=\"shoutform1\" method=\"post\" action=\"\" style=\"margin-bottom: 0px; margin-top: 0px\">";
      $bottom_content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">";
      $bottom_content .= "<tr><td align=\"center\"><a href=\"modules.php?name=Shout_Box\" target=\"_top\">"._SHOUTHISTORY."</a>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=4\" onmouseout=\"SBspeed=1\"><img src=\"$up_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: hand;\" onmouseover=\"SBspeed=1-5\" onmouseout=\"SBspeed=1\"><img src=\"$down_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "&nbsp;<span style=\"cursor: wait;\" onmouseover=\"SBspeed=0\" onmouseout=\"SBspeed=1\"><img src=\"$pause_img\" border=\"0\" alt=\"\" width=\"9\" height=\"5\" /></span>";
      $bottom_content .= "</td></tr>\n";
      // Start smilie Drop-Down Code
      $messageDefinition = ""._SB_MESSAGE."";

      if (eregi("MSIE(.*)", $_SERVER['HTTP_USER_AGENT']) || eregi("Konqueror/3(.*)", $_SERVER['HTTP_USER_AGENT']) || (eregi("Opera(.*)", $_SERVER['HTTP_USER_AGENT']))) {
         $ShoutNameWidth = $conf['textWidth'];
         $ShoutTextWidth = $conf['textWidth'];
      } else {
         // Firefox, Mozilla, NS, and any others.
         $ShoutNameWidth = $conf['textWidth'] - 4;
         $ShoutTextWidth = $conf['textWidth'] - 4;
      }
      if ($conf['anonymouspost'] == "yes" && $username == "Anonymous") {
         if ($PreviousUsername) { $boxtext = $PreviousUsername; } else { $boxtext = ""._NAME.""; }
         $bottom_content .= "<tr><td align=\"center\"><input type=\"text\" name=\"shoutuid\" size=\"$ShoutNameWidth\" value=\"$boxtext\" maxlength=\"25\" onfocus=\"if ( this.value == '"._NAME."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._NAME."' }\" /></td></tr>\n";
      }
      if ($PreviousComment) { $boxtext = $PreviousComment; } else { $boxtext = ""._SB_MESSAGE.""; }
      $bottom_content .= "<tr><td align=\"center\" nowrap=\"nowrap\"><input type=\"text\" name=\"ShoutComment\" size=\"$ShoutTextWidth\" value=\"$boxtext\" maxlength=\"2500\" onfocus=\"if ( this.value == '"._SB_MESSAGE."' ) { this.value=''; }\" onblur=\"if (this.value == '') { this.value='"._SB_MESSAGE."' }\" /></td></tr>";

      $bottom_content .= "<tr><td align=\"center\"><input type=\"hidden\" name=\"ShoutSubmit\" value=\"ShoutPost\" />";

      $bottom_content .= "<div id=\"smilies_hide\" style=\"display: block;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('show'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span></div></div>";

      $bottom_content .= "<div id=\"smilies_show\" style=\"display: none;\"><div class=\"content\"><input type=\"submit\" name=\"button\" value=\""._SHOUT."\" />&nbsp;<span onclick=\"changeBoxSize ('hide'); return false;\"><input type=\"button\" value=\""._SMILIES."\" /></span><br /><br />";

      $sql = "select distinct image from ".$prefix."_shoutbox_emoticons";
      $nameresult1 = $db->sql_query($sql);
      $flag = 1;
      $second = 0;
      while ($return = $db->sql_fetchrow($nameresult1)){
         $sql = "select * from ".$prefix."_shoutbox_emoticons where image='$return[0]' limit 1";
         $nameresult = $db->sql_query($sql);
         while ($emoticons = $db->sql_fetchrow($nameresult)){
            $emoticons[3] = str_replace('>', '', $emoticons['image']);
            $emoticons[3] = str_replace('src=', 'src="', $emoticons[3]);
            $bottom_content .= "<span style=\"cursor: hand;\" onclick=\"DoSmilie(' $emoticons[text] ','$messageDefinition');\">$emoticons[3]\" border=\"0\" alt=\"\" /></span>&nbsp;";
            if ($flag == $conf['smiliesPerRow']) {
               $bottom_content .="<br /><br />\n";
               $flag = 1;
               continue;
            }
            $flag++;
         }
      }
      $bottom_content .= "</div></div></td></tr>\n";

      $bottom_content .= "</table></form>\n";
   }

   } else {
      $top_content = "<p class=\"title\" align=\"center\"><b>";
      $mid_content = ""._YOUAREBANNED."";
      $bottom_content = "</b></p>";
   }

   $sql = "select * from ".$prefix."_shoutbox_conf";
   $resultsize = $db->sql_query($sql);
   $rowsize = $db->sql_fetchrow($resultsize);
   $ShoutMarqueeheight = $rowsize['height'];

}

switch($ShoutSubmit) {
   default:
   ShoutBox($ShoutSubmit, $prefix, $ShoutComment, $db, $user, $c o o k i e, $shoutuid);
   break;
}

?>
<script type="text/j a v a s c r i p t">
var SBheight = '<?php echo "$ShoutMarqueeheight"; ?>';
var SBcontent = new String('<?php echo "$mid_content"; ?>');
</script>
<script type="text/j a v a s c r i p t" src="shoutbox.js"></script>
<?php
echo "  <fieldset style=\"border-color: #70c6ff; border-style: solid; border-width : 1px;\">
   <legend><font color=\"boxcontent\">Mini Sohbet</font></legend>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">";
echo "<tr>";
echo "<td width=\"100%\">$top_content\n";
echo "<div align=\"center\"><script type=\"text/j a v a s c r i p t\">document.write(SBtxt);</script></div>\n";
echo "$bottom_content</td>\n";
echo "</tr>";
echo "</table></fieldset>";


?>


kodların içindeki tema yolunu değişmeyi unutmayın


burada neyi anlamadın ramx 2 dosya oluşturacaksın içinede bnenim verdiğim kodları yapıştırıp dediğim yerlere atacaksın hepsi bu. Yinede yapamazsan eklerim dosyaları
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
berzankocak
Mesaj: 300+
Mesaj: 300+





Kayıt: May 26, 2007
Mesajlar: 468

MesajTarih: 2008-05-02, 11:51:14    Mesaj konusu: Alıntıyla Cevap Gönder

ARKADAŞLAR BEN EKLEDİM HERŞEY İYİDE AMA BILOKTA YAZILAR ÇIK MIYOR YERDIM LÜTFEN
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
berzankocak
Mesaj: 300+
Mesaj: 300+





Kayıt: May 26, 2007
Mesajlar: 468

MesajTarih: 2008-05-02, 11:54:58    Mesaj konusu: Alıntıyla Cevap Gönder

ramx :
KARDEŞ BEN İLK SORUNUMU HALLETTİM DE
kendi yazdığım mesajların sayfa yenilemeden anında gözükmesi sağladık. Coşkun'un katkılarıyla.
Umarım birileri dahada geliştirerek karşı tarafın gönderdiği mesajlarıda anında ekrana yazdırabilir.

BUNU NASIL YAPACAGIMI ANLAMADIM

ARKADASIM İLSORUNUN BLOKTA GÖRÜNMÜYORDU SANIRIM NASIL HALETİN SÖMYLESEN BENDEDE O SORUN VARDA
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ramx
Mesaj: 200+
Mesaj: 200+





Kayıt: Feb 08, 2008
Mesajlar: 246

MesajTarih: 2008-05-02, 14:57:14    Mesaj konusu: Alıntıyla Cevap Gönder

shoutbox.js dosyasını ana dizene atmamışım ondan olmuş sonradan aklıma geldi şimdi çalışıyo
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
ramx
Mesaj: 200+
Mesaj: 200+





Kayıt: Feb 08, 2008
Mesajlar: 246

MesajTarih: 2008-05-02, 14:59:41    Mesaj konusu: Alıntıyla Cevap Gönder

eger siteni ftp içinde ayrı bir klasör açıpo klasörüniçine kurduysan shoutbox.js bunuda o klasörü ana dizin miş gibi düşünüp o klasöre atacaksın
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
berzankocak
Mesaj: 300+
Mesaj: 300+





Kayıt: May 26, 2007
Mesajlar: 468

MesajTarih: 2008-05-02, 15:25:37    Mesaj konusu: Alıntıyla Cevap Gönder

ramx :
shoutbox.js dosyasını ana dizene atmamışım ondan olmuş sonradan aklıma geldi şimdi çalışıyo

ana dizine amıştım ama yinede ılmıyor bilimiyorum neden arkjadaslar YARDIM bekliyorum
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-05-02, 15:30:25    Mesaj konusu: Alıntıyla Cevap Gönder

berzankocak :
ramx :
shoutbox.js dosyasını ana dizene atmamışım ondan olmuş sonradan aklıma geldi şimdi çalışıyo

ana dizine amıştım ama yinede ılmıyor bilimiyorum neden arkjadaslar YARDIM bekliyorum


berzan anlattıklarımı tekrar bir incele istersen bir yerlerde eksiklik yapmış olabilirsin. Olmaz ise akşama yaparız beraber :)
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
berzankocak
Mesaj: 300+
Mesaj: 300+





Kayıt: May 26, 2007
Mesajlar: 468

MesajTarih: 2008-05-02, 16:17:23    Mesaj konusu: Alıntıyla Cevap Gönder

mersoy yok yapamadım akşam beraber yaplım herkese teşekürler
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok manşet haber bloğu kahta1145 Ücret Karşılığı 4 2010-06-24, 11:41:30 Son Mesajı Görüntüle
Yeni mesaj yok Şeritli resimler Bloğu DursunKaptan Php Nuke Sorunlarınız 7 2010-06-21, 16:11:56 Son Mesajı Görüntüle
Yeni mesaj yok İstediğiniz bir bloğu başka sitede ya... ekolcu Php Nuke Blocklar 0 2010-05-29, 19:42:09 Son Mesajı Görüntüle
Yeni mesaj yok Bugün Doğan Üyeler Bloğu askinelifhali Php Nuke Blocklar 6 2010-05-27, 21:06:25 Son Mesajı Görüntüle
Yeni mesaj yok userinfo bloğu çalışmıyor.. etimonster Php Nuke Blocklar 2 2010-05-19, 14:33:50 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright