View Full Version : [ask] How to show latest visitor messages on postbit ?
pertanyaan
02-26-2011, 05:07 AM
I want to show latest visitor messages on postbit
Lynne
02-26-2011, 03:53 PM
What do you mean? Can you provide an image that shows what you want?
pertanyaan
02-27-2011, 01:44 AM
What do you mean? Can you provide an image that shows what you want?
Show latest visitor message below postbit :
eg:
Username: Lynne
Join Date: Sep 2004
Location: California
Real name: Lynne
Posts: 27,688
Message :
"Latest Visitor message"
Lynne
02-27-2011, 04:34 PM
I think you'll have to use a plugin and do a query on the visitormessage table and get the latest message from there:
SELECT pagetext FROM visitormessage WHERE userid=$post['userid'] ORDER by vmid DESC
Something like that? You'll have to get it formatted correctly and add the query_first in front of it. You may have to do something to the pagetext also cuz it could be a really long message and I would guess you don't want to show the whole thing if it is.
Eliasen
02-28-2011, 07:59 PM
Try have a look at the simple script I made, it also shows how to limit the message output.
https://vborg.vbsupport.ru/showthread.php?t=259600
Might help you with what you wanted to do.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.