Redimensionare avatar & imagini

Pentru întrebări legate de facilităţile forumului phpBB 3.0.x, acest loc este cel mai potrivit.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Închis
staycu
Utilizator înregistrat
Mesaje: 23
Membru din: 10-Mai-2008, 01:21:10
Versiune: 3.0.0
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Localitate: brasov
Contact:

Redimensionare avatar & imagini

Mesaj de staycu »

Salutare again.am vazut edit pe thread ul trecut,ca la fiecare problema sa deschid alt thread...bun,asa fac :) ...ma gandeam sa nu mai fac 1000 de thread-uri :) ...sa va intreb acum :

-un script sau ceva sa pot redimensiona imaginile pe care o persoana le posteaza pe forum ?

-un script sau ceva,ca sa redimensionez avatarul ? (de exemplu,un user isi pune o imagine de rezol 1024 * 768,de 700 kb...forumul sa o accepte,dar sa o redimensioneze...)

multumesc frumos.
Avatar utilizator
Muzet
Fost coleg
Mesaje: 2295
Membru din: 18-Mar-2008, 23:29:52
Versiune: 0.0
Ext: Nu
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Experimentat

Mesaj de Muzet »

1. Ai nevoie de MOD-ul Reimg Image Resizer
Detalii şi link download :
  • MOD Title: Reimg Image Resizer
    MOD Description: Resizes user-posted images that are too large, optionally overlaying a zoom button to view the original-sized image (optionally in a lightbox).
    MOD Version: 0.0.A6
    MOD Download: Here
    phpBB Version: 3.0
    Supported styles: prosilver, subsilver2
    Supported languages: English, Dutch
2. Atunci când pune link către o imagine are jos opţiunea Demensiunile avatarului şi acolo pune dimensiunile iar acesta le redimensionează automat, de exemplu imaginea originală este 540 x 900 iar el setează acolo 150 x 130.
Avatar utilizator
leobugg
Utilizator înregistrat
Mesaje: 26
Membru din: 03-Iun-2008, 15:47:35
Versiune: 3
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu

Ridimensionare imagini

Mesaj de leobugg »

Am rezolvat problema imaginilor. Mai ales a celor care sunt utilizate ca
link de la alte situri si iti da pesta cap tot stilul

eu am rezolvat asa:

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.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

<script>
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 > 400)
{
im.style.width = '400px';
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>
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 


 
Atentie: Forumul vostru face acesi chestie. Daca eu baga acum o imagine de 2000 px tot stilul se duce rau de tot...Utilizati modul asta.
Eu am facut o prova pe al vostru si credeti-ma era ceva de nedescris.


Pa
Nimic nu e imposibil!
Avatar utilizator
leobugg
Utilizator înregistrat
Mesaje: 26
Membru din: 03-Iun-2008, 15:47:35
Versiune: 3
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu

Mesaj de leobugg »

Pagina serarch_results.html din subsilver2 ca de stilul asta vorbesc acum trebuie si el modificat. Altfel cand vrei sa vezi un utilizator ce mesaje a pus pe forum va face din nou probleme cu dimensiunea imagini, adica stilul se duce.

Va recomand cu caldura sa introduceti scriptul:

Cod: Selectaţi tot

<script>
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>
Daca a-ti facut deja modificare anterioara cea in subsiler2 - viewtopic_body.html - ve-ti constata ca e acelasi script.

Practic dupa ce a-ti facut toti pasi din mod, puteti pune acest script pe oricare pagina unde aveti aceasta problema de redimensionare dupa <!-- INCLUDE overall_header.html -->.

succes
Nimic nu e imposibil!
Rapidistu
Utilizator înregistrat
Mesaje: 12
Membru din: 03-Iul-2008, 04:34:40
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Videle City
Contact:

Mesaj de Rapidistu »

leo eu am tema Hermes merge si pe asta :D
Avatar utilizator
megeo
Utilizator înregistrat
Mesaje: 1327
Membru din: 10-Feb-2007, 00:46:30
Versiune: 3.0.5
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Localitate: Timisoara

Re: Ridimensionare imagini

Mesaj de megeo »

leobugg scrie:Am rezolvat problema imaginilor. Mai ales a celor care sunt utilizate ca
link de la alte situri si iti da pesta cap tot stilul

eu am rezolvat asa:

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.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

<script>
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 > 400)
{
im.style.width = '400px';
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>
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 


 
Atentie: Forumul vostru face acesi chestie. Daca eu baga acum o imagine de 2000 px tot stilul se duce rau de tot...Utilizati modul asta.
Eu am facut o prova pe al vostru si credeti-ma era ceva de nedescris.


Pa
un sfat... ia pune acuma un header facut dintr-o imagine
posteaza pe forum imagine... toate se micsoreaza

si eu folosesc acest script si din cauza asta am headerul facut din mai multe bucati
geo
Avatar utilizator
leobugg
Utilizator înregistrat
Mesaje: 26
Membru din: 03-Iun-2008, 15:47:35
Versiune: 3
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu

Re: Redimensionare avatar & imagini

Mesaj de leobugg »

nu stiu care e problema, da la mine a mers asa.
Nu am header cu imagini mari, nu obisnuiesc sa lucrez cu imagini mari, lucrez cu div-uri 100% si folosesc imagini mici de obicei.
In mod sigur nu e o solutie unica, fiecare utilizeaza ceea ce i se pare mai bine.
Nimic nu e imposibil!
Închis

Înapoi la “3.0.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator