crzyhrse (@crzyhrse)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 30 total)
  • @crzyhrse

    Participant

    Just to add the function @Robin W offers still works… I added span style to the text to tweak it…

    It also works this way for text after on the forum list page:

    add_action ('bbp_template_after_forums_index' , 'follow_up' ) ;
    
    Function follow_up () {
    Echo '<div class="entry-content"><span style="color: #666666;">Here is my followup text.</span></div>' ;
    }

    @crzyhrse

    Participant

    Thank you for this, I was looking for the selector for the forum search results page… _/\_

    @crzyhrse

    Participant

    I just want to thank @hannahmwool for this… I was having same database errors, and removing the Search Everything plugin fixed it totally…

    Much gratefulness…

    @crzyhrse

    Participant

    Yes, that is where it goes, in functions.php… I can confirm that the code is still working here… Have you cleared caches…?

    @crzyhrse

    Participant

    Thank you for all your amazing work on some really nice bbPress pluginsโ€ฆ

    I made a coupe requests, here: https://wordpress.org/support/topic/feature-request-385?replies=1#post-7594550 and here: https://wordpress.org/support/topic/feature-request-386?replies=1#post-7594604

    ๐Ÿ™‚

    @crzyhrse

    Participant

    I second Robert’s perspective… I’ve been looking for a way to do this for a while… If I knew php code well enough I’d offer to help out, but alas, I don’t…

    In reply to: Menu link to Profile

    @crzyhrse

    Participant

    Thanks Robin,

    It is a very. very nice plugin that you have created… But it won’t do for my needs in these regards… It puts the Edit Profile link into the main menu as a primary menu item, with no ability to change where it is or do anything else with it… It is there in the primary main site menu or nothing…

    If your plugin put the Edit Profile link into the Menu section of Admin, with the same ability to use it however, in the same way that pages, posts, forums, CPTs and all the rest are there to be used as needed or not, then it would be very helpful, even perfect for my needs… Where the link goes TO is perfect…

    I don’t need the rest of what your plugin does, as I have done some very extensive modifications of bbPress via my child theme over the last couple years…

    But anyone starting out or in early stages with bbPress should find your plugin very helpful indeed…

    So, still wondering what you think about getting some code similar to what this thread is discussing to work via one of the PHP plugins I mention above…? I want to be able to just have a discrete but clear little (page/post) link that I can place in a specific place in a specific sidebar, like I have done with other links, that lets logged in folks who are using the forums directly link to their particular Forums profile page and make changes… Basically accomplish the same thing that I can accomplish for the main WP profile page with this link: http://www.yourwebsite.com/wp-admin/profile.php&#8230; If someone not logged in clicks this link they are taken to a WP login page…

    Thanks for all the hard work you are doing for a while now to make bbPress better and better and better…

    Kind regards…

    In reply to: Menu link to Profile

    @crzyhrse

    Participant

    Hi Robin,

    This thread is a bit old, but hoping it is still a place to pursue this..

    The WP Exec PHP plugin that was suggested above to enable this has not been updated in over two years, but in trying to use two different current well reviewed plugins that enable placing php in pages via shortcodes, Shortcode Exec PHP and PHP Code For Posts, I get the following same error with your last offered php snippet above…

    Parse error: syntax error, unexpected ‘<‘ in /home/spirawake/public_html/wp-content/plugins/shortcode-exec-php/shortcode-exec-php-class.php(895) : eval()’d code on line 1

    In both cases I created the shortcode using this, as per above;

    <meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  sanitize_file_name($current_user->user_login). "";
          
    ?>/edit/">

    I’ve often used shortcodes in other ways, and am hoping that maybe there is something that needs to be changed in this code because it is being inserted into the page via a shortcode…?

    Kind regards…

    @crzyhrse

    Participant

    And a year later I must add my thanks- I also have been able to use all this so that it works nicely, including the additional location field and with both website and/or location showing in the profile only if it is filled in…

    Getting the location to show in the profile properly took a little more than the changes Steven mentions making to Robin’s code… For anyone else who might come this way here is all of it put together…

    /* Add Location field to bbPress user profile page.
     */
    function ntwb_user_contact_methods_location( $user_contact ){
    
    	/* Add user contact methods */
    	$user_contact['location'] = __('Location');
    
    	return $user_contact;
    }
    add_filter('user_contactmethods', 'ntwb_user_contact_methods_location');
    
    /* Show Location in bbPress user profile.
     */
    function user_profile_bbp_location_information()	{
    //this function adds the location to the profile display menu
    	$location=bbp_get_displayed_user_field( 'location' ) ;
    	if ( ! empty($location) ) {
    		$label1 =  $rpi_options['item1_label'] ;
    		echo "<p>" ;
    		printf ( __( 'Location : ', 'bbpress' ));
    		echo $location;
    		echo"</p>" ;
    	}
    }
    add_action ('bbp_template_after_user_profile', 'user_profile_bbp_location_information') ;
    
    /* Show website in bbPress user profile.
     */
    function user_profile_bbp_website_information()	{
    //this function adds the website to the profile display menu
    	$url=bbp_get_displayed_user_field( 'user_url' ) ;
    	if ( ! empty($url) ) {
    		$label1 =  $rpi_options['item1_label'] ;
    		echo "<p>" ;
    		printf ( __( 'Website : ', 'bbpress' ));
    		$url='<a href="'.$url.'">'.$url.'</a>';
    		echo $url;
    		echo"</p>" ;
    	}
    }
    add_action ('bbp_template_after_user_profile', 'user_profile_bbp_website_information') ;
    

    @crzyhrse

    Participant

    Something related to this that I wanted to do, ad because I finally found the answer I want to put it here for others to maybe find…

    To remove the url link fro all author instances in bbPress but leave the author names intact you can put this in the child theme’s functions.php:

    /* Remove link urls from forum author instances...
    */
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
    return $author_link;
    }

    It was found here: http://www.digitspeak.com/web/wordpress/remove-bbpress-forum-profile-url-link/#comment-440

    @crzyhrse

    Participant

    In case someone else comes this way with a similar issue, as I did, I want to add to this thread… I used the โ€œToolsโ€ -> โ€œForumsโ€ -> โ€œRemap existing users to default forum rolesโ€ for a different issue as recommended by a moderator elsewhere in this forum…

    What that did was take away the Keymaster role from the primary Admin user, I.E., me… The Administrator role that is set up on the original install in other words… This also removed all trace of bbPress from the Dashboard… I did all the usual, caches, de/reactivate, check some possible plugin conflicts, different browsers, etc… I even changed the version number of bbBress in my contents>Plugins folder so I force a reinstall… Nothing fixed it…

    What I was finally able to do, because I luckily had a different Admin set up for someone else, was log out and in via that admin user, and add the keymaster role back to my main admin account…

    I would not recommend the use of that option, and I find myself more that a little wary of all the form tool options now…

    Kind regards…

    @crzyhrse

    Participant

    Also did the trick for me, so thanks here as well… ๐Ÿ™‚

    @crzyhrse

    Participant

    And thanks here as well… I’ve been wishing the Subscribe toggle was over further to the right, and the necessary code for that is included on the page you’ve linked to above…

    ๐Ÿ™‚

    @crzyhrse

    Participant

    I thought that might be the case… Text Wrangler wrote it out that way, but what threw me a tad is that it doesn’t write out it out that way for the bbpress.css, just those two files… Maybe those files were just written and put into bbpress without the typical spaces, tabs and returns..?

    I do use a child, have since I began with my theme… Also the snippets plugin… Just that some changes I’ve made are to other than what can be affected through the child and the snippets plugin, and keep records of course for those…

    So maybe css in the theme child overrides all css, not just what I think of as the primary css files like bbpress.css..? Even these other files mentioned above..?

    Am curious now what the “margin-right” css is applying to…?

    I continue to enjoy learning about all this…

    ๐Ÿ™‚

    @crzyhrse

    Participant

    Got it..!

    I’t’s like going on an easter egg hunt and actually finding a real egg… ๐Ÿ™‚

    I measured the offset with a little pixel yardstick that plugs into Chrome, got 50px and searched the bbpress directory for that, and found this in the bbpress.css you pointed me to above:

    #bbpress-forums ul.bbp-threaded-replies {
    	margin-left: 50px;
    }

    changed that to:

    #bbpress-forums ul.bbp-threaded-replies {
    	margin-left: 25px;
    }

    Put it into the theme’s child with the other bbpress css changes I have there, and it worked… Perfectly… Hoping it might be helpful for others, or in your crib, Robin..?

    Curiously, in searching also found:

    in both of these-
    bbpress-rtl.css
    bbpress-rtl.min.css
    this
    #bbpress-forums ul.bbp-threaded-replies{margin-right:50px}

    and in this-
    bbpress.min.css
    this
    #bbpress-forums ul.bbp-threaded-replies{margin-left:50px}

    All of which looks like no css I’ve seen, in each file one very, very, very long continuous line of code … Am wondering if there is effect from the above for other sorts of screens or browsers, or something..? If I changed these to 25px I’d likely do it directly in the files in the bbpress directory, and keep a record for bbpress updates…

    Leaving it alone for now, but in case someone looks in here and has any thoughts..?

    John.

    @crzyhrse

    Participant

    Thanks Robin and hi again… ๐Ÿ™‚

    That doesn’t find anything that seems to pertain, plenty of padding in the normal sense for various aspects of replies… And pertaining to replies is what I’m looking for because that is where the nesting (offsetting? indenting?) or threading occurs, per the Reply threading setting in the forum settings section of the Admin settings section…

    I’ve searched through directories everywhere that made sense, php and css, for terms like nest, thread, indent, offset… found nothing… It would need to be some sort of code that recognized whether it was a first, second or third reply, etc, and also somehow say how much to indent… It would also seem to need to some way be affected by the setting for it, as mentioned above…

    I was kinda hoping to maybe attract John James Jacoby’s attention on this, noticing how much he seems to know in the various support areas I’ve looked over time..?

    This would seem to be something that would be helpful to others as well..? The default indent distance I believe is much more than is needed to show nesting, and the less it indents the less the following indents will be crowded to the right, don’t know but maybe even get cut off…?

    Thanks… It is nice when someone replies, doesn’t always happen… ๐Ÿ™‚

    John.

    @crzyhrse

    Participant

    It occurs to me to add that I’m nearly illiterate when it comes to code so including the code I’m looking for and what I would want to change would be helpful… Thanks…

    @crzyhrse

    Participant

    Mr. Jacoby,

    In case you come back this way, I’ve been all through everything I could think of via the cPanel looking for where the depth of the indent of the threaded replies is set…

    Iff you could point me to the right place it would be great… I’m going to start a new topic for this but wanted to put it in here as well…

    @crzyhrse

    Participant

    I’ve fiddled, unchecked it, deleted some replies, checked it again, reset the depth, all the while changing nothing significant, and now it seems to be working… Go figure…

    @crzyhrse

    Participant

    I am having the same issue, checked and set to 6 levels, but not happening…

    @crzyhrse

    Participant

    You are welcome, and thank you… I’ll watch out for ways to help out as I bounce around the WordPress world… I’ll also offer that I have what seems to be pretty good test site set up, in case it is helpful…

    @crzyhrse

    Participant

    Because I have no idea how Robin might get it otherwise, I’ll put this here as well, though the subject may call for a new thread? (although in a sense the subject here has also been about communication…)

    In case you want to put this in the crib..?

    Went looking for a way to change the submit button in bbpress, bigger, colors… Finally was able to assemble searched out bits and pieces from a couple places and with some experimenting accomplished my goal with this, put into the theme’s child style.css:

    #bbpress-forums .submit {
    background-color: #a0668d;
    color: #FFFFFF;
    float: center;
    vertical-align: middle;
    border-radius: 10px;
    height: 35px;
    width: 80px;
    font-size: 18px;
    }

    I laud your efforts Robin, there really are not that I’ve ever found any organized simple ways or directions to make simple changes to simple and common things for us simple and common folks, neither for bbpress or wordpress… And a lot of what is there is old… The two links you’ve offered above are the best I’ve seen so far, and are apparently still works in progress…

    No complaints here at all, just a recognition of the difficulties that are present in volunteer community efforts, especially one as widespread as all this is… WordPress is amazing, sort of like the whole world reaching to itself for shared community, open source community, so to speak…

    @crzyhrse

    Participant

    Well, After a lot of doodling around I’ve accomplished my goal, increased all the forum’s various text font sizes… Here is the gist of it…

    I took a copy of the bbpress.css and put it into TextWrangler. Searched for all instances of font-size, made that all be listed at the top in a split window as a guide, then went through and searched and replaced for each different font-size, adding 2px to the px sizes and 0.2em to the em sizes.

    Then on a copy of that, with all font-size instances again listed at the top to guide me, I went through and eliminated everything BETWEEN the sections that had a font size in them. I ran all that was left through a code checker- http://jigsaw.w3.org/css-validator/validator -which said it was good.

    I then tried what Jared suggested at the beginning of this thread and that I’ve seen suggested elsewhere (often by Jared), I created a folder in the theme’s child folder called bbpress, and copied that modified and reduced bbpress.css file into that folder…

    No go, that did not work… So, I then copied and pasted that very same code directly into my child theme’s style.css, and yea, it was working, changed it all… Went back and got rid of thee above mentioned folder, and it still worked..

    It may be that there are things that didn’t need to change to accomplish my goal, but it works, nothing is too big and all of it is now easy to see without squinting… ๐Ÿ™‚ I could imagine doing a similar process for other sorts of changes, if a change seems to be called for…

    Here is the modified code… I believe I could have also eliminate everything but the font sizes and the parts that do the targeting (properties?), but I think this makes it easier to place where things are at in the full file, and I might want to change some other font attributes at some point…

    Hoping this might be helpful… I’ve sured learned some things today…

    /**
     * bbPress specific CSS
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    #bbpress-forums {
    	background: transparent;
    	clear: both;
    	margin-bottom: 20px;
    	overflow: hidden;
    	font-size: 15px;
    }
    
    #bbpress-forums ul.bbp-lead-topic,
    #bbpress-forums ul.bbp-topics,
    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-replies,
    #bbpress-forums ul.bbp-search-results {
    	font-size: 15px;
    	overflow: hidden;
    	border: 1px solid #eee;
    	margin-bottom: 20px;
    	clear: both;
    }
    
    #bbpress-forums .bbp-forums-list li {
    	display: inline;
    	font-size: 13px;
    }
    
    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	background: none;
    	border: none;
    	font-size: 18px;
     	line-height: 1em;
     	margin: 8px 0;
    	padding: 0;
    	text-transform: none;
    }
    
    #bbpress-forums div.bbp-forum-author .bbp-author-role,
    #bbpress-forums div.bbp-topic-author .bbp-author-role,
    #bbpress-forums div.bbp-reply-author .bbp-author-role {
    	font-size: 13px;
    	font-style: italic;
    }
    
    span.bbp-author-ip {
    	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
    	font-size: 13px;
    	font-weight: bold;
    	color: #aaa;
    }
    
    div.bbp-breadcrumb,
    div.bbp-topic-tags {
    	font-size: 15px;
    }
    
    span.bbp-admin-links a {
    	color: #bbb;
    	font-weight: normal;
    	font-size: 12px;
    	text-transform: uppercase;
    	text-decoration: none;
    }
    
    .bbp-row-actions #favorite-toggle a {
    	text-decoration: none;
    	padding: 0 3px 1px;
    	color: #7c7;
    	border: 1px solid #aca;
    	background-color: #dfd;
    	font-weight: bold;
    	font-size: 15px;
    }
    
    .bbp-row-actions #subscription-toggle a {
    	text-decoration: none;
    	padding: 0 3px 1px;
    	color: #7c7;
    	border: 1px solid #aca;
    	background-color: #dfd;
    	font-weight: bold;
    	font-size: 15px;
    }
    	
    #bbpress-forums .bbp-forum-info .bbp-forum-content,
    #bbpress-forums p.bbp-topic-meta {
    	font-size: 13px;
    	margin: 5px 0 5px;
    	padding: 0;
    	word-wrap: break-word;
    }
    
    	.bbp-topic-pagination a {
    		font-size: 12px;
    		line-height: 11px;
    		padding: 1px 3px;
    		border: 1px solid #ddd;
    		text-decoration: none;
    }
    
    body.page .bbp-reply-form code,
    body.page .bbp-topic-form code,
    body.single-topic .bbp-reply-form code,
    body.single-forum .bbp-topic-form code,
    body.topic-edit .bbp-topic-form code,
    body.reply-edit .bbp-reply-form code {
    	font-size: 12px;
    	background-color: #f0fff8;
    	border: 1px solid #CEEFE1;
    	display: block;
    	padding: 8px;
    	margin-top: 5px;
    	width: 369px;
    }
    
    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
    	width: 100%;
    	margin: 0;
    	font-size: 15px;
    }
    
    #bbpress-forums div.bbp-the-content-wrapper input {
    	font-size: 15px;
    	padding: 5px;
    	margin: 0 2px 0 0;
    	line-height: 1em;
    }
    
    	#bbpress-forums #bbp-your-profile fieldset span.description {
    		margin: 5px 0 0 20%;
    		font-size: 15px;
    		font-style: italic;
    		float: left;
    		clear: left;
    		width: 60%;
    		padding: 5px 8px;
    		border: #cee1ef 1px solid;
    		background-color: #f0f8ff;
    }
    
    	div.bbp-template-notice p {
    		margin: 0.5em 0 6px 0 !important;
    		padding: 2px;
    		font-size: 15px;
    		line-height: 140%;
    }
    
    .bbp-topics-front ul.super-sticky,
    .bbp-topics ul.super-sticky,
    .bbp-topics ul.sticky,
    .bbp-forum-content ul.sticky {
    	background-color: #ffffe0 !important;
    	font-size: 1.2em;
    }
    
    #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log,
    #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log,
    #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log {
    	border-top: 1px dotted #ddd;
    	width: 100%;
    	margin: 0;
    	padding: 8px 0 0 0;
    	font-size: 13px;
    	color: #aaa;
    }
    
    .bbp-logged-in h4 {
    	font-weight: bold;
    	font-size: 1.6em;
    	clear: none;
    	margin-bottom: 10px;
    }
    
    #bbpress-forums h1 {
    	clear: none;
    	font-size: 2.1em;
    	line-height: 1em;
    	padding-bottom: 10px;
    }
    
    #bbpress-forums #bbp-user-wrapper h2.entry-title {
    	font-size: 1.6em;
    	margin: 0;
    	padding-bottom: 10px;
    	padding-top: 0;
    	clear: none;
    }
    
    #bbpress-forums div.row-actions {
    	font-size: 13px;
    	visibility: hidden;
    }
    
    	div.bbp-search-form input,
    	div.bbp-search-form button {
    		font-size: 13px;
    		padding: 2px;
    }
    
    	#bbpress-forums .bbp-forums-list li {
    		display: block;
    		font-size: 13px;
    }
    
    	#bbpress-forums div.bbp-reply-author .bbp-author-role {
    		font-size: 15px;
    		font-style: normal;
    }
    	#bbpress-forums .bbp-body div.bbp-reply-content {
    		clear: both;
    		margin: 10px;
    		padding: 0;
    }
    	#bbpress-forums li.bbp-header,
    	#bbpress-forums li.bbp-footer {
    		font-size: 12px;
    }

    @crzyhrse

    Participant

    Latest discovery- when I search the complete directory/folder of bbpres, for- bbp-topic-content or bbp-reply-content, absolutely nothing is found… Which I believe suggests that there is nothing to cascade into the above code…?

    @crzyhrse

    Participant

    Thank you for your message… You’ll see that I haven’t yet accomplished the change I’m looking for, and it’d be nice to accomplish that…

    I’m starting to look at helping folks, and actually have offered a bit once or twice in the general wp forums… It is helpful to see how you are going about this, being relatively new, with me even “newer,” so to speak…

    Off to cast about some more for possibilities to get that pesky forum font to make itself bigger… And hoping you might have some additional suggestions…

    ๐Ÿ™‚

Viewing 25 replies - 1 through 25 (of 30 total)