ACCORD5
Add a reply

ACCORD5 Company Forums » Trellis Desk » General Discussion

A few questions...

 
  • Started 2 years ago by cyberws
  • 8 posts in this topic
  • Latest reply from cyberws
  1. User has not uploaded an avatar

    cyberws

    offline
    Member

    Overall nice support desk. I did have a few questions, although I realize support is not guaranteed.

    1) First I want to wrap a header/footer system around the theme. I notice the wrapper template page is not php so that leaves out the possibility of using php. Second I noticed the template code is similar to smarty in syntax but the smarty compatibility include doesn't work. So how could I included header.php and footer.php in the wrapper script?

    Any thoughts? I am sure I am not the only one with this idea.

    2) It would be nice to have hooks into the system. For example I would like to place a form to submit directly to a department on specific pages that could post to the ticket center feedback, sales or whatever, etc department.

    3) Is this product harden against sql injection with all data going into the database being slashed?

    Thanks.

    Jeremy

    Posted 2 years ago #
  2. User has not uploaded an avatar

    cyberws

    offline
    Member

    Well I found the reason for php not being allowed.

    It is in the mod_template.php file in the core directory then modules. There is code that is striping out any php. I disable this code and then I could include php calls in my wrapper file. However I do like the idea of striping out php so I will probably add an if statement to check and not strip if wrapper.

    It is to bad this system doesn't use custom calls in css like say trellis in front of things. This would allow its styling to be separate from general site styling. For example I notice the links just the standard link call in css instead of say:

    #trillis a {}

    So by doing this method the trillis stylesheet and standard site sheet clash due to similar css calls. However if custom calls had been used it wouldn't interfere as with many systems.

    Obviously hand updating all calls is futile for upgrades.

    Posted 2 years ago #
  3. metaloop

    metaloop

    offline
    Member

    Interesting ideas, cyberws. I'd love to hear what the developers have to say, and if we can expect to see any of these things in Trellis 2.0.

    Posted 2 years ago #
  4. User has not uploaded an avatar

    cyberws

    offline
    Member

    Two things for this post - as I play with this software I am learning more how it is put together and bringing my programming skills to the table.

    Since playing with the header/footer idea I realize this won't work correctly due to the CSS setup of the software. I have would have to update to many calls and this would prevent upgrading, which I don't want to do. So I have reached a compromise using iframes.

    I have iframed the support desk in a page, allowing my existing header/footer theme. This eliminates the clash between the CSS files. I then modified the mod_email.php file in core/modules directory to replace the main url with my new iframe URL. This way when email notifications go out clients will get the correct page and not be sent to the support desk directly. This was easy to do and allows for simply upgrading.

    Second I notice the dev team did program correctly with sql injection protection. Good deal dev guys as there are still many programs not protected.

    Posted 2 years ago #
  5. metaloop

    metaloop

    offline
    Member

    Cyberws - Any ideas on how I might be able to display Trellis within a Wordpress page?

    Posted 2 years ago #
  6. User has not uploaded an avatar

    cyberws

    offline
    Member

    The best thing would be to iframe a page. While you could do this a few different ways I would personally setup a new template. On that template create the iframe that calls the support desk, of course make the calls to header/footer/etc files. If you want to go that route I can pass along the code for mod_email.php that will replace the standard URL with the iframe URL so clients won't go to the non iframe version. The custom page will allow you to run a PHP call to load the variables to the iframe which is needed for the email URLs to work well.

    For example when a client creates a new ticket an email is sent with a one click link that contains variables. The iframe page must be able to capture theses variables and pass them to the iframe. In Wordpress PHP in standard pages isn't allowed. You have to install an extension, which is why I suggest just creating a custom template.

    Posted 2 years ago #
  7. metaloop

    metaloop

    offline
    Member

    With the number of ins and outs on my WordPress site, I'm afraid that setup would end up broken by an update in short order.

    But based on what you've said, it seems like a reasonable request for the developers to release something similar as an 'official' addon.

    Posted 2 years ago #
  8. User has not uploaded an avatar

    cyberws

    offline
    Member

    Actually with a simple iframe template it won't break anything. You would simply visit say your index page (which already calls all the necessary files) clone it and name it say supportdesk or whatever. From there you could remove all the index.php specific code and insert the iframe code. This method won't break anything. As changes to our core Wordpress files wouldn't be touch and would allow for upgrading both systems.

    Posted 2 years ago #

RSS feed for this topic

Reply to this topic

You must log in to post.