Search Results for 'code'
-
AuthorSearch Results
-
July 12, 2012 at 8:20 am #114791
In reply to: Pesky sub forum formatting
Martin
ParticipantThe stuff above it is the code you gave me so that is probably where the issue must be.
But I don’t know what could be wrong. Goodness this is so crazy.July 12, 2012 at 8:17 am #114789In reply to: Pesky sub forum formatting
Lynq
ParticipantIf you paste it and then select the text, then click the {} button just above that should format it as code for you.
It is probably before line 43 where the error lies and is not closing something off, so PHP continues happily until it hits line 43.
July 12, 2012 at 8:09 am #114777In reply to: Pesky sub forum formatting
Lynq
ParticipantWhat code do you have on line 43?
July 12, 2012 at 7:58 am #114770In reply to: Pesky sub forum formatting
Martin
ParticipantLine 43 is now:
Unsure where the missing ‘)’ is. This is so incredibly frustrating for a non-coder to make a minor adjustment.
July 12, 2012 at 7:18 am #114755In reply to: Pesky sub forum formatting
Lynq
ParticipantHi Martin,
You should not edit the core code.
Inside your template files is a file called loop-single-forum.php, this file calls the bbPress function bbp_list_forums();
You will notice that it is probably not specifying any arguments it just specifies bbp_list_forums();
If you specify arguments for that function like the ones listed above it will then wrap the subforums inside li tags which you can then use CSS to style.
Good luck!
P.s if you want to find out more about how that function works it is inside /bbpress/bbp-includes/bbp-forum-template.php but you do not need to edit it.
Seeing how this will format:
$args = array ( 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'count_before' => '', 'count_after' => '', 'count_sep' => '', 'separator' => '', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true ); bbp_list_forums( $args );-
This reply was modified 14 years ago by
Lynq. Reason: Reformatting the code
July 12, 2012 at 7:14 am #114753In reply to: Pesky sub forum formatting
John James Jacoby
KeymasterNo no no. Don’t hack core. Copy whichever template file has this call to it, directly into your theme, in the same location it is in bbp-theme-compatibility. Use the code above, but correctly formatted.
-
This reply was modified 14 years ago by
John James Jacoby.
July 12, 2012 at 7:06 am #114750In reply to: Pesky sub forum formatting
Martin
Participantwell I get a bit of an error, like so:
Parse error: syntax error, unexpected T_CLASS, expecting ')' in /Users/MartinC/Sites/gaj/wp-content/plugins/bbpress/bbp-theme-compat/bbpress/loop-single-forum.php on line 25 Warning: missing endblock() for startblock('middle') in /Users/MartinC/Sites/gaj/wp-content/themes/parallelus-mingle/framework/theme-functions/layout-and-design.php on line 137Any ideas?
Would have preferred to do it via CSS since hacking the core code will get overwriten but if it can’t be helped then it can’t.No idea on this error though.
Thanks for any help
MartinJuly 12, 2012 at 6:23 am #114739John James Jacoby
Keymaster🙂 Eventually. Not *quite* there yet. Need to fill in some copy here first, migrate the codex, etc…
July 12, 2012 at 5:04 am #114735In reply to: bbPress.org Updated to 2.1
Lynq
ParticipantI seem to be having trouble posting code to the forum, it wants to cut off the first part of it. Anyone else having issues or is this me doing something wrong?
July 12, 2012 at 1:49 am #114719In reply to: bbPress.org Updated to 2.1
Erlend
ParticipantLoving it!
Some “could be nice”s:
Frontpage: I think the 1-3 latest blog posts ought to be shown prominently somewhere on the front page.
Forum: Have you considered using the excellent WP Markdown plugin for this forum? I find it to be a really clever, future-proof alternative to bbcode.
-
This reply was modified 14 years ago by
Erlend.
July 11, 2012 at 2:52 pm #114680In reply to: How to bbpress 2.1 links new window?
Anointed
ParticipantYou can do this with jQuery
jQuery(document).ready(function($) {$('a[href^="http://"]').filter(function(){
return this.hostname && this.hostname !== location.hostname;
})
.click( function() {
window.open(this.href);
return false;
});});
Might be able to clean it up a bit and modify it for use with multisite, but it’s a start.July 11, 2012 at 2:52 pm #114679In reply to: bbpress 2.1 broke fetch_feed function
darkhorse20
MemberOops, the code got parsed funky. Basically, I’m using a variation of the code on this page: https://codex.wordpress.org/Function_Reference/fetch_feed
July 11, 2012 at 2:50 pm #114677Topic: bbpress 2.1 broke fetch_feed function
in forum Troubleshootingdarkhorse20
MemberOn some of my pages, I’m using the fetch_feed function to take the bbPress RSS feed to display the list items. After installing 2.1, none of the feeds are working anymore. Here’s the code I’m using:
get_item_quantity(3);
$items = $feed->get_items(0, $limit);
}
if ($limit == 0) echo 'The feed is either empty or unavailable.';
else foreach ($items as $item) : ?>
<a href="get_permalink(); ?>" title="get_date('j F Y @ g:i a'); ?>">get_title(); ?>get_description(), 13, 140); ?> <a href="get_permalink(); ?>">>>Any idea why it’s not working anymore?
July 11, 2012 at 1:09 pm #114671In reply to: Topics are missing for everyone but me
John James Jacoby
KeymasterDoes Membership-lite have any bbPress specific code in it? I suspect it has something to do with roles and capabilities. Maybe try deactivating bbPress, reactivating it, and visiting Settings > Forums. That silently does a bit of validation on some bbPress settings, in the event things get botched somehow.
July 11, 2012 at 8:27 am #114653In reply to: bbPress.org Updated to 2.1
John James Jacoby
KeymasterFew biggish things to do:
* Migrate Codex
* Redirect Legacy Plugins
* Blog Sidebar and CommentsJuly 11, 2012 at 3:20 am #114547In reply to: Restrict Forums to Specific Groups
Anointed
ParticipantI just saw a tweet about this plugin yesterday.
http://easydigitaldownloads.com/extension/content-restriction/
While I have not used it before, I know his code is rock solid and support is fantastic. It specifically mentions bbPress support and might be able to easily be modified to use groups instead of people who purchase a product. Might be worth asking him about.
If I ever pick up a copy, I’ll try to write up a full review on it as this feature has been requested for some time now.
July 11, 2012 at 3:15 am #114536In reply to: how to show user post count in 2.0.3
Anointed
ParticipantThe code is in the core for you to use, though not yet implemented in the front end, the functions work.
July 11, 2012 at 12:25 am #114535In reply to: how to show user post count in 2.0.3
Pinhead149
Memberversion 2.0.2, sorry
still no solution here, can anyone help me please??

