1
limecity
Inbox structure
  • 2004/11/5 21:18

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


how do i change the XOOPS pm inbox from Newest to oldest ?
i have lots of pm and i always need to scroll down to the end to look at the new pm..

anyway to change? thanks

2
hervet
Re:Inbox structure
  • 2004/11/5 21:38

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Edit the file named viewpmsg.php and replace the line :
$pm_arr =& $pm_handler->getObjects(new Criteria('to_userid'$xoopsUser->getVar('uid')));


with :
$pm_arr =& $pm_handler->getObjects($mycrit);


and just before this line, insert :

$mycrit=new Criteria('to_userid'$xoopsUser->getVar('uid'));
    
$mycrit->setOrder('DESC');


bye,
Hervé

3
limecity
Re:Inbox structure
  • 2004/11/5 22:11

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


it worked! it worked!
thank you~!
now it looks much better..

lols should submit this hack to xoops..
some may find it useful~

4
limecity
Re:Inbox structure
  • 2004/11/5 22:14

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Oh wait..
it didn't work well..

only the msgs title where change..
but the content inside are not descended..

i clicked on one user's pm and inside it showed another user's pm

5
migoe
Re:Inbox structure
  • 2004/11/5 23:15

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Hi limecity,

try it with this file from my site

hope, it's useful for you

6
limecity
Re:Inbox structure
  • 2004/11/6 16:15

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


hey migoe~
thanks..
it worked perfectly~

thanks again~
its exactly what i wanted~

7
irmtfan
Re:Inbox structure
  • 2004/11/9 10:11

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


thanks i use it too
but how can put a page number for show pms?
i see from yesterday at xoops.org put page number for comments but its very needed for inbox too.
also i ask in this thread:

hope can help for a hack

page number for comments/ inbox
regards

8
shank
Re:Inbox structure
  • 2004/11/30 23:38

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


So check this out.

hervet's suggestion work, but it wouldn't mark them as read after I read them.

And

migoe's file swapped the order of the titles in the inbox, but not the posts them selves.

Help?

9
kymseen
Re:Inbox structure
  • 2006/10/26 20:09

  • kymseen

  • Just popping in

  • Posts: 23

  • Since: 2006/9/11


I would like to know the answer too!!
HERV??

the titles would change the order but, inside the PM, the order is not changed.

help!

Login

Who's Online

232 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 232


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