4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 24, 2014, 04:40:11 PM

Login with username, password and session length
Search:     Advanced search
Follow 4images on twitter: Click here to follow!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Thumbnail next to name category HELP!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Thumbnail next to name category HELP!  (Read 1317 times)
max99911
Pre-Newbie

Offline Offline

Posts: 2

Thank You
-Given: 0
-Receive: 0


View Profile
« on: February 11, 2013, 01:49:44 AM »

PL: Witam, jak zrobić, aby zamiast ikonki folderˇw obok nazwy kategorii pokazać losowe zdjęcie, właśnie z tej kategorii?? Prˇbowałem na wszystkie sposoby, ale już nie mam pomysłˇw jak temu zaradzić. Moja wizja : xxx: i49. tinypicxxx: /cndxw. png Pozdrawiam!

EN: Hi, how to do that instead of the folder icon next to the category name to show random thumbnail is in this category? My vision: xxx: i49. tinypicxxx: /cndxw. png Thank you for your help

http://i49.tinypic.com/cndxw.png
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4085

Thank You
-Given: 106
-Receive: 858

Vienna


View Profile WWW
« Reply #1 on: February 11, 2013, 04:24:04 AM »

Welcome to the Forum!
http://www.4homepages.de/forum/index.php?topic=6675.0

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
max99911
Pre-Newbie

Offline Offline

Posts: 2

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: February 11, 2013, 11:58:24 AM »

It does not work.

includes/constanst.php
1
2
3
4
5
// If you have a lot of images in your database,
// the random image function could make your programm slow.
// Try first to set "SHOW_RANDOM_CAT_IMAGE" to 0.
define('SHOW_RANDOM_IMAGE', 1);
define('SHOW_RANDOM_CAT_IMAGE', 1);

category_bit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">

       {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
    </td>
    <td>
  <a href="{cat_url}" class="maincat">{cat_name}</a>&nbsp;({num_images})
      {if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}
</td>
  </tr>
</table>
{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if sub_cats}{sub_cats}{endif sub_cats}

 Sad
Logged
Pages: [1] Print 
« previous next »
Jump to:  

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