Türkiye'nin ilk Oyun Forumlarından olan Oyunsiteniz 20 Yasinda

OYUN DIŞI BÖLÜMLER => SMF DESTEK FORUMU => KÜLTÜR SANAT EĞİTİM VE TEKNOLOJİ => MODİFİKASYONLAR => Konuyu başlatan: Hamza - 30 Haziran 2008, 01:58:46

Başlık: Popup Url Modifikasyonu Manuel anlatım
Gönderen: Hamza - 30 Haziran 2008, 01:58:46

(http://img422.imageshack.us/img422/517/1fd5.jpg)

(http://img527.imageshack.us/img527/2316/2lu1.jpg)

(http://img527.imageshack.us/img527/6967/3gj4.jpg)

(http://img422.imageshack.us/img422/1517/4ro3.jpg)

(http://img369.imageshack.us/img369/6783/5sr6.jpg)



Kurulum

themnız/Post.template.php'de bul

Kod: [Seç]
// Print a drop down list for all the colors we allow!
sonrasına ekle

Kod: [Seç]
// Java script to handle URL input boxes ...
    echo '<script language="JavaScript" type="text/javascript">
          // <!' . '--
          function urlINPT(){
          // Enter URL .........................................
          var urlLINK = prompt("Lütfen URL Adresini Giriniz:","http://");
          if (urlLINK == null ){ //cancel pressed . . .
          }
          else if (urlLINK == "" || urlLINK == " "){ //ok pressed but with Notext . . .
                  alert("Sorry no text entered!");
          }
          else
          { //ok pressed and there is something :)
          // Enter Description ...................................
          var urlNAME = prompt("Lütfen URL Adi Giriniz:","");
          if (urlNAME == null ){ //cancel pressed . . .
          }
          else if (urlNAME == "" || urlNAME == " "){  //ok pressed but with notext so use URL only!
                    surroundText(\'[url]\'+urlLINK+\'\', \'[/url]\', document.', $context['post_form'], '.', $context['post_box_name'], ');
          }
          else //ok pressed with text so use URL and Name!
                    surroundText(\'[url=\'+urlLINK+\']\'+urlNAME+\'\', \'[/url]\', document.', $context['post_form'], '.', $context['post_box_name'], ');
          }
          }
          // --' . '>
          </script>';


bul

Kod: [Seç]
foreach ($context['bbc_tags'][1] as $image => $tag)
{
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;

sonrasına ekle

Kod: [Seç]
      // only replace the URL tag! . . . . . . . . . . .
      if (isset($tag['code']) && $tag['code'] == 'url')
{
          echo '<a href="javascript:void(0);" onclick="urlINPT(); return false;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
continue;
}

Başlık: Ynt: Popup Url Modifikasyonu Manuel anlatım
Gönderen: Abdullah - 30 Haziran 2008, 02:02:04
aslında hiç gerek yok

Kod: [Seç]
<a href="http://www.oyunsiteniz.com">Abdullah</a>
düşünerek bunu SMF ye çeviriyorum

SMF HALİ

Kod: [Seç]
[url=http://www.oyunsiteniz.com]Abdullah[/url]
ÖRNEK : Abdullah (http://www.oyunsiteniz.com)

AMA HTML İYİ BİLMEYEN ÜYLER İÇİN BİRE BİR SAOL HAMZA
Başlık: Popup Url Modifikasyonu Manuel anlatım
Gönderen: Saw - 29 Ağustos 2008, 00:47:15
TEŞEKKÜRLER