• [MOD] Category Image v1.0.2 4 0 5 1
Currently:  

Author Topic: [MOD] Category Image v1.0.2  (Read 379261 times)

0 Members and 1 Guest are viewing this topic.

Offline roger13

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #60 on: March 17, 2006, 10:47:09 AM »
 
:!: And is very important, that both kind of changes only works in Version: 1.7.2 :!:



Offline sau4scr

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #61 on: March 20, 2006, 04:54:28 AM »
V@no -

I get this when I try to add a new category. I believe it is because there is no field for a category image number when you add a new category. It still creates the category and all though.

Notice: Undefined index: 0 in /home/weston3/public_html/photographybyweston/gallery/admin/categories.php on line 500

Warning: Cannot modify header information - headers already sent by (output started at /home/weston3/public_html/photographybyweston/gallery/admin/categories.php:500) in /home/weston3/public_html/photographybyweston/gallery/includes/functions.php on line 47

Offline sau4scr

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #62 on: March 20, 2006, 05:25:45 AM »
Actually I kind of figured it out sort of. So what it is is there is no where in you're mod where you put a new row in the add categories field unless I am completely skipin something. I restored and redid the whole mod three times and got the same error. I eventually found the part where it is addcat form and i added a row right under the category name. Problem is on the left, it gives you no field name description which is kind of frustrating. Otherwise it works. If you could tell me how to give it a description name on the left I would appreciate it.

Thanks!

Offline sau4scr

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #63 on: March 20, 2006, 05:44:15 AM »
Again, nevermind I found it. Ok so you need to go into the categories.php file:

Find this:
  show_form_header("categories.php", "savecat", "cat_form");
  show_table_header($lang['nav_categories_add'], 2);
  show_input_row($lang['field_category_name'], "cat_name", "", $textinput_size);

Add Below this:
/*cat image row*/
  show_input_row($lang['field_cat_image'], "cat_image", "", $textinput_size);


Now go into your template package and open admin.php...
Find:
$lang['field_image_name'] = "Image name";
$lang['field_category_name'] = "Category name";

Add Below:
$lang['field_cat_image'] = "Image ID Number";
Where the "Image ID Number" is the row description for that field.

Save and upload, no more error.

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Category Image v1.0.2
« Reply #64 on: March 23, 2006, 09:49:53 PM »
this mod works perfect in 1.7.2  :D
thanks for this mod  :lol:



Offline xix17_ryan

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #65 on: April 25, 2006, 08:46:02 PM »
Hi, I use this mod.

but my problem is that I use the Category Images on the 1st Level and have subcategories, once I go into the 1st Level category, it list the Logo. but i dont wan to show the logo images as a thumbnail.

can anyone help me please

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: [MOD] Category Image v1.0.2
« Reply #66 on: April 26, 2006, 12:08:36 AM »
I dont understand neither is what you are using (asuming you are not using this mod), nor what is the problem...
This mod will show a thumbnail as a category icon only on the categories YOU selected.
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 andrey_fix

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #67 on: April 26, 2006, 03:46:16 PM »
Надеюсь есть кому прочитать и ответить?

Установил мод Category Image v1.0.1, сделал все как написано.
Если в Админ панели устанавливаем картинку для  категории, она показывается на первой странице, если убираем и делаем, чтобы показывались выборочно, то на первой странице не показывает картинки, заходишь в подраздел, там показывает ;(

В чем может быть проблема??

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: [MOD] Category Image v1.0.2
« Reply #68 on: April 26, 2006, 11:41:18 PM »
Если в Админ панели устанавливаем картинку для  категории, она показывается на первой странице, если убираем и делаем, чтобы показывались выборочно, то на первой странице не показывает картинки, заходишь в подраздел, там показывает ;(

В чем может быть проблема??
Предполагаю проблема в category_bit.html темплете, точнее проблема с тагами в той темплете.
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 andrey_fix

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #69 on: April 29, 2006, 03:06:46 PM »
 Просмотрел содержимое вывода первой страницы, и такое впечатление что не находит путь к изображениям, а только к директории, вот что внутри страницы где должна быть картинка:

<a href="./categories.php?cat_id=5&amp;sessionid=839f0c48e738da9e3ffc97405c294cff"><img src="" width="40" border="1" heigh="30" /></a>



а вот содержимое category_bit.html
-----------------------
<table border="0" cellspacing="0" cellpadding="0">
  <tr>    <td valign="top">
         <!-- <img src="{template_url}/images/folder.gif" width="20" height="13" alt="">!-->



        {if cat_image}<img src="{cat_image}" width="40" height="30" border="1" hspace="3" align="left">{endif cat_image}



      {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1" width="40" heigh="30"></a>&nbsp;&nbsp;{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}
----------------------------------------

Offline whoopiedoo2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #70 on: April 30, 2006, 04:42:17 AM »
on my index page, im getting this error:
Quote
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/likewoah/public_html/whoopiedoo/includes/functions.php:5) in /home/likewoah/public_html/whoopiedoo/includes/sessions.php on line 86

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/likewoah/public_html/whoopiedoo/includes/functions.php:5) in /home/likewoah/public_html/whoopiedoo/includes/sessions.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/likewoah/public_html/whoopiedoo/includes/functions.php:5) in /home/likewoah/public_html/whoopiedoo/includes/sessions.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /home/likewoah/public_html/whoopiedoo/includes/functions.php:5) in /home/likewoah/public_html/whoopiedoo/includes/sessions.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /home/likewoah/public_html/whoopiedoo/includes/functions.php:5) in /home/likewoah/public_html/whoopiedoo/includes/sessions.php on line 94

 

also, that update forv1.7.2, i couldnt find  $cat_image = "";

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: [MOD] Category Image v1.0.2
« Reply #71 on: April 30, 2006, 04:57:03 AM »
what is on line 5 in your include/functions.php?

You cant find it? that line is from step 2.4! if you cant find it, then I'd suggest you follow more carefully the instructions ;)
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 whoopiedoo2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #72 on: April 30, 2006, 05:13:25 AM »
on line 5: *

and i looked through the file adn i couldnt find it, i did a search adn i think i found, but is it the same $cat_image = "";  that i had to add to the file?



and thnx for replying

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: [MOD] Category Image v1.0.2
« Reply #73 on: April 30, 2006, 06:09:56 AM »
make sure you upload .php files in ASCII (text) and not BINARY mode!
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 whoopiedoo2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #74 on: April 30, 2006, 06:35:08 AM »
that may be why