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

0 Members and 1 Guest are viewing this topic.

Offline bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Show images and description at homepage ! Show to length !
« on: September 13, 2007, 10:35:52 AM »
My 4images :   :(

             

I want to make like that  :

 :arrow: 

help me  :| !

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #1 on: September 13, 2007, 10:52:30 AM »
Will try it on my local host.. wait  :roll:

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #2 on: September 13, 2007, 02:02:33 PM »
Hello;
it seems that in this site, the owner has made these modifications:

  • edit index.php
Find:
Code: [Select]
$num_new_images = $config['image_cells'];
and replace by:
Code: [Select]
$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: [Select]
<!-- 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>

An image called "go.gif" () is parsed in this template file. Copy it to templates/your_template/images folder, if you need to use it.

Regards.

Offline bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #3 on: September 13, 2007, 06:32:36 PM »
it work ! i thanks manurom  :mrgreen:

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #4 on: September 17, 2007, 01:07:22 AM »
You're welcome.
Keep on working!

Offline bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #5 on: September 17, 2007, 07:38:40 AM »
Homepage is good but when click to categories :



it doesn't work  :|
Help me again ! thanks  :|

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #6 on: September 17, 2007, 09:52:15 PM »
Replace:

Quote
<!-- 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">

for:

Code: [Select]
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<img src="{template_url}/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>
        </tr>
       </table>
       <table border="0" cellpadding="3" cellspacing="0">
        <tr>
<td valign="top">
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 ?

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #7 on: September 17, 2007, 10:32:40 PM »
Hey! you're using my template 4apple2. Thanks!
But your forgot to make demanded modification in includes/page_header.php... (home tab).

What modification have you made to have such a display?
Feel free to contact me by PM, as I will keep on supporting my template release.

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #8 on: September 17, 2007, 10:58:11 PM »
OK, I found it.
You replaced my original thumbnail_bit.html file with the previous one. :?

Try to change it with this code:
Code: [Select]
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<img src="{template_url}/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 colspan="2" align="center" valign="top"> {thumbnail}</td>
</tr>
<tr>
<td colspan="2" align="center" valign="top"> {image_description} </td>
</tr>
</table>

Regards.

Offline bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #9 on: September 18, 2007, 02:52:24 AM »
No ! thumbnail_bit.html is good !

My homepage ! it's good




My category ! it show :






I want to make like that  :





Edit file index.php ?
« Last Edit: September 18, 2007, 03:05:28 AM by bogiayeu »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #10 on: September 18, 2007, 03:16:54 AM »
Try categories.html and category_bit.html file ?
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 bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #11 on: September 25, 2007, 08:06:35 AM »
My 4images homepage :




My category :








I want show category like homepage ! show to length !

What edit in category.php ?

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #12 on: September 25, 2007, 09:14:08 AM »
Hello, bogiayeu;
whynot simply go to your ACP and make that changes in the "settings" menu:



Regards.

Offline bogiayeu

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Show images and description at homepage ! Show to length !
« Reply #13 on: September 25, 2007, 03:34:28 PM »
Thank's manurom :mrgreen:


I want letterpress limite in description at homepage and category   :?

======
Ex :

  4images is a powerful web-based image gallery management system. Features include comment system, user registration and management, password protected administration area with browser-based upload and HTML templates for page layout and design.
  By using the integrated template system the design and layout can be customized easily. 4images is multilingual: an external language file can be used for translation in other languages.
  More features are: RSS feeds, search engine, automatic thumbnail generation, extensive user administration, upload function for users, showing IPTC and EXIF data of images, rating of images, spam protection, protection against hotlinking, newsletter function, e-cards, integrated database backup function, etc.

=====


I not want dislay full !  I want it dislay 50 letterpress limite in description at homepage and category :


======
EX:

4images is a powerful web-based image gallery management system. Features include comment system, user registration and management, password protected administration area with browser-based upload and HTML templates for page layout and design.
By using the integrated template system the design and layout can be customized easily. 4images  is  ...... 

====


 You can help me again !  :wink:

manurom

  • Guest
Re: Show images and description at homepage ! Show to length !
« Reply #14 on: September 25, 2007, 06:35:38 PM »
Very sorry, I did not read your posts as well as I should do :oops:
Try this to get short category description displayed in your homepage: Text kürzen nach ??? Zeichen kürzen. I think it is the good way.

Regards.