Shoutbox 1.1.6em

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

Shoutbox 1.1.6em

İleti Yunus Çengel 15.01.2006, 14:46

shoutbox_1.1.6em_294 modunu kurdum. Fakat yazı yazılan kısmın alta gelmesini, mesaj bölümünün biraz daha büyük olmasını ve eski mesajların 1 saat sonra silinmesini veyahut sadece admin görebileceği bir buton vaktinden önce mesajların otomatik silinebilmesini sağlamak mümkün mü?
Eklentiler
shoutbox_1.1.6em_294.zip
shoutbox 1.1.6em
(31.79 KiB) 1014 defa indirildi
Kullanıcı avatarı
Yunus Çengel
Üye
Üye
 
İleti: 133
Kayıt: 26.11.2005, 14:55

Cvp: Shoutbox 1.1.6em

İleti exados 15.01.2006, 16:50

sevgili yunus ,o surumde bunu yapman mumkun degil ;acikcasi bu konu phpbbstyles dada tartisildi ve extra permissions mod kurun olur demis bir arkadas orada onu da denedim oda bir ise yaramadi farkli bir surumu arayacaksin yalniz onunda ismi Shoutbox :oops:

bu arada ben bunu viewtopicbody.tpl'ye eklemek istersem bunu yapabilirmiyim ,acikcasi denedim ancak olmadi herhangi bir yazı icerik falan cikmadan sadece bombos beyaz bir tablo cikti ,sadece indexbody.tpl ye mi eklemek zorundayiz
Kullanıcı avatarı
exados
Üye
Üye
 
İleti: 142
Kayıt: 11.01.2006, 17:05

Cvp: Shoutbox 1.1.6em

İleti Yunus Çengel 15.01.2006, 18:59

Dostum ben en son sürümü kurdum sanırım daha başak sürümü var mı?

Bu arada modda bulunan
Kod: Tümünü seç
#
#-----[ FIND ]------------------------------------------------
#
$tables = array(

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add - Fully integrated shoutbox MOD
$tables[] = 'shout';
// End add - Fully integrated shoutbox MOD

#

kısmında
Kod: Tümünü seç
// Start add - Fully integrated shoutbox MOD
$tables[] = 'shout',
// End add - Fully integrated shoutbox MOD
olacak dikkatli olun yoksa mod çalışmıyor...
Kullanıcı avatarı
Yunus Çengel
Üye
Üye
 
İleti: 133
Kayıt: 26.11.2005, 14:55

Cvp: Shoutbox 1.1.6em

İleti exados 15.01.2006, 19:12

Kod: Tümünü seç
$tables = array('auth_access', 'banlist', .......);
                  // Start add - Fully integrated shoutbox MOD
                  $tables[] = 'shout';
                  // End add - Fully integrated shoutbox MOD


o kısım bende bole
Kullanıcı avatarı
exados
Üye
Üye
 
İleti: 142
Kayıt: 11.01.2006, 17:05

İleti Yunus Çengel 15.01.2006, 19:25

Direk
$tables = array(' $tables[] = 'shout'; eklersen hata veriyor bende , değiştirince sorun çözüldü....
Kullanıcı avatarı
Yunus Çengel
Üye
Üye
 
İleti: 133
Kayıt: 26.11.2005, 14:55

Cvp: Shoutbox 1.1.6em

İleti exados 15.01.2006, 19:27

ama sen de benimkisi gibi ekledin su yukaridaki kısmı degilmi hani yoksa
Kod: Tümünü seç
)//simple
... diemi ekledin
Kullanıcı avatarı
exados
Üye
Üye
 
İleti: 142
Kayıt: 11.01.2006, 17:05

Cvp: Shoutbox 1.1.6em

İleti exados 16.01.2006, 23:29

acaba bu modu viewonline .php yada viewtopic_body.tpl'ye eklemeyemezmiyiz cunkü anasayfada cok sırıtıyo
Kullanıcı avatarı
exados
Üye
Üye
 
İleti: 142
Kayıt: 11.01.2006, 17:05

İleti Curtis 16.01.2006, 23:49

Evet ekliyebilirisin, index.php ve index_body.tpl için yapılanların aynısını viewtopic.php ve viewtopic_body.tpl 'ye yapmayı dene..
Kullanıcı avatarı
Curtis
Üye
Üye
 
İleti: 686
Kayıt: 06.10.2005, 06:22
Konum: İstanbul

Cvp: Shoutbox 1.1.6em

İleti exados 17.01.2006, 12:41

Kod: Tümünü seç
#
#-----[ OPEN ]------------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------------
#
'FORUM_LOCKED_IMG' =>

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add - Fully integrated shoutbox MOD
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD

#
#-----[ OPEN ]------------------------------------------------
templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------------
#
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<!-- Start add - Fully integrated shoutbox MOD --> 
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline"> 
     <div class="forumline">
   <p class="row-header"><span><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></p>
   <p class="row1 gensmall"><iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true">U kunt de shoutbox niet gebruiken</iframe></p>     
</div>
</table> 
<br/> 
<!-- End add - Fully integrated shoutbox MOD --> 

#
#-----[ OPEN ]----------------------------------------------


viewonline,viewtopic.php de index.php de ki gibi belirilen kodlar('FORUM_LOCKED_IMG' =>) yok bir ara ilgilenebilecek arkadas deneyebilirse yada yol gosterebilirse cok yararlı olur ..bu arada bu modda aslinda report post hack yada bantron ile desteklense cok yararlı olurdu
Kullanıcı avatarı
exados
Üye
Üye
 
İleti: 142
Kayıt: 11.01.2006, 17:05

İleti Curtis 17.01.2006, 12:49

Sadece deneme, dene, ama yedek al ;)


