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: Code Snippets http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Thu, 28 May 2015 01:57:40 +0000 Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5448 Thu, 30 Jul 2009 14:42:25 +0000 Chris 5448@http://forums.themeshaper.com/ <p>Hi,</p> <p>thanks a lot for your help! :)</p> <p>Chris </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5447 Thu, 30 Jul 2009 14:39:43 +0000 Chris 5447@http://forums.themeshaper.com/ <p>Hi,</p> <p>thanks a lot for your help! :)</p> <p>Chris </p> d_rec on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5446 Thu, 30 Jul 2009 04:51:13 +0000 d_rec 5446@http://forums.themeshaper.com/ <p>Chris, I got your code to work by putting an extra closing bracket at the end</p> <p>if (is_page(array('home', 'gallery')))</p> <p>This is a great place to learn WP and php<br /> d_rec </p> awarner20 on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5326 Thu, 23 Jul 2009 23:48:09 +0000 awarner20 5326@http://forums.themeshaper.com/ <p>Ha! Cool, I'll just leave as is for now and revisit this later. I'll just add more<br /> <code>|| is_page()</code><br /> as necessary:)</p> <p>Thanks Chris! </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5320 Thu, 23 Jul 2009 20:42:27 +0000 Chris 5320@http://forums.themeshaper.com/ <p>I hate it ;)</p> <p>Ok .. could take some time to find out if this is a problem with WordPress.</p> <p>First I need to fix the famous z-index bug in IE6 / IE7 for the PowerBlog theme.</p> <p>Chris </p> awarner20 on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5318 Thu, 23 Jul 2009 19:14:27 +0000 awarner20 5318@http://forums.themeshaper.com/ <p>Thanks Chris, I had tried that too and couldn't get it to work. I just tried again and I couldn't get it.</p> <pre><code>function remove_sidebar() { // We test if we are on these pages if (is_page(array(&#39;literature-request-form&#39;, &#39;residential-products&#39;)) { // Yes, we are .. now we switch off the sidebar return FALSE; } else { // we are not .. we leave the switch on return TRUE; } } // Connect the filter to thematic_sidebar() add_filter(&#39;thematic_sidebar&#39;, &#39;remove_sidebar&#39;);</code></pre> <p>What I did find to work for me was this:<br /> <pre><code>if (is_page(&#39;literature-request-form&#39;) || is_page(&#39;residential-products&#39;)) {</code></pre> <p>But I have a feeling that using an array would be more efficient. Does my code look correct? </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5314 Thu, 23 Jul 2009 18:40:14 +0000 Chris 5314@http://forums.themeshaper.com/ <p>Missing several tiny bits ;)</p> <p>It should be:</p> <pre><code>is_page(array(&#39;literature-request-form&#39;, &#39;residential-products&#39;))</code></pre> <p>Chris </p> awarner20 on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-5308 Thu, 23 Jul 2009 16:35:43 +0000 awarner20 5308@http://forums.themeshaper.com/ <p>Hi Chris, great function, I'm using it with success. Quick question...can I designate several pages in the same function? I tried adding a page a couple different ways.</p> <p>Adding as comma separated list:</p> <pre><code>function remove_sidebar() { // We test if we are on the page &#39;Literature Request Form&#39; if (is_page(&#39;literature-request-form,residential-products&#39;)) { // Yes, we are .. now we switch off the sidebar return FALSE; } else { // we are not .. we leave the switch on return TRUE; } } // Connect the filter to thematic_sidebar() add_filter(&#39;thematic_sidebar&#39;, &#39;remove_sidebar&#39;);</code></pre> <p>This didn't work.</p> <p>Adding like this:<br /> <pre><code>function remove_sidebar() { // We test if we are on the page &#39;Literature Request Form&#39; if (is_page(&#39;literature-request-form&#39;)) // Yes, we are .. now we switch off the sidebar // We test if we are on the page &#39;Residential Products&#39; if (is_page(&#39;residential-products&#39;)) { // Yes, we are .. now we switch off the sidebar return FALSE; } else { // we are not .. we leave the switch on return TRUE; } } // Connect the filter to thematic_sidebar() add_filter(&#39;thematic_sidebar&#39;, &#39;remove_sidebar&#39;);</code></pre> <p>This removed the sidebar on ALL pages.</p> <p>I have a feeling I'm missing something simple. Can anyone advise? </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2440 Fri, 20 Mar 2009 17:14:18 +0000 Chris 2440@http://forums.themeshaper.com/ <p>New article: <a href="http://www.wupperpiraten.de/2009/03/how-to-remove-the-sidebar-from-a-certain-page/">How to remove the sidebar from a certain page?</a></p> <p>Cheers,</p> <p>Chris </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2349 Mon, 16 Mar 2009 22:57:52 +0000 Chris 2349@http://forums.themeshaper.com/ <p>Perfect idea .. there's only one thing for me to check. Let's ask Ian if anything speaks against publishing my articles on his blog first. I would publish the German version on my site .. in this case the whole webring idea dealing with the same content in different languages would be consistent.</p> <p>And we would need some more people supporting this idea.</p> <p>Cheers,</p> <p>Chris </p> dannydamnboy on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2344 Mon, 16 Mar 2009 20:10:26 +0000 dannydamnboy 2344@http://forums.themeshaper.com/ <p>in my opinion, we have to create a sort of webring:</p> <p>from wikiP:</p> <blockquote><p>A webring in general is a collection of websites from around the Internet joined together in a circular structure. When used to improve search engine rankings, webrings can be considered a search engine optimization technique.</p> <p>To be a part of the webring, each site has a common navigation bar; it contains links to the previous and next site. By clicking next (or previous) repeatedly, the surfer will eventually reach the site they started at; this is the origin of the term webring. However, the click-through route around the ring is usually supplemented by a central site with links to all member-sites; this prevents the ring from breaking completely if a member site goes offline.</p> <p>Webrings are usually organized around a specific theme, often educational or social. Web rings usually have a moderator who decides which pages to include in the web ring. After approval, webmasters add their pages to the ring by 'linking in' to the ring; this requires adding the necessary HTML or JavaScript to their site.</p></blockquote> <p>only with links to different languages, not with the common navigation... in this way we could gain two (or more) linkbacks each... what do you think??? </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2343 Mon, 16 Mar 2009 20:06:07 +0000 Chris 2343@http://forums.themeshaper.com/ <p>Feel free to translate it and use it on your blog.<br /> Cheers,<br /> Chris </p> pauloc on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2340 Mon, 16 Mar 2009 19:40:13 +0000 pauloc 2340@http://forums.themeshaper.com/ <p>May I do the same to spanish? </p> dannydamnboy on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2334 Mon, 16 Mar 2009 17:02:01 +0000 dannydamnboy 2334@http://forums.themeshaper.com/ <p>Thank you. But could I post "that" pic aside your name??? ;) </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2330 Mon, 16 Mar 2009 13:52:46 +0000 Chris 2330@http://forums.themeshaper.com/ <p>Hey Danny,</p> <p>Yes .. you can take this and all future content published for Thematic and translate it for your blog :-)</p> <p>Cheers,</p> <p>Chris </p> dannydamnboy on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2329 Mon, 16 Mar 2009 11:59:55 +0000 dannydamnboy 2329@http://forums.themeshaper.com/ <p>Hey Chris, could I translaete the page ii italian (credtis to you, as always)??? </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2315 Sun, 15 Mar 2009 13:18:04 +0000 Chris 2315@http://forums.themeshaper.com/ <p>Downloads addded. </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2314 Sun, 15 Mar 2009 12:46:07 +0000 Chris 2314@http://forums.themeshaper.com/ <p>Thanks a lot, Danny!</p> <p>The first article <a href="http://www.wupperpiraten.de/2009/03/how-to-use-a-different-layout-for-a-certain-page/">How to use a different layout for a certain page?</a> is online.</p> <p>Will attach all files for download to prevent character mess during copy &#38; paste.</p> <p>Cheers,</p> <p>Chris </p> dannydamnboy on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2311 Sun, 15 Mar 2009 09:32:15 +0000 dannydamnboy 2311@http://forums.themeshaper.com/ <p>This is great Chris! </p> Chris on "Code Snippets" http://forums.themeshaper.com/topic/code-snippets#post-2308 Sat, 14 Mar 2009 23:23:49 +0000 Chris 2308@http://forums.themeshaper.com/ <p>Hey,</p> <p>I hereby declare the bar officially open!</p> <p>Took me a while but finally the Code Snippets area on my blog is up and running and has its own RSS feed.</p> <p>At the moment there's nothing more than the Welcome Message. Starting tomorrow, I'll collect all my code snippets posted here, test everything once again and publish the code snippets on my site.</p> <p>This is the link to the Code Snippet Area: <a href="http://www.wupperpiraten.de/kategorie/thematic/code_snippets/">Code Snippets</a></p> <p>And here's the RSS Feed: <a href="http://feeds2.feedburner.com/ThematicCodeSnippets">Thematic - Code Snippets</a></p> <p>Cheers,</p> <p>Chris </p>