Search Results for 'code'
-
AuthorSearch Results
-
September 4, 2014 at 3:36 am #151818
In reply to: current in forum root
Robkk
Moderatorok i havent really messed with breadcrumbs that much i usually remove them but there suppose to show home > forums > forums i think from what i just tested on my localhost.
since it shows the root anyway if you are already on the forum archive.
but i did end up removing one of the forums link this weird way
ok i dont know for sure what i did because i was basically just fiddling around so here are all of what i did
i had this in my functions php in my own thematic child theme.
function mycustom_breadcrumb_options() { // Home - default = true $args['include_home'] = false; // Forum root - default = true $args['include_root'] = true; // Current - default = true $args['include_current'] = true; return $args; } add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'); add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' ); Function change_breadcrumb_text ($trail) { $trail = str_replace ('No Labels Community Forum','N L C F',$trail) ; return $trail ; }then i removed the add_filter line for the mycustom_breadcrumb function
so i have this now.function mycustom_breadcrumb_options() { // Home - default = true $args['include_home'] = false; // Forum root - default = true $args['include_root'] = true; // Current - default = true $args['include_current'] = true; return $args; } add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' ); Function change_breadcrumb_text ($trail) { $trail = str_replace ('No Labels Community Forum','N L C F',$trail) ; return $trail ; }this removed one of the NLCF links in the breadcrumbs.
i even removed the my custom breadcrumbs function and its still only shows one NLCF link…
its weird :/
September 3, 2014 at 11:01 pm #151811Topic: How to create Tabs in BBPress Comments
in forum Requests & FeedbackLearner
ParticipantHi !
Using the Plugin Shortcodes Ultimate I have created tabs in my WordPress Install.
Anyway I can do the same in bbPress ?
As an example please see :
the starting post has tabs and was made in WordPress.
The replies are coming from the bbPress side and I’d like to make similar tabs in the same…
Shortcodes Ultimate plugin doesn’t seem to be working in bbPress.
All advise / Workabouts much appreciated. thanks !
September 3, 2014 at 2:03 pm #151803In reply to: Topic count in forum under categories
Robkk
ModeratorI did contact them but they told me that it would be custom development and it would be outside of the scope of their support :/
did you tell them that your topic and posts count should be beside the subforums.
if you just told him categorized layout they might be just thinking of the way the layout is structured , like this layout in the link where the subforums are alligned up to the categories.
http://tamrielfoundry.com/forums/
in all seriousness you should get some support from them.
The templates you should mess with are
content-archive-forum.phpcontent-single-forum.phploop-forums.phploop-single-forum.phpother than that its really hard for me to help from here since its a premium theme.
Maybe could I request for this thread to be moves to the Themes board?
i dont really know what your saying here, but i guess like i said try to contact them, they should help you out more since its most likely the themes problem.
September 3, 2014 at 11:18 am #151795In reply to: current in forum root
Jerry
ParticipantHi,
I have additional information.
Even if I include my home page in breadcrumbs (
$args['include_home'] = true;), on the Forum Page the page title still links to itself and in breadcrumbs there is still an additional link prior to current that links to the Forum Page – itself. Everything after that in breadcrumbs is fine.Thank you for your time.
Jerry
September 3, 2014 at 8:20 am #151785In reply to: Getting rid of "Replacement Character" symbols
Stephen Edgar
KeymasterYour theme is doing this:
Look at your CSS file, line #95
ul li:before { position: absolute; font-family: Arial, sans-serif; content: "\e98a1e"; color: #f6cf08; font-size: 14px; line-height: 20px; left: 0; top: 0; }It’s inserting
content: "\e98a1e";before every unordered list element.You see the same issue on your about page http://bmslifttruck.com/about/
I’d suggest contacting the theme authors, about this, it has nothing to do with any encoding issues, and p.s. any encoding issues in a WordPress world you should use UTF8 😉
September 3, 2014 at 7:55 am #151782In reply to: How to reset loop? 2 loops on 1 page
Robin W
Moderatorbbp_has_topics has a ‘reset’ in it, it executes
new WP_Query( $r )what is the loop in your sidebar?
September 3, 2014 at 7:44 am #151777In reply to: Your "must-install" plugins?
Robkk
Moderator6. Twenty-three percent of participants have not added any bbPress add-on plugins nor custom code at the time of survey. Additional research showed the majority of those who have not installed such are those who use bbPress for their own sites.
For the rest of the participants, there are a few who mentioned that they have too many plugins in their installations to list in the survey form. For those who shared what plugins they have activated in their installations, following shows the top ten plugins which are either bbPress-specific or those with expressed support for bbPress.
visualization of plugins useda) GD bbPress Attachments
b) GD bbPress Tools
c) bbPress Enable TinyMCE Visual Tab
d) BuddyPress
e) Buddy-bbPress Support Topic
f) Custom private code
g) bbPress – Private Replies
h) bbPress Stay Checked
i) bbPress Topics for Posts
j) bbPress – Mark As ReadSeptember 3, 2014 at 7:39 am #151775Robin W
Moderatorthis box has 3 classes allocated
#link-modal-title
#link-selector
#submitboxso something like
#link-modal-title, #link-selector, #submitbox { Background #21201f !important ; }added to your style.css should fix it.
Come back if that is not clear.
September 2, 2014 at 8:00 am #151747In reply to: login button size
Robin W
Moderatorthe line for the button is
<button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>so class is “button submit user-submit”
September 2, 2014 at 7:28 am #151745Topic: How to reset loop? 2 loops on 1 page
in forum Themesm1000
ParticipantHi!
There is one loop on main content with topics of one tag (archive) and second loop on the sidebar:
if ( bbp_has_topics( array( 'author' => 0, 'order' => 'DESC', 'paged' => 1, 'posts_per_page' => $number_of_topics ) ) ) : bbp_get_template_part( 'loop', 'mytopics' );This second loop should display all global topics but it shows the same topics like the 1st loop. How to fix it?
September 1, 2014 at 2:59 pm #151730Topic: login button size
in forum Troubleshootingbgigibb
ParticipantCan anyone help me in changing the size of the login button on the bbpress login widget. I must of tried over 20-30 different css codes, clearing cache and logging in and out and no matter what I do I cannot change the size of the login button.
I applied this code to change the size of the submit button
#bbpress-forums .submit {
background-color: ##a0668d;
color: #000000;
float: center;
vertical-align: middle;
border-radius: 10px;
height: 35px;
width: 80px;
font-size: 18px;
}but I cannot locate the login button that is coming through the widget, even after inspecting with firebug and trying for the past 2 days.
September 1, 2014 at 1:52 pm #151725In reply to: New replies first
Robin W
ModeratorNo sorry, the shortcode uses it’s own method, and without a re-write there’s no quick way to fix this.
September 1, 2014 at 12:31 pm #151721In reply to: Theme Problems
obatron
ParticipantIn playing around I noticed some odd behavior…
I decided to just try full width forums, however, the forum index always looked off to the right as if it had a blank sidebar (I copied page.php to bbpress.php in the child template folder).
I then created a new page and put the forum index short code in it. On this one, full width worked fine for everything. The installation instructions indicated to create a page with the same name as the forum root slug (forums) and you wouldn’t have to use the short code. I changed the forum root slug from forums to forums2 and put the short code in the forums page and full width worked fine.
Thus, what I found out, I can get full width to work okay if I don’t name the forums page the same as the root slug.
Still can’t figure out the sidebar thing though…
Bob
September 1, 2014 at 11:55 am #151719In reply to: New replies first
SandyRig
ParticipantThis does not work in the shortcodes. For example when I show a topic on a page using the shortcode [bbp-single-topic id=134]. I see the posts in descending order in the forum, but on the page its in Ascending order.
Not sure whats going on, please help any one.
September 1, 2014 at 11:09 am #151715Topic: Login widget login button size
in forum Troubleshootingbgigibb
ParticipantLogin widget login button size on sidebar
Wordpress: 3.9.2
bbPress: Version 2.5.4Hello bbpress forums. I have been trying to accomplish a custom css change on my website. I installed bbpress, customized it a bit and added some forums. I added the widget on the right sidebar of my website. I then went to test it out a bit and noticed the login button being extremely tiny and hard to see.
When posting a topic of reply I also noticed the submit button was small and hard to see for some people. So I just wanted to make the login button on the sidebar widget a bit larger.
I used firebug and inspected the sidebar probably all day yesterday trying over 20 different custom css changes and had no luck. I tried things like:
============
#sidebar .button {
background-color: ##a0668d;
color: #000000;
float: center;
vertical-align: middle;
border-radius: 10px;
height: 35px;
width: 80px;
font-size: 18px;
}
================
body #sidebar .button {
padding-left: 45px;
!important;}
================
.user-submit {
padding-left: 45px;
!important;}
=================My firebug skills are not that great but I am working on it. I tried so many other custom css changes to make this login button larger. I can go into firebug and actually change this and the button does change, I just cannot find the custom css to make this change permanent.
body #sidebar .button {
padding-left: 100px;
}I did make the submit button for posting and replies larger, after finding this useful custom css code in the bbpress styling crib of the bbpress support site.
============================
#bbpress-forums .submit {
background-color: #a0668d;
color: #000000;
float: center;
vertical-align: middle;
border-radius: 10px;
height: 35px;
width: 80px;
font-size: 18px;
!important;}
========================So that is good I got the submit button larger and more noticeable. If anyone is out there that would be able to assist me in just making this login button a bit larger it would be greatly appreciated. Thank you for reading this
September 1, 2014 at 9:54 am #151711In reply to: Topic ID instead of slugs?
Nicolas Korobochkin
Participant@netweb wow you remember everything!
@pooledge я думаю это потому что у тебя в адресе:/pup4b/форумыИ мой совет, как человека, который пробовал бесплатный хостинг в Hostinger – купи нормальный хостинг за 150 рублей в месяц хотя бы и не мучайся. У них сайты вечно падают, я брал бесплатное демо ради интереса – ужаснулся.
September 1, 2014 at 8:51 am #151708In reply to: Slow to Post
Nitac
ParticipantCheers for the response and thanks for your time and effort looking into this, much appreciated.
For the test below i set up a hidden forum on my live server.
What happens when you deactivate either/or “Go to first unread” & “Unread posts” plugins you’re using and submit a reply to an affected topic?
- I just went through all the bbpress related plugins and tried different combos and didn’t notice any significant performance differences.
Another test, this time with the ‘Quotes’ plugin disabled submit a reply to an affected topic.
- Using GDPress and had the same results as above
Another, what code and/or plugin are you using to show the user registration in each reply e.g. Join Date: Mar 2009
And another, what code and/or plugin are you using for the counts shown next to the username in each reply e.g Posts: 4529- Using the function below. Again I disabled and noticed no significant improvement.
function func() { $roleData = bbp_get_user_role(bbp_get_reply_author_id( $reply_id )); if($roleData=='bbp_moderator'){ $data='<div class="bbp-author-role">Moderator</div>'; } $registered = date("M Y", strtotime(get_userdata(bbp_get_reply_author_id())->user_registered)); $post_count = bbp_get_user_reply_count_raw( bbp_get_reply_author_id( $reply_id )) ; $data.='<div class="bbp-reply-ip"><span class="bbp-author-ip">'; $data.='Join Date: '.$registered; $data.='<br />'; $data.='Posts: '.$post_count; $data.='</span></div>'; }Here’s the results for the first query
And the second query
Something I did notice when testing, was that when I was posting in the new topc I created, posts seemed to be submitting relatively quicker, 2 – 5 secs per post. Though when posting in a thread that had a lot more replies the post submission took a lot longer.
I tried the query plugin you suggested and getting relatively good results everything is < 2 secs, but it only shows the performance of the query results, and doesn’t take into account the time it takes to submit, which is > 10 secs. (unless I’m overlooking something??)
Thanks
September 1, 2014 at 7:56 am #151705In reply to: remove anonymous website field
Robin W
ModeratorTry (haven’t tested)
function remove_website ($r) { $r['bbp_anonymous_website'] = false; return $r ; } add_filter( ‘bbp_pre_anonymous_post_author_website’, ‘remove_website’ );or
function remove_website ($r) { $r['bbp_anonymous_website'] = false; return $r['bbp_anonymous_website'] ; } add_filter( ‘bbp_pre_anonymous_post_author_website’, ‘remove_website’ );September 1, 2014 at 5:19 am #151703In reply to: Import of images from phpBB to bbpress
Stephen Edgar
KeymasterYou are correct, image attachments are not imported, most of the ins and outs are in the docs
September 1, 2014 at 4:59 am #151702In reply to: Forums not showing on new custom theme
Stephen Edgar
KeymasterMaybe the site that works has a custom
bbpress.phpwrapper template or it is using a page with bbPress shortcodes, either or it’ll just take a bit more comparing the differences between the two.September 1, 2014 at 3:26 am #151692In reply to: Slow to Post
Stephen Edgar
KeymasterFirstly, a quick breakdown via pingdom, quite a delay in getting your JavaScript files, I’d get these into your Amazon CDN.
As you stated above “ive eliminated all the points you’ve made above, and the site only chokes when users are submitting posts in the forum, so I’m confident i’ve isolated the issue.”
- What happens when you deactivate either/or “Go to first unread” & “Unread posts” plugins you’re using and submit a reply to an affected topic?
- Another test, this time with the ‘Quotes’ plugin disabled submit a reply to an affected topic.
- Another, what code and/or plugin are you using to show the user registration in each reply e.g.
Join Date: Mar 2009 - And another, what code and/or plugin are you using for the counts shown next to the username in each reply e.g
Posts: 4529
Can you run the following two queries in phpMyAdmin, it will give me an idea of the state of the data in your database, it is the topic and three replies (two imported replies and one new bbPress reply) from the ~10k topic you have:
SELECT ID, post_author, post_parent, menu_order, post_type FROM wp_posts WHERE ID IN ( 490979, 831628, 837704, 1031603 )and
SELECT * FROM wp_postmeta WHERE post_id IN ( 490979, 831628, 837704, 1031603 )Once you have the results of each (they don’t show any ‘sensitive’ data) click the “Print View” and copy and paste them to a text file, a Gist or to pastebin for me to checkout please.
Over the weekend I had to reinstall everything here locally (and my online servers for a different reason) as something was up with my database, I’ve created a topic here locally with ~10,000 replies today (similar in size to your second most popular topic) and it takes ~1.6 seconds to post a reply to this topic. To time the queries, install the following plugin and of course only have it activated whilst your debugging this stuff https://wordpress.org/plugins/query-monitor/
September 1, 2014 at 12:56 am #151691In reply to: We want edit our replys
Stephen Edgar
KeymasterI just tested this and it works fine, as it states: “Disallow editing after ‘x’ minutes”, that does not infer setting to
0will disable topic/reply editing 😉Thus, if you set it to
1editing will be disabled after 1 minute, the default is5minutes.If this is not working for you check your time and date settings, someone else had this issue a while back and as they had the incorrect time zone configured it was adding the time zone difference to the allowed editable time 🙂
September 1, 2014 at 12:24 am #151689Topic: GD BBpress Tools
in forum Pluginssickwit
ParticipantIv installed this and when i go to make a post the addons are not. What is missing is things like youtube and such
Adds different expansions and tools to the bbPress 2.0 plugin powered forums: BBCode support, signatures, custom views, quote…
August 31, 2014 at 11:18 pm #151688In reply to: Theme Problems
Robkk
Moderatordid you create a bbpress.php and put it into your themes folder??
August 31, 2014 at 10:53 pm #151687In reply to: Theme Problems
Robkk
Moderatortry this
.bbpress .singular .entry-content { margin: 0 auto; width: 68.9%; float: right!important; } -
AuthorSearch Results