Polyethylene Style Width Change

Dacă aveti intrebari legate de stilul folosit, daca doriţi să vă faceţi cunoscute stilurile şi temele proprii sau doriţi să comentaţi alte stiluri pentru forumul phpBB 3.0.x, acesta este locul potrivit.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Închis
arghy
Utilizator înregistrat
Mesaje: 26
Membru din: 10-Feb-2009, 15:14:35
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Polyethylene Style Width Change

Mesaj de arghy »

Am ceva probleme pe forumul meu, in sensul ca atunci cand un utilizator posteaza o imagine care depaseste latimea de 400 px Body'ul forumului se largeste esti fluid dar Headerul si Footerul raman la fel , un lucru care ma cam deranjeaza si care strica la aspectul forumului!

Am incercat sa ma uit prin Sabloanele Temei dar nu am gasit nici cum solutia!

As dori daca se poate sa imi spuneti daca pot sa ii fac ceva ca sa o largesc, pentru ca stiu ca pentru largirea unei teme cate o data este necesara recodarea ei!

Folosesc tema Polyethylene o puteteti gasi aici

Astept un raspuns,

Multumesc Anticipat!
http://www.codebox.ro | growing big
arghy
Utilizator înregistrat
Mesaje: 26
Membru din: 10-Feb-2009, 15:14:35
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de arghy »

Nimeni? :roll:
http://www.codebox.ro | growing big
Avatar utilizator
dorin
Fost coleg
Mesaje: 4620
Membru din: 24-Iun-2003, 23:23:29
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Puţin experimentat
Contact:

Mesaj de dorin »

Easy Resize Posted Images

Cod: Selectaţi tot

##############################################################
## MOD Title: Easy Resize Posted Images
## MOD Author: kber < webmaster@phpbbegypt.com > (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.2
## PHPBB versions: phpbb3 -( RC1 -> 3.0.2 )
## 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 phpbb3.0.0
##############################################################
## 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

<script type="text/javascript">
// <![CDATA[
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>

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

<script type="text/javascript">
// <![CDATA[
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 

## For some style you may need to pruge the cashe from your ACP
arghy
Utilizator înregistrat
Mesaje: 26
Membru din: 10-Feb-2009, 15:14:35
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de arghy »

Merge!

Multumesc mult!

:oops:
http://www.codebox.ro | growing big
Avatar utilizator
Lisandru
Utilizator înregistrat
Mesaje: 11
Membru din: 27-Feb-2009, 01:19:27
Versiune: 3.0.8
Ext: Da
Server: Windows
Nivel phpBB: Mediu
Localitate: Slatina
Contact:

Mesaj de Lisandru »

Super tare fratilor chiar merge si am tema proFormell.
Multumesc mult .. cat am cautat ..
aerrow
Utilizator înregistrat
Mesaje: 20
Membru din: 01-Iun-2011, 10:52:32
Versiune: 3.0.5
Ext: Nu
Server: Windows
Nivel phpBB: Mediu

Re: Polyethylene Style Width Change

Mesaj de aerrow »

Nu mai merge linkul postat!
Avatar utilizator
dorin
Fost coleg
Mesaje: 4620
Membru din: 24-Iun-2003, 23:23:29
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Puţin experimentat
Contact:

Re: Polyethylene Style Width Change

Mesaj de dorin »

Sunt mai multe link-uri postate, la care te referi ? Daca e vorba de MODul Easy Resize Posted Images poti incerca aici: http://www.phpbb.com/community/viewtopi ... 0&t=577794

sau link de download direct: http://www.phpbbegypt.net/mods/easy_resizer.zip
Închis

Înapoi la “3.0.x Stiluri, teme, avataruri şi butoane”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 7 vizitatori