PHP Classes

Install in Wordpress template

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Install in Wordpress template  >  (Un) Subscribe thread alerts  
Subject:Install in Wordpress template
Summary:Install DrasticGrid in Wordpress page.
Messages:6
Author:Hans Kuppers
Date:2011-09-21 20:23:53
Update:2011-09-28 19:29:17
 

  1. Install in Wordpress template   Reply   Report abuse  
Picture of Hans Kuppers Hans Kuppers - 2011-09-21 20:23:53
Hello,

I am trying to install the DrasticGrid in a Wordpress template file.
I have copied the source file from example9 to a copy of working template.
After I changed the path-setting of the include files and the JavaScript files there is no grid showing up.
When I look in firebug I see a error message: syntax error (<!DOCTYPE html> in localhost/DrasticTools/js/mootools-1.2-core.js
Please help to solve this.

All I want to do is show the datagrid in a Wordpress page. It must be dynamic like the example9 in the way that I can change the parameters of the SQL query to show the grid.

Thanks,
Hans

  2. Re: Install in Wordpress template   Reply   Report abuse  
Picture of dd dd - 2011-09-22 19:10:43 - In reply to message 1 from Hans Kuppers
Hi Hans,

I think there is a standard Wordpress plugin based on drastictools. Maybe that's is something you might want to use. Search the wordpress plugins.
Also someone else did some related work. In case you did not know about that, it is here: http://dissectionbydavid.wordpress.com/2010/06/17/bending-drasticdata-data-grid-to-filter-a-query-by-a-given-columns-value/

hope this helps, and regards,

dd

  3. Re: Install in Wordpress template   Reply   Report abuse  
Picture of Hans Kuppers Hans Kuppers - 2011-09-25 20:31:42 - In reply to message 2 from dd
dd,

Thanks for your advice and yes I think I need the solution from david after I have solved this problem:

In mootools a string with the complete source of the page is decoded as JSON;
This is the page where all this happens:
harleydenkers.nl/kosmeoo/drasticgri ...

At the and off this source is the real code for JSON.
How can I get rit of the first part of the source of the wordpresspage in the JSON string to decode?

Thanks for any help

  4. Re: Install in Wordpress template   Reply   Report abuse  
Picture of dd dd - 2011-09-27 19:57:18 - In reply to message 3 from Hans Kuppers
Hans, the url does not seem to point to a page with a drasticgrid, so its hard to say anything about it.
From your question "how ... decode" we get the impression that it is more a Wordpress thing than a drasticgrid thing that has to be solved.

regards, dd

  5. Re: Install in Wordpress template   Reply   Report abuse  
Picture of Hans Kuppers Hans Kuppers - 2011-09-28 19:14:27 - In reply to message 4 from dd
dd,
In the page with the url is a drasticgrid but because of an error it is not showing up.
I have made a screenshot from the syntax error here:
harleydenkers.nl/screenshot.png

And yes your right without Wordpress it is working fine. I was just hoping you could give me a clue how to solve this to get it working with Wordpress.

Thanks for your help,
Hans

  6. Re: Install in Wordpress template   Reply   Report abuse  
Picture of dd dd - 2011-09-28 19:29:17 - In reply to message 5 from Hans Kuppers
Hans,

I am afraid I do not have enough information about what happens to advise you about this. Also, if it needs wordpress knowledge, you may better ask a Wordpress specialist I guess.

sorry,

dd