SMFciyiz.Biz | Smf | Tema |  Mod | Seo
Kullanıcı Adı
Şifre
Sürekli bağlı kal
Şifremi Unuttum
Kayıt Ol




Gönderen Konu: Hide Tag Manuel+Buton Yapimi  (Okunma sayısı 6219 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Hide Tag Manuel+Buton Yapimi
« : Nisan 05, 2007, 12:38:36 ÖS »
Bunu Kurdugunuz Zaman [sakla][/sakla] Olarak Degil [hide][/hide] Olarak Yazmaniz Gerekmektedir.

Sources/ModSettings.php
Arayin:
Kod: [Seç]
array('check', 'approveAccountDeletion'),Sonrasina Ekleyin:
Kod: [Seç]
'',
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'),
Sources/Display.php
Arayin:
Kod: [Seç]
// Find the previous or next topic.  Make a fuss if there are no more.Oncesine Ekleyin:
Kod: [Seç]
//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);
}
}
Arayin:
Kod: [Seç]
$memberContext[$message['ID_MEMBER']]['ip'] = $message['posterIP'];Sonrasina Ekleyin:
Kod: [Seç]
//Find Hidden Content
$message['hidden_content'] = preg_match("~\[hide\](.+?)\[\/hide\]~i", $message['body']);
Arayin:
Kod: [Seç]
'body' => $message['body'],
'new' => empty($message['isRead']),
'first_new' => isset($context['start_from']) && $context['start_from'] == $counter,
Sonrasina Ekleyin:
Kod: [Seç]
'hidden_content' => $message['hidden_content'],Sources/Post.php
Arayin:
Kod: [Seç]
$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);Oncesine Ekleyin:
Kod: [Seç]
//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);
Arayin:
Kod: [Seç]
$row['body'] = preg_replace('~<br(?: /)?' . '>~i', "\n", $row['body']);Sonrasina Ekleyin:
Kod: [Seç]
//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']);
Sources/Search.php
Arayin:
Kod: [Seç]
// Do the censor thang...
censorText($message['body']);
Sonrasina Ekleyin:
Kod: [Seç]
//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']);
Sources/Subs.php
Arayin:
Kod: [Seç]
global $txt, $scripturl, $context, $modSettings, $user_info;
static $bbc_codes = array(), $itemcodes = array(), $no_autolink_tags = array();
static $disabled;
Sonrasina Ekleyin:
Kod: [Seç]
//Hide Mod.. i remove the code before i do anything...
if($message !== false && !empty($message)) {
//Built the correct hidden content informations :), or add a the one time infomration :)
if((empty($context['user_post_avaible']) || !isset($context['user_post_avaible']))) {
//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']))) {
//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']) && !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]';
}
}
}
Ara:
Kod: [Seç]
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),
Sonrasina Ekle:
Kod: [Seç]
array(
'tag' => 'hide',
'before' => '<strong>',
'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
),
Themes/Temaniz/Display.template.php
Bulun:
Kod: [Seç]
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? 'Degistirin:
Kod: [Seç]
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] && empty($message['hidden_content']) ? 'Themes/Temaniz/languages/ModSettings.turkish.php
Kod: [Seç]
?>Oncesine Ekleyin:
Kod: [Seç]
$txt['hide_Titel'] = 'Hide Tag Special Ayarları';
$txt['hide_MUIswitch'] = 'MUI SWITCH - $txt[\'hide_hiddentext\'] Dil dosyasındaki otomatik yazıyı kullansın mı?<br /><span class="smalltext">Diğer ayarlar iptal edilir sadece bu yazı kullanılır. Bu kod index.turkish.php içindedir.</span>';
$txt['hide_hiddentext'] = 'Gizli içerik için sadece yazı kullan';
$txt['hide_adminshouldsee'] = 'Adminler mesajları görsün mü?';
$txt['hide_autounhidegroups'] = 'Bazı gruplara gizli mesajları otomatik göster.<br /><span class="smalltext">Herbirini virgül ile ayırın "," (Mesela ID 2, Global Moderatorler içindir ve şu şekilde yazmalsınız birden fazla grubu; 2,4,5 gibi)</span>';
$txt['hide_minpostunhide'] = 'Gizli içeriğin görülmesi için üyenin en az mesaj sayısı';
$txt['hide_minpostautounhide'] = 'Üyenin mesaj sayısı bu sayıdan fazla ise otomatik olarak gizli içerik açılsın.<br /><span class="smalltext">"0" bu seçeneği iptal eder</spam>';
$txt['hide_hidecontentimages'] = 'Gizli içerik için resim linki yaz<br /><span class="smalltext">Eğer boş bırakırsanız yukarıdaki gizleme yazısı kullanılır.<br />Eğer resim dosyası eklemek istiyorsanız şu şekilde dosyanızın ismini düzenleyin Örnek: http://www.smfturk.net/turkishhidden.gif olarak forumunuzun ana dizinine yükleyin.</span>';
$txt['hide_unhidecontnetimage'] = 'Gizli içerik açıldıktan sonra gösterilecek resim linkini yaz.';
$txt['hide_onlyonetimeinfo'] = 'Gizleme bilgilerini sadece mesajın sonunda göster.';
$txt['hide_noinfoforguests'] = 'Ziyaretçilerin gizli içeriği görmemesi için resim veya yazı ekleyin.';
Themes/Temaniz/languages/index.turkish.php
Arayin:
Kod: [Seç]
?>Oncesine Ekleyin:
Kod: [Seç]
$txt['hide_hiddentext'] = 'Bu mesajda gizli içerik var. Lütfen cevap yazınız.';
Buton Yapimi Icin:

Themes/Temaniz/languages/Post.template.php
Arayin:
Kod: [Seç]
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),Sonrasina Ekleyin:
Kod: [Seç]
'hide' => array('code' => 'hide', 'before' => '[hide]', 'after' => '[/hide]', 'description' => $txt['bbc_hide']),Themes/Temaniz/langauges/Post.turkish.php
Arayin:
Kod: [Seç]
?>Oncesine Ekleyin:
Kod: [Seç]
$txt['bbc_hide'] = 'Mesajda Gizli Birsey Var';Ektekinide images/bbc'nin Icine Atin.
Mesajda Hizli Cevap Editorunuz Varsa Post.template.php'dekileri Display.template.php e Uygulayin
« Son Düzenleme: Nisan 05, 2007, 02:30:40 ÖS Gönderen: cakal93 »
Kayıtlı

SimplePortal Beta Tester
Download | Demo

AdSense hesabi eklenmemis.
  • Smf Hastası
  • ****
  • Cinsiyet: Bay
  • Toplam İleti: 174
  • WWW.TURKPOWERS.COM
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #1 : Nisan 05, 2007, 12:49:37 ÖS »
eline saglık buldugum iyi oldu bide link gizlenince otomatik resim eklese :D
Kayıtlı
WWW.TURKPOWERS.COM

SENDE KATIL BİZE TAKILALIM BİZBİZE
SUPER PAYLASIM
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #2 : Nisan 05, 2007, 12:52:30 ÖS »
Registered Images Var Sitede ;)
Kayıtlı

SimplePortal Beta Tester
Download | Demo
Çevrimdışı  mavisim
  • Acemi Smfci
  • **
  • Toplam İleti: 26
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #3 : Nisan 24, 2007, 10:40:52 ÖS »
evet ya o otomatik resimi nereye koyacam ben cunki bisey çikmiyor gizli yaziyi gormek icin cvp yazin diye..?
Kayıtlı
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #4 : Nisan 24, 2007, 10:59:25 ÖS »
forum seceneklerinde ayarlari war
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Gs-1905
  • Smf Uzmanı
  • *****
  • Cinsiyet: Bay
  • Toplam İleti: 413
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #5 : Nisan 25, 2007, 05:17:23 ÖS »
bunu yazınca ziyaretçilerden linkmi saklıyorr
Kayıtlı
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #6 : Nisan 25, 2007, 05:19:51 ÖS »
msji saklio
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Gs-1905
  • Smf Uzmanı
  • *****
  • Cinsiyet: Bay
  • Toplam İleti: 413
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #7 : Nisan 25, 2007, 06:20:03 ÖS »
ziyaretçilerdenmiii???
Kayıtlı
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #8 : Nisan 25, 2007, 06:58:11 ÖS »
herkesten :)
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Smf Uzmanı
  • *****
  • Cinsiyet: Bay
  • Toplam İleti: 264
    • MSN Messenger - suat@toksoz.com
    • Yahoo Instant Messenger  - delici97@yahoo.com.tr
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #9 : Nisan 28, 2007, 11:53:36 ÖÖ »
teşekkürler
  • Yeni Smfci
  • *
  • Toplam İleti: 2
    • Profili Görüntüle
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #10 : Mayıs 03, 2007, 10:06:15 ÖS »
Gizli içerik açıldıktan sonra gösterilecek resim linkini yaz

bu bölüme ne yazmamız lazım ...

ben foruma yapıyorum hata mesajı veriyor..

Acaba bi yerde yanlışlık mı yaptım...

Önizlemede çalışıyor konuyu gönder dediğimde hata veriyor !!

yardım lütfen
Kayıtlı
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #11 : Mayıs 04, 2007, 10:31:23 ÖS »
hatayi solemesseniz yardim edemeyiz
Kayıtlı

SimplePortal Beta Tester
Download | Demo
Çevrimdışı  atom
  • Acemi Smfci
  • **
  • Cinsiyet: Bay
  • Toplam İleti: 15
    • Profili Görüntüle
    • WWW
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #12 : Temmuz 10, 2007, 03:50:48 ÖS »
Alıntı
Themes/Temaniz/languages/Post.template.php
bende bu yok bende Themes/teonunlaneti/Post.template.php burada var onda kullanıyorum sorun yapar mı  ???
Kayıtlı
Çevrimdışı  Yağız
  • Emektar Üye :)
  • Smfciyiz Bağımlısı
  • *******
  • Toplam İleti: 2,467
    • Profili Görüntüle
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #13 : Temmuz 12, 2007, 05:20:54 ÖS »
Özür dilerim ama sanırım biraz Türkçe'n kıt galiba...
Kayıtlı

SimplePortal Beta Tester
Download | Demo
  • Canberk
  • Profesyonel Smfci
  • ******
  • Cinsiyet: Bay
  • Toplam İleti: 511
  • Aşksız olsun, kalbim neşe dolsun.
    • MSN Messenger - bycanberk@gmail.com
    • Profili Görüntüle
    • WWW
    • E-Posta
Ynt: Hide Tag Manuel+Buton Yapimi
« Yanıtla #14 : Temmuz 12, 2007, 08:16:59 ÖS »
Özür dilerim ama sanırım biraz Türkçe'n kıt galiba...

tmm cakal sakin ol :)



Alıntı
Themes/Temaniz/languages/Post.template.php
bende bu yok bende Themes/teonunlaneti/Post.template.php burada var onda kullanıyorum sorun yapar mı  ???

kardes ztn temanız dio senin teman o ise onu kullancan hangi temayı kullanıosan o :)
Kayıtlı
Blackpanter - ///SaGo///  Kaf KeF  P€Simi$t Hip-Hop
WwW.BiLgİBaNkAsI.OrG
 

Desteğinden dolayı seo hosting ve hosting firmalarına teşekkür ederiz.