Hoşgeldiniz, Ziyaretçi.Lütfen giriş yapın veya kayıt olun.
E-posta adresinize aktivasyon iletisi gelmediyse lütfen buraya tıklayın.

Kullanıcı adınızı, parolanızı ve aktif kalma süresini giriniz
Ana Sayfa Forum Arama Giriş Kayıt Ol
Simple Machines Forum Türkçe Yardım Sitesi > Simple Machines Forum Modifikasyonları > Modifikasyonlar, Kurulumları ve Hataları > Manuel Kurulum > Konu: Hide Tag Special
Sayfa: [1] 2 3 4   Aşağı git
« önceki sonraki »
Bu Konuyu GönderYazdır
Gönderen Konu: Hide Tag Special  (Okunma Sayısı 12537 defa)
RuHSuZ
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 29


Hide Tag Special
« : Ağustos 10, 2006, 02:50:47 ÖS »

Modifikasyon Link'i --> http://www.smfturk.net/forum/index.php?topic=287.msg578#msg578

Bu modifikasyon anlatımı SMF 1.1.X Sürümlerine göre yapılmıştır.

Bilgi: Default haricinde bir temada çalıştırmak isterseniz önce modifikasyonu kurunuz ve ardından sadece Tema'nızın XXX.template.php dosyalarına kodları ekleyiniz.


ModSettings.php
Kod: (Bul ve Altına ekle)
array('check', 'approveAccountDeletion'),
Kod:
'',
array('check', 'hide_MUIswitch'),
array('text', 'hide_hiddentext'),
array('text', 'hide_hidecontentimages'),
array('text', 'hide_unhidecontnetimage'),
array('check', 'hide_onlyonetimeinfo'),
array('check', 'hide_adminshouldsee'),
array('check', 'hide_noinfoforguests'),
array('text', 'hide_autounhidegroups'),
array('int', 'hide_minpostunhide'),
array('int', 'hide_minpostautounhide'),


[logged]
Display.php
Kod: (Bul ve Üstüne ekle)
// Find the previous or next topic.  Make a fuss if there are no more.
Kod:
//Okay let's Check an prepare ;)
$context['user_post_avaible'] = 0; //Standard Show no hidden content ;)

//Only a Member Thing ;)
if (!$user_info['is_guest']) {
$check_for_hide = true;

//First Let's look through the groups and if the Admin see everything
if($user_info['is_admin'] && !empty($modSettings['hide_adminshouldsee'])) {
$check_for_hide = false;
$context['user_post_avaible'] = 1;
}

if($check_for_hide && !empty($modSettings['hide_autounhidegroups'])) {
//Okay Serach for it ;)
if(strpos($modSettings['hide_autounhidegroups'], ",") !== false)
$modSettings['hide_autounhidegroups'] = array_unique(explode(',', str_replace(' ', '', $modSettings['hide_autounhidegroups'])));
else
$modSettings['hide_autounhidegroups'] = array(str_replace(' ', '', $modSettings['hide_autounhidegroups']));

if(!empty($modSettings['hide_autounhidegroups']))
foreach($user_info['groups'] as $group_id)
if(in_array($group_id, $modSettings['hide_autounhidegroups'])) {
$check_for_hide = false;
$context['user_post_avaible'] = 1;
break; //One is enouph ;D
}
}

//Okay know let's look for the post minimum ;D
if($check_for_hide && (!empty($modSettings['hide_minpostunhide']) || !empty($modSettings['hide_minpostautounhide']))) {
//Load the posts data ;D
global $user_settings;

//Need a minimum post to unhide?
if(!empty($modSettings['hide_minpostunhide']) && $modSettings['hide_minpostunhide'] > 0 && $user_settings['posts'] < $modSettings['hide_minpostunhide'])
$check_for_hide = false;

//Auto Unhide????
if(!empty($modSettings['hide_minpostautounhide']) && $modSettings['hide_minpostautounhide'] > 0 && $user_settings['posts'] > $modSettings['hide_minpostautounhide']) {
$check_for_hide = false;
$context['user_post_avaible'] = 1;
}
}

// Find if there a post from you in this thread :) (For the hide tag)
if(empty($context['user_post_avaible']) && $check_for_hide) {
$request = db_query("
SELECT ID_MSG, ID_MEMBER
FROM {$db_prefix}messages
WHERE ID_TOPIC = $topic AND ID_MEMBER = $ID_MEMBER
LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request)) $context['user_post_avaible'] = 1;
else $context['user_post_avaible'] = 0;
mysql_free_result($request);
}
}


