Author Topic: [Mod] Verschiedene thumbnail_bit Templates  (Read 45425 times)

0 Members and 1 Guest are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #15 on: June 05, 2007, 11:20:43 PM »
@impss,

- make a new thumbnail_bit for you new images ... !
- make a copy of your thumbnail_bit.html, edit this thumbnail_bit.html for your needs and save it as thumbnail_bit_new.html
- now you can change in the index.php
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
to
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit_new");


 
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #16 on: June 05, 2007, 11:24:49 PM »
sorry mawenzi

maybe i didnt explain in correctly.

I need it to change the thumbnail_bit for the new images specifically for a certain category.

I have thumbnail_bit_10.html working in the categories and search page. but i cant figure out how to make it select for the new images and random image.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #17 on: June 05, 2007, 11:39:13 PM »
... mmm ...  :?
... I don't understand ... maybe this ... ?
... if a image from category 10 is shown as new image in the index.php ...
... this image must be shown in thumbnail_bit_10.html ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #18 on: June 06, 2007, 12:08:10 AM »
yes.. a new image from category 10 will used the thumbnail_bit_10.html. while the rest of the new images will use the regular thumbnail_bit.html template

thats what im looking for.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #19 on: June 06, 2007, 12:16:44 AM »
... then try this ...
... change in the index.php ...
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
to
Code: [Select]
if ($image_row['cat_id'] == 10) {
$new_images .= $site_template->parse_template("thumbnail_bit_10");
} else {
$new_images .= $site_template->parse_template("thumbnail_bit");
}

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #20 on: June 06, 2007, 12:26:08 AM »
so theres no way for it to automatically detect the use of a custom template like it does for catogories?

cause i was thinking in the future i may use custom thumbnail_bits for other categories to.

*edit* what u posted works for just that template like it should.. but if i have multiple custom thumbnail bit i dont know what to do..

sorry if im being a pain.
« Last Edit: June 06, 2007, 12:36:38 AM by impss »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #21 on: June 06, 2007, 12:53:27 AM »
... then try this ...
... change in the index.php ...
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
to
Code: [Select]
if (file_exists(TEMPLATE_PATH."/thumbnail_bit_".$image_row['cat_id'].".html")) {
    $thumbnail_bit_cat = "thumbnail_bit_".$image_row['cat_id'];
    $new_images .= $site_template->parse_template("$thumbnail_bit_cat");
} else {
    $new_images .= $site_template->parse_template("thumbnail_bit");
}
« Last Edit: June 06, 2007, 03:25:50 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #22 on: June 06, 2007, 01:04:58 AM »
Parse error: syntax error, unexpected '"' in /home/fbiss/public_html/gallerytest/index.php on line 263

my line 263 is

Code: [Select]
$thumbnail_bit_cat = thumbnail_bit_".$cat_id.";

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #23 on: June 06, 2007, 01:31:42 AM »
... oh sorry ... I've udated my post above ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #24 on: June 06, 2007, 01:42:55 AM »
hmmm.. now it just shows the regular template

I hope u know, im so lost.

lol

but i really appreciate the help trying to get this working

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #25 on: June 06, 2007, 03:26:37 PM »
... I've udated my post above ... now tested ...  ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #26 on: June 06, 2007, 03:31:52 PM »

Awesome!!!!!!!!!! it works  8)


Thanks a ton mawenzi

Offline luener

  • Jr. Member
  • **
  • Posts: 54
  • Pessimisten sind Optimisten mit mehr Erfahrung!
    • View Profile
    • TopFoto24.com
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #27 on: November 04, 2009, 08:44:19 PM »
... then try this ...
... change in the index.php ...
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
to
Code: [Select]
if (file_exists(TEMPLATE_PATH."/thumbnail_bit_".$image_row['cat_id'].".html")) {
    $thumbnail_bit_cat = "thumbnail_bit_".$image_row['cat_id'];
    $new_images .= $site_template->parse_template("$thumbnail_bit_cat");
} else {
    $new_images .= $site_template->parse_template("thumbnail_bit");
}

I´m using 1.7.7.

The new thumbnail_bit_<cat_id>.html works only in the Cat, but not on the Index-Page...!!!

You can see it at www.topfoto24.com in the Cat: Wettbewerbe

Can someone help me please???


Ralf

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #28 on: November 04, 2009, 08:55:30 PM »
... folgendes mal ändern ...
Code: [Select]
$new_images .= $site_template->parse_template("$thumbnail_bit_cat");
... in ...
Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit_cat");
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline luener

  • Jr. Member
  • **
  • Posts: 54
  • Pessimisten sind Optimisten mit mehr Erfahrung!
    • View Profile
    • TopFoto24.com
Re: [Mod] Verschiedene thumbnail_bit Templates
« Reply #29 on: November 05, 2009, 01:18:34 AM »
sorry, auch nix...!

gruß
ralf