Forum Replies Created
-
In reply to: Disable “pending” status to allow all content.
Yes jamnet.kr, you are on the correct part.
It’s now Dashboard / Settings / Comments / Comment moderation.
It’s set to 200 on your screen, so no replies must be on “pending” status cause of links url.
In reply to: How to add a custom buttonHello, my skills are too limited to do that. I’ve simply moved it carefully to be visible for all.
Can you please remove all our posts previous posts to clean the topic ?
TO CONCLUDE :
function rew () { if ( is_user_logged_in() ) { echo '<p><a href="http://your_url/new-posts"><div class="newposts">Show new posts</div></a></p>' ; } else echo '<p><a href="http://your_url/new-posts"><div class="newposts">Show new posts</div></a></p>' ; }
Put this into function.php of your child theme
.newposts { float: left; background-color:#DD9933; padding: 5px 6px; margin:5px 5px 2em 0; } .newposts a { color:#f2f2f2 !important; border:none; border-radius:0; box-shadow: none; color:#ffffff; font-size:13px; }
And put that into your custom style.css. If your button doesnt appear while your loggued or while you’re not, take care of the margin and the padding of the CSS!
You will have to create a new page “new-posts”. Add [bbp-topic-index] to this page to display your topics in order (most recent ones). If you need a more customizable list, install BBP-Style Pack and go to the Shortcodes section.
In reply to: How to add a custom buttonGuests view :
Loggued users :
In reply to: How to add a custom buttonYou can see it now, I put :
.newposts { float: left; background-color:#DD9933; padding: 5px 6px; margin:0px 5px 2em 0; } .newposts a { color:#f2f2f2 !important; border:none; border-radius:0; box-shadow: none; color:#ffffff; font-size:13px;
In reply to: How to add a custom buttonWith CSS :
Without CSS :
I was trying to align it with the Mark all as read button…
In reply to: How to add a custom buttonyou mean my trick with the margin on the CSS ?
In reply to: How to add a custom buttonOnce again you are right..
So now I need to double my CSS for loggued and non loggued users.. Any idea ? 🙂
In reply to: How to add a custom buttonThat’s right! And when I check on the source code in a browser while non loggued, I can clearly see the code with the button.
In reply to: How to add a custom buttonSorry it’s in french :
In reply to: How to add a custom buttonIt detect the folder “templates” in the theme. (orange color)
CSS part is green.
I’ve installed a fresh version of my original theme + created a new child theme.
If I modify the function.php of the original theme, all works well.
If I add my content to the function.php of my new child theme, nothing appears…I can’t get the new child theme working, like my current one.
Anyway, strange thing is that I can see the piece of code when I inspect the source with a browser :
<div class="bbp-breadcrumb"><p><a href="xxx" class="bbp-breadcrumb-home"><span class="bsp-home-icon"></span></a> <span class="bbp-breadcrumb-sep">›</span> <span class="bbp-breadcrumb-current">Forum</span></p></div> <p><a href="lasts-topics-posts/"><div class="newposts">Show new posts</div></a></p> <ul id="forums-list-0" class="bbp-forums">
It seems to be hidden by something..
In reply to: How to add a custom buttonThe issue comes from my theme, maybe too much modifications.
I really don’t know how to solve this instead of using another method to create my button..
In reply to: How to add a custom buttonI don’t have anything like that.
I only got few plugins linked to bbpress (bbp Style pack, unread posts, etc..).
In reply to: How to add a custom buttonThanks Robin but I don’t think this is the easiest way for me to make this button available for users and guests.
When [bbp-topic-index] is available for all (no restrictions in my board), I just need to put my button available for everyone.
I’ve tried this :
add_action ('bbp_template_before_forums_index' , 'rew' ) ; function rew () { if(!is_user_logged_in()) return; echo '<p><a href="new-posts/"><div class="newposts">Show new posts</div></a></p>' ; }
and
function rew () { if ( is_user_logged_in() ) { echo '<p><a href="new-posts/"><div class="newposts">Show new posts</div></a></p>' ; } else echo '<p><a href="new-posts/"><div class="newposts">Show new posts</div></a></p>' ; }
But doesnt works..
In reply to: How to add a custom buttonHello Robin, once again your advice rocks!
Here is my result :
Function.php of my child theme :
add_action ('bbp_template_before_forums_index' , 'rew' ) ; function rew () { echo '<p><a href="new-posts/"><div class="newposts">Show new posts</div></a></p>' ; }
and my css :
.newposts { float: left; background-color:#DD9933; padding: 5px 6px; margin:-65px 5px 2em 0; } .newposts a { color:#f2f2f2 !important; border:none; border-radius:0; box-shadow: none; color:#ffffff; font-size:13px; } @media(max-width:580px) { .newposts { float: right; background-color:#DD9933; padding: 5px 6px; margin:-15px 0px 2em 0; } .newposts a { color:#f2f2f2 !important; border:none; border-radius:0; box-shadow: none; color:#ffffff; font-size:13px; } }
I had to make a custom CSS to get it responssive with mobile phones.
I still got a little issue which is that my buton dn’t appear when you’re not connect, I need to fix that!
In reply to: BBpres isnt really responssive with my themeI dit the trick with some CSS improvments :
width: 100px;
padding: 2px;@media(max-width:580px) { div#bbpress-forums { overflow: visible !important; } #bbpress-forums span.bbp-admin-links a, #bbpress-forums span.bbp-admin-links { width: 100px; padding: 2px; color: grey; } }
In reply to: Disable “pending” status to allow all content.Edit : Here is the solution : Settings –> Discussion Settings … scroll down… Comment Moderation:
“Hold a comment in the queue if it contains __ or more links.Put more than 1 link and it’ll be ok.
I had the exact same issue with the creation of a new custom role.
My old customs roles worked and still work like a charm but with the new one..Impossible to set it and assgin it to a user.
The trick is simple, add your custom role with the usal way on your function.php like that :
function vip_add_custom_role( $bbp_roles ) { $bbp_roles['vip'] = array( 'name' => 'VIP', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'vip_add_custom_role', 1 );
Then install “Members” Plugin from Justin Tadlock and create a new role with the exact same slug (name) as the one your created.
You can manage the capabilites too if you want, but the most important thing is that your new custom role will be fully usable.
In reply to: Changing forum root path ?You’re right, thanks Robin!
It’s crazy….
My issue was the “disallow editing after XX minutes” setting…
I’ve set it to 1000000000000000000 to never disable this function and it seems that the php version and php settings don’t take it good.
I’ve set it to 10000000000 and now it works well.
20 hours on this problem! Crazy.
Okay, I merged/splitted a new DB with my current DB, my issue is in wp_options.
When I backup this table to my fresh DB, the edit button disapear.
The good news is : This table only contain 6338 lines ….
I’ve tried a new thing.
I created a new WP table by changin the table prefix on wp-config.php, activated all my plugins + child theme, added a new users and created a test forum…
I got my edit button.
So it’s in my DB, no ?
wp-config and .htaccess no. It’s the default one generated by wordpress.
About php.ini and php-config, I don’t have these files and I’m on a shared hosting.
In reply to: Theme color Issue with the roles.I found out where is the problem.
It is due to the language translation file, If I put the default language back in english there is no problems.
To the french users if you get this issue try :
#bbpress-forums .administrateur .bbp-author-role { background-color: blue;
It will wrk but when it comes to the french translation of moderator : modérateur it will be harder due to the special character on it.
You will have to rename it before being able to change color.