Kod: (Bul ve Altına ekle)
$memberContext[$message['ID_MEMBER']]['ip'] = $message['posterIP'];

// Do the censor thang.
censorText($message['body']);
censorText($message['subject']);
Kod:
//Find Hidden Content
$message['hidden_content'] = preg_match("~\[hide\](.+?)\[\/hide\]~i", $message['body']);


Kod: (Bul ve Altına ekle)
'body' => $message['body'],
'new' => empty($message['isRead']),
'first_new' => isset($context['start_from']) && $context['start_from'] == $counter,
Kod:
'hidden_content' => $message['hidden_content'],




Post.php
Kod: (Bul ve Üstüne ekle)
$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);
Kod:
//Lets change the HideTag ;) this is a secret and should be a secret :)
if (empty($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
// The MUI Switch ;D
if (!empty($modSettings['hide_MUIswitch'])) $modSettings['hide_hiddentext'] = &$txt['hide_hiddentext'];
$form_message = preg_replace("~\[hide\](.+?)\[\/hide\]~i", $modSettings['hide_hiddentext'], $form_message);
$form_message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), $modSettings['hide_hiddentext'], $form_message);

[/logged]
Kod: (Bul ve Altına ekle)
$row['body'] = preg_replace('~<br(?: /)?' . '>~i', "\n", $row['body']);
Kod:
//Lets change the HideTag ;) this is a secret and should be a secret :)
if (empty($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
// The MUI Switch ;D
if (!empty($modSettings['hide_MUIswitch'])) $modSettings['hide_hiddentext'] = &$txt['hide_hiddentext'];
$row['body'] = preg_replace("/\[hide\](.+?)\[\/hide\]/i", $modSettings['hide_hiddentext'], $row['body']);
$row['body'] = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), $modSettings['hide_hiddentext'], $row['body']);





Search.php
Kod: (Bul ve Altına ekle)
// Do the censor thang...
censorText($message['body']);
Kod:
//Remove Hidden Text :x
//Lets change the HideTag ;) this is a secret and should be a secret :)
if (empty($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
// The MUI Switch ;D
if (!empty($modSettings['hide_MUIswitch'])) $modSettings['hide_hiddentext'] = &$txt['hide_hiddentext'];
// Okay Guest should at least see nothing ;)
if($context['user']['is_guest'] && !empty($modSettings['hide_noinfoforguests']))
$modSettings['hide_hiddentext'] = '&nbsp;';
$message['body'] = preg_replace("/\[hide\](.+?)\[\/hide\]/i", $modSettings['hide_hiddentext'], $message['body']);
$message['body'] = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), $modSettings['hide_hiddentext'], $message['body']);