:file: viewtopic.php

BUL

Kod: Tümünü seç
//
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
// then get it's value, find the number of topics with dates newer than it (to properly
// handle pagination) and alter the main query
//


ÖNCESİNE EKLE

Kod: Tümünü seç
// Start add - Fully integrated shoutbox MOD
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD



:file: templates/TEMA_ADINIZ/viewtopic_body.tpl

BUL - Eğer Shoutbox'ı Yukarıya Eklemek İstiyorsan

Kod: Tümünü seç
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall"><b>{PAGINATION}</b><br />
     &nbsp; </span></td>
  </tr>
</table>


SONRASINA EKLE

Kod: Tümünü seç
<!-- Start add - Fully integrated shoutbox MOD --> 
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline"> 
     <div class="forumline">
   <p class="row-header"><span><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></p>
   <p class="row1 gensmall"><iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true">U kunt de shoutbox niet gebruiken</iframe></p>     
</div>
</table> 
<br/> 
<!-- End add - Fully integrated shoutbox MOD -->
Kullanıcı avatarı
Curtis
Üye
Üye
 
İleti: 686
Kayıt: 06.10.2005, 06:22
Konum: İstanbul

İleti Yunus Çengel 20.01.2006, 02:04

http://www.siteismi/phpbb2/shoutbox_max.php dosyasındaki forum yazları şeklinde çıkan eski chat yazılarını elle tek tek silmek çok uzun sürüyor bunun kısa yolu yok mudur?
Kullanıcı avatarı
Yunus Çengel
Üye
Üye
 
İleti: 133
Kayıt: 26.11.2005, 14:55

İleti Bodyguard 04.04.2006, 08:49

şimdi kuruyorum umarım çalışır çok teşekkürler
Kullanıcı avatarı
Bodyguard
Üye
Üye
 
İleti: 18
Kayıt: 02.02.2006, 09:11
Konum: İstanbul

İleti sahip 05.04.2006, 12:40

