Hide Tag Special Türkçe Destek

Started by 4LP3RUZ1, November 13, 2006, 01:38:45 PM

Previous topic - Next topic

bilasdem

şu an localde çalışaçağım

Hüsamettin

bunu neden verdiniz anlayamadım mod zaten kurulu ve ben sadece otomatik gizleme yaparken konu içeriğini değil sadece linkleir gizlesin istiyorum şehir dışındaydım biraz geç oldu kusra bakmayın

bilasdem

sadece linkleri gizlemek için [hide]link [/hide] olarak yapman gerikiyor aşağıdaki linkdeki proğramı indirip kur sonra http://www.muhabbetvar.com/forum/Themes/default/images/bbc/hide.gif bunun mesajda bunun gibi bir resim gödeceksin link koyacağın zaman ona bir kere tıkla otomatik olarak [hide]  [/hide] atacaktır


Quote from: Yağız... on May 15, 2009, 04:02:29 PM
Quote from: abdull@h on May 15, 2009, 03:57:43 PM
arkadaşlar siteme hide tag modunu kurdum yanlız hide tagının bbc kodunu eklemek istiyorum post.template.phpye ama orada bbc kodları yok ben hide tag bbc nere koyacağım
http://www.simplemachines.org/community/index.php?action=dlattach;topic=32954.0;attach=88404
şu an localde çalışaçağım

Crazytoones

SMF 1.1.10 için hangi versiyonu yüklemem gerek ? Versiyonlara baktım hiç biri desteklemiyor.


abdull@h

arkadaşlar bir şey söyliyeceğim peki bu modu şu mod ile birleştirmek istiyorum yani gizli olan konuyu teşekkür etmeyen açamasın şeklinde bir şey yapmak istiyorum ama nasıl olabilir bu

Yağız...

Thank-O-Matic modifikasyonunun ayarlarinda olmasi gerekiyor.

abdull@h

tamamdır yağız teşekkür ederim

Crazytoones

Quote from: Berkan_Isg on October 23, 2009, 02:32:13 AM
SMF 1.1.10 için hangi versiyonu yüklemem gerek ? Versiyonlara baktım hiç biri desteklemiyor.



Crazytoones

Quote from: abdull@h on October 23, 2009, 02:35:59 PM
al bakalım yüklemen gereken mod bu
http://custom.simplemachines.org/mods/index.php?action=download;mod=118;id=110708

Onu yükledim ancak bu dosyada testi başarılı kılmıyor.

./Sources/Post.php

Yardım ederseniz sevinirim. :)


abdull@h

kardeşim Sources/Post.php bunu manuel kurmayı denermisin

sercan47


HeRoSe

arkadaslar cogu kişiyle aynı sorunum vardı forumda resim gözukmuyodu bende söle bi cözum buldum
Gizli Mesaj Bilgisine asadaki kodu koyun tabi kendinize göre duzenleyin yada bu sekil kullanın
[img]http://www.susanogluforum.net/Themes/default/images/turkish/1.gif[/img]

Hakanchess

#453
smf 2.0 rc2 de hide tag specialin en son versiyonunu yükledim

bbc ikonu yapıcaktım fakat eskisi gibi değil dosyalar değişmiş verilen kodları bulamadım

yardım eder misiniz?

iPhoneDestek

#454
smf 2.0rc2 uyumlu olani kurdum ve türkce cerviirimi icin gereken dosyalari yapmak istedigimde default temam bozuluyor.kullanmakda oldugum türkce dili utf8 ve türkce ingilzce dilini secdigimde temam bozuklugu kayboluyor.

admin.turkish-8tf.php dosyasinda degisiklik yaptikdan sonra default tema bozuluyor???


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


cszero

ben modu manuel olarak kurdum şuan smf 1.1.11 kurulu sitemde, fakat hata verdi post.phpde, konuları değiştire tıkladığımda ve yeni konu ya tıkladığımda aşağıdaki hatayı verdi, yardımcı olurmusunuz arkadaşlar, ekte post.php