thanks
July 10, 2012 at 8:41 pm #114077In reply to: Topics all open as a 404 page
zanzaboonda
ParticipantThis fixed it for me, too. Thanks so much!
July 10, 2012 at 7:34 pm #113581presspressperson
MemberIf only I had the time and knowledge.
PS netweb – ‘that is has that is that’?! Your grammatical apathy impresses me–and I am serious…not trying to be a jerk.
July 10, 2012 at 8:44 am #109149In reply to: How to show recent topics in forum homepage?
Ronileco
ParticipantThank you again Annointed.
I solved this issue by placing your code in: loop-forums.php, maybe this has changed in recent releases.
July 10, 2012 at 2:56 am #114538In reply to: bbpress integration with wordpress
Stephen Edgar
KeymasterAdd the ‘bbPRess Recent Topics’ widget to a sidebar
https://codex.bbpress.org/widgets/
Or use the [bbp-topic-index] shorcode
July 10, 2012 at 1:42 am #114191In reply to: Several Questions (sorry)
Stephen Edgar
Keymaster1. See the ‘Getting Started’ on Public, Private & Hidden forums
https://codex.bbpress.org/getting-started-with-bbpress/#getting-to-know-bbpress
2. See ‘Theme Compatibilty’
July 10, 2012 at 1:38 am #114231In reply to: Latest posts in a specific forum
Stephen Edgar
KeymasterYou can use ‘shortcodes’ on your WP pages
July 10, 2012 at 12:54 am #114506In reply to: Upgrade to 2.1 broke the forum… : /
Stephen Edgar
KeymasterHere is something to start with on 2.1 themes.
-
This reply was modified 14 years ago by
-
AuthorSearch Results