phpBB Türkiye - phpBB3 Türkçe destek ve geliştirme

İçeriği atla

profesyonel phpBB3 hizmetleri

Sitemiz sadece phpBB 3.0 sürümüne destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.

Simple Hide Bbcode Addon'unda hata (Admins&Moderators Read)

Simple Hide Bbcode Addon'unda hata (Admins&Moderators Read)

İleti CitLemBiK 30 Haz 2008 00:07

phpBB3 sürümü: PhpBB 3.0.2
Panonun tam adresi: http://www.bizimpencere.com
Dil paketini indirdiğiniz adres: http://www.phpbbturkiye.net
Eklentiler / Temalar: Liste asagida...


Eklentilerin indirme adresi: Burasi
İşletim sistemi, php ve mysql sürümünüz: Windows vista Ultimate , PHP Version 5.2.6 , 5.0.51a

Sorun çıkan sayfa URL adresi:

http://www.bizimpencere.com/ucp.php?i=pm&mode=compose

Soru/hata tanımlamaları:

Hide bbcode'yi kurdugum zaman sorun yoktu Admins & Moderators Read Hidden Content add-on'unu kurduktan sonra , özel mesaj yazma panelinde su hata olusuyor (cache ve debug acikken)

Kod: Tümünü seç
[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_pm_compose.php on line 347: Undefined variable: post
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3663: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2961)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3665: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2961)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3666: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2961)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3667: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2961)


Tabiiki fonksiyon olarak hicbir sorun yok , sadece kod eksikliginden bahsediyor... Admins & Moderators Read Hidden Content add-on'unda includes/ucp/ucp_pm_compose.php dosyasi degisikliginden bir kod dikkatimi cekti...

Kod: Tümünü seç
if ($auth->acl_get('m_', $post['forum_id']))


Özel mesaj bölümünde forum_id cagirmamizi istemis , sanirsamki bu bir hata , hatayi asmak icinse aklima hicbir fikir gelmiyor...

Soru/hatadan önce ne değişiklik yaptınız:

Simple Hide BBcode MOD Add-on - Admins & Moderators Read Hidden Content eklentisini kurdum


Soru/hatayı gidermek için hangi yollara başvurdunuz, neler yaptınız:

Hicbirsey...

Phpbb.com'da BURADAKI sayfada yarim bucuk ingilizcemle derdimi anlatmaya calistim az önce , ya ordan , ya burdan yardim eden cikar diye düsünüyorum... :mrgreen:

Bu add-on'un komple versiyonu asagida belki karsilastirma yapmak isterseniz...

Kod: Tümünü seç
########################################################
## MOD Title: [phpBB3] Simple Hide BBcode MOD Add-on - Admins & Moderators Read Hidden Content
## MOD Author: ycl6 < ycl6@users.sourceforge.net > (Y.C. LIN) http://macphpbbmod.sourceforge.net/
## MOD Description: MOD tutorial for allowing Admins and Moderators to view hidden content without reply
## MOD Version: 0.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 3
##   posting.php
##   viewtopic.php
##   includes/ucp/ucp_pm_compose.php
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
#################################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##    Tested on phpBB 3.0.0 RC3.
##
##############################################################
## MOD History:
##
##   2007-07-28 - Version 0.0.1
##      - Initial Release for BETA testing
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
      $sql = "SELECT poster_id, topic_id
            FROM " . POSTS_TABLE . "
            WHERE topic_id = $topic_id
            AND poster_id = " . $user->data['user_id'];

      $result = $db->sql_query($sql);
      $unhide = $db->sql_affectedrows($result) ? true : false;
      $db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
   // If moderator or admin, skip reply check, auto unhide
   if ($auth->acl_get('m_', $forum_id))
   {
      $unhide = true;
   }
   else
   {
#
#-----[ AFTER, ADD ]------------------------------------------
#
   }
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
      $sql = "SELECT poster_id, topic_id
            FROM " . POSTS_TABLE . "
            WHERE topic_id = $topic_id
            AND poster_id = " . $user->data['user_id'];

      $result = $db->sql_query($sql);
      $unhide = $db->sql_affectedrows($result) ? true : false;
      $db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
   // If moderator or admin, skip reply check, auto unhide
   if ($auth->acl_get('m_', $forum_id))
   {
      $unhide = true;
   }
   else
   {
#
#-----[ AFTER, ADD ]------------------------------------------
#
   }
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_pm_compose.php
#
#-----[ FIND ]------------------------------------------
#
         $sql = "SELECT poster_id, topic_id
               FROM " . POSTS_TABLE . "
               WHERE post_id = $msg_id
               AND poster_id = " . $user->data['user_id'];

         $result = $db->sql_query($sql);
         $unhide = $db->sql_affectedrows($result) ? true : false;
         $db->sql_freeresult($result);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
      // If moderator or admin, skip reply check, auto unhide
      if ($auth->acl_get('m_', $post['forum_id']))
      {
         $unhide = true;
      }
      else
      {
#
#-----[ AFTER, ADD ]------------------------------------------
#
      }
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Yardimlariniz icin simdiden tesekkürler...

Saygi ve Sevgiler...

CitLemBiK
"Doğrular ve yanlışlar yoktur, sadece yorumlar vardır." (Wilhelm Friedrich Nietsche)
CitLemBiK
genel yetkili
genel yetkili

Kullanıcı avatarı

İleti: 665
Kayıt: 23 Oca 2008 13:27
Konum: Paderborn / Germany
İsim: Ilker Demirkaya
HTML: Orta
CSS: Başlangıç
PHP: Orta
phpBB3: İyi
Sürüm: phpBB 3.0.2

  profesyonel phpBB3 çözümleri ve web hizmetleri

Re: Simple Hide Bbcode Addon'unda hata (Admins&Moderators Read)

İleti CitLemBiK 30 Haz 2008 02:11

Deneme yanilma yoluyla sorunu BURADA cözdüm...

Kod: Tümünü seç
      if ($auth->acl_get('m_', $post['forum_id']))


kodunu

Kod: Tümünü seç
      if ($auth->acl_get('m_', $msg_id['forum_id']))


olarak degistirdim...

Mantik olarak baktim (yaniliyorda olabilirim) , özel mesajlarda post tablosu yok yani ileti tablosu , ama mesaj tablosu var , foruma yazi gönderince ileti oluyor , özel mesaj gönderince mesaj oluyor gibi...

Neyse en nihayetinde yukardaki sekilde cözdüm sorunumu...

Bilgilerinize...

Saygi ve Sevgiler..

CitlemBiK
"Doğrular ve yanlışlar yoktur, sadece yorumlar vardır." (Wilhelm Friedrich Nietsche)
CitLemBiK
genel yetkili
genel yetkili

Kullanıcı avatarı

İleti: 665
Kayıt: 23 Oca 2008 13:27
Konum: Paderborn / Germany
İsim: Ilker Demirkaya
HTML: Orta
CSS: Başlangıç
PHP: Orta
phpBB3: İyi
Sürüm: phpBB 3.0.2


Eklenti Sorunlar & Yardım


Kimler çevrimiçi

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