verdiği son hata mesajı : parse error: syntax error, unexpected '}' in public_html/forum/Sources/Post.php on line 2546
-------------------------------------------------------------------------------------------
bu hatadan önce aşağıda gösterdiğim satırda hatayı veriyordu
post.php manuel kodlamada
bul
unset($_POST['message']);
}


değiştir
unset($_POST['message']);
}

// Disable it again, sorry if you not allowed to see it... only a preview is allowed ;P
$context['user_post_avaible'] = 0;

bu şekilde değiştirmiştim
elseif (!empty($modSettings['max_messageLength']) && $func['strlen']($_POST['message']) > $modSettings['max_messageLength']) fakat ilk hatası bu satırda çıktı ben de şu şekilde düzelttim
unset($_POST['message']);
}
// Disable it again, sorry if you not allowed to see it... only a preview is allowed ;P
$context['user_post_avaible'] = 0;
} ben ekledim
elseif (!empty($modSettings['max_messageLength']) && $func['strlen']($_POST['message']) > $modSettings['max_messageLength'])
ama bu seferde } <<< bu eklemeyi yapınca yukarıda yazdığım son hatayı verdi >> parse error: syntax error, unexpected '}' in public_html/forum/Sources/Post.php on line 2546

--------
post.php yedek aldığım için önceki yedeği yükledim, neden hata veriyor ki hide tag special modunun 1.1.11 için manuel kodlamayı aynen yaptım post.php de yukarıdaki hataları verdi

cszero

güncel , yardımcı olacak kimse yokmu :(

rebelpirate

RC2 için olanı indirdim. paket olarak kurarken hata verdi.

./Sources/Subs.php dosyasında
static $disabled;
kodu yok. bu kodu manuel olarak eklesem olmaz mı? olursa hangi kodlardan sonra bu kodu eklemem lazım ?

bu arada default tema kullanıyorum

tugay1290

Quote from: rebelpirate on January 21, 2010, 03:58:42 PM
RC2 için olanı indirdim. paket olarak kurarken hata verdi.

./Sources/Subs.php dosyasında
static $disabled;
kodu yok. bu kodu manuel olarak eklesem olmaz mı? olursa hangi kodlardan sonra bu kodu eklemem lazım ?

bu arada default tema kullanıyorum
Aynı sorunbendede var.2.0 Rc2 sürümü var.Aynı hatayı veriyor.Manuel olarak düzeltemiyorum kod yok.

grafitus

Olmaması bayağı ilginç. :/ Düzenlenmemiş SMF 2.0 RC2 dosyalarında mevcut bu kodlar. Neyse, aşağıdaki işlemi yapın. Daha sonra paketi kurun.

./Sources/Subs.php'de:
Code (Bulun) Select
// Never show smileys for wireless clients.  More bytes, can't see it anyway :P.
Code (Üzerine ekleyin) Select

// On the first Parsing i will gernerate all things i need ;) after that it's not needable :)
if (!isset($modSettings['hide_preparedOption']))
{
// First there is nothing in it ;)
$modSettings['hide_preparedOption']['hiddentext'] = '&nbsp;';
$modSettings['hide_preparedOption']['unhiddentext'] = '&nbsp;';

if (empty($modSettings['hide_noinfoforguests']) || !$user_info['is_guest'])
{
// Prepare the hidden information :)
$modSettings['hide_preparedOption']['hiddentext'] = isset($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '';
$modSettings['hide_preparedOption']['hiddentext'] = str_replace('$language', $user_info['language'], $modSettings['hide_preparedOption']['hiddentext']);
if (!empty($modSettings['hide_MUIswitch']) && isset($txt['hide_hiddentext']))
$modSettings['hide_preparedOption']['hiddentext'] = str_replace('$txtvariable', $txt['hide_hiddentext'], $modSettings['hide_preparedOption']['hiddentext']);
if (!empty($modSettings['hide_enableHTML']))
$modSettings['hide_preparedOption']['hiddentext'] = un_htmlspecialchars($modSettings['hide_preparedOption']['hiddentext']);

// Prepare the unhidden infomation?
if (!empty($modSettings['hide_enableUnhiddenText']))
{
$modSettings['hide_preparedOption']['unhiddentext'] = isset($modSettings['hide_unhiddentext']) ? $modSettings['hide_unhiddentext'] : '';
$modSettings['hide_preparedOption']['unhiddentext'] = str_replace('$language', $user_info['language'], $modSettings['hide_preparedOption']['unhiddentext']);
if (!empty($modSettings['hide_MUIswitch']) && isset($txt['hide_unhiddentext']))
$modSettings['hide_preparedOption']['unhiddentext'] = str_replace('$txtvariable', $txt['hide_unhiddentext'], $modSettings['hide_preparedOption']['unhiddentext']);
if (!empty($modSettings['hide_enableHTML']))
$modSettings['hide_preparedOption']['unhiddentext'] = un_htmlspecialchars($modSettings['hide_preparedOption']['unhiddentext']);
}
}

// So prepare the unhidden Option for the Parser ;)
if (!empty($modSettings['hide_useSpanTag']))
{
$modSettings['hide_preparedOption']['before_info'] = '<span class="hiddencontent">';
$modSettings['hide_preparedOption']['after_info'] = '</span>';
}
else
{
$modSettings['hide_preparedOption']['before_info'] = '<div class="hiddencontent">';
$modSettings['hide_preparedOption']['after_info'] = '</div>';
}

// Okay Let's see where i must put the unhidden Informations :)
if (!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']))
{
if (empty($modSettings['hide_posUnhiddenText']) || $modSettings['hide_posUnhiddenText'] == 4)
$modSettings['hide_preparedOption']['after_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
elseif ($modSettings['hide_posUnhiddenText'] == 3)
$modSettings['hide_preparedOption']['after_info'] = $modSettings['hide_preparedOption']['unhiddentext'].$modSettings['hide_preparedOption']['after_info'];
elseif ($modSettings['hide_posUnhiddenText'] == 2)
$modSettings['hide_preparedOption']['before_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
elseif ($modSettings['hide_posUnhiddenText'] == 1)
$modSettings['hide_preparedOption']['before_info'] = $modSettings['hide_preparedOption']['unhiddentext'].$modSettings['hide_preparedOption']['before_info'];
else
$modSettings['hide_preparedOption']['after_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
}

$modSettings['hide_preparedOption']['parse_content'] = !empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']);

// Okay this is the check up if he is allowed to unhide it everytime! (Risky if wrong setup or diffrent mods can handle hide tag)
$modSettings['hide_preparedOption']['auto_unhide_parser'] = false;
if (!empty($modSettings['hide_unhideparser']) && !empty($modSettings['hide_autounhidegroups']))
{
$modSettings['hide_autounhidegroups'] = !is_array($modSettings['hide_autounhidegroups']) ? explode(',', $modSettings['hide_autounhidegroups']) : $modSettings['hide_autounhidegroups'];
foreach ($user_info['groups'] as $group_id)
if (in_array($group_id, $modSettings['hide_autounhidegroups']))
{
$modSettings['hide_preparedOption']['auto_unhide_parser'] = true;
break; //One is enouph ;D
}
}
}

// Hide Mod.. i remove the code before i do anything...
if ($message !== false && !empty($message))
{
if ($modSettings['hide_preparedOption']['auto_unhide_parser'])
$context['user_post_avaible'] = 1;
// Add the Hidden Text at the end of the post :)
if ((empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) && !empty($modSettings['hide_onlyonetimeinfo']) && hideTagExists($message, $cache_id))
$message .= '[br]'.$modSettings['hide_preparedOption']['hiddentext'];
// Here i remove this content :) or show onetime unhide info :)
if (!isset($context['user_post_avaible']) || empty($context['user_post_avaible']))
{
// Remove it ;D
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
}
// Okay i need to add the unhidden information at the end of the post :)
elseif (!empty($context['user_post_avaible']) && !empty($modSettings['hide_onlyonetimeinfo']) && !empty($modSettings['hide_enableUnhiddenText']) && hideTagExists($message, $cache_id))
$message .= '[br]'.$modSettings['hide_preparedOption']['unhiddentext'];
}

Advertisement: