<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Problem in WordPress plugin source' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Problem in WordPress plugin source' posted on the 'PHP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 08:07:10 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 08:07:10 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Problem in WordPress plugin source</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/375512/375512/problem-in-wordpress-plugin-source/</link>
      <description>So this is my plugin.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;?php
/*
Plugin Name: Before maintainence
Plugin URI: &lt;a href="http://jbm.net76.net/?p=119"&gt;http://jbm.net76.net/?p=119&lt;/a&gt;
Description: Shows a message that site goes into maintainence soon.
Author: Johan Brodd
Version: 1
Author URI: &lt;a href="http://jbm.net76.net/?p=119"&gt;http://jbm.net76.net/?p=119&lt;/a&gt;
*/

function hello_world() {
 $hello = get_option(’hello_global’);
 Print(”$hello”);
}

function modify_menu() {
 add_options_page(
  ‘Hello World’,
  ‘Hello World’,
  ‘manage_options’,
  _File_,
  ‘admin_hello_options’
 );
}

function admin_hello_options(){
Print(”&amp;lt;h2&amp;gt;Hello World Plugin&amp;lt;/h2&amp;gt;”);
if ($_REQUEST['submit']){
 upate_hello_options();
}
print_hello_form();
}

function upate_hello_options(){
if ($_REQUEST['hello_global']) {
update_option(’hello_global’,$_REQUEST['hello_glob
al']);
}
}

function print_hello_form() {
$default_greeting = get_option(’hello_global’);
Print (”&amp;lt;form method=’post’&amp;gt;&amp;lt;label for=’hello_global’&amp;gt;Greeting:
&amp;lt;input type=’text’ name=’hello_global’ value=’$default_greeting’&amp;gt;
&amp;lt;/label&amp;gt;
&amp;lt;br /&amp;gt;
&amp;lt;input type=’submit’ name=’submit’ value=’Submit’ &amp;gt;
&amp;lt;/form&amp;gt;”);
}

?&amp;gt;&lt;/pre&gt;&lt;br /&gt;
This code generates an unexpected TVariable error. But I cannot find what the problem is.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/375512/375512/problem-in-wordpress-plugin-source/</guid>
      <pubDate>Thu, 18 Sep 2008 08:49:50 -0700</pubDate>
      <category>PHP</category>
    </item>
    <item>
      <title>Re: Problem in WordPress plugin source</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/375512/376037/re-problem-in-wordpress-plugin-source/#376037</link>
      <description>: So this is my plugin.&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: &amp;lt;?php
: /*
: Plugin Name: Before maintainence
: Plugin URI: &lt;a href="http://jbm.net76.net/?p=119"&gt;http://jbm.net76.net/?p=119&lt;/a&gt;
: Description: Shows a message that site goes into maintainence soon.
: Author: Johan Brodd
: Version: 1
: Author URI: &lt;a href="http://jbm.net76.net/?p=119"&gt;http://jbm.net76.net/?p=119&lt;/a&gt;
: */
: 
: function hello_world() {
:  $hello = get_option(’hello_global’);
:  Print(”$hello”);
: }
: 
: function modify_menu() {
:  add_options_page(
:   ‘Hello World’,
:   ‘Hello World’,
:   ‘manage_options’,
:   _File_,
:   ‘admin_hello_options’
:  );
: }
: 
: function admin_hello_options(){
: Print(”&amp;lt;h2&amp;gt;Hello World Plugin&amp;lt;/h2&amp;gt;”);
: if ($_REQUEST['submit']){
:  upate_hello_options();
: }
: print_hello_form();
: }
: 
: function upate_hello_options(){
: if ($_REQUEST['hello_global']) {
: update_option(’hello_global’,$_REQUEST['hello_glob
al']);
: }
: }
: 
: function print_hello_form() {
: $default_greeting = get_option(’hello_global’);
: Print (”&amp;lt;form method=’post’&amp;gt;&amp;lt;label for=’hello_global’&amp;gt;Greeting:
: &amp;lt;input type=’text’ name=’hello_global’ value=’$default_greeting’&amp;gt;
: &amp;lt;/label&amp;gt;
: &amp;lt;br /&amp;gt;
: &amp;lt;input type=’submit’ name=’submit’ value=’Submit’ &amp;gt;
: &amp;lt;/form&amp;gt;”);
: }
: 
: ?&amp;gt;&lt;/pre&gt;: &lt;br /&gt;
: This code generates an unexpected TVariable error. But I cannot find &lt;br /&gt;
: what the problem is.&lt;br /&gt;
&lt;br /&gt;
And no response so far... I am waiting.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/375512/376037/re-problem-in-wordpress-plugin-source/#376037</guid>
      <pubDate>Thu, 25 Sep 2008 21:28:44 -0700</pubDate>
      <category>PHP</category>
    </item>
  </channel>
</rss>