View Full Version : Change listing type
Siegie
16th of November 2004 (Tue), 11:43
I have another question. Is it possible to change the listing type also in 5 thumbnails per row, not only 4 or 7?
How can I do that?
Pekka
16th of November 2004 (Tue), 12:14
THIS IS FOR EE 1.5 RC4 ONLY.
Easiest is to change 4 per row to 5 per row:
in list.php change line
if ($select_output=="4_per_row")
{$thumbs_per_row = 4; include ($toroot . "outputstyles/x_per_row.php");}
to
if ($select_output=="4_per_row")
{$thumbs_per_row = 5; include ($toroot . "outputstyles/x_per_row.php");}
and then change in languages/xxx/global.php
$translated["output_4_per_row"] = "4 thumbnails per row";
to
$translated["output_4_per_row"] = "5 thumbnails per row";
---------------
To add one more choice you'd need to
in list.php replace
ee_option_plain ("4_per_row",$select_output,ee_translate_A($translated["output_4_per_row"]));
with
ee_option_plain ("4_per_row",$select_output,ee_translate_A($translated["output_4_per_row"]));
ee_option_plain ("5_per_row",$select_output,ee_translate_A($translated["output_5_per_row"]));
Replace
if ($select_output=="4_per_row")
{$thumbs_per_row = 4; include ($toroot . "outputstyles/x_per_row.php");}
with
if ($select_output=="4_per_row")
{$thumbs_per_row = 4; include ($toroot . "outputstyles/x_per_row.php");}
if ($select_output=="5_per_row")
{$thumbs_per_row = 5; include ($toroot . "outputstyles/x_per_row.php");}
and add a translation item line to languages/xxx/global.php
$translated["output_5_per_row"] = "5 thumbnails per row";
for every language (xxx being the three letter language code for respective language folder).
I wrote and tested this very quickly -- it should work. Let me know if you have any problems.
Siegie
17th of November 2004 (Wed), 02:44
Ok thanks!
I still have EE 1.22, I first have to install the other version.
Is there also a way to change the listing in EE 1.22??
Siegie
17th of November 2004 (Wed), 02:51
Oh yes, I just tried it the way you said with EE 1.22 and it works there, too :D :D :D
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.