Your image link returns a 403 Forbidden error, a direct link to your website would be much easier to work with anyway. I’d recommend putting it in header.php
and using either tables or CSS to align it to the left of the main content.
Dear all, this might be a rather rudimentair question so please bear with me 
I would like to have adsense ads on the very left of my website across the site.
Please see: http://www.fotoshack.us/fotos/37269adsense.jpg
Thanks!
Right.
In topics.php
, delete:
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php post_form(); ?>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<p><?php _e('This topic has been closed to new replies.') ?></p>
<?php endif; ?>
Then after the first <?php topic_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
, insert:
<?php if ( $page === 1 ) : ?>
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php post_form( array( 'last_page_only' => false ) ); ?>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<p><?php _e('This topic has been closed to new replies.') ?></p>
<?php endif; ?>
<?php endif; ?>
It’ll be different if you’re using something that’s radically different to Kakumei, but the general idea is to take the bit that looks something like the first part and put <?php if ( $page === 1 ) : ?>
and <?php endif; ?>
around it, change post_form()
to post_form( array( 'last_page_only' => false ) )
then move it to the top of the page.
https://www.yousendit.com/download/YkxKZGlsaTEzS3BjR0E9PQ
Try that. The RSS validation is complaining that the xml header is on the 2nd line, rather than the first, so there’s a line return being inserted somewhere. If FTPing those over the old ones doesn’t work, it’s the dev’s problem
I just double-checked all the 3 files you previously indicated. I downloaded them from my server and inspected them: there are no trailing spaces nor anything. They all start fine with a standard <?php
opening.
For a while I hoped it was that trivial, but there must be something else
this version does not work correctrly on bbPress 0.9 branch. I get these PHP Warnings:
Warning: Missing argument 1 for bb_get_topic_tags(), called in /.../forum/my-plugins/bb-seo-tools.php on line 102 and defined in /.../forum/bb-includes/functions.php on line 1058
Warning: Invalid argument supplied for foreach() in /.../forum/my-plugins/bb-seo-tools.php on line 105
Hi,
hoping for help, since I´m not in no way good enough to find this answer.
The inputfiled for posts/replys in atopic seems to be attached to the page where the first post in a topic was made. Since I´ve using the the threads so that the latest post gets on top in the first page (and therefore the first post ends upp last in the last page). What happens is that the posting (input)-field ends upp on the last page.
Is it possible to change in the code så that the posting field ends upp connected to the last posting/reply. And then (hopefully on page one).
Anybody?
There isn’t exactly as counterpart to login_form()
for registering because it’s not expected to be embedded I guess. If you look under register.php
though, you can see the internal function template call is bb_load_template( 'register.php', $_globals );
where $_globals
are set earlier in the page before some code that handles the form output (ignore them at your own peril).
The register.php
template is also set up to be a full page though with calls to the header and footer functions, as well as a safety check for logged in users, so you’d probably need to cut it down and save it as a separate template to call.
I’m pretty sure there’s been some discussion of embedding a register page in a template before in the forums, so you might want to look for that too.
hello bb’ans,
if <?php login_form(); ?>
calls the login form template, what calls the register form?
i’ve tried as a php hardcore ultra mega pro the <?php register_form(); ?>
idea, but that’s somehow not the way how it should be
I have no clue on this. It might be a pain to do manually but if I were you I would peek into the bbPress’s code responsible for upgrading the database. Good luck!
@kirpi.it Nevermind, ignore what I said earlier. You have a space or a line return before the opening <?php
in rss2.php
. Seems to be a consistent problem copying from the forums.
Well, its good Idea btw.. but I already walk 90% here, go back and do the upgrading will take time
is there any manual way to do this ?
this is the code I use… (in post.php) hopefully that can lead you in the right track to finding the right code for your plugin.
<?php echo bp_core_get_avatar( get_post_author_id() ); ?>
I think you need more since there are sites providing buddypress+wordpress+bbpress 
success with your free hosting site
kirpi.it, here is the code, like Kawauso pointed out:
#latest th a, #forumlist th a, #favorites th a {style.css (line 714)
-moz-border-radius-bottomleft:6px;
-moz-border-radius-bottomright:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-topright:6px;
background-color:#9D0000;
border:1px solid #FFFFFF;
color:#FFFFFF;
padding:2px;
You can see this theme in action at http://www.michaeljackson.no/forum
It’s using class new-topic
, so you’d need .newtopic {}
… it can’t be found because there’s no actual CSS affecting it specifically. I’d recommend using Mozilla Firefox’s DOM inspector or looking at the HTML source to find class/ID tags for things.
Oh, and it’s affected by (in Kakumei at least):
#latest th a, #forumlist th a, #favorites th a
and a:visited
That’s weird. Seems to be throwing <![CDATA
in still… could you check if there’s a rss2.php
in your template’s directory and if so either change that or delete it? That’s the only thing I can think of that might be causing that. Forgot themes usually copy everything.
If they are deeply integrated then you will have a hard time figuring this out as if you ask Is this is WP?
WP will say yes and if you ask Is this is bbP?
then bbP will say yes and if they are deeply integrated then both questions will return a yes.
Hmm? I accidentally left the comment saying // List forums
in there, but in actual fact that will only return categories, not forums in them because it does the bb_get_forum_is_category()
check. If you’re referring to the normal forum code in frontpage.php
, taking that out will take out the normal list of forums you see there, so I’m not sure if that’s what you want to do.
Thanks mate, and then I remove the similar code at the bottom? Because if I understand correctly, I will then have two listings of forums.
@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> » <?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 he’s trying to fix an additional <a>
with no closing tag in the new post form, not generate a link to it
WPMU+BuddyPress+BBpress
How do you write the php code to say
if in a bbpress side
do this
if wordpress (or else) do that.
?
Maybe you can hardcode the URL like this http://domain/forum.php?id=9#postform