Search Results for 'code'
-
AuthorSearch Results
-
April 18, 2014 at 2:45 pm #145204
In reply to: edit on the Front-end doesn't work anymore
bustel
ParticipantAfter a long search I found a solution for my problem…
instead of:
$uri = bbp_get_reply_edit_url( $r['id'] );
set:
$uri = $_SERVER['REQUEST_URI'].( '/../../../give-reaction/' . $r['id'] . '?edit=1' );
on line: 1923April 18, 2014 at 2:05 pm #145202In reply to: edit on the Front-end doesn't work anymore
bustel
ParticipantAnd if i set it to:
$uri = ( '?edit=1' );
then I get the topic to change and not the reply….April 18, 2014 at 2:02 pm #145201In reply to: edit on the Front-end doesn't work anymore
bustel
ParticipantIt works for the topics but not for the replies, I don’t know why it doesn’t work…
I have tested with
1)
$uri = ( '/?edit=1' );
in the topic: http://www.mysite.com/?edit=1
it isn’t correct
it go to the home of the site, that’s it.2)
$uri = bbp_get_reply_edit_url( $r['id'] ) . '?edit=1';
in the topic: http://www.mysite.com/map/map/1827/edit/?edit=1
and it isn’t correct eather…
it says: The page you requested could not be found.April 18, 2014 at 8:06 am #145189In reply to: How do I add timestamp to posts within a topic?
Majijiboo
ParticipantThanks for responding. I made the below code and unfortunately didn’t work. When you have time in a week or 2, would love to know what went wrong. Thanks.
function post_time ( $output) { $output = preg_replace( '/, .*[^ago]/', ' ', $output ); echo $output; } add_action ('bbp_theme_before_reply_content', 'post_time') ;April 18, 2014 at 3:01 am #145185In reply to: change forum sidebar
April 18, 2014 at 2:59 am #145184In reply to: How do I add timestamp to posts within a topic?
Robin W
Moderatorbasically you’d need to cut some code to display the date/time, put it in a function that echo’s it, and then hook it to the following action
add_action (‘bbp_theme_before_reply_content’, ‘your_function’) ;
see
sorry am up to my armpits in other code, or I’d cut it for you !
April 17, 2014 at 4:13 pm #145174In reply to: Basic syntax question for items like this <
Robin W
Moderatorshould read
<p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Amend Profile/Change password</a></p>sorry, wordpress tends to not like code, and keeps trying to edit it !
have amended the codex !
April 17, 2014 at 3:53 pm #145172In reply to: edit on the Front-end doesn't work anymore
bustel
ParticipantDo the same thing for:
edit function: bbp-reply-edit-link
in the file: wp-content/plugins/bbpress/includes/replies/template.phpon line 1922
// Get uri // $uri = bbp_get_reply_edit_url( $r['id'] ); $uri = ( '?edit=1' );April 17, 2014 at 3:45 pm #145171In reply to: edit on the Front-end doesn't work anymore
bustel
Participant// Get uri // $uri = bbp_get_topic_edit_url( $r['id'] ); $uri = ( '?edit=1' );April 17, 2014 at 1:44 pm #145168Topic: Basic syntax question for items like this <
in forum TroubleshootingMajijiboo
ParticipantIs the syntax for this
<a href=""<?php">edit" >Amend Profile/Change password</a>suppose to be this<a href="&"<?php">edit">Amend Profile/Change password</a>? Thanks.April 17, 2014 at 11:28 am #145163Halo Diehard
Participant@foxden-vixen That’s awesome you figured it out! Often it is hit and miss for me too.
I use FireFox FireBug and right-click, “Inspect Element” anywhere on a webpage and it tells me what that element is called. The “Read More” element on your page is called a.readmore and the ‘display none’ css should work for that. Maybe:
.forum-archive a.readmore { display: none; }I should encourage you to start a new thread for topics that don’t go with the topic you are in, though 🙂
April 17, 2014 at 10:42 am #145161In reply to: creating a child-theme
Robin W
Moderatorwhich parts of the plugin do you want to re-write?
You will always be prompted for bbpress updates, so no code you write will be lost by mistake.
If it is templates that you want to alter, then copy only the ones you alter to
wp-content/your-theme/bbpress
see
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3of it’s functions, then you should change these using filters see
April 17, 2014 at 9:32 am #145160In reply to: creating a child-theme
Sascha.H
ParticipantWell the problem isnt that i cant install it. Actually i had installed both plugins but i dont want to rewrite the plugin code because when the plugins will be updated my code will be overwrited thats why i want a child-theme but i dont know which parts from the plugin in which folder.
1. Thank you
2. The Problem is the basic URL is http://www.myurl.de/forums/forum/test and when i disable the thickbox its http://www.myurl.de/forum/test. But i want zero tags before. And when i delete the forum field and save than it appears again.April 17, 2014 at 9:00 am #145157foxden-vixen
BlockedThe site is back up today and I tested it out. It did not work the way you wrote the code.
.forum-archive DIV.sidebar.right, .bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.right { display: none !important; }should be
.forum-archive DIV.sidebar.right, .bbpress.single-forum DIV.sidebar.right, .bbpress.single-topic DIV.sidebar.right { display: none !important; }Just taking out the spaces between bbpress and single worked. The syntax was incorrect.
One other stupid question…at the bottom of the main page, which I guess now is called the archive page, there is the “read more” tag. How do I get rid of that? Doesn’t that have to do with the loop?
April 17, 2014 at 8:40 am #145155In reply to: Full Width for bbpress forums root page
Robin W
Moderatorfind your themes full width page template and then follow the instructions below to get bbpress to use it
April 17, 2014 at 8:23 am #145149In reply to: How to make forums look better/prettier
Robin W
ModeratorI’d start by reviewing the layout and functionality
the look at
to get some widgets in your sidebars
then
to get some styling.
April 16, 2014 at 6:23 pm #145134Halo Diehard
Participant@foxden-vixen try adding a comma and:
.bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.rightafter where you already have in the css:
.forum-archive DIV.sidebar.rightso it says:
.forum-archive DIV.sidebar.right, .bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.right { display: none !important; }April 16, 2014 at 6:07 pm #145133foxden-vixen
BlockedHalo thank you! I used the CSS code you provided. That worked for the front page of the forums. When I go to categories the sidebar is back. So any more code that you can throw at me to prevent the sidebar for other parts of the forum?
April 16, 2014 at 4:05 pm #145130In reply to: Forum Ranks
matthewa761
ParticipantStill confused on where you enter this html code at…
April 16, 2014 at 11:58 am #145122Topic: Full Width for bbpress forums root page
in forum Themesleopolds
ParticipantHi,
I am using Twenty Fourteen and bbpress. How can I make the forums root page full width?
I want to remove the sidebar, center the content and remove the post-like forum names after the listing section. Basically, I want this page to act as a full-width page, not a post/forum listing.
My forums root page is http://leopolds.com/discussions/
I want it to look like http://leopolds.com/bbs/ (created using shortcodes)
Thank you very much.
(I was able to achieve full-width style in individual forum page by using widget visibility function. But this doesn’t work for the forums root page.)
April 16, 2014 at 3:20 am #145108Topic: Forum reply background
in forum TroubleshootingAdonismoet1608
ParticipantI have successfully changed the color of all of them forum except the .. reply background. My font is white and the back ground is white. I didn’t notice this code in the styling crib. Can I have help for this please
April 16, 2014 at 2:57 am #145106In reply to: hidden forum
Robin W
ModeratorNot really without some code, and I’m busy doing that for my plugin, and it won’t readily adapt for the above method – hence why I’m writing a plugin.
I’m not far off now, cracked the search yesterday, now a major tidy up !
April 16, 2014 at 12:41 am #145104In reply to: Set bbpress roles on New user form
Stephen Edgar
KeymasterIf you take a look at a single users profile and the ‘edit’ section:
If you look in
content-single-user.phpyou’ll see:<?php if ( bbp_is_single_user_edit() ) bbp_get_template_part( 'form', 'user-edit' ); ?>Open the
form-user-edit.phptemplate:<?php do_action( 'bbp_user_edit_before_role' ); ?> <?php bbp_get_template_part( 'form', 'user-roles' ); ?> <?php do_action( 'bbp_user_edit_after_role' ); ?>(I removed some of the multisite network user role code for readability above)
Open up the
form-user-roles.phptemplate:<?php bbp_edit_user_forums_role(); ?>The role that will be the default when you add this to your ‘New User Form’ will be the default ‘participant’ if that is what you have set the default role as in bbPress settings.
April 15, 2014 at 6:55 pm #145098Halo Diehard
Participant@foxden-vixen try:
DIV.sidebar.right.clearfix
or
DIV.sidebar.right
If that doesn’t work in the experimental section, try pasting this in your style.css:
.forum-archive DIV.sidebar.right { display: none !important; }April 15, 2014 at 6:44 pm #145097In reply to: CHAT FOR MY FORUM
Halo Diehard
ParticipantThere are so many cool options right now! Besides private messages, like the plugin listed above, there is a chat at the bottom bar that users can chat with but it’s also one on one privately, it is iFly.
Also, the plugin Quick Chat can be integrated into bbPress in two different ways:
1. This chat plugin can be put into different WordPress pages with shortcodes, so you can put it on any pages at the top or bottom of your forums that are on WordPress pages using shortcode, or in any sidebar widget.
2. You can also use a different chat on each WordPress page using shortcode, so coupled with the plugins BuddyPress and BuddyPress Groups Extras (which adds extra pages to BuddyPress Groups) you can give each of your bbPress forum groups their own private chat!
-
AuthorSearch Results