SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: TrickyRicky on January 22, 2014, 09:32:49 PM

Title: SimpleDesk Block
Post 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?
Title: Re: SimpleDesk Block
Post by: Old Fossil on January 23, 2014, 08:46:14 PM
have you asked the SimpleDesk team?
Title: Re: SimpleDesk Block
Post by: ccbtimewiz on January 23, 2014, 09:17:15 PM
Simple Desk hasn't received any updates in ages:

(http://i.imgur.com/1MmvTe7.png)
Title: Re: SimpleDesk Block
Post by: TrickyRicky on January 24, 2014, 09:28:15 AM
Simple Desk hasn't received any updates in ages:


This is true but it still works with no errors.
Title: Re: SimpleDesk Block
Post by: [SiNaN] on January 24, 2014, 05:56:47 PM
Try the following in a Custom PHP block:

Code: [Select]
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.
Title: Re: SimpleDesk Block
Post by: TrickyRicky on January 24, 2014, 07:02:41 PM
Thanks SiNaN works a treat you are amazing.
Title: Re: SimpleDesk Block
Post by: [SiNaN] on January 24, 2014, 08:27:22 PM
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.
Title: Re: SimpleDesk Block
Post by: TrickyRicky on January 25, 2014, 12:08:46 PM
Well thanks to both you guys. Keep up the good work :)
Title: Re: SimpleDesk Block
Post by: [SiNaN] on January 26, 2014, 03:23:57 PM
Thank you too! Marked as solved. ;)
Title: Re: SimpleDesk Block
Post by: David on July 30, 2014, 01:03:52 PM
And MONTHS later.. David says:

DUDE!!  That's AWESOME!  Using it now on one of my sites.  Thanks!
SimplePortal 2.3.8 © 2008-2024, SimplePortal