Author Topic: [MOD] limited number of categories per page (updated 08-06-2006)  (Read 119454 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 :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] limited number of categories per page
« Reply #60 on: August 10, 2005, 11:03:10 PM »
And add to what TheOracle said:
If you want get proper support, do not do more and anything else but exactly what the guide told u to do ;)
Ones, its installed, tested and everything works fine, then do whatever modifications u wish.

Now, back to your problem. I have no clue what could u do to categories.php or functions.php or other files that would affect $cat_id be always 0, so, test it on a fresh 4images, perhaps retrace your steps when did other modifications, etc.
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 iraklis

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #61 on: August 11, 2005, 09:48:05 AM »
i first changed categories.html with no effect, so i modified home.html and it was indicated. just the problem i still have, emerged.

so i think i will try it on a fresh 4images.


thank you so far for your support and patience  :mrgreen:

regards

Offline iraklis

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #62 on: August 11, 2005, 01:42:04 PM »
ooh man

so i try it on a fresh 4images

changes

-function.php
-categories.html

effect

-the number categories decrease  ok
-the {cat_page} isn't shown   not ok


changes 2
-function.php
-categories.html
-home.html

effect

-the number categories decrease  ok
-the {cat_page} is shown            ok
-i can't change the cat_page    not ok (cat_id=0)


attachement
home.html
categories.html
function.php

i really don't know what's wrong!!!

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] limited number of categories per page
« Reply #63 on: August 11, 2005, 02:22:41 PM »
1) I see no mention about new paging.php class ;)
2) cat_id=0 will only be showed when u access homepage - that is normal
3) lets fix first the original code then u can play with home.html and such ;)
4) see no {cat_paging_stats} which beliver or not could help too ;)
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 iraklis

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #64 on: August 11, 2005, 02:53:08 PM »
1) I see no mention about new paging.php class ;)
2) cat_id=0 will only be showed when u access homepage - that is normal
3) lets fix first the original code then u can play with home.html and such ;)
4) see no {cat_paging_stats} which beliver or not could help too ;)

1) ok and paging.php is uploaded  :mrgreen:
2) you know what i mean with cat_id, if i hover the link to cat_page number "2"
3) yes, but why i cannot see the {cat_paging} and {cat_paging_stats}  if just include it in categories.html, that's the reason why i modify the home.html
4) ok now it's {cat_paging} and {cat_paging_stats} included in categories.html and excluded in home.html, now i've the problem (see above)

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] limited number of categories per page
« Reply #65 on: August 11, 2005, 02:59:16 PM »
I'm running out of ideas...
can I see it in action? (PM me if u dont want publish your site url)
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 Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Problem with cache function unsing this MOD
« Reply #66 on: September 02, 2005, 02:05:24 PM »
When I use the cache function of the script I get a problem with this mod.

It caches first site of my categories but then I can't get to page 2 or 3. Paging does not work anymore. Has anyone a solution for this ?
----------------------------------

Have a nice Day

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #67 on: November 08, 2005, 05:08:37 PM »
hi this is my site http://www.partymetropole.de/jako

i donīt know why all the catecogries are in one line

and the {cat_pagin} ist not shown

i set 2 categories per site but it does not work...

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #68 on: November 09, 2005, 05:38:26 PM »
now it works

but i have another problem

how can i make it work for main categories

now it just works for the sub cats...

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] limited number of categories per page
« Reply #69 on: November 10, 2005, 12:09:38 AM »
Do the same changes from Step 3 but in home.html template
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 cneal

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #70 on: January 23, 2006, 01:05:56 AM »
i'm having trouble with cat_paging on home.html. i only want to display 9 categories...which i can do, the problem is being able to go to the next page of categories. when i click on page 2 for example, the link reads : http://www.mysite.com/gallery/categories.php?cat_id=0&sessionid=abf5e1a9bf52a1d3a08cda51b1228f8f&cat_page=2 

but i am transfered back to index.php.

my paging works fine within the categories.
« Last Edit: January 23, 2006, 03:03:29 AM by V@no »

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] limited number of categories per page
« Reply #71 on: January 23, 2006, 03:02:28 AM »
In index.php below <?php insert:
Code: [Select]
$indexphp = 1;Then in includes/functions.php find:
Code: [Select]
$link_arg = $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);Insert above:
Code: [Select]
global $indexphp;
if (isset($indexphp) && $indexphp == 1)
  $link_arg = $site_sess->url(ROOT_PATH."index.php");
else
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 cneal

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #72 on: January 23, 2006, 05:10:13 AM »
it didn't work.

i inserted
$indexphp;
below <?php in index.php

and i couldn't find: $link_arg = ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;

i did find: $link_arg = $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);

so my code reads:
$link_arg = $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);
global $indexphp;
if (isset($indexphp))
{
  $link_arg = ROOT_PATH."index.php";
}

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] limited number of categories per page
« Reply #73 on: January 23, 2006, 05:23:41 AM »
Ok, try again, I've udated the code above (including the line in index.php)
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 Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #74 on: April 25, 2006, 10:52:55 AM »
Thanks for this great MOD, just tried it, unfortunately no errors, but no category displayed all.... its empty on home.html and catagory.html

I was interested to apply this mod to only the subcategory and leave the main category as default.... is it possible?
and also wanted to apply this mod on the sub-category page (leaving the home page as normal)

:?: