We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4385
    • 372 Posts
    Here is some code for a Template Variable to grab the html from GoogleDocs. This was just a quick test, just to see if it could be done.
    Maybe someone can find a use for it. Maybe as an alternate method for the client to update content.

    @EVAL $data = file_get_contents('http://docs.google.com/View?docid=dc6857vn_0ck88nv'); $regex = "/id=\"doc-contents\">([^`]*?)<\/div>/"; preg_match($regex,$data,$match); return $match[1];
    


    I am sure if you want to expand on it you could turn it into a snippet [!GoogleDocs? docid=`dc6857vn_0ck88nv`!]
      DropboxUploader -- Upload files to a Dropbox account.
      DIG -- Dynamic Image Generator
      gus -- Google URL Shortener
      makeQR -- Uses google chart api to make QR codes.
      MODxTweeter -- Update your twitter status on publish.