{"id":381,"date":"2009-02-06T21:01:21","date_gmt":"2009-02-07T02:01:21","guid":{"rendered":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=381"},"modified":"2009-02-06T21:05:01","modified_gmt":"2009-02-07T02:05:01","slug":"elgg-plugin-template","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=381","title":{"rendered":"Elgg Plugin Template"},"content":{"rendered":"<p>Yesterday I created an Elgg Plugin Template. This really advanced my understanding of the web application architecture of this social networking platform. Before this I was testing out my PHP code using the REST API which is a crude way of going about things. Now I can create plugins that really conform to the Elgg standard. I had to base my plugin on the existing ones that ship with Elgg because nobody has provided a plugin template to get you started. There were several things I had to figure out.<\/p>\n<p>First I discovered how to add a menu item to the Tools menu for my plugin. Then I worked out how to extend the CSS so my plugin could have its own styles applied to its page elements. I also figured out how to create a submenu. Tonight I had to add some code to make sure this submenu only appears for my plugin. I found it was appearing everywhere. <\/p>\n<p>I created one example action. The important part of this exercise was having a new web page in which to try out some PHP code and generate the HTML output. I also used a language file for some strings that may appear in English or another language. <\/p>\n<p>Last night I struggled with Apache and MySQL to get my Elgg web site running on my new Vista PC. Naturally it fought me every step of the way. First I had to get Apache to process PHP scripts. Then I had to get PHP to load the MySQL modules. Then I had to enable mod_rewrite. It was also necessary to run an UPDATE query in MySQL to adjust my Elgg site&#8217;s url which changed. Even though I have extensive notes on these topics from when I was struggling with my iBook web applications, it still managed to waste several hours of my time with unexpected complications. <\/p>\n<p>I hope to get going like gangbusters on Elgg now that I have figured out how much of it works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I created an Elgg Plugin Template. This really advanced my understanding of the web application architecture of this social networking platform. Before this I was testing out my PHP code using the REST API which is a crude way &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=381\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[234,1153,235,1145],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/381"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=381"}],"version-history":[{"count":3,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":383,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions\/383"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}