Search

bbPress Showcase » bbPress Themes

  1. nedsferatu
    nedsferatu

    new member
    Joined: Feb '09
    Posts: 3

    offline

    I'm having an issue with post edit look behind that I can't solve. What happens is when i edit a post with no "look behind" posts (for example, topic starters) I get a class called .pform that looks something like this:

    bbcrumb
    <form class="postform edit-form" action="http://site.com/forums/bb-edit.php" method="post">
    <fieldset>
    <div class="wrapper">
    <div id="topics">
    <div class="pform">

    but when there is "look behind" posts being displayed (editing a post in the middle of a thread for example) I don't get that pform class:

    bbcrumb
    <form class="postform edit-form" action="http://site.com/forums/bb-edit.php" method="post">
    <fieldset>
    <div class="wrapper">
    <div id="topics">

    unfortunately I need that pform class to style that form (i'm using WPMimic)

    the forum is at: http://1isa2isb.com/forums/

    I have tried to figure out why it would be dropping that class by looking in the edit-form.php and the post-edit-look-behind.php but no luck. Thanks for the help!

    Posted 3 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    pform is not part of my plugins or in bbpress, it only exists in wpmimic

    a quick search of the templates shows it's in edit-form.php and post-form.php and topic.php

    looks like it only displays when there is a title present to edit (1st post)

    <?php if ( $topic_title ) : ?>
    but their logic seems wrong because the closing </div> always happens outside the if statement. so you can just edit the templates and move the
    <div class="pform";> above the <?php if ( $topic_title ) : ?>
    like
    <div class="pform">
    <?php if ( $topic_title ) : ?>
    Posted 3 years ago #
  3. nedsferatu
    nedsferatu

    new member
    Joined: Feb '09
    Posts: 3

    offline

    beautiful! thanks so much with for the help! I've been using wordpress for a few years now and am pretty good under the hood, but I've only started with bbpress in the last couple weeks so I'm still on that learning curve

    Thanks!

    Posted 3 years ago #

RSS feed for this topic

Post a reply to “Post edit look behind missing class”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
23 users online from in the past 30 minutes. 12 bots 11 guests
7,453 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