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

0 Members and 1 Guest are viewing this topic.

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [Mod] New Images in Category v2
« Reply #45 on: November 08, 2005, 10:21:56 PM »
@acidgod
ok unterdessen hab auch ich verstanden worum es geht  :oops:
gruss
vincent

Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] New Images in Category v2
« Reply #46 on: December 11, 2005, 05:09:44 PM »
Code: [Select]
foreach ($new_image_cache as $key => $val) {
    if ($val && check_permission("auth_viewcat", $key)) {
    $category_link = "<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_new_images=1&cat_id=".$key."&sub_cat=no")."\">".$val."</a>";
    $new_image_category .= "<tr><td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$cat_cache[$key]['cat_id'])."\">".$cat_cache[$key]['cat_name']."</a></td><td><b>".$category_link."</b></td></tr>";
  }
}

Dort in der page_header.php an dieser stelle (<td><b>".$category_link."</b></td>) dein align im TD Tag definieren...

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [Mod] New Images in Category v2
« Reply #47 on: January 16, 2006, 03:12:03 PM »
hallo!
ich hätte da auch einen wunsch:
ich möchte gerne ein kategorie-image angezeigt bekommen. hat jemand eine idee für mich?

Offline Alanmelon

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #48 on: January 18, 2006, 03:37:41 PM »
Is it possible to modify this to display the new category and its immediate parent category in the display box?  E.g. Family Photos > Dad. If so, can anyone recommend how?

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] New Images in Category v2
« Reply #49 on: February 21, 2008, 09:40:55 PM »
Hallo!

Ich habe das selbe Problem wie Ivan. Ich finde es zwar nicht allzu schlimm, ist aber einen Fehler.
Quote
Nun grundsätzlich funktioniert der Mod aber wenn ich die Zahl "Anzahl Bilder" Anklicke
wechselt es in den Suchmodus, anschliessen klicke ich auf 30 Bilder Anzeigen und
da wird lustiger weise "Die Suche ergab leider keine Treffer." angezeigt.

Wie können die Kategorien anderst als cat_id sortiert werden?
Ich möchte gerne die Kategorie zu oberst haben mit den allerneusten Bilder (Sortierung wie bei den Bilder: image_date DESC).
Ist dies überhaupt möglich?

Vielen Dank im Voraus.
Grüsse Jones

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #50 on: February 21, 2008, 09:45:46 PM »
Hallo,

kann das was für Dich sein  :arrow: http://www.4homepages.de/forum/index.php?topic=4312.0

nobby

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] New Images in Category v2
« Reply #51 on: February 21, 2008, 10:05:53 PM »
Hallo

Danke für deine prompte Antwort.

Ich glaube eher weniger, da ich nicht alle Kategorien anderst ordnen möchte, sondern nur bei dieser Anzeige der Kategorien von diesem MOD.
Demfall eher unwahrscheindlich, dass es gehen würde.

Gruss

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #52 on: February 21, 2008, 10:07:30 PM »
Ja, hier war mal was mit Sortierung von Kategorien.

Schade das es Dir nicht Hilft.

Offline praveen

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #53 on: May 02, 2009, 08:50:38 AM »
Thanks for this nice mod. been looking for it.

one question, how do i get the recently updated category to the top. right now it shows in the bottom of the list.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] New Images in Category v2
« Reply #54 on: May 29, 2009, 10:24:38 PM »
Do somebody know if it is  hard to set up this Mod for only 1 or 2 categories and their subcategories - not for all for them ? I want only to show the info  from one - two categories and their subcats . Like this I have 40cm long list in sidebar with many not very interesting cats , or if their is some possibility to reduce - days , number of cats etc . I didnt find anything for reduce - for example only for last 5 days . Thanks Daniel , otherwise easy to install and I think that also useful .

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #55 on: April 23, 2010, 07:05:42 PM »
Hi -

Using v1.7.7

Got this MOD installed and working great except for one issue: an error message on the second and additional search pages:

Notice: Undefined variable: sub_cat in /home1/glxxxx/public_html/ouragallery/search.php  on line 220

Here is line 220 from search.php file:

if ($sub_cat != "no") {          // Show New Image count in category Mod

which is directly from this MOD

How do I see this error?

I click on the number of new images in a given particular category. In this case, it was 48 images. The result is the search page that presents 48 images, and I have it set to show 18 images per page. First page is fine. However, if I click on page 2 or page 3, the above error displays above the header.

Here is the url that is associated with page 3:
http://www.gxxx.info/ouragallery/search.php?show_result=1&page=3

Anyone else experience this? Got any ideas how to fix this?

Thanks,

Brian

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] New Images in Category v2
« Reply #56 on: April 24, 2010, 02:08:57 AM »
The code on first page is fixed now.

In search.php find:
if (isset($HTTP_GET_VARS['sub_cat'])) { 
  
$sub_cat trim($HTTP_GET_VARS['sub_cat']); 
}


Insert below:
else
{
  
$sub_cat = isset($HTTP_POST_VARS['sub_cat']) ? trim($HTTP_POST_VARS['sub_cat']) : 1;
}
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 surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #57 on: April 25, 2010, 02:27:04 AM »
Hi -

Thanks for the quick solution. Made the code changes and badda bing, everything is working perfectly.

Brian