Search Results for 'code'
-
AuthorSearch Results
-
August 1, 2014 at 11:02 pm #150065
In reply to: Favorites and subscription count
Stephen Edgar
KeymasterNice, thanks for the follow up and code đ
August 1, 2014 at 11:00 pm #150064In reply to: Content not showing on using custom template
Stephen Edgar
KeymasterYou copy the files to
/mytheme/bbpressas stated in the links above.You also should change your template as I suggested above, that is the primary cause of your issue I think.
August 1, 2014 at 10:04 pm #150063In reply to: Install Language
Stephen Edgar
KeymasterSee the following https://codex.bbpress.org/bbpress-in-your-language/
August 1, 2014 at 9:06 pm #150061Stephen Edgar
KeymasterShould the admin get an email when a post goes into moderation if I have E-mail me whenever A comment is held for moderation selected in the Settings > Discussion.
I have no idea đ
bbPress is not currently doing this, nor have I got to the this bit in the recent code updates I have written. This is probably something we would want to iterate on further once the changes we have been making as linked above in #2589 and ‘Per forum moderation’ in #459 and how we handle notifications for not just keymasters but also specific forum moderators also.
August 1, 2014 at 8:48 pm #150057In reply to: Mobile display
Robkk
Moderatorare you using a child theme ?? with bbpress.css in your child theme??
cause what i might think is that you have put bbpress.css into your child theme a long time ago
but the bbpress plugin updated their css with a repsonsive layout and you just dont have that code in your child themes bbpress.css
if im right , you can just check out the bbpress plugin and copy styles to your child themes bbpress.css
August 1, 2014 at 8:39 pm #150056In reply to: Finding .css style file
Robkk
Moderator@tonydes child theme
you put it either one i guess,
i copy most of my code into my custom css editor in my theme because it works automatically for me
but if i have to put the code into my bbpress.css in my child theme , i have to add !important alot
August 1, 2014 at 5:02 pm #150055In reply to: Best bbpress polls plugin
palmdoc
Participant@peterwsterling the Polls plugin generally works well. There is however a “bug”
After creating the poll, if one ever tries to edit the first post in the topic, one will see an error message which says that the poll can only be created for the first post (even if it is the first post).
You’ll lose the shortcode formatting and have to re-create it.August 1, 2014 at 1:17 pm #150049In reply to: Full Width Forum Help
Robin W
Moderatorok, 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 !
August 1, 2014 at 1:09 pm #150048In reply to: Random Topic Link
Robin W
ModeratorAbsolutely 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
August 1, 2014 at 11:37 am #150047In reply to: Random Topic Link
joejozwowski
Participantcould I put that in a page or post, rather than the code?
August 1, 2014 at 10:12 am #150045In reply to: Full Width Forum Help
aussiestar14
ParticipantHope this helps :-/
the footer.php:<?php
/**
* Footer Template
*
* The footer template is generally used on every page of your site. Nearly all other
* templates call it somewhere near the bottom of the file. It is used mostly as a closing
* wrapper, which is opened with the header.php file. It also executes key functions needed
* by the theme, child themes, and plugins.
*
* @package Oxygen
* @subpackage Template
*/
?><?php get_sidebar( ‘secondary’ ); // Loads the sidebar-secondary.php template. ?>
</div><!– .content-wrap –>
<?php do_atomic( ‘close_main’ ); // oxygen_close_main ?>
</div><!– #main –>
<?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>
<?php get_sidebar( ‘subsidiary’ ); // Loads the sidebar-subsidiary.php template. ?>
<?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>August 1, 2014 at 10:06 am #150044In reply to: Finding .css style file
tonydes
ParticipantThanks for the reply @robkk. Quick question though, if I use a child theme do I create a folder and copy the css file there or to the parent theme? Also once I copy it, do I add relevant code to the file itself or to the custom css editor on wordpress?
Thanks again!
August 1, 2014 at 9:06 am #150043In reply to: Finding .css style file
Robkk
Moderatorheres is a straight link to where you need to be, but reading the whole page isnt bad too
August 1, 2014 at 7:58 am #150041In reply to: Trouble getting started
Robin W
Moderatorok, 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
August 1, 2014 at 6:56 am #150039Topic: Finding .css style file
in forum Troubleshootingtonydes
ParticipantHi guys,
I apologize in advance, my skills are pretty minimal and I couldn’t find a solution to my problem. I just installed the forum on my site, but the pictures (avatars) for ‘last updated by’, started by’ are huge! Where do I find the.css file to edit them, and what code do I use?
Thanks in advance for the help!
August 1, 2014 at 4:08 am #150034In reply to: login and registration
Robin W
Moderatoryes 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]August 1, 2014 at 3:18 am #150032In reply to: Random Topic Link
Robin W
Moderatorok, 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.
July 31, 2014 at 5:44 pm #150017Topic: Forum search inside Buddypress group
in forum Pluginswp_maybe
ParticipantI am trying to implement a search box inside a Buddypress group that searches on the contents of the Group Forum. I found some helpful instructions here
Basically, I pasted the following code outside the loop in the “content-single-forum.php” file. (Of course this was done to a copy of the bbpress file which I imported into my theme’s bbpress folder):
<h3>Search Forum</h3> <form role="search" method="get" id="bbp-searchform" action=""> <label for="ts">Search the support forum topics</label> <input type="text" name="ts" id="ts" value="<?php echo ( isset( $_REQUEST['ts'] ) ) ? $_REQUEST['ts'] : ''; ?>" /> <input type="submit" id="searchsubmit" value="Search" /> </form>This code however, performs search only on the topics and not the replies.
Can someone suggest appropriate modifications to the code so that it searches on both topics and replies rather than just the topics.
Many thanks!
July 31, 2014 at 4:14 pm #150013In reply to: Full Width Forum Help
watstyl08
ParticipantYou need to make sure that code is at the VERY END of your style.css.
July 31, 2014 at 4:13 pm #150012In reply to: Full Width Forum Help
Robin W
Moderatorit’s not taking
.bbpress #sidebar-secondary { display:none ; }try
.bbpress #sidebar-secondary { display:none !important; }July 31, 2014 at 2:33 pm #150007In reply to: Random Topic Link
joejozwowski
Participantok⌠so I pasted the following into my functions.php page:
add_action('init','random_post'); function random_post() { global $wp; $wp->add_query_var('random'); add_rewrite_rule('random/?$', 'index.php?random=1', 'top'); } add_action('template_redirect','random_template'); function random_template() { if (get_query_var('random') == 1) { $posts = get_posts('post_type=post&orderby=rand&numberposts=1'); foreach($posts as $post) { $link = get_permalink($post); } wp_redirect($link,307); exit; } }And then in my menu I created a LINK element and pasted this into the URL field:
/?random=1And all I get is a blank page
July 31, 2014 at 1:52 pm #150001In reply to: Full Width Forum Help
watstyl08
ParticipantFixed it!
I didn’t realize the .css code had to go at the very end of the style sheet.
Everything works perfectly now
Thanks for all your help!!
July 31, 2014 at 1:41 pm #149997In reply to: Full Width Forum Help
Robin W
ModeratorWhat 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 đ
July 31, 2014 at 1:35 pm #149995In reply to: Full Width Forum Help
watstyl08
ParticipantOK!
I tried this, and I think we’re getting extremely close đ
Note that you also have to remove this code from your bbpress.php file
<div class="aside"> <?php get_sidebar( 'primary' ); // Loads the sidebar-primary.php template. ?>The only problem with my Forum now is that the “right” sidebar still shows up, albeit below the full-page forum. Check it out here –> http://www.ibeacon.com/forums/forum/ibeacon-com-forums/
This is my code for the full-page template
‘get_header(); // Loads the header.php template. ?>
</div>
<?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>
<div class=”bbpress-wrap”>
<div id=”bbpress-content”>
<?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>
<div class=”hfeed”>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>
<div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>
<?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>
<?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>
<div class=”entry-content”>
<?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>
<?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>
</div><!– .entry-content –>
<?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>
<?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>
</div><!– .hentry –>
<?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>
<?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!– .hfeed –>
<?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>
</div><!– #content –>
<?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>`
What can I change to eliminate the sidebar remnants that remain?
July 31, 2014 at 12:38 pm #149992In reply to: Random Topic Link
Robin W
Moderator@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
-
AuthorSearch Results