Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need to fix a couple of things in theme

Viewing 16 replies - 1 through 16 (of 16 total)
  • @kawauso

    Member

    The new post template is stored under post-form.php. register.php and bb-login.php are seperate pages that only include header.php and footer.php, so you’d need to include the sidebar either manually or in the header or footer respectively. Hope that helps!

    @ashfame

    Participant

    I fixed the second & third issue but I am still stuck at the first one.

    Looking at the markup I found <select name="forum_id" id="forum-id""> is being generated by bbPress codebut the same works in default theme flawlessly so this isn’t the cause. Can I have the complete lookup order for file required to generate the “Add new” page.

    @kawauso

    Member

    Hmm… as far as I can work out, (at least with pretty links on) a forum link redirects to forum.php which invokes post_form() towards the end of the page. That’s found in functions.bb-template.php (under bb-includes) and as well as running the respective pre/during/post actions, it loads the post-form.php template from the theme’s directory.

    Could you post your theme’s post-form.php here?

    @gerikg

    Member

    <?php bb_new_topic_link(); ?> the code to add new.

    The first one I know is in front-page.php

    you have

    <?php if ( $forums ) : ?>

    then the Latest Discussion

    then Forum

    <?php endif; // bb_forums() ?>

    Then Views

    and the part you’re missing

    <?php else : // $forums ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>

    <?php post_form(); endif; // $forums ?>

    @ashfame

    Participant

    @kawauso

    Mine post-form.php is exactly the same as that of Kakumei.

    I can trace the problem to an unclosed anchor tag <a> which is in bbcrumb DIV.

    http://validator.w3.org/check?uri=http%3A%2F%2Fbbpress.ashfame.com%2F%3Fnew%3D1&charset=(detect+automatically)&doctype=Inline&group=1&ss=1#line-86

    Where does this code comes from? I mean which file?

    Username:demo

    Password:demo

    @gerikg

    I don’t get any of what you are trying to tel me. Probably you misunderstood my question.

    @chandersbs

    Member

    Maybe you can hardcode the URL like this http://domain/forum.php?id=9#postform

    @gerikg

    Member

    ashfame,

    Is this what you’re trying to generate? https://bbpress.org/forums/?new=1

    Then continue reading.

    The template file is front-page.php that does the “new?=1”

    look at line 84-88

    https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php

    @kawauso

    Member

    @gerikg he’s trying to fix an additional <a> with no closing tag in the new post form, not generate a link to it :)

    @kawauso

    Member

    @ashfame have a look at the bottom of front-page.php, it should read <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>. Your code seems to have somehow dropped everything between the last two PHP snippets and the trailing </div> too. That’s not being returned by the breadcrumb function though at least, so it should be easier to fix :) if it doesn’t work with your template’s front-page.php deleted/renamed though, there might be something wrong with your core files.

    @gerikg

    Member

    Kawauso, you just said the same thing I did.

    If hes trying to generate this page (go to the link and look) https://bbpress.org/forums/?new=1

    then he’s missing the bottom half of the front-page.php

    that is why I said look at :

    look at line 84-88

    https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php

    the same line you just brought up.

    @kawauso

    Member

    Sorry about that! :)

    @ashfame

    Participant

    Replacing a line from Kakumei did the job. may be I accidentally removed that closing div tag. anyways. thanks for your help so far.

    Also I want to fix an IE thing.

    The sizes of input type text of login are not equal in IE even though I have defined their size=”20″

    @ashfame

    Participant

    That double quote issue is there in the core file. Even the Kakumei produces invalid markup with it.

    I have reported it to trac #1191

    @ashfame

    Participant

    @kawauso

    Member

    It’s IE, I’m not suprised. Try setting the width using CSS rather than the size attribute.

    form.login input { width: 100px; } in the stylesheet

    @ashfame

    Participant

    Using CSS, I managed to do it with little weirdness. God, kill IE asap ;)

    Thanks buddy!

Viewing 16 replies - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.
Skip to toolbar