[phpBB 3 MOD] Easy Resize Posted Images [1.1.1]

Phpbb [phpBB 3 MOD] Easy Resize Posted Images [1.1.1] CMS - içerik yönetim hakkında bilgi paylaş; PHP- Kodu:      ##############################################################     ## MOD Title: Easy Resize Posted&...
Cevapla
 
Seçenekler
  #1  
Arama 13-03-2008, 03:59
Miliotta - ait Kullanıcı Resmi (Avatar)

Üyelik Tarihi: 30/10/07
Mesajlar: 279
 
     WS-Ticareti: (1)
Teşekkürleri: 0
35 Msg. 55 Tşkr.
Rep Gücü: 3 Miliotta deneyimleri belirsiz.

[phpBB 3 MOD] Easy Resize Posted Images [1.1.1]

PHP- Kodu:
    ##############################################################
    ## MOD Title: Easy Resize Posted Images
    ## MOD Author: kber <  > (kber) http://www.phpbbegypt.com
    ## MOD Description:  This MOD resizes images within the posts . Images resized are made
    ## clickable and openable in a popup in full-size.
    ## MOD Version: 1.1.1
    ## PHPBB versions: phpbb3 -( RC1 -> RC7)
    ## Installation Level: (Easy)
    ## Installation Time: 3 Minute
    ## Files To Edit:  styles/prosilver/template/viewtopic_body.html
                             
styles/subsilver2/template/viewtopic_body.html   
    
## Included Files:
    ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
    ##############################################################
    ## For security purposes, please check: http://www.phpbb.com/mods/
    ## for the latest version of this MOD. Although MODs are checked
    ## before being allowed in the MODs Database there is no guarantee
    ## that there are no security problems within the MOD. No support
    ## will be given for MODs not found within the MODs Database which
    ## can be found at http://www.phpbb.com/mods/
    ##############################################################
    ## Author Notes:
    ## Tested with RC7
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################
    #
    #-----[ OPEN ]------------------------------------------
    #
    
styles/prosilver/template/viewtopic_body.html
    
#
    #-----[ FIND ]------------------------------------------
    #
              
<!-- ELSE -->
             <
strong>{L_FORUM_RULES}</strong><br />
             {
FORUM_RULES}
          <!-- ENDIF -->

          <
span class="corners-bottom"><span></span></span></div>
       </
div>
    <!-- ENDIF -->
    
#
    #-----[ AFTER , ADD ]------------------------------------------
    # note : you may change( 600px) to whatever you want

    
++++++++++
    
window.onload resizeimg;
    function 
resizeimg()
    {
       if (
document.getElementsByTagName)
       {
          for (
i=0i<document.getElementsByTagName('img').lengthi++)
          {
             
im document.getElementsByTagName('img')[i];
             if (
im.width 600)
             {
                
im.style.width '600px';
                eval(
"pop" String(i) + " = new Function(\"pop = window.open('" im.src " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();\")");
                eval(
"im.onclick = pop" String(i) + ";");
                if (
document.allim.style.cursor 'hand';
                if (!
document.allim.style.cursor 'pointer';
                
im.title 'Click Here To See Image Full Size ';
             }
          }
       }
    }

    
</script>

    #
    #-----[ OPEN ]------------------------------------------
    #
    styles/subsilver2/template/viewtopic_body.html
    #
    #-----[ FIND ]------------------------------------------
    #
    <!-- INCLUDE overall_header.html -->
    #
    #-----[ AFTER , ADD ]------------------------------------------
    # note : you may change( 600px) to whatever you want

    ++++++++++
    window.onload = resizeimg;
    function resizeimg()
    {
       if (document.getElementsByTagName)
       {
          for (i=0; i<document.getElementsByTagName('img').length; i++)
          {
             im = document.getElementsByTagName('img')[i];
             if (im.width > 600)
             {
                im.style.width = '600px';
                eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();\")");
                eval("im.onclick = pop" + String(i) + ";");
                if (document.all) im.style.cursor = 'hand';
                if (!document.all) im.style.cursor = 'pointer';
                im.title = 'Click Here To See Image Full Size ';
             }
          }
       }
    }

    </script>

    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM 
Alıntı ile Cevapla
Cevapla


Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
images+++++ gibi site kurmaK nesip1 Yeni Başlayanlara WebmasterSitesi 2 30-03-2008 01:15
[phpBB 3 MOD] Resize Width Images 0.2.0 Miliotta Phpbb 0 13-03-2008 04:00
Easy Search Miliotta PHP scriptler 0 12-03-2008 09:06
Deforme etmeden resize Miliotta Php kodları 0 12-03-2008 02:48
Easy CHM Celebrian Webmaster Programları 0 20-11-2007 06:00

Link vermek için alttaki kodu sitenize ekleyebilirsiniz. Veya Ctrl+C ile Kopyalayınız
Örnek görünüm: Webmaster Sitesi