Forum Replies Created
-
In reply to: Full Width Forum Help
ok, so what happens at the moment is that the bbpress.php calls the footer.php at the bottom of it.
The footer in turn calls the sidebar (this is an annoying habit that theme developers have started doing, sidebars should be called in theme pages not in footers aggghhh!).
so what we’ll do in bbpress.php is simply take out the call to the footer, and put the footer code minus the sidebar into the bbpress.php
so in bbpress.php remove the line which says
<?php get_footer(); // Loads the footer.php template. ?>
Then put this code in it’s place
</div><!– .content-wrap –> <?php do_atomic( ‘close_main’ ); // oxygen_close_main ?> </div><!– #main –> <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?> <?php do_atomic( ‘before_footer’ ); // oxygen_before_footer ?> <div id=”footer”> <?php do_atomic( ‘open_footer’ ); // oxygen_open_footer ?> <div id=”footer-content” class=”footer-content”> <?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?> </div> <?php get_template_part( ‘menu’, ‘subsidiary’ ); // Loads the menu-subsidiary.php template. ?> <?php do_atomic( ‘footer’ ); // oxygen_footer ?> <?php do_atomic( ‘close_footer’ ); // oxygen_close_footer ?> </div><!– #footer –> <?php do_atomic( ‘after_footer’ ); // oxygen_after_footer ?> </div><!– .wrap –> </div><!– #container –> <?php do_atomic( ‘close_body’ ); // oxygen_close_body ?> <?php wp_footer(); // wp_footer ?> </body> </html>
Come back with what that does !
In reply to: Random Topic LinkAbsolutely you can, once in the edit screen of the page, switch to ‘text’ from ‘visual’ (top right of the content box), and paste
echo '<a href="/?random=1">Random Post</a>' ;
in there
In reply to: Trouble getting startedok, could be a number of issues
start with theme and plugin as it could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Then look at the documentation to see what else you might need to do
In reply to: Locked up and lost the keys . . .great – glad you’re fixed !
In reply to: login and registrationyes you need to set up pages for these functions.
So set up a page called ‘registration’ and put
[bbp-register]
in it.
and a page called ‘lost password’
and put
[bbp-lost-pass]
in it
You can prefix these codes with some text as well so for instance lost password might say
Enter your email address, and we'll send you a new password [bbp-lost-pass]
In reply to: Random Topic Linkok, need to work out if menu issue or function issue
So eliminate function by creating a test page and putting
echo '<a href="/?random=1">Random Post</a>' ;
onto the test page and confirm it works.
In reply to: Full Width Forum Helpok, can you post the content of your footer.php please
In reply to: Full Width Forum Helpit’s not taking
.bbpress #sidebar-secondary { display:none ; }
try
.bbpress #sidebar-secondary { display:none !important; }
In reply to: Random Topic LinkSay I wanted to pull from two specific forum topics, how would I incorporate that?
In your menu? Come back and I’ll help.
In reply to: Full Width Forum Help@watstyl08 – great glad you’re fixed
@aussiestar14 – that work for you?In reply to: Show enhanced info in user's profileGreat – come back if you need further help
In reply to: small problem with my forumgreat – glad you’re fixed.
In reply to: Forums index vs custom page shorturlThis is probably a stupid question but How do I empty the trash to make sure that the old slug is removed?
No stupid questions here !!
Go into Dashboard>forums> all forums and look at the top for all | published | Trash
Trash will only show if you have any. If you do click and you can permanently delete
Repeat for topics and replies, and possibly for posts and pages as well.I’m concerned that this could permanently break the existing links.
I don’t think it will but cannot guarantee, it should only affect anything being created at the time you are doing it, so anyone creating a page, post or forum topic or reply. Quite a lot of advice on wordpress for resetting permalinks is to simply go in and click save, as this still forces a rewrite to the database, so maybe try that first.
In reply to: Full Width Forum HelpWhat can I change to eliminate the sidebar remnants that remain?
The code in your style.css was supposed to do that ie
.bbpress #sidebar-secondary { display:none ; }
I cannot see the other sidebar on your site – have you cleared your cache/refreshed your browser, and if you can still see it tell me which browser (eg IE, Chrome etc.) and give me a specific url
We should be able to crack this one 🙂
In reply to: Password protecting forums?So 3 possibilities here
1. you just want to have you forum pages needing a password, with no user registration. Probably not the best choice, so I’ll ignore for the moment
2. You want to hide your forums, and have registered people being able to access with some being able to edit.
Just set the forums to private Dashboard<forums>all forums and edit the forum you want. On the right hand side you’ll see visibility – just set to private
Base users will have the participant role, with those editing having the moderator role.
Then choose between manual or automatic registration. Manual gives you control, automatic means anyone can gain access. You can use a plugin such as ‘confirm user registration’ to provide a half way house. Used in conjunction with ‘SB Welcome Email Editor’ to warn your users that they will need to be approved, this provides a great way to let people register, you’re emailed and just click a link to confirm them onto the site, or block them.
3. If you want your forums visible, but not accessible – so people know they are there, use my plugin
https://wordpress.org/plugins/bbp-private-groups/
Again user access as per 2 above
Come back if any of that isn’t clear, or if you can describe your needs further
In reply to: Random Topic Link@robkk thanks for that, so to make this a topic I think you you would just change
$posts = get_posts('post_type=post&orderby=rand&numberposts=1');
to
$posts = get_posts('post_type=bbp_get_topic_post_type()&orderby=rand&numberposts=1');
although could be
$posts = get_posts('post_type="bbp_get_topic_post_type()"&orderby=rand&numberposts=1');
never sure of some of these without playing
idk how to bring that link up in the menu
For a ‘button’ (actually it would just be a link) you just paste it in text mode onto whtever page. in php, you just echo it
echo '<a href="/?random=1">Random Post</a>' ;
on a menu item, you just at it as a link dashboard>appearance>menus and look for links
In reply to: Full Width Forum Helpsorry, sorry – missed that bit 🙂
Ok will start typing again !
in your bbpress.php
change the lines that say
<div class=”content-wrap”> <div id=”content”>
to
<div class=”bbpress-wrap”> <div id=”bbpress-content”>
Then go into
wp-content/themes/oxygen/style.css
and at the end of this file put
.bbpress-wrap {
width : 100% ;
}
#bbpress-content {
float: left;
margin: 0 0 30px;
width : 100% ;
}.bbpress #sidebar-secondary {
display:none ;}
What this does is get bbpress to use the bbpress-wrap with a width of 100% instead of content-wrap, as content-wrap is used by the other pages and need to be 67%.
Then .bbpress #sidebar-secondary is set to display none, so that this disappears
Now if that all works, it is possible that an upgrade of oxygen will take out these changes, so you really need to create a child theme and put both the bbpress.php and the style.css changes in there. See
Do come back if that deosn’t all work, without the theme I can’t test here !
In reply to: Full Width Forum HelpI was expecting Jimi to respond….
[EDIT]
I was halfway through writing detailed instructions, when I popped back to your site and I see that you’ve fixed it.
1. In the gentlest way, it would have been great to post back here that you’re fixed, would have saved me ten minutes wasted typing 🙂
2. It would be great if you’d post what you did to help @watstyl08, and others who might have this problem with oxygen and search and find this thread.
In reply to: Random Topic LinkIt’s doable, but would be very surprised if anyone has built this !
Ok, I’ve recut this.
you can find a buddypress version at :
Basically you use the custom fields from buddypress.
In Dashboard>settings>bbp buddypress profile information you set which up to 4 buddypress fields you wish to display. I don’t yet validate these, so make sure the names are exactly as set up in buddypress, or they won’t appear !
Please come back with any feedback, and I’ll cut this to the wordpress plugins page in the next few days
In reply to: Profile user's page not foundYou’re welcome !
In reply to: Profile user's page not foundsorry, I had presumed that ‘namnguyen’ was the username
that is the normal way a profile works
ie username = Greedyman
then profile url is
In reply to: Profile user's page not foundprofiles are normally
http://www.mysite.com/forums/users/namnguyen/
presume you’ve added cars, and that you’re Dashboard>settings>forums>forum user slugs>users is set to profile?
In reply to: Forum Page does not have link to Loginno, all looks fine to me !
You always get a lot of lurkers on any website, who learn, but don’t post. They may well have subscribed to forums so they get updates
In reply to: Unable to view forum rootgreat – come back if you need further help !