Subs.php
Kod: (Bul ve Altına ekle)
global $txt, $scripturl, $context, $modSettings, $user_info;
static $bbc_codes = array(), $itemcodes = array(), $no_autolink_tags = array();
static $disabled;
Kod:
//Hide Mod.. i remove the code before i do anything...
//Built the correct hidden content informations :), or add a the one time infomration :)
if((empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) && $message !== false && !empty($message)) {
//Check you're a guest? Should i show this infomations?
if(empty($modSettings['hide_noinfoforguests']) || !$user_info['is_guest']) {
//Lets change the HideTag ;) this is a secret and should be a secret :)
if (empty($modSettings['hide_hiddentext'])) $modSettings['hide_hiddentext'] = '&nbsp;'; //A tiny little space =)
// The MUI Switch ;D
if (!empty($modSettings['hide_MUIswitch'])) $modSettings['hide_hiddentext'] = &$txt['hide_hiddentext'];
// hmmmm should i use image insteat of text?
if (!empty($modSettings['hide_hidecontentimages'])) $modSettings['hide_hiddentext'] = '[br][img]'.str_replace('$language', $user_info['language'], $modSettings['hide_hidecontentimages']).'[/img][br]';

//One Time information?
if(!empty($modSettings['hide_onlyonetimeinfo'])) {
//Okay some more things to do, i must check if there a hidden content... without i need do nothing ;)
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0 || preg_match("/\[hide(.+?)\](.+?)\[\/hide\]/i", $message) != 0) {
//Add the Hidden Text at the end of the post :)
$message .= '[br]'.$modSettings['hide_hiddentext'];
}
}
}
else
$modSettings['hide_hiddentext'] = '&nbsp;';
}
//Here i remove this content :) or show onetime unhide info :)
if((empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) && $message !== false) {
//Remove it ;D
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_hiddentext'] : "&nbsp"), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_hiddentext'] : "&nbsp"), $message);
}
elseif(!empty($context['user_post_avaible']) && $message !== false && !empty($modSettings['hide_onlyonetimeinfo']) && !empty($modSettings['hide_unhidecontnetimage'])) {
//Okay i need to add the un hidden image at the end of the post :)
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0 || preg_match(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), $message) != 0) {
$message .= '[br][img]'.str_replace('$language', $user_info['language'], $modSettings['hide_unhidecontnetimage']).'[/img][br]';
}
}


Kod: (bul ve Altına ekle)
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),
Kod:
array(
'tag' => 'hide',
'before' => '<strong>',
'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
),





Display.template.php
Kod: (Bul ve Değiştir)
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
Kod:
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] && empty($message['hidden_content']) ? '


Kayıtlı
fALCONBB
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 16


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #1 : Ağustos 15, 2006, 01:59:40 ÖS »

cok saol
Kayıtlı
jilewernash
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 5


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #2 : Eylül 12, 2006, 05:23:00 ÖÖ »

hangi remi burda resim yok
Kayıtlı
tayshaun
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 2


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #3 : Eylül 13, 2006, 09:59:41 ÖÖ »

