Poll

I am new as 4homepages, Please help me

this is in a hurry
0 (0%)
please help me
0 (0%)

Total Members Voted: 0

Author Topic: Show images and description at homepage ! Show to length !  (Read 4451 times)

0 Members and 1 Guest are viewing this topic.

Offline samacsahara

  • Pre-Newbie
  • Posts: 4
    • View Profile
Show images and description at homepage ! Show to length !
« 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">

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #1 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. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline samacsahara

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #2 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>