Search

bbPress Showcase » Plugins by _ck_

my views and filtering

RSS

Tags:


  1. Null
    User has not uploaded an avatar

    member
    Joined: May '08
    Posts: 43

    offline

    Hi,

    So this plugin filters a whole page grabbing the header and footer to create a new page (to show plugins, themes etc).

    My question: is it also possible to filter all (like it does now), but NOT the side bar? I believe it filters index.php, but the template has a sidebar on it. I would like it to stay. Is this possible at all?

    Greetz

    Posted 3 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    I don't completely follow if you DO want the sidebar or do NOT want the sidebar.

    A sidebar is usually included from either the header or the footer. It will have to be enabled or disabled from there with a bit of code. It would have to detect if it's on a view page

    ie. if (is_view()) { do sidebar code }

    This is a demo of the bbPress Signatures plugin!
    If you use my plugins, please considering donating to help continue their development.
    Posted 3 years ago #
  3. Null
    User has not uploaded an avatar

    member
    Joined: May '08
    Posts: 43

    offline

    Hi,

    I DO want the sidebar to appear. In Kakumei it's called ni the front-page.php file. Not in the header or the footer. I believe this is the code:

    <div id="hottags">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
    </div>

    Now I think about it, it's kinda impossible to include this as a plugin. We don't have a sidebar called "sidebar" and not every template will call his sidebar "hottags" like Kakumei does. So filtering can work on the default template, but others will fail...

    Or am I seeing this wrong?

    Posted 3 years ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    It's easy to modify a theme so it has a sidebar.
    I've been planning my next theme to have one.

    All you have to do is include the appropriate DIV in the footer.php
    and style it properly with CSS and it will appear on all pages.

    I think your confusion is that the front-page.php in Kakumei is not really a sidebar. It's just hacked in that way. It would have to be removed for a real sidebar and it's content (tags, views, etc) would have to be moved into the real sidebar.

    Posted 3 years ago #

RSS feed for this topic

Post a reply to “my views and filtering”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
36 users online from in the past 30 minutes. 11 bots 25 guests
7,326 views today 8,426 yesterday 16,043 peak. Most at once 50 today 62 yesterday 131 peak. Visited today: Amylawrence, guava, JeffreyCasivant, wigbuy123, gdfddfs, nandao, _ck_, summerfortun
2,288 posts in 394 topics over 66 months by 430 of 2,167 members. Latest: watchessaleus, wigbuy123, JeffreyCasivant