SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: TrickyRicky on January 22, 2014, 09:32:49 PM
-
Is there a way to make a block for this. like solved and open tickets?
-
have you asked the SimpleDesk team?
-
Simple Desk hasn't received any updates in ages:
(http://i.imgur.com/1MmvTe7.png)
-
Simple Desk hasn't received any updates in ages:
This is true but it still works with no errors.
-
Try the following in a Custom PHP block:
global $sourcedir;
require_once($sourcedir . '/sd_source/SimpleDesk-SSI.php');
ssi_getSDTickets('1=1', array(), 5);
If you check the ssi_getSDTickets() function in Sources/sd_source/SimpleDesk-SSI.php file, you can see all those various options it provides. Like if you want only resolved topics listed, you could change the first parameter to 'hdt.status = 3' or for new tickets 'hdt.status = 0' and so on.
-
Thanks SiNaN works a treat you are amazing.
-
Real thanks goes to Arantor. Unlike many other mod authors there, he actually put a very flexible function to gather and display desired data in his mod. That makes it a lot lot easier for me.
-
Well thanks to both you guys. Keep up the good work :)
-
Thank you too! Marked as solved. ;)
-
And MONTHS later.. David says:
DUDE!! That's AWESOME! Using it now on one of my sites. Thanks!