Search Results for 'code'
-
AuthorSearch Results
-
March 5, 2012 at 9:59 pm #109325
In reply to: Where is my Forum?
Jared Atchison
Memberhttp://anetz.in/forums/ should be the spot
March 5, 2012 at 6:10 pm #112191In reply to: Can't login after install
Jared Atchison
MemberIf you can’t login to your site via FTP/SFTP then you need to contact your web host as there is a bigger problem around here
March 5, 2012 at 5:38 pm #111190Jared Atchison
MemberSorry I do not have time to provide you with the exact code.
However as jjj already said there are tons of examples on Google.
March 5, 2012 at 5:34 pm #111189Satish
Participantok..
as Guatam suggested, I added the following code to my function.php file
add_action('bbp_init', '_bbp_allow_pre_tag', 10);
function _bbp_allow_pre_tag() {
global $allowedtags;
$allowedtags = array( 'name', 'class', 'id' );
}
but still its not working.
Can you please directly give me the code I need to paste into my function.php file ?
I need to allow pre tag with following attributes to it name=”code” class=”c”
so basically I must allow “pre” tags with “name” and “class” attributes.
March 5, 2012 at 5:11 pm #111188Jared Atchison
MemberNo you should not edit core (*ever*), you should use the filter that is available in the code you just posted
bbp_get_allowed_tags.You need to look into filters https://codex.wordpress.org/Function_Reference/add_filter
March 5, 2012 at 5:09 pm #111187Satish
Participantgot something inside bbpressbbp-includesbbp-common-template.php file.
/**
* Output all of the allowed tags in HTML format with attributes.
*
* This is useful for displaying in the post area, which elements and
* attributes are supported. As well as any plugins which want to display it.
*
* @since bbPress (r2780)
*
* @uses bbp_get_allowed_tags()
*/
function bbp_allowed_tags() {
echo bbp_get_allowed_tags();
}
/**
* Display all of the allowed tags in HTML format with attributes.
*
* This is useful for displaying in the post area, which elements and
* attributes are supported. As well as any plugins which want to display it.
*
* @since bbPress (r2780)
*
* @uses allowed_tags() To get the allowed tags
* @uses apply_filters() Calls 'bbp_allowed_tags' with the tags
* @return string HTML allowed tags entity encoded.
*/
function bbp_get_allowed_tags() {
return apply_filters( 'bbp_get_allowed_tags', allowed_tags() );
}
what should I do with it inorder to make pre tag allowable.
I feel like, editing the core isn’t a good idea.
Is there a way to handle this via my template ?
Can you please give me the code that I must paste inside my function.php file to allow
<pre name="code" class="c">to my forum members.March 5, 2012 at 3:10 pm #111185Jared Atchison
MemberYou can filter it using the
bbp_get_allowed_tagsfilter bbPress provides.March 5, 2012 at 2:43 pm #111510John Conners
ParticipantI’m working on a simple plugin that effectively fires:
do_action( 'edit_post', $id );on any topic, forum, etc. when edited, created, trashed, spammed, split, etc to flush the topic and forum out of the cache.
I’ve almost got it working and am just getting trashing / untrashing to work then will put it up somewhere to let others work on it. While it’ll work in my case where I’ve not got a bbPress aware theme it may need some tweaking / improvements for all cases.
March 5, 2012 at 2:36 pm #111184Satish
Participant<b>Gautam Gupta</b> tried to help me with this code:
global $allowed_tags;
$allowed_tags=array('name','class','id');
I pasted it inside function.php file; unfortunately its not working.
I’m using https://wordpress.org/extend/plugins/google-syntax-highlighter/ plugin. and want my bbpress forum members to make use of pre tag and this plugin highlights the codes they post on the forum.
It uses the following syntax:
<pre name="code" class="c">please help.
March 5, 2012 at 1:08 pm #112108In reply to: BuddyPress default theme help
Zigster
MemberHey Anetz,
I have “Site Wide” forum enabled (bbpress) and I’ve disabled group forums. They can still make groups, but they don’t have group forums.
I’m new to WordPress and Website development, just know some basic HTML.
Thanks, I see how to change the permalink now that’s awesome. I can’t believe I missed it, spent ages looking it. It’s in the “All pages” tab and it’s under the title.
Whenever I make a “new forum” category it automatically creates it at /forums/forum/new-category.
I don’t understand why I need “/forums/forum”, I’d rather just have it at /forum if that’s possible.
I’ll continue to experiment too and I’ll post back if I make any progress.
Let me know if you find anything.
March 5, 2012 at 11:38 am #112097Haris Nadeem
MemberThanks! That perfectly worked with my theme as well
March 5, 2012 at 1:30 am #110530In reply to: bbPress 2.1 – Theme Compatibility
Jon Brown
ParticipantJust switched a Genesis based site I’m developing from 2.0 to 2.1-r3774. I was a bit confused by the broken templates, but then realized the Genesis code had been pulled out and found and installed Jared’s BBPress Genesis extend (0.8.1) plugin which now makes everything is look good OOTB again.
https://wordpress.org/extend/plugins/bbpress-genesis-extend/
There are only a dozen dummy posts and _no_ custom templates yet so I wouldn’t really expect it to explode, but I start customizing forum templates in a few days and it seemed to make sense to start with 2.1.
March 4, 2012 at 9:56 pm #112096Jared Atchison
MemberIt depends on what your setup is, however you should be able to put this in your theme’s
function.phpand get it to work. The reason I know this is because I’m doing it on one of my bbPress installs.add_filter( 'bbp_get_single_forum_description','ja_return_blank' );
add_filter( 'bbp_get_single_topic_description','ja_return_blank' );
function ja_return_blank() {
return '';
}March 4, 2012 at 9:34 pm #112094Jared Atchison
MemberNo problem.
Hopefully in a future release (2.2) this will be a bit easier and their will be some direct filters in place
March 4, 2012 at 9:31 pm #112093Haris Nadeem
MemberThanks a lot jaredatch! I just fixed them
March 4, 2012 at 8:38 pm #110756In reply to: [help] Link Log out error after bbPress installed
Jared Atchison
MemberThis is fixed in the upcoming 2.1 release
March 4, 2012 at 8:36 pm #59902In reply to: Plugin Idea: Daily New Topics Digest
Jared Atchison
MemberThanks for the link to the plugin. Feel free to start a new thread about it, locking this one as its 4 years old
March 3, 2012 at 8:44 pm #110529In reply to: bbPress 2.1 – Theme Compatibility
fruitbat2000
MemberI was having the same prob Tuomas, but then realised I needed to insert a link to the stylesheet within my header template.
Putting
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/bbpress.css">directly AFTER the<?php wp_head(); ?>tag allows you to override the styles provided by the stylesheet in the plugin folder.Hope that helps
March 3, 2012 at 12:10 pm #112148In reply to: Subforum URL redirecting to homepage
SK
ParticipantThere are no conflicts.
Also went to WP Admin > Settings > Permalinks and hit Save.
For some strange reason only subforums are behaving badly.
www.domain.com/forum/f/forum-name/subforum-namereturns 404.I tried monkeyman’s rewrite analyzer and have been told that the rewrite rule is working; something else is in the way.
I tried putting
print(debug_backtrace());afterfunction set_404() {inwp-includes/query.phpbut did not get any intelligible debug information…all that happens is: a single word Array gets prefixed to the top of the 404 page.I have also discovered that in the database, in the table
wp_poststhe value stored in columnguidfor these subforums is http://www.domain.com/forum/f/subforum-name i.e. without the parent forum’s slug.If I try to visit
www.domain.com/forum/f/subforum-namethen I do get to the subforum page. Funnily enough, the breadcrumbs on that page depict the correct path including the parent forum.Curiously, when I create a new subforum, the
guidfield for it iswww.domain.com/?post_type=forum&#XXX;p=YYYYIf I try to follow that URL, I end up at forums base.I should point out that this messed up parent-child relationship is only occuring for bbPress…I have many hierarchical pages in WP, and they all seem fine.
March 3, 2012 at 3:55 am #42602Topic: Installed 2.0.2 Can't get shortcodes to work
in forum Installationremoving1
MemberI installed bbPress 2.0.2 on my WordPress 3.3.1 site and I can’t get the shortcodes to work. If I add a shortcode to any of the forums it just shows the [shortcode].
http://www.rmminc.org/forums is blank the forums I created don’t show up on the page.
Below are two forums I setup
March 2, 2012 at 11:48 pm #112151In reply to: 2.1 wysiwyg errors
Jared Atchison
MemberQuoting is something we have on our radar for core. Hopefully for 2.2.
As far as the existing posts parsing the html in the editor, I ran into that problem myself today. We’ll look into that.
For reference, here’s is how I was able to replicate this:
Use a link in the editor when making a post, eg:
<a href="http://bbpress.org">bbPress</a>Everything seems fine. Until you go back and edit the post and then are presented with
http://www.jaredatchison.org/files/Screen%20Shot%202012-03-02%20at%205.49.44%20PM-OTIItv7mSR.png
March 2, 2012 at 11:09 pm #112136Jared Atchison
Member10-4
March 2, 2012 at 11:03 pm #112135BlinkyBill01
ParticipantWoot! Found it. I literally opened every .css file on my site (252 files) and searched. Turns out, the Gantry Framework css/wordpress.css file had the following code in it:
/* Other */
.rt-wordpress tr.even td {padding: 5px;background: #666666;border-bottom: 1px solid #ddd;}
.rt-wordpress tr.odd td {padding: 5px;background: #333333;border-bottom: 1px solid #ddd;}
That was overwriting the code in the bbpress.css file.
Mark this one as closed.
March 2, 2012 at 10:32 pm #42589Topic: 2.1 wysiwyg errors
in forum Requests & Feedbacktuomasparviainen.com
ParticipantWhen editing existing post editeor prints html, rather that parses it. When switched to the code view some symbols are displayed.
oembed tickbox saves, but embedding is not working.
March 2, 2012 at 9:37 pm #112063In reply to: bbPress beta via WordPress plugin?
SK
ParticipantHaving trouble installing 3786.
Extracted everything. Renamed plugin to bbpress. Put bbpress in zip archive bbpress.zip
From WP Admin > Plugins > Add New > Upload
Selected bbpress.zip
Selected Yes from “update existing plugin” dropdown (I am using Easy theme and plugin updgrades https://wordpress.org/extend/plugins/easy-theme-and-plugin-upgrades/ )
Clicked upload.
Getting this message:
Unpacking the packageā¦
Installing the pluginā¦
Destination folder already exists. ...../wp-content/plugins/bbpress/
Plugin install failed.Please help!
-
AuthorSearch Results