Author Topic: Paging Previous also on the first page ???  (Read 14469 times)

0 Members and 1 Guest are viewing this topic.

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Paging Previous also on the first page ???
« on: November 04, 2007, 07:32:20 PM »
Hy guys,

I have make the paging with a paging next and paging previous gif and i would like to have the paging previous gif also on the first page.

Haw can i make this???

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Paging Previous also on the first page ???
« Reply #1 on: November 04, 2007, 07:38:28 PM »
Hi

1: paging in categories?
2:
Quote
paging previous gif also on the first page
without a url, or what  8O


Kurt

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #2 on: November 04, 2007, 07:43:34 PM »
YES

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #3 on: November 04, 2007, 07:59:45 PM »
Quote
Haw can i make this???

You need edit includes/paging.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Paging Previous also on the first page ???
« Reply #4 on: November 04, 2007, 08:00:33 PM »
in includes/paging.php

search:
Code: [Select]
if ($page_back > 0) {before add:
Code: [Select]
     if ($page_back == 0) {
        $html .= "<img src=\"image.gif\">&nbsp;&nbsp;";
      }


Kurt

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #5 on: November 04, 2007, 08:03:42 PM »
Correct. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #6 on: November 04, 2007, 09:37:44 PM »
Very good job but haw can i added this also with paging next ??

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #7 on: November 04, 2007, 09:57:56 PM »
After:

Quote
if ($page_back == 0) {
    $html .= "<img src=\"image.gif\">&nbsp;&nbsp;";
}

add:

Code: [Select]
if ($page_next == 0) {
    $html .= "<img src=\"image.gif\">&nbsp;&nbsp;";
}
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #8 on: November 04, 2007, 10:07:02 PM »
That dont works with the next paging.

Plase help
« Last Edit: November 04, 2007, 10:22:42 PM by hoho »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #9 on: November 04, 2007, 10:08:13 PM »
Ugly post ...

Please read step 5-6 of my signature.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #10 on: November 04, 2007, 10:24:19 PM »
Paging previous is working but paging next not!!

Please help.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Paging Previous also on the first page ???
« Reply #11 on: November 04, 2007, 10:33:46 PM »
search:
Code: [Select]
if ($page_next <= $this->total_pages) {before add:
Code: [Select]
      if ($this->page >= $this->total_pages) {
            $html .= "<img src=\"image.gif\">&nbsp;&nbsp;";
       }


Kurt

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #12 on: November 04, 2007, 10:36:31 PM »
Realy good job.

Thanks a Lot!!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #13 on: November 04, 2007, 11:01:04 PM »
Oh ! so you no want on first page for next but last page. Is what is no work. Now, is clear.
Thank for posting.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline albertpr9

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Paging Previous also on the first page ???
« Reply #14 on: November 07, 2007, 12:12:56 AM »
Great!

Is there a mod for using images instead of number?

Thanks!