4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2018, 03:05:32 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  Show images and description at homepage ! Show to length !
0 Members and 1 Guest are viewing this topic. « previous next »
Poll
Question: I am new as 4homepages, Please help me
this is in a hurry - 0 (0%)
please help me - 0 (0%)
Total Voters: 0

Pages: [1] Print
Author Topic: Show images and description at homepage ! Show to length !  (Read 3335 times)
samacsahara
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« 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">
Logged
thunderstrike
4images Guru
*******
Offline Offline

Posts: 2327

Thank You
-Given: 0
-Receive: 10


View Profile
« 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. Wink
Logged

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 ?
samacsahara
Pre-Newbie

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


View Profile
« 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>
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.052 seconds with 21 queries.
Post your comments here