ya ben kurdum da her şeyi de eksiksiz yaptım ama [sakla] [ /   sakla yazıyorum mesaj bomboş kalıyor nasıl duzeltebılırız tema çöl ateşi v2
Kayıtlı
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #4 : Eylül 14, 2006, 07:33:06 ÖÖ »

Alıntı sahibi: tayshaun üzerinde Eylül 13, 2006, 09:59:41 ÖÖ
ya ben kurdum da her şeyi de eksiksiz yaptım ama [sakla] [ /   sakla yazıyorum mesaj bomboş kalıyor nasıl duzeltebılırız tema çöl ateşi v2

ModSettings.turkish.php dosyasında
$txt['hide_hiddentext'] = 'Saklama modu<br />Cevap yazılmayan konuda ne gösterilmeli?</font>'; bunu düzenle
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
gangster
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 100



Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #5 : Eylül 15, 2006, 02:42:08 ÖÖ »

yaw benim temamda yoq bu langugage dosyası ne yapıcam Huh??
Kayıtlı

www.KOPTUK.biz  [bize takılın hayattan kopun Wink
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #6 : Eylül 16, 2006, 02:04:36 ÖÖ »

Alıntı sahibi: gangster üzerinde Eylül 15, 2006, 02:42:08 ÖÖ
yaw benim temamda yoq bu langugage dosyası ne yapıcam Huh??
Themes/default/language  burdan değiştirebilirsin. Kendi temanda olmayan dosyaları default tema içinden düzenle
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
YoLGeZeR
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 7


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #7 : Eylül 20, 2006, 01:55:09 ÖS »

kullandığım tema dark day hide modunu yaptım ama şu buton olayını yapamadım ModSettings.turkish.php buna benzer dosya falan yok bende nasıl yapacağım bi ufak yardım ...
Kayıtlı
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #8 : Eylül 22, 2006, 12:21:13 ÖÖ »

Alıntı sahibi: YoLGeZeR üzerinde Eylül 20, 2006, 01:55:09 ÖS
kullandığım tema dark day hide modunu yaptım ama şu buton olayını yapamadım ModSettings.turkish.php buna benzer dosya falan yok bende nasıl yapacağım bi ufak yardım ...
Temanda yoksa default temada değşiklik yap.
Kullandığın temada olmayan dosyalar default üzerinden okunur. Aklında bulunsun Wink
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
ibrahimk.1907
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 14



Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #9 : Ocak 09, 2007, 06:11:10 ÖÖ »

Çok Saol bende hiç bi sorun çıkmadı
Kayıtlı

Süper Bir Site İle Karşınıza Çıkmaya Hazırlanıyoruzz..
KoLhoRo
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 12


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #10 : Ocak 09, 2007, 07:16:23 ÖÖ »

hani resim
Kayıtlı
ALi
Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 263



Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #11 : Ocak 09, 2007, 07:29:08 ÖÖ »

Alıntı sahibi: KoLhoRo üzerinde Ocak 09, 2007, 07:16:23 ÖÖ
hani resim
Resime gerek yokki. Modifikasyon mesaj içeriğinin saklanmasına yarıyor.
Kayıtlı

Modifikasyonlar

İşte Manuel Kurulumlar

AMACIMIZ SMF VE SMFTURK.nET AİLESİNİ İLERİYE TAŞIMAKTIR

      www.hostrap.com           SMF ÜLKESİ nedir biliyormusunuz?
KoLhoRo
H-Full Member
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 12


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #12 : Ocak 09, 2007, 02:02:02 ÖS »

peki rc3 1.1 için calısırmı bu ?
Kayıtlı
husmen73
Sr. Member
***
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 3166


Gülhin İnternet'e sitenizin tasarımını yaptırın.


Site
Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #13 : Ocak 12, 2007, 04:25:28 ÖÖ »

Alıntı sahibi: KoLhoRo üzerinde Ocak 09, 2007, 02:02:02 ÖS
peki rc3 1.1 için calısırmı bu ?
Büyük ihtimalle çalışır ama sen yinede yedeklerini almayı unutma.
Kayıtlı


Anka Teması ve Oboj Teması satışa sunulmuştur.

www.gulhin.com
  

Bana ulaşmak isterseniz husmen100[at]hotmail.com mail adresimi kullanabilirsiniz. MSN Messenger üzerinden SMF konusunda yardım etmiyorum fakat Tema Tasarımı konusunda ücretli yardımcı olabilirim. Saygılarımla.

  
kadenizsesi
Newbie
*
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 1


Ynt: HideTag Special Manuel Kurulumu
« Yanıtla #14 : Ocak 13, 2007, 10:39:32 ÖÖ »

ben yaptım her şey sadece subs dosyasında hata verdi Huh
Kayıtlı
Sayfa: [1] 2 3 4   Yukarı git
Bu Konuyu GönderYazdır
Simple Machines Forum Türkçe Yardım Sitesi > Simple Machines Forum Modifikasyonları > Modifikasyonlar, Kurulumları ve Hataları > Manuel Kurulum > Konu: Hide Tag Special
« önceki sonraki »
 
Gitmek istediğiniz yer:  


Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines | NewDef design by Bloc
Gulhin Internet Hizmetleri
Bu Sayfa 0.125 Saniyede 19 Sorgu ile Oluşturuldu
Yükleniyor...