Author Topic: [MOD] limited number of categories per page (updated 08-06-2006)  (Read 119488 times)

0 Members and 1 Guest are viewing this topic.

Offline Tiburon

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.hintergrundbilder.de
Re: [MOD] limited number of categories per page
« Reply #15 on: June 21, 2005, 03:30:14 PM »
Hi v@no, thx for your answer but the problem are not the numbers, the problem is that there is no page number 2,3,4.

It is always page number 1 that is shown with the first 10 galleries and users cant get access to galleries which should be on page 2,3,4  :?

----------------------------------

Have a nice Day

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 #16 on: June 22, 2005, 04:52:53 AM »
make sure u did step 2
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
Re: [MOD] limited number of categories per page
« Reply #17 on: June 22, 2005, 11:36:35 AM »
I did step 2, means I replaced the old paging.php with your new version.

It seems to change the site (because the pages loads again) also it accepts configurations I do in functions.php (e.g. changing number of categories per page) but there are always only the first categories.  :cry:
----------------------------------

Have a nice Day

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 #18 on: June 22, 2005, 02:31:33 PM »
can I see it?
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
----------------------------------

Have a nice Day

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 #20 on: June 23, 2005, 12:44:07 AM »
I can tell u right now, you did not do Step 2.
Please tripple check that u've uploaded the correct paging.php to the correct path. (/includes/paging.php)

If u look at the url of page 2 on your site, u can see page=2 which is would be with the default paging.php. With new paging.php it should be cat_page=2 instead.
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
Re: [MOD] limited number of categories per page
« Reply #21 on: June 23, 2005, 08:58:40 AM »
Well, I checked it again and I have downloaded the paging.php again (it is from 11/02/2005) and I loaded it up again into includes/paging.php and nothing changes.  :(

Wenn i load up the old one I get this error:

Fatal error: Cannot redeclare class paging in /pages/69/fa/d0003121/htdocs/hintergrundbilder/wallpaper/includes/paging.php on line 28

So it ist only the new one that works.


----------------------------------

Have a nice Day

Offline Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #22 on: June 25, 2005, 01:26:41 AM »
Hi,

I also tryed this Mod and also cannot get it to work.
Have the same problems, it shows the pages but nothing happens when you click them.
Also did the echo page by V@no, it gives a 0.
Would be nice to get it working because we in some categories more than 50 subcategories.
It would be very nice to get it fixed...

Thanks,

Loet
Loet van Oostende

Offline cneal

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #23 on: June 25, 2005, 03:26:39 AM »
hi.  :D i'm having the same problem. are u sure you have the correct file online for us to download? isn't $page_text : "page"; supposed to be like $page_text : "cat_page"; or something like that? this file: http://gallery.vano.org/file18 doesn't have "cat_page" listed anywhere in it.
« Last Edit: June 18, 2006, 10:06:13 PM 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 #24 on: June 25, 2005, 04:49:07 AM »
ok, try replace from step 1.2 $HTTP_GET_VARS with $_GET

@cneal:
cat_page is an extra argument this mod sends to the paging class, that's why the new paging class needed which can handle new stuff.
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 Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #25 on: June 26, 2005, 11:40:12 AM »
V@no,

I made all the changes, but no result.
BTW, I did a fresh install of 4Images 1.7.1 to test, no other MODS installed.

Maybee this is of some help.
I have put this code in categories.html and I saw that cat_paging_stat is not working.
Code: [Select]
<br><b>
test cat_paging<br></b>
{cat_paging}<br><b>
test cat_paging_stats<br>
{cat_paging_stats}</b>
<br />

And it shows this (screenshot):


The link it creates to go the next page is also not completely filled.
It looks like:
"http://medion2/4images/categories.php?cat_id=157&sessionid=a37ea6ad09301c8ae0c4f3914a91c734&page=2#Found  categories on  page(s). Displayed category  to"

So it looks like the script does not know on what page it is.
It stays "0"
Any idea? :?:

Loet
Loet van Oostende

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 #26 on: June 26, 2005, 12:51:53 PM »
ok, guys, my bad, seems to me I've updated the paging class after this mod was created...
So, try to replace in Step 1.2:
Code: [Select]
$getpaging = new Paging($page, $perpage, $total, $link_arg, "cat_page", $cat_text);with this:
Code: [Select]
$getpaging = new Paging($page, $perpage, $total, $link_arg, $cat_text, "", "cat_page");
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
Re: [MOD] limited number of categories per page
« Reply #27 on: June 26, 2005, 02:13:12 PM »
Ok guys, good work, you made V@no believe that it was not me, forgetting step 2. GREAT !  :)

@ V@no, you got it ! Seems that it works perfectly now.  :mrgreen: :mrgreen: :mrgreen:

THANKS  :) :) :)
----------------------------------

Have a nice Day

Offline Loet

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] limited number of categories per page
« Reply #28 on: June 26, 2005, 04:15:02 PM »
Thanks V@no.

Paging works now, perfect.
The only thing that it does not show is the total number of categories in the cat_paging_stats.
Not a big problem, just do not use cat_paging_stats, but is there a way to get that value in {total_something}?

Loet

Loet van Oostende

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 #29 on: June 26, 2005, 08:55:54 PM »
omg....huh? :?

wierd...replace total_something with total_cat_images
or redo Step 1.2, its fixed now.
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)