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