Mail adreslerini sadece admin görsün

Started by ℓσяєиz, September 28, 2008, 10:01:20 AM

Previous topic - Next topic

ℓσяєиz

sitemde yaşanan bir trajediden dolayı bir çözüm yaptım gerçi basit bişi ama işiniza yarayabilir

profile.template.php aç

Code (bul) Select
// Only show the email address if it's not hidden.
if ($context['member']['email_public'])
echo '
<a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a>';
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif (!$context['member']['hide_email'])
echo '
<i><a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a></i>';
else
echo '
<i>', $txt[722], '</i>';


Code (değiştir) Select

//mail gizle lorenz.....
if ($context['user']['is_admin'])
{
echo '
<a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a>';
}
else
{
echo ' Mail Adreslerini Görmenize Yetki yok.';
}


display.template.php aç

Code (sil) Select


// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';



Code (bul) Select

// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';



Code (değiştir) Select
//mail gizle lorenz.....
if ($context['user']['is_admin'])
{
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
}

Barış Dokumacı


MY THEMES

The greates enemy will hide in the last place you would ever lock..

grafitus

kardeşim peki Display.Template.php de nolcak ???

ℓσяєиz


Barış Dokumacı


MY THEMES

The greates enemy will hide in the last place you would ever lock..

deejayss

hey gidi günler hey.

breaker1999


Alpay

Bunun bayabi bir olayı varya =) Who templatesi profile templatesi ( özet ve  arkadaş listesi) daha sonra Rss kismindaki e mailleri kaldırmak lazım Barış :P

ℓσяєиz

#6
Quote from: Alpay on September 29, 2008, 09:00:17 PM
Bunun bayabi bir olayı varya =) Who templatesi profile templatesi ( özet ve  arkadaş listesi) daha sonra Rss kismindaki e mailleri kaldırmak lazım Barış :P


ee abi sende valla :D
rss ye bakacaklarını sanmmıyorum ama who.templatede mail e rastlamadım orda icq msn filan var email yok
arkadaş listesindekilerde gorsun o kadrda yasak ayıp olur uyelere karşı :P

Barış Dokumacı


MY THEMES

The greates enemy will hide in the last place you would ever lock..


Çiko

Teşekkürler arkadaşım emeğine sağlık.

AS21

SMF 2.0 RC3 KULLANIYORUM.

Advertisement: