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 Tag: Filter Help In Shaping WordPress Themes en Sat, 30 May 2015 04:19:35 +0000 em hr on "posts_where problem" Sat, 15 Dec 2012 17:56:47 +0000 em hr 27731@ <p>Please <a href=""> read this</a> and come to then new <a href="">ThematicTheme Forums</a> for support. </p> iCristiano on "posts_where problem" Tue, 06 Nov 2012 22:23:41 +0000 iCristiano 27668@ <p>Hi Thematic friends,</p> <p>I have a taxonomy called "genero". I´m trying to limit my "genero" archive page to just show future posts, like an event page.</p> <p>So, I used this code:</p> <pre><code>function filter_where( $where ) { if(is_tax(&#39;genero&#39;)){ $where .= &quot; AND post_date &gt; &#39;&quot; . date(&#39;Y-m-d&#39;, strtotime(&#39;0 days&#39;)) . &quot;&#39;&quot;; } return $where; } add_filter( &#39;posts_where&#39;, &#39;filter_where&#39; ); function reset_filter_where() { if(is_tax(&#39;genero&#39;)){ remove_filter( &#39;posts_where&#39;, &#39;filter_where&#39; ); } } add_action(&#39;thematic_below_archiveloop&#39;,&#39;reset_filter_where&#39;);</code></pre> <p>It works great on the genero´s archive page, but it breaks all the other looping on other pages. I don´t know what is happening. When I say it breaks I mean I get a blank page in another archive page, for exemple! On home, where I have another 2 loops, it shows the page, the header, but the loops are empty.</p> <p>Any help?<br /> Thanks! </p> Jagst3r15 on "Excerpt on front page -- "childtheme_override_content_init()" never called?" Mon, 28 May 2012 05:44:24 +0000 Jagst3r15 27187@ <p>should have read more, i think 0.9.8 fixes that...soooo close to 1.0 though it might not even be worth using (unless it gets rejected lol). </p> helgatheviking on "Excerpt on front page -- "childtheme_override_content_init()" never called?" Mon, 28 May 2012 05:16:50 +0000 helgatheviking 27186@ <p>0.9.8 is the version i've been supporting which was available at:<br /></p> <p>admittedly a bit of a cluster$*&amp;# that we had such an outdated version in the repo, but 1.0 is in the theme review queue.... (finally!) </p> Jagst3r15 on "Excerpt on front page -- "childtheme_override_content_init()" never called?" Mon, 28 May 2012 04:16:27 +0000 Jagst3r15 27183@ <p>he is talking about thematic 1.0, which is in the process of being reviewed for approval in the repo. I uploaded it here for you - it is essentially stable so you can use it safely <a href="" rel="nofollow"></a> </p> derpayatz on "Excerpt on front page -- "childtheme_override_content_init()" never called?" Mon, 28 May 2012 04:12:30 +0000 derpayatz 27182@ <p>Hi, I've got the Thematic from the website, and the add_action is still inside the elseif. </p> wmarkusen on "Changing <title> layout using $doctitle" Wed, 01 Feb 2012 19:55:07 +0000 wmarkusen 25145@ <p>I found your post helpful in something I was trying to figure out. Thank you. </p> Minimalist on "add a div in the sidebar" Thu, 12 Jan 2012 19:01:33 +0000 Minimalist 24839@ <p>Thank you very much, proto!</p> <p>I will try to use your code. Thanks again. </p> pixelwoo on "add a div in the sidebar" Wed, 11 Jan 2012 20:12:24 +0000 pixelwoo 24822@ <p>Thanks!</p> <p>I like analogies that are versatile!</p> <p>I finally got an image up! Hurray! Thanks ninja/legend :) </p> helgatheviking on "add a div in the sidebar" Wed, 11 Jan 2012 19:53:35 +0000 helgatheviking 24821@ <p>parking lot wasn't mine originally. it was Kwight's. but i think it's great and you can extend it to cover filters too. which i did: <a href="" rel="nofollow"></a></p> <p>lol... between two of the recent posts i am a ninja legend. i really just stay for the flattery (and the marriage proposals). </p> <p>to get a photo your forum email must be linked to <a href="" rel="nofollow"></a> </p> proto on "add a div in the sidebar" Wed, 11 Jan 2012 19:51:31 +0000 proto 24820@ <p>I'm back... I'm searching for a GRAVATAR and my true identity will be revealed although not as proto as apparently that name's taken! </p> <p>Minimalist - I hope it worked ok for you... </p> proto on "add a div in the sidebar" Wed, 11 Jan 2012 19:32:30 +0000 proto 24819@ <p>Ahahah! I like the parking lot one! Very good Helga! :)</p> <p>BTW - Minimalist, Helga is a bit of a legend around here, she's helped me out of many scrapes!</p> <p>I don't want to be so anoymous (get the facepalm ready) I've gone to edit my profile and add an image to my avatar (it's about time I revealed myself!!!) where's the option hiding? I checked the edit profile section (I told you it was a falepalmage moment!!) I want to reveal my identity (*gasps from the gallows when I reveals myself*) </p> helgatheviking on "add a div in the sidebar" Wed, 11 Jan 2012 18:48:12 +0000 helgatheviking 24818@ <p>velcro... i like the analogy, proto. i usually use a parking lot as mine. </p> proto on "add a div in the sidebar" Wed, 11 Jan 2012 17:58:47 +0000 proto 24817@ <p>Hello Minimalist,</p> <p>I suspect that dynamiharry may have put the code in the child theme's "functions.php" file. I hope you're using a child theme for your website (more info on it here <a href="" rel="nofollow"></a>) if not why you should (if you are already using a child theme, just skip that link) :)</p> <p>If you don't yet have a child them "functions.php" file you can create a new one, just name it functions.php (or see the Thematic sample child theme that comes with pre made one in the download of thematic). An Open PHP tag will look like this: </p> <p><code>&lt;?php</code> </p> <p>add the following code after it and it should work fine:</p> <pre><code>//Function that creates the opening DIV tag above the Main Asides function webmagic_divabove_sideopen() { echo (&#39;&lt;div id=&quot;yournewdivname&quot;&gt;&#39;) ; } add_action (&#39;thematic_abovemainasides&#39; , &#39;webmagic_divabove_sideopen&#39;); //Function that creates the closing DIV tag below the Main Asides function webmagic_divbelow_sideclose() { echo (&#39;&lt;/div&gt;&lt;!-- This is the end of Your New Div --&gt;&#39;) ; } add_action (&#39;thematic_belowmainasides&#39; , &#39;webmagic_divbelow_sideclose&#39;);</code></pre> <p>There are plenty of people more experienced than me on here who are brilliant and may have other suggestions but I tested the code above and it worked fine! Note, what the above is doing in simple terms is Thematic has been cleverly designed like a wall with velcro hooks on it in key places in the website. The code says take what I put in my echo statement and attach it to one of Thematic's velcro hooks, in this case we are targeting the hooks that are helpfully called thematic_abovemainasides or thematic_belowmainasides.</p> <p>Others on here may have other thoughts or advice but that's my take on it! </p> Minimalist on "add a div in the sidebar" Tue, 10 Jan 2012 17:53:17 +0000 Minimalist 24790@ <p>Hi. This is what I have been looking for. But I do not know how to use this function you posted here. Can you please explain to me how to place a div ("primary-inside") inside the "primary" div and use it? I hope you can answer. Thanks!! </p> helgatheviking on "Filtering One Category from Index Loop" Fri, 06 Jan 2012 22:25:26 +0000 helgatheviking 24705@ <p>evolving further, i like this method of hooking into pre_get_posts() the best:</p> <p><a href="" rel="nofollow"></a></p> <p>i'd probably go so far as to say this is currently the definitive method for modifying an existing/default query. query_posts is still the perfect choice for multiple loops.</p> <pre><code>add_action(&#39;pre_get_posts&#39;, &#39;kia_exclude_category&#39; ); function kia_exclude_category( ){ global $wp_query; $excluded_id = 15; // only exclude on home page if( is_home()) { $wp_query-&gt;query_vars[&#39;cat&#39;] = &#39;-&#39; . $excluded_id; } }</code></pre> helgatheviking on "How to access a widget area ?" Sun, 27 Nov 2011 21:29:18 +0000 helgatheviking 23957@ <p>LOL. glad it worked and hopefully you understand thematic a little better now. </p> lstelie on "How to access a widget area ?" Sat, 26 Nov 2011 15:07:00 +0000 lstelie 23944@ <p>Helga,</p> <p>I'm currently evaluating the idea to marry you.</p> <p>It's exactly what I was looking for, i missed the action -&gt; widget_area_x</p> <p>it works like a charm</p> <p>Thanks a (huge) lot</p> <p>Luc </p> helgatheviking on "How to access a widget area ?" Sat, 26 Nov 2011 14:00:49 +0000 helgatheviking 23942@ <p>Luc,</p> <p>Now that is exactly how i wish everyone who is asking for help would write their posts. :) Tell me what you want, what you have tried and why it isn't working the way you'd like. That is practically support request heaven and makes my job of helping you much simpler. </p> <p>I have a much clearer picture of what you are trying to do. However, I still hold that my earlier suggestion is the best approach.</p> <p>To further explain what I am suggesting:</p> <p>1. there is no need to replace get_sidebar('index-top'); with anything<br /> if there is no active widget in this area then nothing will ever display in this location, unless you attach content to the hook widget_area_index_top() which conveniently happens to be located inside the index-top sidebar</p> <p>try this: </p> <pre><code>add_action(&#39;widget_area_index_top&#39;,&#39;kia_index_top&#39;); function kia_index_top(){ echo &quot;helga likes bacon&quot;; }</code></pre> <p>that should put some content in the index-top widget location.. which if you don't have widgets in that area really isn't any different from using the above_indexloop hook </p> <pre><code>add_action(&#39;thematic_above_indexloop&#39;,&#39;kia_index_top&#39;); function kia_index_top(){ echo &quot;helga likes bacon&quot;; }</code></pre> <p>if you don't want this widget to even appear in the backend (so you can never place a widget in this area) you'd unset it from the thematic array... which is what i linked you too before, so like this:</p> <pre><code>add_filter(&#39;thematic_widgetized_areas&#39;,&#39;kia_widgets&#39;); function kia_widgets($widgets){ unset($widgets[&#39;Index Top&#39;]); return $widgets; }</code></pre> <p>hope that helps. for more on understanding hooks and filters please see this other post that i wrote:</p> <p><a href="" rel="nofollow"></a> </p> lstelie on "How to access a widget area ?" Sat, 26 Nov 2011 08:21:46 +0000 lstelie 23940@ <p>Hello,</p> <p><strong>The context :</strong><br /> My original website (carrington based) : <a href="" rel="nofollow"></a><br /> My playground to learn Thematic : <a href="" rel="nofollow"></a><br /> WP 3.3b4 / Thematic latest svn<br /> I’m not a developper (even not a designer, just a long time wp user who try to learn how to have a WP site that behave exactly as I want)<br /> English is not my mothertongue so the way I express myself can be.. original</p> <p><strong>What I try to do</strong></p> <p>I try to replace <code>index-top</code> (a widget zone) content by a hard coded content (a nivo-slider but it could be anything else, a picture, a googleads code …..)</p> <p>In fact I try to learn how to replace the content of a widget by something else defined by my code , keeping the widget css-tagging and formatting</p> <p><strong>Solution I see so far</strong></p> <p>1) Manual, hardcoded way :<br /> - make a view source of the code output by Thematic,<br /> - copy the html/css code corresponding to the <code>index-top</code> zone,<br /> - make a copy of <code>index.php</code> in my child theme folder<br /> - replace `// calling the widget area 'index-top'<br /> get_sidebar('index-top');`<br /> by the copied code.<br /> - edit by hand the html-css-whatever content inside the <em>widgetcontainer widget_text</em></p> <p>2) More elegant way :<br /> Write a function if this is possible that filters the widget content and replace it by my own content (in this case the nivo-slider code)</p> <p><strong>My problem/search</strong><br /> The first solution works (that’s normal is the basic parent/child behavior)<br /> The goal of what I do is to learn and understand.. and I’m looking for the way to do this the second way (programmatically)</p> <p>The messages thread you gave me is a little bit complex for me (I’m not a developer) and above all it seems to be about display or not display a widget.</p> <p>I wand my widget <code>index-top</code> to display normally, what I want is to control it’s content.</p> <p>Thanks for your time</p> <p>Luc </p> helgatheviking on "How to access a widget area ?" Sat, 26 Nov 2011 01:30:57 +0000 helgatheviking 23939@ <p>uhh... i don't understand exactly what you are trying to do. nothing shows up in either of those widget areas if they don't have any active widgets therein.</p> <p>start by reading this post on widgets<br /></p> <p>if you just want to add nivo slider content in that area you just add the content to the same hook. you could unset those particular widgets as well if you so desired. </p> lstelie on "How to access a widget area ?" Fri, 25 Nov 2011 23:19:29 +0000 lstelie 23935@ <p>Hello</p> <p>I use WP 3.3b4 and THEMATIC SVN</p> <p>I'd like to replace index_top and single_top widget zones byt a hook or a filter (I'd like to place instead a nivo-slider content)</p> <p>how can I proceed ?</p> <p>Thanks in advance</p> <p>Luc </p> helgatheviking on "New content filter" Tue, 08 Nov 2011 14:07:44 +0000 helgatheviking 23744@ <p>well you aren't filtering correctly, or targeting the correct filter. with filters you have to return a variable. </p> <p>return $something;</p> <p>if you don't (as you aren't above) then nothing will happen. </p> <p>look closely at content-extentions.php. the thematic_content filter decides whether to show full posts or excerpts. </p> <p>the function that controls what that content will actually be is called thematic_content, but that function concludes with</p> <pre><code>echo apply_filters(&#39;thematic_post&#39;, $post);</code></pre> <p>so the appropriate filter name is thematic_post. filters and functions are not required to have the same name, even though they commonly do in thematic. </p> sabinhas on "New content filter" Tue, 08 Nov 2011 10:50:24 +0000 sabinhas 23742@ <p>Hi helga. thks for your help. can you just tell me if im doing the right thing on there. what can you see wrong on that code? </p> helgatheviking on "New content filter" Mon, 07 Nov 2011 21:46:08 +0000 helgatheviking 23736@ <p>please read this and see if that helps.</p> <p><a href="" rel="nofollow"></a> </p> sabinhas on "New content filter" Mon, 07 Nov 2011 19:30:09 +0000 sabinhas 23735@ <p>Hi guys<br /> im trying to do a filter on my content but this function that i made doesnt seem to work. someone can help me? thanks in advance.</p> <p><code>function thematic_content_new() {</p> <p> if (is_category('shop')) { ?&gt;</p> <p> &lt;div class="view view-first"&gt;&lt;img class="alignleft" title="&lt;?php echo get_the_title(); ?&gt;" src="&lt;?php echo get_post_meta(get_the_ID(), 'image-shop', true); ?&gt;" /&gt;&lt;/div&gt;<br /> &lt;div class="price"&gt;&lt;?php echo get_post_meta(get_the_ID(), 'price-shop', true); ?&gt;&lt;/div&gt;<br /> &lt;div class="description"&gt;&lt;?php echo get_post_meta(get_the_ID(), 'hover-shop', true); ?&gt;&lt;/div&gt;<br /> &lt;div class="buttons"&gt;&lt;?php echo get_post_meta(get_the_ID(), 'buybuttons-shop', true); ?&gt;&lt;/div&gt;</p> <p>&lt;?php<br /> }<br /> }<br /> add_filter('thematic_content','thematic_content_new');</code> </p> helgatheviking on "add_filter calling origin function" Fri, 04 Nov 2011 01:43:47 +0000 helgatheviking 23693@ <p>bacon rules. and makes much more delicious dummy content than lorem ipsum. don't forget to mark as resolved. </p> turbobutton on "add_filter calling origin function" Fri, 04 Nov 2011 00:24:02 +0000 turbobutton 23692@ <p>btw. thanks for the bacon reference. i love bacon! little piggies are in trouble because they're so delicious. </p> turbobutton on "add_filter calling origin function" Fri, 04 Nov 2011 00:18:26 +0000 turbobutton 23691@ <p>oh right. i completely forgot the diff between hooks and filters. THANK YOU! </p> helgatheviking on "add_filter calling origin function" Thu, 03 Nov 2011 20:42:13 +0000 helgatheviking 23686@ <p>filters don't HAVE to completely replace content. it all depends on whether you set a new value for the variable you are passing or if you concatenate and just take more stuff on..</p> <p>see my explanation of filters:<br /> <a href="" rel="nofollow"></a></p> <p>your example would be modified to be:</p> <pre><code>function childtheme_thematic_postheader($postheader) { //the $postheader variable is set to something totally new, but the original is tacked on to the end with the period $postheader = &#39;&lt;div class=&quot;myclass&quot; &gt;&lt;/div&gt;&#39; . $postheader; // to do it the other way and tack it to the end you&#39;d use a period in front of the equal sign // $postheader .= &#39;&lt;div class=&quot;endclass&quot;&gt;bacon&lt;/div&gt;&#39;; //with filters you must always return the variable back to the original function return $postheader; } add_filter( &#39;thematic_postheader&#39;, &#39;childtheme_thematic_postheader&#39;);</code></pre>