Yunus Çengel yazdı:http://www.siteismi/phpbb2/shoutbox_max.php dosyasındaki forum yazları şeklinde çıkan eski chat yazılarını elle tek tek silmek çok uzun sürüyor bunun kısa yolu yok mudur?


PhpMyAdminden dene daha rahat edersin tek tek zor oluyor...
Kullanıcı avatarı
sahip
Üye
Üye
 
İleti: 18
Kayıt: 01.04.2006, 12:44

İleti tasy 31.05.2006, 12:59

ben shoot box modunu yükledim. shoutbox_db_update.php açınca aşağıdaki şeyi gösteriyor.


This list is a result of the SQL queries needed for this Mod


fully integrated shoutbox
[Already added] line: 1 , CREATE TABLE phpbb_shout ( shout_id MEDIUMINT(8) UNSIGNED NOT NULL auto_increment, shout_username VARCHAR(25) NOT NULL, shout_user_id MEDIUMINT(8) NOT NULL, shout_group_id MEDIUMINT(8) NOT NULL, shout_session_time INT(11) NOT NULL, shout_ip CHAR(8) NOT NULL, shout_text TEXT NOT NULL, shout_active MEDIUMINT(8) NOT NULL, enable_bbcode TINYINT (1) NOT NULL, enable_html TINYINT (1) NOT NULL, enable_smilies TINYINT (1) NOT NULL, enable_sig TINYINT (1) NOT NULL, shout_bbcode_uid VARCHAR(10) NOT NULL, INDEX (shout_id) )
[Already added] line: 2 , INSERT INTO phpbb_config (config_name, config_value) VALUES ('prune_shouts', '0')


yoksa yükleyememişmiyim modu... daha yeniyim kusura bakmaın...
tasy
Üye
Üye
 
İleti: 6
Kayıt: 30.05.2006, 16:10

İleti fikretba 12.07.2006, 20:18

sahip yazdı:
Yunus Çengel yazdı:http://www.siteismi/phpbb2/shoutbox_max.php dosyasındaki forum yazları şeklinde çıkan eski chat yazılarını elle tek tek silmek çok uzun sürüyor bunun kısa yolu yok mudur?


PhpMyAdminden dene daha rahat edersin tek tek zor oluyor...


test etmedim ama şöyle bir şey buldum
Kod: Tümünü seç
<?php
/***************************************************************************
*                        admin_truncate_shoutbox.php
*                            -------------------
*
*      Version         : 1.0.0
*      Email         : sophiia@users.sourceforge.net
*      Copyright      : Sophiia 2005
*
***************************************************************************/

/***************************************************************************
*
*   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; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', 1);

if(   !empty($setmodules) )
{
   $file = basename(__FILE__);
   $module['General']['Empty Shoutbox'] = $file;
   return;
}

//
// Let's set the root dir for phpBB
//
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('pagestart.' . $phpEx);
//
//check for userlevel
//
if( !$userdata['session_logged_in'] )
{
   header('Location: ' . append_sid("login.$phpEx?redirect=admin/admin_truncate_shoutbox.$phpEx", true));
}

if( $userdata['user_level'] != ADMIN )
{
   message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
//end check

//
// Begin erasing the stuff in the Shoutbox by Sophiia
//

$page_title = 'Updating the database and Erasing contents of the Shoutbox';

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database and Erasing contents of the Shoutbox</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "TRUNCATE TABLE `" . $table_prefix . "shout`";

for( $i = 0; $i < count($sql); $i++ )
{
   if( !$result = $db->sql_query ($sql[$i]) )
   {
      $error = $db->sql_error();

      echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
   }
   else
   {
      echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successful</b></font></li><br />';
   }
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>Truncate of table is complete</th></tr><tr><td><span class="genmed"><br /></span></td></table>';

include('page_footer_admin.' . $phpEx);
?>
fikretba
Üye
Üye
 
İleti: 16
Kayıt: 02.07.2006, 13:24
Konum: İstanbul


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron