Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 526 through 550 (of 32,358 total)
  • Author
    Search Results
  • #236444
    tapiohuuhaa
    Participant

    If the extension works on backend, it is is useless for me. I would need extensions only frontend. I have site for solving crosswords. Honoring other peoples all hints should give as default hided.

    I tried to find the button definitions for text editor. My idea is just replace
    DEL or CODE with SPOILER. If I would find the source code, maybe I could add some codes. That apparently needs alo finding filter code, which defines, which codes are allowed.

    I though also that I could replace some code and related texts and icons of TinyMCE with another code, texts an icons.

    So I would not need to add anything. But I didn’t find, where buttons have been defined for the text editor s d TinyMCE.

    BTW. I didn’t get frontend texts translated in your GD bbPress Tools. I deleted entire translation, which I made for it because filtering worked better, but filtering works only for texts, which don’t have dynamic texts (%s etc). I get with “My WP Translate” translated “WP Sitemap Page”, so the translation tool works. I have another issue here https://wordpress.org/support/topic/translating-into-finnish/. So could you answer there.

    #236443
    markfluk
    Participant

    Yes, it’s a BNFWP shortcode on our register page.

    #236442
    Robin W
    Moderator

    and through what are they doing these?

    eg page with shortcode etc.

    #236440
    Milan Petrovic
    Participant

    Yeah, TinyMCE editor is very problematic when it comes to expanding it, it is way to complicated and easily broken.

    With by GD bbPress Toolbox Pro plugin, I have two additions for editing: BBCode Toolbar (simple extension of the basic editor with all BBCodes in the toolbar, and click on the button brings it into editor, or it can wrap selected text), and support for the Markdown. And, every BBCode can be disabled, or controlled for the Toolbar inclusion.

    Milan

    #236414
    tapiohuuhaa
    Participant

    I would lije to fork the cire code of WordPress concerning editors. I found TinyMCE related fike but I didn’t find where te’he button set if the text editor has been defined. I would fork the front-end side.

    #236397
    tapiohuuhaa
    Participant

    See my current sokution.
    https://imgbox.com/puH0BgPp

    If I mark carefully the needed code I can drag it to the editing field.

    #236396
    tapiohuuhaa
    Participant

    I have used your free version of GD bbPress Tools. I added SPOILER and few other tags with BBCode Deluxe. I edited the pugin. I commented all BBCode tags, which belongs to your plugin or which I don’t need.

    I have list fir extra code. I tryed to use JQuery to drag codes to the textare. Dragging cause that code disappears, but it just caused that the ekement disappeared from my list but but not went to the textarea.
    [CODE]$(“document”).ready(function() {
    $(“.tags”).draggable({
    revert: true
    });

    $(“.bbp-the-content”).droppable({
    accept: \’.tags\’,
    drop: function(event, ui) {
    $(this).append($(ui.draggable));
    }
    });
    });
    [/CODE]

    #236394
    Milan Petrovic
    Participant

    Hey,

    My GD bbPress Toolbox Pro plugin has 50 major new features, including BBCodes implementation that has 40+ shortcodes/BBCodes for bbPress forums, including SPOILER and HIDE, as well as full syntax highlighting SCODE shortcode.

    As for changing the main text editor buttons on the front end, I don’t know of any plugin that does it, and even the plugins that do it on the backend, don’t work on the frontend for some reason.

    Milan

    #236389
    Neha wilas
    Participant

    Use conditional logic to display the shortcode only when it’s not within the tab content.

    #236388

    In reply to: Ajax bbpress reply

    Neha wilas
    Participant

    Using JavaScript or a library like jQuery, create an Ajax request. To process the request, create a server-side endpoint (for instance, a PHP file). In the server-side code, retrieve the content of the response from the database. Then, return the response’s content in JSON or HTML format. Using the obtained content, modify the HTML elements on the website using JavaScript.
    Hope this help you.

    #236386
    tapiohuuhaa
    Participant

    Hi
    It is easy to customize backend buttons with the pugin “Post Editor Buttons Fork”, but it does work only in the backend. How I could add and remove buttons in front-end. I would like to add at least [SPOILER][/SPOILER] tag and i would lke to use [CODE][/CODE] insteaf of the default code button.

    Where is the code, which defines editor? Could I hardcode changes, which I want?

    Controlling the graphic editor TinyMCE Advanced might be more difficult. Is the alternatives for TinyMCE andvanced in the front-end. I would be nice to get.

    I have a temporary solution by using an additional menu. See https://www.sanaristikkofoorumi.net/wordpress/forums/topic/uusia-ominaisuuksia/?view=all#post-28829

    #236350

    In reply to: Is bbPress alive?

    Dale Reardon
    Participant

    I too am looking forward to hearing whether dev work is continuing.
    I’m not sure how to see from the code repositry if work is being done but just not released or not yet.

    Dale.

    #236312

    In reply to: Sidebar in Blocksy

    petalos2123
    Participant

    Blocksy requires to pay for upgrade to have different bars in every page. I can’t do that at the moment. I thought I could use a php code or css to change only the forum side bar. I am not an expert in any codex.
    Thanks for your reply.

    #236308
    Masahiko Kawai
    Participant

    I have eliminated the need to enter my email address by doing the following

    
    function bbp_set_default_email( $post_author_email ) {
    	if ( empty( $post_author_email ) ) {
    		$post_author_email = 'anonymous@example.com';
    	}
    	return $post_author_email;
    }
    add_filter( 'bbp_pre_anonymous_post_author_email', 'bbp_set_default_email', 10, 1 );
    
    function bbp_remove_default_email( $r, $args ) {
    	if ( $r['bbp_anonymous_email'] == 'anonymous@example.com' ) {
    		$r['bbp_anonymous_email'] = '';
    	}
    	return $r;
    }
    add_filter( 'bbp_filter_anonymous_post_data', 'bbp_remove_default_email', 10, 2 );
    

    First, use the filter hook “bbp_pre_anonymous_post_author_email” to set the default email address if the email address is blank.
    This avoids the “Invalid email address.” error.

    Second, if the return value “$r[‘bbp_anonymous_email’]” is set to the email address set earlier, return it blank.

    This way, if an email address is entered, its value is returned, if it is blank, it is returned blank.

    tronn
    Participant

    With the latest releases when navigating to a forum (not the forum index), any Elementor code is gone. Same when using just a sidebar or blocks.

    I found an old advice here https://kriesi.at/support/topic/bbpres-no-sidebar-in-topics/ but unclear where the mentioned sidebar.php is located (perhaps theme specific).

      Other things I’ve tried

    • Configured to use the same forum slug (forum, no root)
    • Disabled the main theme, use the latest WordPress default theme.
    • Disabled a redirection add-on.
    #236260
    johnboyfred11
    Participant

    Thanks Robin, unfortunately didn’t work. Surely there must be a way, there’s certainly a will but from what I have read I need to add some code somewhere! The other alternative I have read about is deactivating other plugins one by one, its very frustrating given it worked beautifully when first set up.

    #236233
    Robin W
    Moderator

    @codejp3 the issue with the convertors is 2 fold.

    1. it needs the users on both sites to be exactly the same user_ID’s
    2. With a million replies it’ll fall over and need repeating/restarting – going the database route is the best option

    #236232
    codejp3
    Participant

    @tealcfr – what Robin W suggested is probably your best bet if you need it done immediately.

    Considering that there are plenty of other topics on this very same thing and there’s been a 9 year old ticket for this very thing (https://bbpress.trac.wordpress.org/ticket/2605), your options are limited. A simple and logical approach without any code like Robin suggested above, or custom queries and perhaps some custom code like I suggested before that.

    I’ve taken a look at /includes/converters/bbPress1.php and /includes/classes/class-bbp-converter-base and I think it’s realistic to make a bbPress2.php converter to use within the default bbPress importer (and would also solve the outstanding ticket #2605). If you don’t have the skills to do that, I’d consider doing it as an addition to the bbPress community, but I’d want you (and others) to test it before it gets submitted as a patch. I could have it ready for testing within a week or two. Not a good option if you’re in a rush.

    #236223
    codejp3
    Participant

    I don’t have time to do a detailed answer right now, but what’s wrong mysqldump:
    mysqldump -u db_username -p db_name dbprefix_posts --where="post_type='forum' OR post_type='topic' OR post_type='reply'" > bbp_content.sql

    That will give you a db dump of all forum content.

    Then within phpmyadmin or whatever, doing a select query to get all of the post IDs for that forum content (forums/topics/replies):
    `
    SELECT ID FROM dbprefix_posts WHERE post_type=’forum’ OR post_type=’topic’ OR post_type=’reply’;
    `

    Export that query result from phpmyadmin which should give you a new query similar to this:
    `
    SELECT ID FROM dbprefix_posts WHERE (dbprefix_posts.ID = 5) OR (dbprefix_posts.ID = 8) OR (dbprefix_posts.ID = 11) OR (dbprefix_posts.ID = 43) OR (dbprefix_posts.ID = 86) OR (dbprefix_posts.ID = 87) OR (dbprefix_posts.ID = 88) OR (dbprefix_posts.ID = 89) OR (dbprefix_posts.ID = 91) OR (dbprefix_posts.ID = 92) OR (dbprefix_posts.ID = 93) OR (dbprefix_posts.ID = 94) OR (dbprefix_posts.ID = 95) OR (dbprefix_posts.ID = 96) OR (dbprefix_posts.ID = 97) OR (dbprefix_posts.ID = 98) OR (dbprefix_posts.ID = 99) OR (dbprefix_posts.ID = 100) OR (dbprefix_posts.ID = 110) OR (dbprefix_posts.ID = 111) OR (dbprefix_posts.ID = 112) OR (dbprefix_posts.ID = 114) OR (dbprefix_posts.ID = 115) OR (dbprefix_posts.ID = 116) OR (dbprefix_posts.ID = 117);
    `

    Then you just need to do a little find/replace to re-do the query so that it grabs all of the post_meta for those forum posts (forums/topics/replies).

    find all: dbprefix_posts
    replace with: dbprefix_postmeta

    change the beginning: ‘SELECT ID FROM’
    to: ‘SELECT * FROM’

    then find all remaining: ID
    replace with: post_id

    That will give you a new query ready to dump the post_meta like this:
    `
    SELECT * FROM dbprefix_postmeta WHERE (dbprefix_postmeta.post_id = 5) OR (dbprefix_postmeta.post_id = 8) OR (dbprefix_postmeta.post_id = 11) OR (dbprefix_postmeta.post_id = 43) OR (dbprefix_postmeta.post_id = 86) OR (dbprefix_postmeta.post_id = 87) OR (dbprefix_postmeta.post_id = 88) OR (dbprefix_postmeta.post_id = 89) OR (dbprefix_postmeta.post_id = 91) OR (dbprefix_postmeta.post_id = 92) OR (dbprefix_postmeta.post_id = 93) OR (dbprefix_postmeta.post_id = 94) OR (dbprefix_postmeta.post_id = 95) OR (dbprefix_postmeta.post_id = 96) OR (dbprefix_postmeta.post_id = 97) OR (dbprefix_postmeta.post_id = 98) OR (dbprefix_postmeta.post_id = 99) OR (dbprefix_postmeta.post_id = 100) OR (dbprefix_postmeta.post_id = 110) OR (dbprefix_postmeta.post_id = 111) OR (dbprefix_postmeta.post_id = 112) OR (dbprefix_postmeta.post_id = 114) OR (dbprefix_postmeta.post_id = 115) OR (dbprefix_postmeta.post_id = 116) OR (dbprefix_postmeta.post_id = 117);
    `

    You can then export all of the post_meta as sql dump file(s)

    Then you just have to import those dump files into the new DB, and run the bbPress fixes to re-do counts and stuff like that.

    NOTE: this approach will only work if you’re importing into a fresh DB where there are no posts with the same ID as the old DB. To import into a DB where there are existing/conflicting post IDs, a little extra work would have to be done.

    Like I said, don’t have time to give you a “polished” script to run or anything, but this should point you in the right direction.

    #236222
    Robin W
    Moderator

    php level.

    Frankly it’s really not easy to move forums, topics and replies between sites if not moving the while site.

    bbpress users custom post types, and manages the relationships between them via both post_parent and post meta. If you just export and import again, if the post ID frtom the source site is already being used by the destinatiion site, the the wp import process just allocates a free number, so the relationships gets all messed up.

    ditto if the user ID’s do not exactly match, then again these get to be wrong.

    I have done transfers as paid jobs for clients in the past, and have some code that does a few bits that get over this, but it is not really generic, so would need someone who knows WordPress database well and is happy with php. I am short on time at the moment to do the job.

    #236219
    Robin W
    Moderator

    how code savvy are you ?

    #236210
    codejp3
    Participant

    I’m posting this on behalf of another user from this topic/post. I can’t verify this, but they claim that the TinyMCE visual editor used to show for guest posters (yes, guest posting is enabled on their forum).

    They’re claiming that at some point within the past few months, that stopped.

    I tried on my dev server and confirmed that guests do NOT see any visual editor buttons, but I don’t know how long that has been the case, or if guests were ever able to see the TinyMCE editor in the first place.

    I’m scratching my brain trying to figure out how to enable the TinyMCE editor for guests. There’s nothing helpful related to this in the WP TinyMCE docs, WP Rich Text Editor Filters, or in the TinyMCE v4 docs. Browsing through /wp-includes/class-wp-editor.php (specifically the editor_settings method) was also a bust.

    The only check I’ve been able to find that determines whether or not to display it is “user_can_richedit()”, and even forcing ALL users to have richedit capabilities doesn’t solve it:
    add_filter('user_can_richedit', '__return_true');

    So my question – How do you enable the TinyMCE editor for guests???

    #236192

    In reply to: Plugin bbP g-plus-one

    ricoto
    Participant

    Hi,
    So I downloaded the new version.
    Now I have this error:
    Warning: Undefined variable $reply_id in C:\xampp\htdocs\w9\wp-content\plugins\g-plus-one2\g-plus-one.php on line 43

    Then I added this line 43:
    $reply_id = bbp_get_reply_id();

    I have no more error message but I have no G+1 button.
    I have enabled it in the settings.

    Anyway I just realized that this plugin is a Google like+1 me I’m just looking for the user to like the answer

    #236187
    ricoto
    Participant

    Hi,

    I created a shortcode to move it to a tab on my page.

    The problem is that when I place this shortcode(Post Comments as bbPress Topics) in this tab it also remains at the bottom of my page at the initial place of the comments so I have it duplicated.

    And if I remove the display of comments in the template my shortcode is not displayed.

    How to do please?

    #236186

    In reply to: Plugin bbP g-plus-one

    ricoto
    Participant

    There is this error in the response form when I activate the plugin:

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in C:\xampp\htdocs\w9\wp-content\plugins\g-plus-one\g-plus-one.php:42 Stack trace: #0 C:\xampp\htdocs\w9\wp-includes\class-wp-hook.php(308): g_plus_one_display('') #1 C:\xampp\htdocs\w9\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #2 C:\xampp\htdocs\w9\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #3 C:\xampp\htdocs\w9\wp-content\themes\oceanwp\bbpress\loop-single-reply.php(62): do_action('bbp_theme_befor...') #4 C:\xampp\htdocs\w9\wp-includes\template.php(785): require('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\w9\wp-content\plugins\bbpress\includes

Viewing 25 results - 526 through 550 (of 32,358 total)
Skip to toolbar