1
irmtfan
how to show inbox or comments flat view mode in several pages?
  • 2004/9/13 8:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i do a search in forum but cant find the exact answer.
in my site the inbox page for some users and also me is very heavy and take some minutes to load ( also outbox page ) and some news or articels or pictures have 60 ,70 , ... comments so the page load very slowly.
i want a hack code for this if possible or a guide that what file to start. i think for pm must start in viewpmsg.php but what code?
any help would be really appreciated

2
irmtfan
Re: how to show inbox or comments flat view mode in several pages?
  • 2004/9/14 14:47

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


***BUMP***

3
irmtfan
Re: how to show inbox or comments flat view mode in several pages?
  • 2004/9/16 15:21

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


anyone have not problems with enourmose comments?
comments in one page is really slow down site.

4
irmtfan
Re: how to show inbox or comments flat view mode in several pages?
  • 2004/9/24 8:29

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


bump * 2

5
ackbarr
Re: how to show inbox or comments flat view mode in several pages?

in viewpmsg.php this line retrieves the private messages:
$pm_arr =& $pm_handler->getObjects(new Criteria('to_userid'$xoopsUser->getVar('uid')));


getObjects takes a 2 parameters, but you really only need to pass the first, which is a Criteria or a CriteriaCompo object specifying which records to return.

Both objects have two functions setStart and setLimit, which are used to limit which part of a result set is returned.

Other helpful functions/classes:
XoopsPrivmessageHandler::getCount() Pass the same criteria object used for getObjects to retrieve the total number of elements in the result set.
[url=https://xoops.org/misc/api/kernel/util/XoopsPageNav.html]XoopsPageNav[/url ] - responsible for creating the page navigation links

The only other recommendation I have is to look at another pages in the XOOPS applications that do what you are trying to do. /modules/news/index.php supports paging, and might be a good candidate for learning how to use the above functions.

6
limecity
Re:how to show inbox or comments flat view mode in several pages?
  • 2004/11/9 11:46

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


hey irmtfan. i was thinking about the same thing. Saw your post in the thread i started "inbox structure". It would be nice if its tweak abit

Split to several pages if there are over 10 msg in inbox..
hhmm.. anyone done it?

7
irmtfan
Re:how to show inbox or comments flat view mode in several pages?
  • 2004/12/1 16:18

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


is this possible to release page number for comments hack that currently use in xoops.org for public download? or must wait for next version? i have big problems with number of comments in loading pages
many thanks

8
irmtfan
Re:how to show inbox or comments flat view mode in several pages?
  • 2004/12/4 20:36

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


BIG problem with comments:
see this ( 111 comments !!! )
http://www.jadoogaran.com/modules/xcgal/displayimage.php?pid=1468&album=topn&cat=&pos=2
i hope find a hack for this page numbers as soon as possible

Login

Who's Online

423 user(s) are online (315 user(s) are browsing Support Forums)


Members: 0


Guests: 423


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits