4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: samacsahara on September 22, 2007, 12:21:07 AM

Title: Show images and description at homepage ! Show to length !
Post by: samacsahara on September 22, 2007, 12:21:07 AM
This is how may index page look and so the calories pages

<IMG src="http://206.221.180.50/~ibvn/baodoanket/templates/default/images/ScreenHunter1.jpg" width="913" height="885" border="0">



please help me make it look laik that, all i want is th 10 % off the image discription show on it, rather that the 100% discription shoe up on the thumpnail space


<IMG src="http://206.221.180.50/~ibvn/baodoanket/templates/default/images/ScreenHunter2.jpg" width="913" height="885" border="0">
Title: Re: Show images and description at homepage ! Show to length !
Post by: thunderstrike on September 22, 2007, 05:18:32 AM
Welcome to 4homepages forum.

What is code you use for this ?

Please post code by use: [ code ] to [ /code ] (no space). I look. ;)
Title: Re: Show images and description at homepage ! Show to length !
Post by: samacsahara on September 24, 2007, 01:25:15 AM
This code:

edit index.php
Find:
Code:
$num_new_images = $config['image_cells'];
and replace by:
Code:
$num_new_images = 5 ;
$config['image_cells'] = 1 ;
So it shows the last 5 new images in 5 rows of one image.

Open templates/your_template/thumbnail_bit.html

Replace the existing code by this one:
Code:
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<img src="./templates/default/images/go.gif" />&nbsp;<a href="{cat_url}">{cat_name}</a>
</td>
</tr>
<tr>
<td colspan="2" width="100%">

<a href="{image_url}"><b>{image_name}</b></a> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new}
</td>
</tr>
<tr>
<td valign="top">
{thumbnail}
</td>
<td valign="top">

{image_description}
</td>
</tr>
</table>