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

0 Members and 1 Guest are viewing this topic.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.863
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #60 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: 34
    • View Profile
Re: [Mod] New Images in Category v2
« Reply #61 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 #62 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 #63 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 :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] New Images in Category v2
« Reply #64 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 #65 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

 

Post your comments here