Firefox PHP

All pages link module

Posted by joys 
All files from this thread

File Name File Size   Posted by Date  
allpagesread.zip 2.5 KB open | download joys 01/22/2006 Read message
allpagesread-1.0.4.zip 5.2 KB open | download Maurice Makaay 02/24/2006 Read message
All pages link module
January 22, 2006 11:44PM
This module add All pages link to paging FlatRead thread
like

Goto Page: 1 2 3 All

in admin section you can limit max count page

----
Yuri Abramenkov
forum.foxclub.ru
Attachments:
open | download - allpagesread.zip (2.5 KB)
Re: All pages link module
January 23, 2006 05:12AM
Very nice! Thank you for this module idea. I added a few things to the module. Here's the new module package and the changelog so far. I hope you find these additions usefull:
2006-02-24 v1.0.4, Maurice Makaay

    - In the initial module, there was a hard-coded check if the user
      was logged in or not. The mod would not work for anonymous visitors.
      I added an option to the settings screen where you can specify for
      whom to enable this mod.

2006-02-22 v1.0.3, Maurice Makaay

    - Fixed an error for the read page, in case the number of messages is
      larger than the configured maximum.

2006-02-22 v1.0.2, Maurice Makaay

    - Fixed an undefined variable warning that could occur for moderators.

    - Only run the common hook on the list and read pages.

2006-01-23 v1.0.1, Maurice Makaay

    - The combination of threaded list + flat read made the "All" link
      not be displayed on the read page. This has been fixed.
    - The configured maximum number of messages in the settings now hides
      the "All" link in case the number of messages in the whole thread
      is higher than this maximum.
    - Use of full PHP open tag (<?php).
    - Use of phorum_admin_okmsg() and phorum_admin_error() in settings.php.
    - Added README and Changelog.

2006-01-22 v1.0.0, Yuri Abramenkov
  - Initial release

Edit: 2006-02-24: released new version 1.0.4


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 7 time(s). Last edit at 02/24/2006 10:12AM by mmakaay.
Attachments:
open | download - allpagesread-1.0.4.zip (5.2 KB)
Re: All pages link module
January 23, 2006 10:00AM
Hi!
Thank You for your consideration that my idea is usefull.
And thanks once more for spending a lot of time for editing and forming the my module.
The all maded changes I accept with gratitude.

----
Yuri Abramenkov
forum.foxclub.ru
Re: All pages link module
February 21, 2006 09:14AM
There was a little problem, which caused an undefined variable warning for moderators. See my earlier post for an updated version.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All pages link module
February 21, 2006 10:53AM
There's also a 'fatal error' message if it goes over the specified amount for a thread. For example, if you have it set to display 'all' for threads below 200 posts, and you have one that is 201 posts, it will create a fatal error for that thread.
Re: All pages link module
February 21, 2006 02:46PM
The exact fatal error message would be nice in such cases. That makes debugging for developers a lot easier. I will look into the problem and fix it a.s.a.p!


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All pages link module
February 21, 2006 03:00PM
Done. Version 1.0.3 will fix your problem.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All pages link module
February 21, 2006 03:46PM
Thanks
Re: All pages link module
February 24, 2006 10:10AM
Released a new version 1.0.4, in which it's possible to configure for whom to enable this mod (all visitors or only logged in users). Versions before this one had a hard-coded check to only enable the mod for logged in users. See the second post in this thread for the updated package.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All pages link module
January 29, 2007 04:36PM
$data[$key]["pages"].=' <a href="'.$value["url"].',page=all">'.$PHORUM["DATA"]["LANG"]["mod_allpagesread"]["all_page_link"]."</a>";
$data[$key]["pages"]=str_replace(",&nbsp;"," ",$data[$key]["pages"]);

fix for missing " in the url.
Sorry, only registered users may post in this forum.

Click here to login