Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,426 through 7,450 (of 32,519 total)
  • Author
    Search Results
  • #168619
    gene-stevo
    Participant

    WP= 4.3.1 Theme= Jolene bbPress= 2.5.8 bbP Toolkit= 1.0.4 bbP Manage Subscriptions= 1.2.0
    bbPress Enable TinyMCE Visual Tab= 1.0.1
    Hi Guys,
    I’m having a bit of bother when using the visual editor in my forums. As an administrator I can get the image to align (eg) centrally but as a regualy user (Participant) the alignment wont take unless I add a caption.
    In all cases when I add a caption the html for the caption tag shows in the post.
    I’ve checked all the settings for all the plugin’s but cant find anything to correct this.
    Two examples via links. First as Admin second as Subscriber/Participant.
    posted by admin
    posted by a regular user
    Here is the code that is showing via the Text tab in the users post dialogue:

    HOT, HOT, HOT...or what?
    
    [caption id="" align="alignright" width="306"]<img src="http://i.dailymail.co.uk/i/pix/2015/08/22/21/2B94BD3600000578-3207215-The_original_Spamela_Hamderson_puppet_recycled_to_create_curvy_b-a-40_1440274103479.jpg" alt="miss piggy" width="306" height="372" /> You want some of this?[/caption]
    #168613

    In reply to: Reply threading issue

    Robkk
    Moderator

    @omj-1

    You can completely remove the code and I think it will fix some other issues being present with margins and padding.

    #168612

    In reply to: WP Debug Error Message

    Axel13
    Participant

    Since the page you refer to, Pascal, says:

    Unfortunately, it’s difficult to ascertain from within bbPress exactly what other plugin causes this to happen, so bbp_setup_current_user comes up in the logs.

    Perhaps it’s useful to know that I also see this notice, yet only on localhost and that Yoast SEO has something to do with it. The notice disappears when deactivating Yoast SEO. I do not see any notice when activating both plugins on my site.

    Here is the error with some more details:

    ( ! ) Notice: bbp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 2.3.) in C:\wamp\www\wp\wp-includes\functions.php on line 3622
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0026	424608	{main}( )	..\plugins.php:0
    2	0.0032	493464	require_once( 'C:\wamp\www\wp\wp-admin\admin.php' )	..\plugins.php:10
    3	0.0035	511616	require_once( 'C:\wamp\www\wp\wp-load.php' )	..\admin.php:31
    4	0.0037	522552	require_once( 'C:\wamp\www\wp\wp-config.php' )	..\wp-load.php:37
    5	0.0042	620608	require_once( 'C:\wamp\www\wp\wp-settings.php' )	..\wp-config.php:89
    6	0.1986	28145704	do_action( )	..\wp-settings.php:237
    7	0.2427	32127520	call_user_func_array:{C:\wamp\www\wp\wp-includes\plugin.php:503} ( )	..\plugin.php:503
    8	0.2428	32127584	wpseo_admin_init( )	..\plugin.php:503
    9	0.2432	32196168	WPSEO_Admin_Init->__construct( )	..\wp-seo-main.php:292
    10	0.2464	32361392	WPSEO_Admin->__construct( )	..\class-admin-init.php:31
    11	0.2493	32460912	WPSEO_GSC->__construct( )	..\class-admin.php:42
    12	0.2493	32462088	current_user_can( )	..\class-gsc.php:60
    13	0.2493	32462120	wp_get_current_user( )	..\capabilities.php:1441
    14	0.2493	32462392	get_currentuserinfo( )	..\pluggable.php:60
    15	0.2516	32513872	wp_set_current_user( )	..\pluggable.php:125
    16	0.2520	32542032	do_action( )	..\pluggable.php:41
    17	0.2525	32547552	call_user_func_array:{C:\wamp\www\wp\wp-includes\plugin.php:503} ( )	..\plugin.php:503
    18	0.2525	32547632	bbp_setup_current_user( )	..\plugin.php:503
    19	0.2525	32548072	_doing_it_wrong( )	..\sub-actions.php:147
    20	0.2527	32549376	trigger_error ( )	..\functions.php:3622

    I hope that helps!

    Momshof
    Participant

    Wordpress: 4.3.1
    Divi Theme: 2.5.5
    BBPress: 2.5.8
    bbp style pack: 2.8.3
    http://dtcdancecentral.com/DTCTest/forum/

    Hi – I am new to BBPress. I am hoping some one may be able to assist with the page formatting of the forums/category/topic pages et etc. I am trying to get it as close to this:

    http://dtcdc.freeforums.net/

    as I can.

    With bbpress style pack I was able to do alot without having to mess with any code of files -I do not have alot of coding experience or working within the server on files.

    Right now – I have the following short codes in a Divi Page – this is my Forum Index Page:

    [bsp-display-forum-index forum= ‘1106’ breadcrumb=’no’ search=’no’]
    [bsp-display-forum-index forum= ‘1130’ breadcrumb=’no’ search=’no’]
    [bsp-display-forum-index forum= ‘1154’ breadcrumb=’no’ search=’no’]

    1. This is giving me the “boxed” look for each separate forum I want – I can not figure out how to get the header title of each forum changed. Where it says “Forums, topics,posts, freshness” instead of Forum – I would like it to state the name of the forum I have created (like the first one be “Community Forum”, then the 2nd one would be “Platinum Members Forum” & the 3rd “Diamond Members Forum”).

    These would not be links to anything. Just the forum title. So that when an actual forum below in the “box” is clicked on it goes straight to that forum page showing all topics under that forum.
    (I hope I am using the correct terminology here.)

    2. I can not get the description to show up underneath each category on the forum index page. Is the only way to achieve this to do something to the files in wp?

    3. The topic pages (submit & view) have a big line running down the right side of the pages down into the footer – is there anyway to remove that line and make the pages full width or a custom width?

    Divi Theme does provide an Epanel where I can put css coding in without having to change any files. If anyone has any ideas how to achieve these changes (hopefully without altering files) I would appreciate the help & guidance.

    Thanks!

    #168586

    In reply to: Reply threading issue

    o.m.j
    Participant

    @robkk thx Rob! I checked my style.css in my child theme & found that code…I think I copied/pasted from somewhere…I changed it & it fixed it! thx again!!!

    #168585

    In reply to: Reply threading issue

    Robkk
    Moderator

    @omj-1

    This is the CSS causing the issue.

    #bbpress-forums .bbp-body div.bbp-reply-content {
        clear: both;
        margin: 10px;
        padding: 0;
    }

    The reason why when reply threading is enabled fixes the issue is because the list .bbp-body self closes and makes the above CSS not work.

    Here is the ticket about the reply threading markup bug.

    https://bbpress.trac.wordpress.org/ticket/2757

    You can use this custom CSS to fix the issue.

    #bbpress-forums .bbp-body div.bbp-reply-content {
        clear: none;
    }
    #168577
    Robkk
    Moderator

    This is for the ranking images right?? Did you ever try what I suggested in the other topic with using something similar to this code this user has posted?? All you have to do is replace the svg tag code with an img tag with the link to the images you want to use.

    User ranking system?

    #168576
    Robkk
    Moderator

    Check out this guide for help with an internal server error.

    https://codex.wordpress.org/Common_WordPress_Errors#Internal_Server_Error

    You can also check out this guide for any help with login issues.

    https://codex.wordpress.org/Login_Trouble

    #168575
    Robkk
    Moderator

    If you placed a shortcode in a page, you do not have to add the forum index shortcode to a page but instead use the default forum root url /forums. If you did use a custom index page using the shortcode, editing the forum root slug in Settings > Forums to be the same as custom index page’s slug should help with the breadcrumb thing.

    You can always create custom menu links if the pages are not in the menus section.

    #168566
    Robkk
    Moderator

    I tested out the patch and it works pretty well for a custom user role I created. I just used the tutor role mentioned in this guide https://codex.bbpress.org/custom-capabilities/ and it worked when I created and switched to that test user.

    Make sure to not touch the core plugin files again. This was a simple thing to do which is not bad, but something else might cause further conflicts.

    #168560
    Robkk
    Moderator

    1. How do I set up my site to where people can log in with a WordPress / Gravatar account?

    Jetpack has a module in it for users to login using their wordpress.com account, if that is what you want.

    https://jetpack.me/support/sso/

    2. The profile page title does not show up and using the Yoast plugin I can’t find any way to target it. Any advice?

    You have to use a filter and use custom code to customize the titles. Here is an example of some custom code to that that type of thing for some of the profile pages.

    Change meta/page title for user pages

    3. What’s a good plugin to use for things such as easy navigation for users?

    It depends on what exactly you want. I really do not have any opinions on this type of thing, but it depends on how the rest of your site is set up and the look you are going for.

    #168558
    Robkk
    Moderator

    I think you guys can just hot-patch the issue until the bug is fixed in core and so you guys do not mess with any other core code to cause any other possible issues.

    https://bbpress.trac.wordpress.org/changeset/5852

    #168555
    Pascal Casier
    Moderator

    Hi Filip-T,

    What I know is that forum moderation is being reviewed and improved a lot for v2.7 of bbPress. For now there is standard moderation and blacklisting as described here: https://codex.bbpress.org/moderation-and-blacklisting/

    I’m not aware of other plugins then the one you have found, but it seems to have some issues with the latest WordPress/bbPress.

    Pascal.

    antonydennis
    Participant

    Okay, I think I am getting nearer… it seems it is to do with creating a nonce – a unique WP generated code to stop spammers from accessing the form. So in my functions.php, I have entered the call:

    
    wp_nonce_field( 'new-reply_'.$topic_id );
    

    which has created in my HTML:

    
    <input type="hidden" id="_wpnonce" name="_wpnonce" value="31279b1d8f" />
    <input type="hidden" name="_wp_http_referer" value="/" />
    

    I think I’m warm, but it still doesn’t work… can anyone give me the final little detail to make it work…?

    lvictor
    Participant

    I’ve seen a ton of topics regarding not being able to see the forums at all, but nothing quite like my situation. I can see the top level for my forums, and it is listing topics & replies but I can’t get to them. Although I’ve imported the bbpress templates and css to my template directory, I’m unable to get past the top level for my forums at:

    STARFLEET Discussion Forums

    When I click on a category, topic, reply, I get a blank like this:

    http://sfi.org/topic/heres-a-test-topic/

    They do work when I switch to the default template, so is there a step I missed with the template? Is there code that needs to be added to the template header? Something else?

    antonydennis
    Participant

    Hello there…

    I am trying to implement a view of Buddypress that looks like the Facebook newsfeed – a single page, which lists topics, each one having an add reply form underneath, and then a list of the existing replies. I have made the list of topics and replies, but I’m having trouble putting a working add reply form underneath each topic.

    The loop structure I have used is:

    
    $forum_ID_list = //a list of forum IDs
    foreach ($forum in $forum_list)
        // WP_Query to get the topic ID list
        foreach ($topic in $topic_ID_list)
            // output topic
            // output new reply form -BUT HOW...?
            WP_Query to get the reply ID list
            foreach ($reply in $reply_list)
                // WP_Query to get the reply details
                // Output the replydetails
    

    So I am not using calls to bbpress() in the loop.

    My question is: with this loop structure, how do I implement the output of the new reply form?

    I have tried embedding the reply form as follows:

    
    <form id="new-reply-XXX" name="new-post" method="post" action="">
    	<fieldset class="bbp-form">		
    	<textarea class="bbp-the-content wp-editor-area" rows="3" cols="10" tabindex="101" name="bbp_reply_content" id="bbp_reply_content"></textarea>
    	
    	<input type="hidden" name="bbp_topic_id"    id="bbp_topic_id"    value="TOPIC_ID" />'
    	<input type="hidden" name="bbp_reply_to"    id="bbp_reply_to"    value="0" />';
    	<input type="hidden" name="action"          id="bbp_post_action" value="bbp-new-reply" />
    	<input type="hidden" name="_wpnonce"        id="_wpnonce"        value="99e426b2cf" />'; // NOT SURE WHAT THIS DOES AND IF I NEED TO CHANGE IT
    	<input type="hidden" name="_wp_http_referer"                     value="" /> // CAN THIS JUST BE LEFT BLANK?
    	<input type="hidden" id="bbp_redirect_to" name="redirect_to"     value="MY_HOME_PAGE" />
    	
    	<button type="submit" form="new-reply-XXX" tabindex="104" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit">SEND</button>';
    

    When I use this form, I am redirected to my home page, but the reply is not added to the topic.

    So my questions are:

    1. Can I do it by looping this way using WP_Query, and if so, can you answer my questions in upper case above about the form so it will add the topic correctly?

    2. If I cannot used my WP_Query based loops, what other way can I loop and make the form work?

    I’m using bbpress 2.5.8 with Buddypress 2.3.3 and WP 4.0.8

    Thanks in anticipation! Antony.

    #168516

    In reply to: Shorten Freshness

    manteli
    Participant

    Hi Pascal! Thank you for your answer. I tried the bbP Toolkit plugin but it didn’t work either.

    I’m using the Enfold theme and have already tested 1) adding code to theme functions.php 2) using code snippets plugin which works fine with other active snippets 3) using code snippets after switching to basic theme for testing purposes. None of these worked.

    Maybe some of my plugins is conflicting, I keep searching and update this if I find the reason.

    #168506
    manteli
    Participant

    Using latest versions of WP and bbPress. I’ve been searching and searching, is there anyone who could help me to shorten the freshness to show only year(s) OR week(s) OR day(s) OR minute(s) instead of the whole time stamp?

    I found this https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#10-shorten-freshness-wording but it doesn’t seem to work properly. I don’t know if I’m missing something. I still got “1 hour, 20 minutes” etc. Is the code supposed to do this / is it possible to show only one time variable like this?

    50 seconds ago
    33 minutes ago
    2 hours ago
    3 days ago
    1 year ago
    etc

    I would be so happy if someone could help! Thanks!

    #168491
    Robkk
    Moderator

    Oh sorry forgot you wanted a forum feed with only topics, I was just focusing on group forum feeds in general.

    To display only a specific post type in the feed like topics, just add ?type=topic to the end of /feed. So in the end using the example url again it will be something like

    yoursite.com/forums/forum/group-forums-2/forum-name/feed?type=topic

    I think even this works too.

    yoursite.com/forums/forum/group-forums-2/forum-name/feed/?type=topic

    #168488
    Robkk
    Moderator

    I might have gotten the urls wrong I was pulling an all nighter yesterday.

    It should be something like this for regular forums.

    localhost/forums/forum/forum-name/feed/

    If you have forums in categories it would show up like this.

    localhost/forums/forum/category-name/forum-name/feed/

    It was just an example url, not anything particular to your site.

    Here is the url to the feed for the ios development group forum.

    http://layerunion.com/forums/forum/group-forums-2/ios-development/feed

    So you have to go to each of them like this. Where the “forum-name” is the actual forums name, and “yoursite.com” is your sites domain name.

    yoursite.com/forums/forum/group-forums-2/forum-name/feed

    #168487
    tlatch89
    Participant

    Hey everyone,

    I started styling up a little support/development forum for my clients to use. It requires a little bit more customization but I have most of the basics down.

    Wordpress – Latest
    BBPress – Latest
    Theme – Salient
    Website Forum Page – https://wapp.guru/support/

    I’m not using any short codes because this theme actually handles the default BBPress pretty well. I’m just letting the default post types do their thing with Yoast SEO attached. I’ve added a plugin that adds login, log out, and register buttons to the forum itself.

    1. How do I set up my site to where people can log in with a WordPress / Gravatar account?

    2. The profile page title does not show up and using the Yoast plugin I can’t find any way to target it. Any advice?

    View post on imgur.com

    3. What’s a good plugin to use for things such as easy navigation for users? I have a few of the widgets in the hamburger menu on the top left. There’s a default login form but nothing regarding registration so I hard coded a link in. There’s a little login form, but no register form. I’ve tried (bbk style pack) but it seems to just place links in the main navigation menu which I don’t really like. It just seems like it’s difficult to navigate around.

    Overall I know the forum is open source and requires a good bit of customization. I’m just looking for the simplest way without having to use 50 additional plugins that conflict with one another.

    Thanks!

    #168484

    In reply to: vBulletin import help

    With every iteration, bbPress writes to the _bbp_converter_query option to record the last successful query. You can use that to cross-check what the converter is putting out against what the records are that are being imported.

    Usually when this happens, it’s a database encoding issue, and MySQL is getting stuck on a specific character in a specific record.

    To confirm if this is the case, you’ll want to go back into phpMyAdmin (or your favorite database management tool) and bisect that range of posts to identify exactly which post in your vBulletin installation that bbPress is getting hung up on.

    For example, when I converted bbPress.org from bbPress 1.2 to bbPress 2.0, it got stuck on 8 individual posts that had had encoding issues from 10 years ago when someone changed the encoding from whatever it was to latin1, and because WordPress usually expected to be UTF-8 and we have HyperDB in the middle to route queries around, bbPress’s converter would do exactly what yours is doing.

    If it’s database encoding or some other anomaly, isolating what is goofy with exactly which post(s) is the only way to get around it. I’m anxious to hear what you figure out here, and very happy to improve our importer if there’s anything we can do on our end.

    #168476
    manueldo
    Participant

    Hi martineva! I am in the same situation and have the same problem, and tried the same as you without results.
    The only way I could “solve” it, was modifying the capabilities for the default particpant role in the core of the plugin.
    In the Primary caps I had to set moderate=true and then blocked all things that I don´t want the user do in the other options. Anyway I had to hardcode some other parts of the plugin because it inherits some moderator capabilities, eg. this user will be able to stick a topic.

    I know this is not the way to solve it but it is the only way I found. And like you, this is my first forum, and I am not a developer.

    I hope we could find other way soon!
    ps.) Sorry for my english, isn´t the best.

    #168473
    martineva
    Participant

    Hello there !
    I’ve been on troubble since a few days, just trying to let my forum users to delete their own topics.

    I tried several plugins, on WordPress, but it seems that even if I create a new role and custom it with the “delete topic” option, it won’t be memorized, maybe due to php bbpress capabilities ?? Anyway those plugins seem to create only WordPress roles, not bbpress roles. So even if there is “forum options” set, maybe it’s not the good way to do it properly.

    Then I’ve been reading this : https://codex.bbpress.org/custom-capabilities/, and I was able to set a new role, but still, even if the 'delete_topics' => true," is set, the users can’t see anything like a delete button on the front end (same with the “delete replies” option, BTW).

    Following this other thread https://bbpress.org/forums/topic/bbpress-custom-user-role/ I created a separated php file, but once again I could see no effect, worse : I got 404 pages instead of my website pages.

    I must say it’s my first forum, and I’m not a good coder, so if anybody could help me to get this solved, it would be very, very nice !

    #168468
    Rourke
    Participant

    Thanks @casiepa, you got me on the right track.

    In the proces I must have removed $arg['teeny'] = false; somewhere. Adding that made it work.

    I now made it like this, and it works like a charm:

    /* TinyMCE configuration */
    function bbp_load_custom_config( $config = array() ) {
    	$config['tinymce'] = array( 
    		'toolbar1' => 'bold, italic, underline, strikethrough | blockquote | alignleft, aligncenter, alignright, alignjustify | bullist, numlist | undo, redo',
    		'toolbar2' => 'link, unlink | outdent, indent | removeformat',
    		'plugins'  => 'wplink'
    	);
    	$config['quicktags'] = array ('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close');
    	$config['teeny'] = false;
    	return $config;
    }
    add_filter('bbp_after_get_the_content_parse_args', 'bbp_load_custom_config');
    add_filter('mce_buttons', 'bbp_load_custom_config');
    
    /* TinyMCE loading external plugins */
    add_filter('mce_external_plugins', 'my_custom_plugins');
    function my_custom_plugins() {
    	// Reading directories
    	$plugins = glob(get_stylesheet_directory() . '/js/tinymce/*' , GLOB_ONLYDIR);
    
    	if(count($plugins) > 0){
    		// Get the plugin name = directory name, and the URL
    		foreach ($plugins as $plugin ) {
    			$plugin_name = pathinfo($plugin, PATHINFO_BASENAME);
    			$plugins_array[ $plugin_name ] = get_stylesheet_directory_uri() . '/js/tinymce/' . $plugin_name . '/plugin.min.js';
    		}
    	}
    
    	return $plugins_array;
    }

    The last function assumes all external plugins are in /wp-content/themes/child-theme/js/tinymce/ and loads them into TinyMCE.

Viewing 25 results - 7,426 through 7,450 (of 32,519 total)
Skip to toolbar