Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 03:08 am EDT

Geeklog Forums

plugin filemgmt error


Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
We guess this might be a bug.

Text Formatted Code
ex) http://www.geeklog.net/filemgmt/viewcat.php?cid=1

click Sort by:  Title (up) OK!
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1&orderby=titleA
click Sort by:  Title (down) Error!
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1orderby=titleD
--->
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1&orderby=titleD

 

Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
Quote by ivy: We guess this might be a bug.

Text Formatted Code
ex) http://www.geeklog.net/filemgmt/viewcat.php?cid=1

click Sort by:  Title (up) OK!
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1&orderby=titleA
click Sort by:  Title (down) Error!
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1orderby=titleD
--->
 http://www.geeklog.net/filemgmt/viewcat.php?cid=1&orderby=titleD



 


She says an ampersand is missing between "cid=foo" and "orderby=bar" in the URL link to sort files in the descending order. Another member of Geeklog.jp suggests modifying some code in /public_html/filemgmt/viewcat.php like:

82a83
> $orderby_b = $orderby;
168c169,174
set_var('page_navigation', COM_printPageNavigation($base_url,$page, $numpages));
---
> if(isset($orderby_b) AND $orderby_b != "") {
> $page_str='orderby='.$orderby_b.'&page=';
> } else {
> $page_str='page=';
> }
> $p->set_var('page_navigation', COM_printPageNavigation($base_url,$page, $numpages,$page_str));

How about this?
--
mystral_kk (Geeklog.jp)

-- mystral-kk, "Every cloud has a silver lining."
 Quote

All times are EDT. The time is now 03:08 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content