Arama butonu
Bu konudaki kullanıcılar: 1 misafir
4
Cevap
159
Tıklama
0
Öne Çıkarma
şu kodu php 7.1 e çevirebilir misiniz?
V
9 yıl (4663 mesaj)
Yarbay
Konu Sahibi

if ($_REQUEST['do'] == 'whatever'){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $postid;
$bbuserinfo = $this->registry->userinfo;
$postid = $_REQUEST['p'];
$hide_call = $_REQUEST['all'];
$hide_read = false;
$hide_replied = '';
$hide_thanked = '';

$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read = true;
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if( $hide_read == true){
$hide_post = $db->query_first("SELECT pagetext as 'message' FROM ". TABLE_PREFIX ."post WHERE postid='$postid'");
$hide_string = "#\[hide\](.*)\[\/hide\]#siU";
require_once(DIR . '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$hide_post['message'] = $parser->do_parse($hide_post['message'],true);
if(preg_match_all($hide_string, $hide_post['message'], $hide_match)) {
for($i=0; $i<count($hide_match[0]); $i++) {
$hide_replace[$i] ="<fieldset>".$hide_match[1][$i]."</fieldset>";
$hide_post['message']= str_replace($hide_match[0][$i],$hide_replace[$i],$hide_post['message']);
}
}
}
$ajax_on = true;
$output = $hide_post['message'];
echo "$output";
exit;
}




Umut kesmemek lazım :):)

DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.

Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.

Üye Ol Şimdi Değil



V
9 yıl (4663 mesaj)
Yarbay
Konu Sahibi

yardım lutfen



S
9 yıl (829 mesaj)
Teğmen

bu koddaki sıkıntı nedir onu açıklarsan düzeltmeye çalışırız



P
9 yıl (125 mesaj)
Teğmen

Hata nedir?



V
9 yıl (4663 mesaj)
Yarbay
Konu Sahibi

çok teşekkürler ama sorun çözüldü ve yazmayı unutmusun buraya.

bu kod 5.4 için idi. vbulletin script için idi.ben 7.1 php geçince hata alıyordum ama vbulletin güncelledim sorun düzeldi.

hata kodlarını hatırlamıyorum :((



DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.