Search Results for 'code'
-
AuthorSearch Results
-
August 18, 2014 at 12:30 pm #151098
In reply to: breadcrumbs space and search button
Robkk
ModeratorI have created a folder βbbpressβ within my theme and copied the bbpress.css, could it be the original .css is overriding it?
the one in your theme should overwrite the original
did you get the button now , heres now it looks when i checked out your site.

and that code i gave you should remove the space.
heres what it looked like while editing that css
August 18, 2014 at 12:02 pm #151095In reply to: Editing icons disappearing
Robkk
Moderator#bbpress-forums div.bbp-the-content-wrapper input { font-size: 12px; padding: 5px; margin: 0 2px 0 0; line-height: 1em; background: #222; color: #fff; }its in black in white because thats how i had it in my local site right now, does that work??
August 18, 2014 at 8:31 am #151088In reply to: Now it's there, now it's gone…
David Anderson / Team Updraft
ParticipantAfter getting deep into the guts of Pagelines, I think this is now fixed… first of all, thanks very much Stephen for being willing to assist. It’s been very good of you.
In case the autopsy helps anyone else, here we go…
There was a transient that Pagelines uses – pagelines_sections_cache – that keeps a record of what different section types are registered with the Pagelines theme.
I haven’t worked out why yet (and won’t try), but though this transient is meant to last 24 hours, it would get re-generated more frequently than that. That plays into what follows.
Pagelines (in my view) runs some of its code much too early on the front-end, unconditionally – and sometimes it was re-generating the transient on requests that another of our plugins was picking up for API calls (i.e. calls that don’t generate a front-end page). On those requests, for performance, the pagelines-bbpress plugin was not active. As a result, the BBPress section type did not get registered with Pagelines. The transient got saved without knowledge of that section type.
Thus, later, when the cached transient was getting used, no BBPress section type was known – so Pagelines would output nothing.
And here’s the really annoying bit. What was the magical BBPress/Pagelines integration code that they used to sell in their store but now give away in the Pagelines-BBPress plugin? What is the wonderful code to get the two to work together? When you scrape away all the boilerplate to find the core code that does something, the whole of it is:
function section_template() { while (have_posts()) : the_post(); the_content(); endwhile; }Excuse me whilst I go and bang my head against a wall for a bit.
David
August 18, 2014 at 8:05 am #151087In reply to: filter topic on date base
Robin W
Moderatoryes it should be as bbpress just uses wp_query once args has been parsed.
see
https://codex.wordpress.org/Class_Reference/WP_Query dates are quite a way down
untested but something like
$week = date( 'W' ); $year = date( 'Y' ); bbp_has_topics( array( 'year' => $year, '&w' => $week ) );would do last 5 days
August 18, 2014 at 7:29 am #151086In reply to: breadcrumbs space and search button
melanie bund
ParticipantHi robkk
Am afraid neither of above solutions work.
I have created a folder “bbpress” within my theme and copied the bbpress.css, could it be the original .css is overriding it?
The breadcrumbs space still remains.
The button code does not change the button
My theme buttons css below – could i somehow alter it to also include the bbpress button?#searchform input[type=”submit”] {
padding: 9px 15px;
background: #F93;
border: 0;
font-size: 14px;
color: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
width: auto;
}
#searchform input[type=”submit”]:hover {
color: #5e5e5e;
background-color: #ebebeb;
background-repeat: repeat-x;
background-image: -moz-linear-gradient(top, #f9f9f9, #ebebeb);
background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb);
background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb);
background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb);
background-image: linear-gradient(top, #f9f9f9, #ebebeb);
}
thank you in advance
site page
http://bunddesign.com/pdm/lets-talk/
MelanieAugust 18, 2014 at 6:55 am #151081In reply to: Now it's there, now it's gone…
Stephen Edgar
KeymasterAhhh…
Now Iβm looking at the themeβ¦.<- That part of your previous post I inferred you were ‘looking’ at your theme and had found ‘something’ that a change you made had reverted the bad behaviour.I’m still seeing the page so that makes two times more than the past few days, it ‘could’ be just one of those things that by deactivating one of those plugins and then reactivating it again has fixed whatever, rare, but has been known to happen in the WordPress plugin world!
August 18, 2014 at 6:52 am #151080Topic: filter topic on date base
in forum Themesdivyesh25
ParticipantHi everyone,
Any one know how to filter topics on date base. means i want to list all last 5 days topics.
i see code this code in
function bbp_has_topics( $args = '' )$default = array( 'post_type' => bbp_get_topic_post_type(), // Narrow query down to bbPress topics 'post_parent' => $default_post_parent, // Forum ID 'meta_key' => '_bbp_last_active_time', // Make sure topic has some last activity time 'orderby' => 'meta_value', // 'meta_value', 'author', 'date', 'title', 'modified', 'parent', rand', 'order' => 'DESC', // 'ASC', 'DESC' 'posts_per_page' => bbp_get_topics_per_page(), // Topics per page 'paged' => bbp_get_paged(), // Page Number 's' => $default_topic_search, // Topic Search 'show_stickies' => $default_show_stickies, // Ignore sticky topics? 'max_num_pages' => false, // Maximum number of pages to show );is it possible to pass date filter in function bbp_has_topics argument.
August 18, 2014 at 6:29 am #151076In reply to: Forum topic title visible but content not visible
Stephen Edgar
KeymasterWhen I click on the link in your menu “Discussion Forums” here http://www.aceachievers.in/#try
I see
This content is for Pro and Revision Series with forum members only.Though I see your forums here http://www.aceachievers.in/forums/
But I cannot read your topic here: http://www.aceachievers.in/forums/topic/test-1/
I can see the topic and replies here: http://www.aceachievers.in/forums/topic/biochem-doubts/
Most likely this is an issue with a plugin that is restricting the viewing of topics and replies, a look at your source shows you are using “Paid Memberships Pro” and this is most likely the cause of your issues.
Can you update or configure it’s settings for any permission changes that differ between the links I added above?
It could also be generally more of an issue with bbPress and “Paid Memberships Pro” as I have seen a few recent issue pop up with this plugin, I’d check their support forum for any related topics and make sure you are using the latest version of their plugin.
August 18, 2014 at 3:35 am #151069In reply to: Multiple Copies of Single Forum on Page?
Stephen Edgar
KeymasterAs a suggestion I’d also change your permalink settings to:
Post name http://example.com/sample-post/August 18, 2014 at 3:29 am #151068In reply to: registered users?
Stephen Edgar
KeymasterbbPress is a WordPress plugin thus bbPress uses WordPress for it’s users.
You can use bbPress shortcodes or widgets depending on your site structure so uses do not need to go near or even see the backend of WordPress:
https://codex.bbpress.org/shortcodes/ https://codex.bbpress.org/widgets/
August 17, 2014 at 8:14 pm #151052In reply to: phpbb3-bbpress stalls halfway
Stephen Edgar
KeymasterMore than likely it will be some character, troublesome and annoying but nothing much we can do at this stage.
That old
BBConverterplugin is what is now included with bbPress, we merged that code into bbPress core, there are vast improvements in the converter and the phpBB import script in the current release of bbPress 2.5.4 (and more for the next release).I’d love to know more details on why the built in converter does not work for you and if needed get that fixed. π
August 17, 2014 at 7:49 pm #151049Topic: Separate Stickies
in forum Installationakyboy
ParticipantHi Guys,
Is there plugin that separate stickies with extra row or something,..Something in this
fashion: http://www.serdarevic.net/screens/2014-08-17_19-48-16.pngNow there all together with rest of the posts , if i can say?
August 17, 2014 at 7:04 pm #151047In reply to: Multiple Copies of Single Forum on Page?
Robkk
Moderatorit thinks your forum archive as a blog post , hence the read more
i think creating a bbpress.php template should fix it.
August 17, 2014 at 1:29 pm #151043In reply to: Search input redirects to homepage with no results
Robin W
Moderatorok, on the specific forum search, it is probably plugin or theme related
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
but since you say you don’t really want that, you could disable the forum search
and to add forum searches to the main search use
function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('post', 'pages', 'forum', 'topic', reply')); }; return $query; }; add_filter('pre_get_posts', 'filter_search');This is untested code, I copied it from another forum, but should work, come back if it does or doesn’t to help future readers of this thread!
August 17, 2014 at 12:07 pm #151041In reply to: breadcrumbs space and search button
Robkk
Moderatorhere is the css to size the search button a little better
#bbp_search_submit.button { padding: 9px 15px; border: 0; outline: 0; font: normal 13px/100% Verdana, Tahoma, sans-serif; width: auto; background: #f93; color:#000; }August 17, 2014 at 11:34 am #151040In reply to: breadcrumbs space and search button
Robkk
ModeratorThe above code does not seem to work
well i know for sure this works
input { padding: 9px; border: solid 1px #E5E5E5; outline: 0; font: normal 13px/100% Verdana, Tahoma, sans-serif; width: auto; background: #FFFFFF url('images/bg_form.png') left top repeat-x; background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF)); background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; -moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; -webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; }i just cant single out so it only works on the bbpress search button right now
is it possible to revert to the custom wp buttons
what custom wp buttons??
how do i get rid of the space?for the space your trying to remove , does this help??
.entry-header { margin-bottom: 24px; margin-bottom: 0!important; }August 17, 2014 at 7:47 am #151035In reply to: breadcrumbs space and search button
melanie bund
ParticipantHi I apologise “bumping” an old question, i only realised after i had posted so i created this new one.
The above code does not seem to work, is it possible to revert to the custom wp buttons i have created – see below link – sidebar
PLUS, i have commented out the breadrumbs but the space still remains – how do i get rid of the space?http://bunddesign.com/pdm/lets-talk/
Thank you in advance and i apologise again for my former error
MelanieAugust 17, 2014 at 3:54 am #151025In reply to: user_pass error converting from bbPress 1
Stephen Edgar
KeymasterFirstly, we won’t be ‘squelching’ any error reporting in the importer, I wish we could have more, or at least improved error reporting. π
I haven’t see that
user_passerror for a long time, are you using the latest 2.5.4 version of bbPress for the plugin side of things?Onto the old bbPress standalone side, what version of bbPress standalone are you using?
For the import to work you need to import from bbPress Standalone 1.2 to bbPress plugin 2.5.x.
Details on upgrading and a general flow of what is required is outlined in the following topic, once you’ve read that post you’ll need to read the replies in that thread to follow along the steps.
August 17, 2014 at 3:45 am #151022In reply to: BBpress forum stats plugin layout
Robkk
ModeratorWill do it later , bout to head to sleep
But yeah it always looks weird whenever that stats widget is in a sidebar , I would put the stats short code in the bottom of some templates
August 17, 2014 at 3:41 am #151021In reply to: phpbb3-bbpress stalls halfway
Stephen Edgar
KeymasterPlease see the following page in the docs for this issue:
https://codex.bbpress.org/import-forums/import-troubleshooting/August 17, 2014 at 3:37 am #151019In reply to: BBpress forum stats plugin layout
Robin W
ModeratorI’d say the issue was more with the widget not taking up the column space it could – rthe widget below is much wider. This is fixed usually with css rather than widget code.
Sorry but an training today or I’d take a look, perhaps rob will
August 17, 2014 at 3:33 am #151018Robin W
Moderatoryou could do, but since you’re into code, I’d just amend line 1157 on bbpress/includes/common/widgets.php, and make a note to change it again on upgrades
Not the recommended way, but practical !
August 17, 2014 at 2:04 am #151011In reply to: vBulletin 5 to bbPress Migration
Stephen Edgar
KeymasterThere are two files attached here,
vBulletin5.phpandconverter.php:
https://gist.github.com/ntwb/02aff28553ae63e6a614
You can also download both in a zip file via this link.You need to place
vBulletin5.phpin the folder `/includes/admin/converters/
andconverter.phpin the folder/includes/admin/A couple of notes, you’ll need to make sure your vB5 tables do NOT include a table prefix, if they do this will not work and you will need to rename all of your tables to remove the prefix.
You can confirm this by opening your vB5 database in phpMyAdmin
<img src=”https://i.cloudup.com/czW3RJAK-9.png” alt=”” />
If yournodetable name is the same as mine in the above screenshot your good to go, if it is a prefix it it would look similar toprefix_node(the prefix could be named anything)One other important note, the main difference with this version of the importer is to support vBulletin 5 ‘comments’ which are like bbPress threaded replies, allowing users to reply to replies, these vBulletin replies will NOT work as expected unless you have enabled bbPress threaded replies setting before you import your forums. Also if you reset and delete your forums or uninstall the bbPress plugin this setting will be reset and you need to enable it again.
P.s. More my bad, I appeared to not hit submit on this post when I uploaded these yesterday π
Let me know how it goes π
August 17, 2014 at 1:13 am #151009In reply to: Default template confusion?
Stephen Edgar
KeymasterExcellent, glad your on track to getting your custom templates up and running π
Your correct, we don’t have a donate button, but we’re always on the lookout for extra hands, we need more docs on doing what you doing currently, Robin has already written some introductory docs here.
Pretty much anything goes, we need lots of docs written for our codex and anyone can create new and/or edit existing docs, so if you feel the urge to contribute that way if that’s your thing, that would be great. π If not we’ll also be having some other initiatives in the new future. π
August 16, 2014 at 11:33 pm #151005In reply to: disable front end editing
Stephen Edgar
KeymasterIf you don’t switch you will constantly have the same issues you are asking us how to fix.
You should implement that same fix again and yes, it will cause issues with your sidebar but you should find that your other issues will be fixed.
What I meant by ‘Source Code’ is to include the contents of the
bbpress.phpin your new topic, copy and paste it into your topic and surround that ‘source code’ using thecodetoolbar button on the topic form.. -
AuthorSearch Results