Author Topic: show detailed info in index page, question about {lang}  (Read 3897 times)

0 Members and 1 Guest are viewing this topic.

Offline jafori

  • Newbie
  • *
  • Posts: 19
    • View Profile
show detailed info in index page, question about {lang}
« on: August 18, 2006, 11:39:13 PM »
Hello...
Im trying to do the following without any succes:

show same details about the uploaded  images on details.htm, in the category page. where all the thumbnails are.
For instance to show {lang_description}: {image_description} in the index.htm...

the problem is that i dont know how to take a supportet lang function like {lang_description} from a htm file to another and make it work.. i think i have to add stuff in the php files... if anybody understand please help.. if not tell me and i will try to explain better..





its difficult to explain but i hope you understand.=(...
 

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: show detailed info in index page, question about {lang}
« Reply #1 on: August 19, 2006, 06:15:48 AM »
look in details.php under
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
You'll see bunch of "tag name" => $lang['blah']..
just copy/paste them into categories.php in the same place ;)

P.S. make sure each line in that array ends with a coma!
Your first three "must do" before you ask a question:
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)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jafori

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: show detailed info in index page, question about {lang}
« Reply #2 on: August 19, 2006, 11:12:51 PM »
Its not working =(
I did copy the print out section without any luck..
By the way im using the mod, Abgerundete Bilderboxen / rounded corners of image boxes
:( i wrote for example {lang_category} in the thumbnail_bit.htm but it didnt work out =(



here is the print out code in categories.php

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_category" => $lang['category'],
  "lang_added_by" => $lang['added_by'],
  "lang_description" => $lang['description'],
  "lang_keywords" => $lang['keywords'],
  "lang_date" => $lang['date'],
  "lang_hits" => $lang['hits'],
  "lang_downloads" => $lang['downloads'],
  "lang_rating" => $lang['rating'],
  "lang_votes" => $lang['votes'],
  "lang_author" => $lang['author'],
  "lang_comment" => $lang['comment'],
  "lang_prev_image" => $lang['prev_image'],
  "lang_next_image" => $lang['next_image'],
  "lang_file_size" => $lang['file_size']
));

$site_template->print_template($site_template->parse_template($main_template));

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: show detailed info in index page, question about {lang}
« Reply #3 on: August 19, 2006, 11:37:11 PM »
thumbnail_bit - you should've been more specific from the begining ;)

Above
Code: [Select]
include(ROOT_PATH.'includes/paging.php');Insert this:
Code: [Select]
$site_template->register_vars(array(
  "lang_category" => $lang['category'],
  "lang_added_by" => $lang['added_by'],
  "lang_description" => $lang['description'],
  "lang_keywords" => $lang['keywords'],
  "lang_date" => $lang['date'],
  "lang_hits" => $lang['hits'],
  "lang_downloads" => $lang['downloads'],
  "lang_rating" => $lang['rating'],
  "lang_votes" => $lang['votes'],
  "lang_author" => $lang['author'],
  "lang_comment" => $lang['comment'],
  "lang_prev_image" => $lang['prev_image'],
  "lang_next_image" => $lang['next_image'],
  "lang_file_size" => $lang['file_size']
));
(you can remove previous changes)
Your first three "must do" before you ask a question:
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)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jafori

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: show detailed info in index page, question about {lang}
« Reply #4 on: August 19, 2006, 11:55:04 PM »
I tried to do as you said in categories.php but without any success =(

Edited; *could you please edit a category file for me and make it work and send it to my mail...* jafori@gmail.com
I really did as you told me to do.. but im not getting any lang stuff in the thumbnails only empty spaces... =(
« Last Edit: August 20, 2006, 12:33:09 AM by jafori »