Title: Tom Penney's Replies | WordPress.org

---

# Tom Penney

  [  ](https://wordpress.org/support/users/blots/)

 *   [Profile](https://wordpress.org/support/users/blots/)
 *   [Topics Started](https://wordpress.org/support/users/blots/topics/)
 *   [Replies Created](https://wordpress.org/support/users/blots/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/blots/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/blots/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/blots/engagements/)
 *   [Favorites](https://wordpress.org/support/users/blots/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Lively Chat via SMS] Link to open chat possible?](https://wordpress.org/support/topic/link-to-open-chat-possible/)
 *  Thread Starter [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/link-to-open-chat-possible/#post-4630052)
 * Perfect. That is a very nice solution. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: WordPress Navigation List Plugin NAVT] Disappearing Groups](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-disappearing-groups/)
 *  [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-disappearing-groups/#post-1243992)
 * I’ve found that all my groups disappear when I rename any group in the group 
   options panel. any solution for this?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dynamic Stylesheet](https://wordpress.org/support/topic/dynamic-stylesheet/)
 *  [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/dynamic-stylesheet/#post-560684)
 * Haven’t read this whole post but I have also found the custom fields feature 
   useful for this kind of stuff. then you don’t have to use dynamic style sheet
   and the author can set styles in a custom field then those styles can be included
   in-line by your template. simple example would be a background color
 *     ```
       $bgstyle="";
       <?php
         // get the background color specified in the page meta data
           if (get_post_meta($post->ID, "color", true)) {
             $bgcolor= get_post_meta($post->ID, "color", true);
             $bgstyle=' style="background-color: ' . $bgcolor . ';"';
           }
       ?>
       <body <?php echo $bgstyle; ?> >
       ```
   
 * then the author , while creating a page, can add a custom field with key = “color”
   and value set to a valid css color like “blue” or “#0000ff” and that color will
   be set as body background
 * Same could be done with image background names or whatever. Id recommend adding
   a test to your code to ensure what is entered as a value is valid. the above 
   could mess up the html if the author entered something like “greenish brown”
 * I’ve also used this for adding text in the masthead and even defining special
   menus and such.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [creating dynamic pages](https://wordpress.org/support/topic/creating-dynamic-pages/)
 *  Thread Starter [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/creating-dynamic-pages/#post-708171)
 * As a side note, how does one post in the advanced forum?
 * This is what I ended up doing although I can’t help but think there is a much
   better way to do this. Please, any comments welcome, abusive or otherwise 😉
 * what this does is gets one post then modifies it to contain my content:
 *     ```
       add_action('init', 'show_item');
   
       function show_item() {
         $showme = $_GET['showme'];
         if ( !empty($showme) ){
            add_filter('the_content', 'replace_content');
            add_filter('the_title', 'replace_title');
            add_filter('post_limits', 'limit_1_post' );
            //addfilter([other filters to remove other stuff you dont want to display]);
            add_action('template_redirect', 'replace_template');
         }
       }
   
       function replace_content($text) {
         //do somthing to generate content with $_GET['showme']
         $mycontent = "My Dynamic Content";
         return $mycontent;
       } 
   
       function replace_title($text) {
         return "My Title";
       }
   
       function limit_1_post($limit) {
         return 'LIMIT 1';
       }
   
       function replace_template() {
         include(TEMPLATEPATH . '/page.php');
         exit;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [creating dynamic pages](https://wordpress.org/support/topic/creating-dynamic-pages/)
 *  Thread Starter [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/creating-dynamic-pages/#post-708118)
 * Can anyone point me in the right direction here?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Change Content of a Blog](https://wordpress.org/support/topic/change-content-of-a-blog/)
 *  [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/change-content-of-a-blog/#post-700907)
 * Manage > Posts > Edit
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [who decided to put “browser happy” in WP?](https://wordpress.org/support/topic/who-decided-to-put-browser-happy-in-wp/)
 *  [Tom Penney](https://wordpress.org/support/users/blots/)
 * (@blots)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/who-decided-to-put-browser-happy-in-wp/page/2/#post-547504)
 * I never saw it because I don’t use IE. A client called me asked “Why I am smearing
   IE?” I say “What do you mean?” That was when I first saw it. Why hide the link
   from me?
 * I’m all for promoting Firefox and other standards compliant browsers but at the
   same time I don’t like siding against my clients either. Promoting better browsers
   is one thing but putting anti Microsoft propaganda on my site without my knowledge
   just seems wrong.

Viewing 7 replies - 1 through 7 (of 7 total)