1 month, 3 weeks ago
I added an easy New Topic button (after reading a lot of other possible solutions):
Add to your loop-topics.php template (before the actual loop):
<?php if (!is_user_logged_in() ) :?>
<?php else : ?>
<input type="submit" name="submit" value="New Topic" onclick="location.href='#new-post';">
<?php endif; ?>
Add some css for styling when needed:
1 month, 1 week ago
Hello, thank you, really simple and efficient solution. However the button is not showed when the certain forum is empty. I have it only in forums in which at least one topic has been started. Do you have a solution for such issue?
@namruff15, thx mate. I like the simple solutions as well.
This behaviour (not showing when a forum is empty) is exactly what I wanted (for me it made no sense to have a button above the topic form). I will look into it (if still wanted).
Yes, I suppose that you’re right. It is not necessary to have the button when the text box is on top of the page. For me it’s ok as it is as well. Thanks again!
Cool, no thx!
Follow bbPress on Twitter •
Contact Us •
Terms of Service