Author Topic: [Mod] New Images in Category v2  (Read 76327 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New Images in Category v2
« Reply #30 on: August 03, 2005, 12:25:47 AM »
Just to clarify so I understand: Move that to my header.html?
no, move the code you added in includes/page_header.php above
Code: [Select]
//-----------------------------------------------------
//--- Parse Header & Footer ---------------------------
//-----------------------------------------------------
and not in header.html template!
Then you should be able use {new_image_cats} tag in header.html template.

P.S. sorry for editing your post, I pressed a wrong button, thought I was writing a reply, when its turned out I edited yours...
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 IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] New Images in Category v2
« Reply #31 on: August 03, 2005, 06:21:15 AM »
Thank you so very much V@no!!!! You truly are a life saver! :D At least a saver of my sanity! LOL

But I also have the same problems that everyone else posted about having trouble with the search results. If I click on the Category name, that category does show. But if I click on the number it brings up all new pictures. I double checked and even triple checked with the help of my husband and still nothing. I'll post my 2 bits of code that was told to be changed in the search.php with a few lines before and after to see if there was something like "whitespace" or something going on.

Code: [Select]

if (isset($HTTP_POST_VARS['search_fields'])) {
  $search_fields = trim($HTTP_POST_VARS['search_fields']);
}
else {
  $search_fields = "all";
}
//-----------------------------------------------------
//---Show New Image count in category Mod -------------
//-----------------------------------------------------

if (isset($HTTP_GET_VARS['sub_cat'])) {
 $sub_cat = trim($HTTP_GET_VARS['sub_cat']);
}

if (isset($HTTP_GET_VARS['cat_id'])) {
 $search_cat = intval($HTTP_GET_VARS['cat_id']);
}
else {
$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;
}
//----------------------------------------------------------------------------
//---End of Show New Image count in category Mod -----
//----------------------------------------------------------------------------

$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;





Code: [Select]

if (!empty($search_id['search_cat']) && $search_id['search_cat'] != 0) {
    $cat_id_sql = 0;
    $sub_cat_ids = get_subcat_ids($search_id['search_cat'], $search_id['search_cat'], $cat_parent_cache);
     if (check_permission("auth_viewcat", $search_id['search_cat'])) {
      $cat_id_sql .= ", ".$search_id['search_cat'];
      if ($sub_cat != "no") { // Show New Image count in category Mod
      if (!empty($sub_cat_ids[$search_id['search_cat']])) {
        foreach ($sub_cat_ids[$search_id['search_cat']] as $val) {
          if (check_permission("auth_viewcat", $val)) {
            $cat_id_sql .= ", ".$val;
          }
        }
      }
    }  // Show New Image count in category Mod
  }
}
  else {
    $cat_id_sql = get_auth_cat_sql("auth_viewcat");
  }




Also, (sorry  :oops:), how to I go about adding the Title (New Images Added, etc.) to the top like it is for Random Images (screen shot attached). And how do I make it so that the number of the new images stays where they are, but move back the category names so they are more to the left?

Thank you so much!!
Namaste,
Tina

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] New Images in Category v2
« Reply #32 on: August 03, 2005, 11:05:52 PM »
I was able to fix the search issue:) I'll share what I found specifically for those that may have trouble like I did. As "Legendary" mentioned, there was an extra line of code floating around. This is what you need to delete AFTER End of Show New Image count in category Mod.

Code: [Select]

$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;



I hope this helps others:)


But I still need help on adding the Title (New Images Added, etc.) to the top like it is for Random Images and how to make it so that the number of the new images stays where they are, but move back the category names so they are more to the left. Anyone?
Namaste,
Tina

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] New Images in Category v2
« Reply #33 on: August 04, 2005, 03:59:48 AM »
Nevermind:) I was able to figure out everything on my own :D
Namaste,
Tina

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #34 on: October 31, 2005, 07:15:21 PM »
what if I want the numbers of then new images to lead to only the user's new images not all new images ?
is it posible to do so ? how ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New Images in Category v2
« Reply #35 on: November 01, 2005, 12:10:26 AM »
User's new images? what does it have to do with this mod?
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 Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #36 on: November 01, 2005, 01:45:23 AM »
I meant  for that category not for all category .. that's when I click the number

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New Images in Category v2
« Reply #37 on: November 01, 2005, 02:07:23 AM »
If you installed this mod properly, that's how it would be.
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 Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #38 on: November 01, 2005, 04:12:50 PM »
If you installed this mod properly, that's how it would be.

yes .. I take this solution :
I was able to fix the search issue:) I'll share what I found specifically for those that may have trouble like I did. As "Legendary" mentioned, there was an extra line of code floating around. This is what you need to delete AFTER End of Show New Image count in category Mod.

Code: [Select]

$search_cat = (isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;



I hope this helps others:)


But I still need help on adding the Title (New Images Added, etc.) to the top like it is for Random Images and how to make it so that the number of the new images stays where they are, but move back the category names so they are more to the left. Anyone?

thanks for both .. it's working now

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #39 on: November 01, 2005, 11:33:53 PM »
SORTED 8)
[moved the script up on page_header seamed to work for me.]

just got to get the title heading to sorted now  :roll:

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Mod] New Images in Category v2
« Reply #40 on: November 08, 2005, 11:56:59 AM »
hello, has the problem that the categories are not sorted "a-z"!
how can I reach that?

example left side "Letzte 45 Tage" on http://www.bildergallery.com

Greetz ivan
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] New Images in Category v2
« Reply #41 on: November 08, 2005, 12:06:55 PM »
Sorry ich antworte wieder in deutsch... (o:

Der zeigt dir nur die letzte xx Bilder an und diese halt nach upload datum sortiert und ein umsotieren ist hier nicht vorgesehen... (o:

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Mod] New Images in Category v2
« Reply #42 on: November 08, 2005, 12:27:14 PM »
danke für dein mail

hier meine gallery



foto kocher



wie kann man dies ändern? meinst du ist dies zufall?

gruss ivan


http://www.bildergallery.com
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] New Images in Category v2
« Reply #43 on: November 08, 2005, 12:31:56 PM »
wie schon gesagt, das aktuellste Bild wird oben angezeigt, mehr gesagt die Kategorie in welches es hochgeladen wurde.

wirst du jetzt ein bild in eine andere kategorie uploaden wird diese ganz oben stehen und das lässt sich mit diesen Mod nicht ändern... )o:

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Mod] New Images in Category v2
« Reply #44 on: November 08, 2005, 12:39:37 PM »
hallo acidgod,

gehe mal auf diese seite http://www.foto-kocher.com/sitemap.php

scheinbar ist alles schön sortiert, habe die bilder angeklickt...

1. cat / bild 31.12.2005
2. cat / bild 27.10.2005
3. cat / bild 31.10.2005

gruss
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

 

Post your comments here