Search Results for 'code'
-
AuthorSearch Results
-
February 26, 2015 at 7:14 pm #158980
In reply to: bbpress login widget with captcha – adjust layout
Robkk
Moderatoryou should of added the changes to a child theme.
follow this so the next update you wont lose anything
February 26, 2015 at 6:13 pm #158978In reply to: How to modify css in BBPress in general
Robkk
Moderatormake sure you are NOT just placing the new CSS at the bottom of the file , because the media queries will make it show for certain browser widths.
place any custom CSS before this note in the bbpress.css file
/*-------------------------------------------------------------- Media Queries --------------------------------------------------------------*/ /* =Standard Mobile Landscape -------------------------------------------------------------- */and any media querie specific size you want to have custom CSS please put custom CSS to the ones in the file.
^^i know it has to be that for sure.
February 26, 2015 at 6:05 pm #158976In reply to: bbpress login widget with captcha – adjust layout
wpgerd
ParticipantHello Robkk,
thanks for your great help. I add this code in my style.css of the child-theme and everythings looks nice now. Thanks.
What is your recommondation? I made in bbpress.css, but I think if there is an update of bbpress-Plugin, this possible will be deleted. So it’s better to add this changes in the style.css of the child-theme?
Gerd
February 26, 2015 at 5:59 pm #158973Robkk
Moderatorwhat importer did you use , the one listed in tools>forums Import??
because i see the bbPress one doesnt have much information in the codex and it is still in beta testing.
this could work or not , im only guessing to try to help
what you could try is go to tools>forums Repair forums and check
Remap existing users to default forum roles
and see if that fixes it.
there is also a ticket on the importer for SMF
February 26, 2015 at 5:32 pm #158971In reply to: Keep users from /wp-admin
Robkk
Moderatorwell thanks for finding the code , im sure this will help alot of users who run into the same issue.
February 26, 2015 at 5:30 pm #158970In reply to: bbpress login widget with captcha – adjust layout
Robkk
Moderatorthis will help put less of a margin after the captcha, if it doesnt work add !important at the end of the 0
.cptch_block { direction: ltr; margin-bottom: 0; }this is for space above the register link
a.bbp-register-link { margin-top:15px; }and im not sure how this is going to do with the checkbox but try it.
.bbp-login-form label[for=rememberme] { width: auto; display: inline-block; }February 26, 2015 at 5:00 pm #158968In reply to: Private title' showing before forum
Robin W
Moderatoreither add this to your functions file
add_filter('protected_title_format', 'ntwb_remove_protected_title'); function ntwb_remove_protected_title($title) { return '%s'; } add_filter('private_title_format', 'ntwb_remove_private_title'); function ntwb_remove_private_title($title) { return '%s'; }or use
February 26, 2015 at 3:12 am #158950In reply to: Keep users from /wp-admin
mvaneijgen
ParticipantHave even more code to also redirect them to a page if a users fills in nothing
add_action( 'wp_authenticate', '_catch_empty_user', 1, 2 ); function _catch_empty_user( $username, $pwd ) { if ( empty( $username ) && empty( $pwd )) { wp_redirect($referrer . 'http://yourdomain.nl/aanmelden'); exit(); } } add_action('wp_login_failed', 'my_front_end_login_fail'); function my_front_end_login_fail($username){ // Get the reffering page, where did the post submission come from? $referrer = $_SERVER['HTTP_REFERER']; // if there's a valid referrer, and it's not the default log-in screen if(!empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin')){ // let's append some information (login=failed) to the URL for the theme to use wp_redirect($referrer . 'http://yourdomain.nl/aanmelden'); exit; } }Not my code this is all scattered from around the web
February 26, 2015 at 3:05 am #158949In reply to: Better WYSIWYG text editor?
mvaneijgen
ParticipantI just copied text from another website and paste it in the visual editor and the message will have html tags in te text (not rendered html)
<h2 style=”color: #00bbaa; margin: 0px; font-family: ‘Open Sans’, sans-serif; line-height: normal;”>SVG for web</h2> <p style=”margin: 15px 0px; color: #000000; font-family: ‘Open Sans’, sans-serif; font-size: medium; line-height: normal;”></p> <p style=”margin: 15px 0px; color: #000000; font-family: ‘Open Sans’, sans-serif; font-size: medium; line-height: normal;”>Twee jaar geleden dachten wij een goed idee te hebben, een HTML app m....This is what it looks like.
February 26, 2015 at 1:32 am #158945In reply to: Forum with Sub-Forum shows wrong count for topic
Robkk
Moderatoryou can try tools>forums then repair forums
and just post an image using the
imgbutton by providing a url or link to an external serviceFebruary 26, 2015 at 1:30 am #158944In reply to: Need to Fix Forum User Name Spilling into Post
Robkk
Moderatori dont know why only chrome and IE , but try this
#bbpress-forums div.bbp-forum-author a.bbp-author-name, #bbpress-forums div.bbp-reply-author a.bbp-author-name, #bbpress-forums div.bbp-topic-author a.bbp-author-name { word-wrap: break-word; font-size: 12px; }make the font-size smaller if you want
February 26, 2015 at 12:35 am #158934In reply to: disabling breadcrumbs
February 25, 2015 at 11:20 pm #158931In reply to: Forum index is the only thing that show
Robkk
Moderatorsee if the shortcode works in a default theme first
as a test switch to a default theme such as twentytwelve, and see if this fixes.
if it still doesnt see if its a plugin issue
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the issue
if its not a plugin issue and is working in a default theme then your right about it being your theme
do the other shortcodes work fine?? if so see if you only messed up this file below
did you do any customization to this file
content-archive-forum.phpFebruary 25, 2015 at 10:38 pm #158929In reply to: How to modify css in BBPress in general
Robkk
Moderatortry this CSS code for a test to see if it works , if the background turns black it works.
input#bbp_search_submit.button { background: black; }February 25, 2015 at 9:38 pm #158926In reply to: How to modify css in BBPress in general
pfeufer
ParticipantIf this helps: Below is the code that shows up when I Inspect Element for the Search button. And the same code I change in the Style window of the element inspector to make the Search button appear the way I want it to:
media=”all”
.userwall_delete_post >button:hover, input[type=”submit”], input[type=”button”], input[type=”reset”] {
-webkit-border-radius: 0px 0px 0px 7px;
-moz-border-radius: 0px 0px 0px 7px;
border-radius: 5px 5px 5px 5px;
font-family: Arial;
font-size: 20px;
padding: 5px;
text-decoration: none;
}February 25, 2015 at 9:22 pm #158925Topic: Forum index is the only thing that show
in forum InstallationfuzeIII
ParticipantI’ve got a custom theme I made, it might not be coded properly since bbpress seems to work fine on twentyfifteen.
Anyway, I use a custom page with the shortcode [bbp-forum-index] inside and the page as a custom model. When I go to my page the forum shows, but when I try for instance to go inside a topic, it doesn’t work and instead of taking me where it should, the shortcode is shown.
As I said I made my own theme and it’s kinda hardcoded, if someone could help me making the modifications I have to make in order to make the forum work, it would be much appreciated.
Thanks.
February 25, 2015 at 9:15 pm #158924In reply to: How to modify css in BBPress in general
pfeufer
ParticipantHi Robin,
I pasted the code below into my Editor (Appearance/Editor) and it has no effect on the Search button on the main BBpress Forums page:#bbpress-forums .submit {
background-color: #a0668d;
color: #FFFFFF;
float: center;
vertical-align: middle;
border-radius: 10px;
height: 35px;
width: 80px;
font-size: 18px;
}I even tried putting a space then !important after each style, but no dice. Any idea what I may be doing wrong?
Thanks!
JohnFebruary 25, 2015 at 8:17 pm #158920In reply to: Using shortcode [bbp-reply-form] to specific topic!?
Sebastian
Participant@robkk: Thanks for your reply!
I tried the plugin with the settings you mentioned. I still don’t have the option to only add the reply form to a specific topic!? It just gives some cool extra features for the shortcode [bbp-single-topic id=$topic_id]. Am I right?
Moreover it doesn’t work with the LMS “Learn Dash”. Everytime I want to save the settings at the discussion box they are gone after klicking update. Neither in Courses, Lections or Topics – Posts. When I add and activate bbPress forum topic for comments in the normal WordPress Pages and Post it works fine.
Do you have any suggestions?February 25, 2015 at 8:03 pm #158916Robin W
Moderatorok, I still think that the import topics still have the old site forum id’s which won’t be correct
As bbpress uses wordpress posts then on import it should have allocated new postid’s for both forum and topics and linked these. The following work will be to see what it has actually done, then we can work out what to do next !
so on the new site
1. go into dashboard>topics and pick a topic without a forum, and edit it.
The url at the top will give the post id
eg
http://mysite.com/wp-admin/post.php?post=15602&action=edit
make a note of this as the newtopicid (I’ll refer to it later as that)
2. Then go to the forum that it should be, and again edit, and use the url to get it’s post id, and note this as newforumid (I’ll refer to it later as that)
Then go into the OLD Site and
3. go into the same topic and note the topic id as oldtopicid,
and
4. go into the it belongs to and note the number as the oldforumid.
So now we have newtiopicid, newforumid, oldtopicid, and oldforumid !
Then go into phpmyadmin on the OLD site (where it worked), and go into the sql tab and enter
SELECTpost_parentFROMwp_postsWHEREID= xxxxxwhere xxx is the oldtopicid you noted above
This should come back with the correct oldforumid as the entry under post parent
Then go into phpmyadmin on the NEW site (where it doesn’t work) and enter the same query, and see what that comes back with
then come back and tell me what that reveals !
February 25, 2015 at 2:43 pm #158911In reply to: How to limit the Number of Posts a user can make?
darkoned12000
ParticipantHow would we expand on this code to allow different forum roles to have different posting and topic limits?
Example:
Member = Can’t create topics, but can post replies 5x
Bronze = Can create up to 25 topics, and can post 250 replies
Silver = Can create 100 topics, and can post 1000 replies
Gold = Can create unlimited topics and unlimited repliesI wanted to create some new forum roles and was wondering if this sort of thing is possible? If so can someone assist or point to some functions that I would need to use to help accomplish this. Because this code example looks good I would just need to alter it with maybe some IF logic to look at the users role first and then limit them to topic and post counts.
Any thoughts?
February 25, 2015 at 11:24 am #158903In reply to: How to modify css in BBPress in general
pfeufer
ParticipantThanks again Robin. So I did put the following code into the Editor at first, but it did not work:
input {
border-radius: 2px 2px 2px 2px !important;
font-size: 10px !important;
}But according to the bbPress Styling crib (https://codex.bbpress.org/bbpress-styling-crib/), the code should look like this:
#bbpress-forums .submit {
background-color: #a0668d;
color: #FFFFFF;
float: center;
vertical-align: middle;
border-radius: 10px;
height: 35px;
width: 80px;
font-size: 18px;
}I guess what I am asking is, when I inspect a element in my browser (Chrome) it seems like I cannot just simply cut and paste the css code from the side inspector column, but rather, start the code with #bbpress-forums
Hope this makes sense. Thanks!
February 25, 2015 at 9:24 am #158899In reply to: Add retina support to the replies avatar
Robin W
Moderatorthanks for posting this, and yes you are right that you need to copy that file accross, otherwise it will get overwritten by updates.
You can also achieve the same result by putting
function retina_avatar ($args) { $args['size'] = 160 ; return $args ; } add_filter ('bbp_before_get_reply_author_link_parse_args', 'retina_avatar' );into your functions file, of course ‘As long as your CSS specifies a width of 80 (or whatever you prefer), you won’t see any change in the size of the avatar in your browser’
Thanks again for a useful post
February 25, 2015 at 8:39 am #158895In reply to: How to modify css in BBPress in general
Robin W
Moderatoryes, you should see that you are using a child theme in the editor (it will say ‘This child theme inherits templates from a parent theme xxx’ under templates at the top right, and after the templates you should see style.css.
if you’re going to get into css in a big way, then you would do better to use FTP and an editor such as notepad++ – see
February 25, 2015 at 7:57 am #158894In reply to: How to modify css in BBPress in general
pfeufer
ParticipantThank you Robin!
Last question, do I have access to the child theme’s style.css via Appearance/Editor, or do I paste the code into the child theme’s style.css file via TextWrangler (or some other editing program).
Thanks!
JohnFebruary 25, 2015 at 5:28 am #158892In reply to: How to modify css in BBPress in general
Robin W
Moderatorsorry, and that’s just anything you need to change (ie your code above), not the whole bbpress.css file !
so put the stuff above in your child theme style.css and ignore bbpress.css !
-
AuthorSearch Results