Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Announcing a new Alpha version http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sun, 24 May 2015 03:05:05 +0000 Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-6598 Sat, 19 Sep 2009 17:47:55 +0000 Chris 6598@http://forums.themeshaper.com/ <p>:) </p> <p>.. let's call it challenging. I had your idea always in my head. </p> <p>Think I found a method that looks pretty good. The standard sidebar names can be filtered, new sidebars can be added, and so on .. should be easier and more flexible than my last version.</p> <p>Chris </p> em hr on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-6593 Sat, 19 Sep 2009 15:05:45 +0000 em hr 6593@http://forums.themeshaper.com/ <p>Widget area madness... I feel your pain. Look back at this tangent I went on a couple weeks back maybe it'll be a source of inspiration and/or laughter <a href="http://forums.themeshaper.com/topic/how-to-remove-or-filter-widget-areas-in-admin">how-to-remove-or-filter-widget-areas-in-admin</a> at the end of the thread I actually came up with a working solution that's maybe too flexible but working all the same. </p> Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-6588 Sat, 19 Sep 2009 10:46:08 +0000 Chris 6588@http://forums.themeshaper.com/ <p>Once again sitting in the middle of nowhere :)</p> <p>Thinking 'bout the widgetized areas .. and working on it. Don't know, if the latest changes will make it into a release. It's not flexible enough.</p> <p>Chris </p> amygail on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5708 Mon, 10 Aug 2009 20:52:07 +0000 amygail 5708@http://forums.themeshaper.com/ <p>We're glad you're back! </p> Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5706 Mon, 10 Aug 2009 20:23:09 +0000 Chris 5706@http://forums.themeshaper.com/ <p>Hi Amy,</p> <p>.. yep .. that's what I did during my vacation :) .. don't trust me, I spent about 90% of my time with my family. The little pirate a.k.a. the son kept his ol' dad busy the whole day :)</p> <p>.. and .. thanks a lot for all your help !!!</p> <p>Chris </p> Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5705 Mon, 10 Aug 2009 20:14:45 +0000 Chris 5705@http://forums.themeshaper.com/ <p>Thanks a lot for your help! .. will look into this in the next days and commit an updated version to the repository.</p> <p>Chris </p> Krusty Ruffle on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5688 Mon, 10 Aug 2009 06:35:44 +0000 Krusty Ruffle 5688@http://forums.themeshaper.com/ <p>I've been doing some hacking around on this for the WPMU thing. I've discovered that, at least at home on a test server, if you use $blog_id in the file name then you can make this work by creating a different file for each blog.</p> <p>What I changed:</p> <p>functions.php<br /> Lines:31-37:<br /> Original:</p> <pre><code>// Check if settings.php is available and load it if (file_exists(STYLESHEETPATH . &#39;/settings/definitions.php&#39;)) { define(&#39;THEMATIC_SETTINGS&#39;, TRUE); require_once(STYLESHEETPATH . &#39;/settings/definitions.php&#39;); } else { define(&#39;THEMATIC_SETTINGS&#39;, FALSE); }</code></pre> <p>Changed:</p> <pre><code>// Check if settings.php is available and load it if (file_exists(STYLESHEETPATH . &quot;/settings/blog-{$blog_id}-definitions.php&quot;)) { define(&#39;THEMATIC_SETTINGS&#39;, TRUE); require_once(STYLESHEETPATH . &quot;/settings/blog-{$blog_id}-definitions.php&quot;); } else { define(&#39;THEMATIC_SETTINGS&#39;, FALSE); }</code></pre> <p>/library/extensions/theme-options.php<br /> Line 37<br /> Original:</p> <p><code>global $themename, $shortname, $options;</code></p> <p>Changed:</p> <p><code>global $themename, $shortname, $options, $blog_id;</code></p> <p>Line 73:<br /> Original:</p> <p><code>$filename = STYLESHEETPATH . &#39;/settings/definitions.php&#39;;</code></p> <p>Changed:</p> <p><code>$filename = STYLESHEETPATH . &quot;/settings/blog-{$blog_id}-definitions.php&quot;;</code></p> <p>What I end up with on WPMU are files named "blog-1-settings.php", blog-2-settings.php", etc... and on WordPress I get a file named "blog-1-settings.php" which might be a little weird but it works.</p> <p>Anyway, I hope this was helpful :^) </p> amygail on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5678 Sun, 09 Aug 2009 20:59:21 +0000 amygail 5678@http://forums.themeshaper.com/ <p>This is what you do on a 'vacation'? ;-)</p> <p>Can't wait to give it a spin.</p> <p>Welcome back! </p> Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5676 Sun, 09 Aug 2009 19:43:21 +0000 Chris 5676@http://forums.themeshaper.com/ <p>SVN revision 551 is available.</p> <p>Chris </p> Chris on "Announcing a new Alpha version" http://forums.themeshaper.com/topic/announcing-a-new-alpha-version#post-5675 Sun, 09 Aug 2009 19:38:45 +0000 Chris 5675@http://forums.themeshaper.com/ <p>Hi,</p> <p>first the advice before the announcement ..</p> <p>The new alpha version that I'm going to commit to the SVN repository in a couple of minutes isn't fully tested! Even though it's running on my live blog I can't guarantee that this new version won't bite you, your Child Theme, and / or crash your blog ;)</p> <p>Try it on a local machine first!</p> <p>IMPORTANT: All of you running the last SVN copy <strong>please delete</strong> the directory 'settings' including the file 'definitions.php' <strong>before</strong> you install the new version! .. if not .. this will definitely bring your blog down! .. don't worry .. in this case just delete the above mentioned directory including the file.</p> <p>.. and before I get the first language related complaints :)</p> <p>.. No .. I haven't updated the .pot file. The whole code is still experimental and certain things might change 'til the final release.</p> <p>What's new?</p> <p>1. You'll find a new button on the Thematic Options Page called 'Create Definitions'. Hit the button and it'll create a definitions file that keeps everything you can access with bloginfo() or get_bloginfo(). In addition I integrated the new function thm_bloginfo(). When functions.php starts the first time it'll check for the definitions.php and set a flag. thm_bloginfo() will check for the existance of this flag and return a constant instead of calling blog_info / get_bloginfo otherwise get_bloginfo() will be called. This will save some time on the server while creating the html code.</p> <p>2. A new functionality to create a widget area is integrated into Thematic. After starting to work on this I realized that Nathan Rice already integrated this into his Prodigy framework. I adapted his naming scheme and extended the functionality to the max. </p> <p>Let's have a look into the main function:</p> <pre><code>thematic_create_widget_area($sidebar_name, $before_widget, $after_widget, $before_title, $after_title, $action_hook, $function, $priority)</code></pre> <p>$sidebar_name - name of the Widget Area - Default: no default</p> <p>$before_widget - opening CSS markup before widget - Default: thematic_before_widget()<br /> <pre><code>function thematic_before_widget() { $content = &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widgetcontainer %2$s&quot;&gt;&#39;; return apply_filters(&#39;thematic_before_widget&#39;, $content); }</code></pre> <p>$after_widget - closing CSS markup after widget - Default: thematic_after_widget()<br /> <pre><code>function thematic_after_widget() { $content = &#39;&lt;/li&gt;&#39;; return apply_filters(&#39;thematic_after_widget&#39;, $content); }</code></pre> <p>$before_title - opening CSS markup before widget title - Default: thematic_before_title()<br /> <pre><code>function thematic_before_title() { $content = &quot;&lt;h3 class=\&quot;widgettitle\&quot;&gt;&quot;; return apply_filters(&#39;thematic_before_title&#39;, $content); }</code></pre> <p>$after_title - closing CSS markup after widget title - Default: thematic_after_title()<br /> <pre><code>function thematic_after_title() { $content = &quot;&lt;/h3&gt;\n&quot;; return apply_filters(&#39;thematic_after_title&#39;, $content); }</code></pre> <p>$action_hook - the action hook where the widget area should be placed - Default: no default, needs to be an existing action_hook</p> <p>$function - the function connected to the hook - Default: thematic_standard_widget_area(), this one can be used as long as you create only one widget area per action hook.</p> <p>$priority - the priority for the above mentioned function - Default: 10</p> <p>The standard widget areas are using the action hooks names 'widget_area_name' =&gt; 'widget_area_primary_aside'.</p> <p>To keep the thematic_standard_widget_area() as small as possible I'm working with current_filter() to get the name of the action hook. The trailing 'widget_area_' will be stripped and '_' replaced with '-'. This will result in the ID of the widget area for the standard widget areas ;)</p> <p>Because this won't work for all the other standard hooks we need to use a filter to do some magic.</p> <p>Imagine you want to create a widget area in the header called 'Header Aside' ..<br /> <pre><code>function my_widget_areas() { thematic_create_widget_area(&#39;Header Aside&#39;, thematic_before_widget(), thematic_after_widget(), thematic_before_title(), thematic_after_title(), &#39;thematic_header&#39;,&#39;thematic_standard_widget_area&#39;, 8); } add_action(&#39;init&#39;, &#39;my_widget_areas&#39;);</code></pre> <p>The ID of the widget area will be created with the name 'Header Aside' .. lower case .. replace blanks with '-' =&gt; 'header-aside'. Unfortunately the above mentioned translation for the name of the action hook won't work .. it will get 'thematic_header' and translate it into 'thematic-header' .. so here's the magic code to make this thing work:</p> <pre><code>function my_hook($hook) { if ($hook == &#39;thematic-header&#39;) { return &#39;header-aside&#39;; } return $hook; } add_filter(&#39;thematic_process_hook&#39;, &#39;my_hook&#39;);</code></pre> <p>Take a look at the complete example listed here: <a href="http://forums.themeshaper.com/topic/back-from-vacation-with-a-teaser">Back from vacation with a teaser</a></p> <p>That's it for today .. and please provide some feedback.</p> <p>TBD:<br /> - make the first thing work under WPMU<br /> - integrate the code to remove the standard widget areas</p> <p>Thanks!</p> <p>Chris </p>