Search Results for 'code'
-
AuthorSearch Results
-
June 30, 2015 at 10:00 pm #163603
Robkk
ModeratorI dont think it is an issue with Login , maybe cache??
Try some troubleshooting first.
June 30, 2015 at 8:35 pm #163600In reply to: Width change
Robkk
ModeratorThe “css” directory contains style sheets that work with the default markup. Copy any you want to modify into a directory named “css” in your theme’s root. eg. /wp-content/themes/%your-theme%/css/
June 30, 2015 at 8:28 pm #163599In reply to: not possible to login anymore
Robkk
ModeratorJune 30, 2015 at 1:12 pm #163591In reply to: Donwload Manager PlugIn Problem
peppecol
ParticipantI have the same problem I can not put a file to download.
The shordcode I should put it: [wpdm_package id = ‘12529’]
How can I do?
I also installed
https://wordpress.org/plugins/bbpress-do-short-codes/ but nothing has changed I could explain what I do?
Thanks!June 28, 2015 at 11:19 am #163553In reply to: User ranking system?
Stagger Lee
ParticipantForgot this, very important. Cannot test it now, dont have so huge forum. And dont want to touch database just to test.
For Users with over 50.000 posts and up to infinite:
elseif($post_count >= 50001) { echo '<div class="all-stars"><i class="svg-icon nine-star"></i></div>'; }June 28, 2015 at 10:33 am #163551In reply to: User ranking system?
Stagger Lee
ParticipantI did not ooked for User ranking/Voting system. I needed simple star systems for posts count. If User has so many posts/comments give him/her one additional star (under avatar).
So here is my code. Maybe it could be reduced in lines, made better. I have brain blocade right now.
// bbPress User post count function display_counts () { $user_id=bbp_get_reply_author_id( $reply_id ) ; $topics = bbp_get_user_topic_count_raw( $user_id); $replies = bbp_get_user_reply_count_raw( $user_id); $post_count = (int) $topics + $replies; echo "<div class=\"user-comments-count\">" ; echo "<strong>" . "Comments: " . "</strong>" ; echo $post_count ; echo "</div>" ; // echo "</br>" ; //if ($post_count > 1) { // echo '<i class="svg-icon all-stars"></i>'; // } if ($post_count >= 1 && $post_count <= 20) { echo '<div class="all-stars"><i class="svg-icon one-star"></i></div>'; } elseif($post_count >= 21 && $post_count <= 50) { echo '<div class="all-stars"><i class="svg-icon two-star"></i></div>'; } elseif($post_count >= 51 && $post_count <= 100) { echo '<div class="all-stars"><i class="svg-icon three-star"></i></div>'; } elseif($post_count >= 101 && $post_count <= 500) { echo '<div class="all-stars"><i class="svg-icon four-star"></i></div>'; } elseif($post_count >= 501 && $post_count <= 1000) { echo '<div class="all-stars"><i class="svg-icon five-star"></i></div>'; } elseif($post_count >= 1001 && $post_count <= 2000) { echo '<div class="all-stars"><i class="svg-icon six-star"></i></div>'; } elseif($post_count >= 2001 && $post_count <= 5000) { echo '<div class="all-stars"><i class="svg-icon seven-star"></i></div>'; } elseif($post_count >= 5001 && $post_count <= 10000) { echo '<div class="all-stars"><i class="svg-icon eight-star"></i></div>'; } elseif($post_count >= 10001 && $post_count <= 50000) { echo '<div class="all-stars"><i class="svg-icon nine-star"></i></div>'; } echo "</br>" ; } add_action ('bbp_theme_after_reply_author_details', 'display_counts');CSS, needed for this snippet:
.svg-icon, .all-stars { font-family: 'Your SVG Web Font'; font-style: normal; font-weight: normal; text-decoration: inherit; text-align: center; text-transform: none; width: 1em; } .one-star:before, .two-star:before, .three-star:before, .four-star:before, .five-star:before, .six-star:before, .seven-star:before, .eight-star:before, .nine-star:before, .all-stars:before { left: 12px; position: absolute; } .one-star:before { content: '\28b'; } .two-star:before { content: '\28b''\28b'; } .three-star:before { content: '\28b''\28b''\28b'; } .four-star:before { content: '\28b''\28b''\28b''\28b'; } .five-star:before { content: '\28b''\28b''\28b''\28b''\28b'; } .six-star:before { content: '\28b''\28b''\28b''\28b''\28b''\28b'; } .seven-star:before { content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b'; } .eight-star:before { content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b'; } .nine-star:before { content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b'; } .all-stars:before { content: '\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b''\28b'; color:#ddd; }June 28, 2015 at 10:14 am #163549In reply to: ERROR: Your reply cannot be created at this time.
Stagger Lee
ParticipantI have this problem very often, plus some others. Very, very annoying. Specially when you prepare code to help other Users here.
June 28, 2015 at 5:32 am #163544In reply to: User ranking system?
Pushkar Kathayat
ParticipantI also want to use user rating system in one of my blog. Can Janseo please would you like to provide the final code for the same?
June 27, 2015 at 6:58 pm #163536In reply to: BBPress + BuddyPress – Error
webappdesigner
Participantanswered my own question….
For anyone that has the same problem, bbpress -> includes -> extend -> buddypress -> groups.php
on line 151 change
public function display() {
to
public function display($group_id = NULL) {June 27, 2015 at 2:10 pm #163532In reply to: User ranking system?
Robin W
Moderatorsomething like
function display_counts () { $user_id=bbp_get_reply_author_id( $reply_id ) ; $topics = bbp_get_user_topic_count_raw( $user_id); $replies = bbp_get_user_reply_count_raw( $user_id); $post_count = (int) $topics + $replies; if ($post_count >100) { echo '<br>Hero' ; echo "</br>" ; } else { echo "<br>Total posts : " ; echo $post_count ; echo "</br>" ; } } add_action ('bbp_theme_after_reply_author_details', 'display_counts') ;June 27, 2015 at 9:04 am #163528In reply to: User ranking system?
Stagger Lee
Participant@Robin, can you give some example for this, inside this code above:
//add some if statements here eg if $post_count>100 echo ‘hero’ or a link to a picture
No matter what I tried it doesnt work.
June 27, 2015 at 12:53 am #163522In reply to: Not able to add a Topic in front end…
lilmisskatie
ParticipantHi Rob!
Sorry I wasn’t able to get back to you sooner. I had a bunch of things going one later in the day and only now able to sit back down to my computer to take a look at this. The code works like a Charm! Thank you so much for doing this. I’ll be happy to send you something your way and plan to tomorrow for the time you took to solve this.
I will also be passing this along to the template support team for them to be aware of this.
Thanks again so much! Really appreciate this!
Kind Regards,
KatieJune 26, 2015 at 6:37 pm #163517In reply to: Not able to add a Topic in front end…
Robkk
Moderator#bbpress-forums input#bbp_topic_title { float: none; padding: 0; } #bbpress-forums .bbp-form p { float: none; margin: 0; }sorry made a little mistake haha writing it here.
June 26, 2015 at 6:13 pm #163516In reply to: Not able to add a Topic in front end…
Robkk
ModeratorIts the themes CSS causing an issue with the input box for the topic title.
This custom CSS should do it.
#bbpress-forums input#bbp_topic_title { float: none; padding: none; } #bbpress-forums .bbp-form p { float: none; margin: 0; }Tell your themes support this too.
If you feel like donating you can do so here
June 26, 2015 at 1:33 pm #163495In reply to: bbpress comments toolbar for blog comments?
Robkk
ModeratorIt is just the quicktags api from WordPress. You see the same button when entering the html mode when creating a blog post.
See if this post helps, it says tinymce but there is also quicktags code in there.
Add TinyMCE and Quicktags visual editors to WordPress comments form
you can also use the basic comment quicktags plugin
June 26, 2015 at 12:28 pm #163480In reply to: ‘Blocked’ on blank page on login
Robkk
ModeratorThis could be from some security/spam plugin.
Go through these troubleshooting steps
June 26, 2015 at 10:44 am #163475In reply to: Change the default Forums page
Robkk
ModeratorYou also modify the main template that bbPress uses but this would also require FTP data.
You should contact your host to find the FTP data you have.
June 26, 2015 at 10:34 am #163474In reply to: Plugin v. built-in
Robkk
ModeratorRead this , This is a frequently asked question so I added it on to here.
June 26, 2015 at 10:32 am #163473In reply to: Visible indicator of new posts
Robkk
Moderatorsearch for unread/read posts plugins for bbPress.
They are listed in here too.
June 26, 2015 at 10:24 am #163470In reply to: Can’t access Forum Page
Robkk
Moderatorthis might be coming from some other plugin you are using.
Try the plugin troubleshooting steps here
you can also try theme too if you have some really advanced theme or something.
June 26, 2015 at 10:15 am #163468In reply to: Style bbpress content pages, remove padding
Robkk
ModeratorIs this what you are looking for??
#bbpress-forums .entry { margin-bottom: 40px; padding: 50px 0px; }June 26, 2015 at 10:08 am #163466Robkk
Moderatori have to create a new widget for own customization work and where i have to place that file
If you know what you are doing , you can place it in a child themes functions.php , or just place it in a new file like says widgets.php to better organize your content then include the file using something like this in your functions.php
require get_template_directory() . '/inc/widgets.php';You can also place the code in a custom plugin too.
You shouldnt place any customizations in the bbPress plugins folder, because you will lose the changes next update.
And You dont need to place the customized widget funcitons in the bbpress folder in your child theme either.
June 25, 2015 at 7:38 pm #163455In reply to: Not able to add a Topic in front end…
lilmisskatie
ParticipantI’m discovering it is a theme issue…I have squarecode and have contacted them to see if it is a known issue. However what do can I do if they can not resolve this issue? It seems like it would be a simple fix being it’s only the topic text field that does not work. I’ve also tried to do the tool repair forums and also changed the permalinks and did nothing. I really like this forum but feel I may have to go else where…
June 25, 2015 at 4:18 pm #163450In reply to: Menu link to Profile
crzyhrse
ParticipantThanks 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… 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…
June 25, 2015 at 11:13 am #163438In reply to: Menu link to Profile
crzyhrse
ParticipantHi 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…
-
AuthorSearch Results