Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 6,551 through 6,575 (of 26,877 total)
  • Author
    Search Results
  • #167720
    Mei Ling
    Participant

    Hello,

    We have done this… we are still testing it. Be careful use VPS:

    <?php

    /**
    * Now that you have your custom column, it’s bulk/quick edit showtime!
    * The filters are ‘bulk_edit_custom_box’ and ‘quick_edit_custom_box’. Both filters
    * pass the same 2 arguments: the $column_name (a string) and the $post_type (a string).
    *
    * Your data’s form fields will obviously vary so customize at will. For this example,
    * we’re using an input. Also take note of the css classes on the <fieldset> and <div>.
    * There are a few other options like ‘inline-edit-col-left’ and ‘inline-edit-col-center’
    * for the fieldset and ‘inline-edit-col’ for the div. I recommend studying the WordPress
    * bulk and quick edit HTML to see the best way to layout your custom fields.
    */
    add_action( ‘bulk_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
    //add_action( ‘quick_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
    function manage_wp_posts_be_qe_bulk_quick_edit_custom_box( $column_name, $post_type ) {

    switch ( $post_type ) {
    case ‘topic’:
    switch( $column_name ) {
    case ‘bbp_topic_forum’:
    ?><fieldset class=”inline-edit-col-left”>
    <div class=”inline-edit-col”>
    <label>
    <span class=”title”>Deplacer dans le forum</span>
    <span class=”input-text-wrap”>
    <select name=”deplacer”>
    <option value=”Null”></option>
    <?php /* recuperation des forums “forum” */
    $args = array(
    // ‘post_parent__not_in’=> array( 0 ) ,
    ‘post_type’ => ‘forum’
    );
    $forums = new WP_Query( $args );
    // boucle de test affiche en debug id et titre forum
    if ( $forums->have_posts() ) {
    while ( $forums->have_posts() ) {
    $forums->the_post();
    echo ‘<option value=”‘.$forums->post->ID.'”>’.get_the_title() . ‘</option>’ ;
    }
    }
    wp_reset_postdata();?>

    </select>
    </span>
    </label>
    </div>
    </fieldset><?php
    break;
    }
    break;
    }
    }

    /**
    * When you click ‘Quick Edit’, you may have noticed that your form fields are not populated.
    * WordPress adds one ‘Quick Edit’ row which moves around for each post so the information cannot
    * be pre-populated. It has to be populated with JavaScript on a per-post ‘click Quick Edit’ basis.
    *
    * WordPress has an inline edit post function that populates all of their default quick edit fields
    * so we want to hook into this function, in a sense, to make sure our JavaScript code is run when
    * needed. We will ‘copy’ the WP function, ‘overwrite’ the WP function so we’re hooked in, ‘call’
    * the original WP function (via our copy) so WordPress is not left hanging, and then run our code.
    *
    * Remember where we wrapped our column data in a <div> in Step 2? This is where it comes in handy,
    * allowing our Javascript to retrieve the data by the <div>’s element ID to populate our form field.
    * There are other methods to retrieve your data that involve AJAX but this route is the simplest.
    *
    * Don’t forget to enqueue your script and make sure it’s dependent on WordPress’s ‘inline-edit-post’ file.
    * Since we’ll be using the jQuery library, we need to make sure ‘jquery’ is loaded as well.
    *
    * I have provided several scenarios for where you’ve placed this code. Simply uncomment the scenario
    * you’re using. For all scenarios, make sure your javascript file is in the same folder as your code.
    */
    add_action( ‘admin_print_scripts-edit.php’, ‘manage_wp_posts_be_qe_enqueue_admin_scripts’ );
    function manage_wp_posts_be_qe_enqueue_admin_scripts() {

    // if code is in theme functions.php file
    wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( get_bloginfo( ‘stylesheet_directory’ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );

    // if using code as plugin
    //wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( plugin_dir_url( __FILE__ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );

    }

    add_action( ‘save_post’, ‘save_deplacer’);
    function save_deplacer() {
    global $wpdb;

    if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){

    $post_ids= $_GET[‘post’];
    $forum_id = $_GET[‘deplacer’];
    foreach($post_ids as $post_id){

    $wpdb->query(“UPDATE $wpdb->posts SET post_parent = $forum_id WHERE ID = $post_id “);
    }
    }
    }
    /*echo ‘

    ';
    	print_r($post_type);
    	echo '

    ‘;
    die();

    Array
    (
    [s] =>
    [post_status] => all
    [post_type] => topic
    [_wpnonce] => dcfdf56a2d
    [_wp_http_referer] => /public/wptest/wp-admin/edit.php?post_type=topic&paged=1
    [action] => edit
    [m] => 0
    [bbp_forum_id] =>
    [paged] => 1
    [mode] => excerpt
    [_status] => -1
    [tax_input] => Array
    (
    [topic-tag] =>
    )

    [Deplacer] => 39
    [bulk_edit] => Mettre à jour
    [post_view] => excerpt
    [screen] => edit-topic
    [post] => Array
    (
    [0] => 43
    [1] => 41
    )

    [action2] => -1
    )*/

    /**
    * Step 3: display an admin notice on the Posts page after deplacer
    */
    add_action(‘admin_notices’, ‘custom_bulk_admin_notices’);
    function custom_bulk_admin_notices() {
    global $post_type, $pagenow ;

    if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){

    $messages = array();
    $messages[] = bbp_admin_repair_forum_meta();
    $messages[] = bbp_admin_repair_topic_meta();
    $messages[] = bbp_admin_repair_freshness();
    $messages[] = bbp_admin_repair_reply_menu_order();
    $messages[] = bbp_admin_repair_forum_topic_count();
    $messages[] = bbp_admin_repair_forum_reply_count();
    $messages[] = bbp_admin_repair_topic_reply_count();
    $messages[] = bbp_admin_repair_topic_voice_count();
    $messages[] = bbp_admin_repair_user_topic_count();
    $messages[] = bbp_admin_repair_user_reply_count();

    //if($pagenow == ‘edit.php’ && $post_type == ‘topic’ && isset($_GET[‘deplacer’])) {

    $messageori = sprintf( _n( ‘Topic déplacé.’, ‘%s topics déplacés.’, $_REQUEST[‘deplacer’] ), number_format_i18n( $_REQUEST[‘deplacer’] ) );

    foreach ($messages as $message){
    echo'<div class=\”updated\”><p>’.$message[1].'</p></div>’;
    }
    echo “<div class=\”updated\”><p>{$messageori}</p></div>”;
    }
    }

    ?>

    #167719
    names_are_useless
    Participant

    Where are the cache files located? And I assume you mean bbPress cache files? Or do you mean WordPress cache files as a whole?

    #167715
    names_are_useless
    Participant

    Thank you for trying to help Robkk.

    Where do I add those lines of code? I assume you want me to edit one of the PHP files (click “Edit” for bbPress plugin). I just tried adding it to “bbpress/bbpress.php” (since its the first php file that comes up) at the end of the file. I received a “Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ in /var/www/vhosts/laysofalthas.com/epochgames/wordpress/wp-content/plugins/bbpress/bbpress.php on line 933”. There’s a bunch of other php files, and I have no idea where I’m supposed to put that code snippet (novice here), so I’m just going to delete that code and wait for further instructions.

    I don’t know what “multisite” is. Looking through the plugin list, I see several (Multisite Toolbar Additions, Multisite Global Search, etc). Would you recommend I add one of them? Can you give me the specific name of one?

    Alright, so how can I fix it so “yoursite.com/wordpress/wp-login.php” leads to “yoursite.com/wp-login.php” instead?

    Yes, your deleteme user does appear in the Users list.

    Alright, so I assume you’re talking about Peter’s Login Redirect plugin, and I assume I’ll need to edit the settings under Settings -> Login/logout redirects, correct? I have now set the “administrator” role to go to the URL “yoursite.com/wordpress/wp-admin/” and it works perfectly, so thank you. I have also set it so Subscribers are redirected to “http://epochgames.co.uk/forums/forum/test/&#8221; when they login. I created a test Subscriber user, which in fact is redirected upon logging in, but isn’t logged in (of course that code you recommended still needs added in). Can’t say I’m overjoyed that I have to change the URL to the forums every time I want to login as an administrator account, but at least I can get to the Dashboard now without having to memorize the URL.

    Again thank you for trying to help Robkk, but I would definitely like it if you could be a bit more descriptive in what I need to do to fix this login problem. I am very much a novice still with WordPress.

    #167708
    Robkk
    Moderator

    It is not really moderated on the bbPress site plugins page, it just pulls plugins with the bbPress tag from the WordPress repository.

    Yes, some developers do this and many other things to possibly increase sales in their premium plugins.

    I do not really like some of the tactics they do to try to gain an increase in sales in their premium plugins either.

    This should really go to the make plugins team I think for a suggestion of stricter tagging and plugin submission.

    For the bbPress plugins page I think we will think about it, I might contact the devs tomorrow about it to see if they have any opinions on fully moderating plugins in the list. It would defiantely be time consuming moderating plugins on bbpress.org unless the tagging process was sticter.

    #167707
    Robkk
    Moderator

    This fixes the list issue.

    #bbpress-forums li {
        list-style: none !important;
    }

    I created a user called “deleteme” and I see the issue you are talking about.

    Do you have multisite enabled or at least a subsite for testing.

    the wp-login.php page leads to yoursite.com/wordpress/wp-login.php instead of just yoursite.com/wp-login.php.

    Check it out right now to see if I am even a user to just the yoursite.com site. If I am see that I am even have a forum role like participant.

    The redirect to the home page is because of some piece of code in bbPress for the frontend login forms. You can easily fix this by setting it where Admins can go the Admin and other users redirect to the home page using the plugin you have already installed.

    #167700
    Jake Hall
    Participant

    Does it ever get maintained or at the very least, moderated?

    it seems plenty of Plugin developers are almost “gaming the system”, it is already hard enough to attract new people to your plugin before you have developers committing readme changes into the recent stable tag, e.g adding a period/removing a period from the end of a sentence. (which, to those unaware, causes their plugin to shoot to the top of the bbPress plugins list almost as if it has just received an update… wherein fact it hasn’t.)

    Not to mention the amount of plugins that are in no way related to bbPress, yet still use the bbPress tag?

    It doesn’t seem like the plugin guidelines are enforced much either, since every single plugin seems to have a boatload (30+) tags attached some of which aren’t even relevant.

    (And to name and shame, here’s one: https://plugins.trac.wordpress.org/changeset?old_path=%2Flogin-page-styler&old=1263429&new_path=%2Flogin-page-styler&new=1263429&sfp_email=&sfph_mail= – most recent change to the stable tag was to remove a period from the readme… really? Note, this plugin has a free and premium version… I wonder why it is being bumped constantly…)

    It is just frustrating to see this going on in all honesty. The WordPress Plugins page doesn’t suffer from this as it doesn’t display the plugins in a list form.

    Robkk
    Moderator
    #167697
    Robkk
    Moderator

    I think there is an issue with the bbp_make_clickable() function that is causing this especially the part that leads to the function _make_url_clickable_cb() in WordPress.

    bbp_make_clickable() is in

    \bbpress\includes\common\formatting.php

    bbp_make_clickable

    _make_url_clickable_cb() is in

    \wp-includes\formatting.php

    _make_url_clickable_cb()

    Will make a trac ticket once I gather the information to write down.

    #167684

    In reply to: New replies first

    Robkk
    Moderator

    @lfeddern

    If I remember correctly I think this allows you sort replies in a topic on a per forum basis.

    https://wordpress.org/plugins/bbpress-sort-topic-replies/

    #167669
    Robkk
    Moderator

    What does the plugin do?
    You can send me the plugin in a zip to my email so I can see what the actual code does, and see if there is a possible fix for it too.

    You can send the plugin to the email listed here.

    Contact

    #167658
    #167655

    In reply to: User

    Pascal Casier
    Moderator

    Hola Sole29,

    I must admit I don’t know Private Content, but from what I can read on their website, they have a ‘wordpress user system sync’. This should sync the users to wordpress.
    Once they are wordpress users, you can grant them rights for bbPress.
    That would be my way to go…

    I would propose to check with Private Content, because I fear it has to come from that side.

    Pascal.

    #167652
    trusso
    Participant

    Site: http://www.levelupsolutionscenter.com
    Theme: ZippyCourses by Social Trigger
    Wordpress: Latest release
    bbforums: 2.5.8 (Latest)

    I have installed the plugin for bbforums. No issues setting it up. I have created a post that I want to remain at the top of the forum. It is titled, Getting Started. I made it ‘sticky’ believing that this would allow it to be there at the top regardless of what others put in the forum.

    When I go in to test as a user who has purchased a course, the user can get to the forum but cannot see the sticky post content. Just the listing in the forum. I set access to participant and open, with automatic membership.

    I read your documentation and created a forum registration page and put in your shortcode.

    Do users need to register with the forum first to see the content of a post?
    If they do and I have the registration page, I can put it in the menu. Is that what I need to do to get registration to people? Is there anything special I need to know to make registration go through and access be granted? Special in setting up the access page?

    Question really is: how does a user of the educational material get to see the forum questions/posts?

    Thank you!

    #167646

    Topic: User

    in forum Plugins
    Sole29
    Participant

    Wordpress: 4.3
    Theme : Bridge 7.5

    Hi bbPress!
    I have a site with two registration types.
    One for instructors user ( by wordpress registration ) the other for Student users (Private content registration – plugin).

    I would like a forum where only registered user can partecipate.

    There is a problema: The Private Content plugin has a registration that is completely different to the WP login system.

    When I login with studente user I can’t reply or create forums.

    The students users haven’t capabilities…

    what do you recommend ?

    #167643
    Thibaut Parent
    Participant

    Hello there.

    I want to use conditionnal tags in order to display some details. The main page (frontpage) of the forum uses a WordPress page but doesn’t keep the content nor the details (SEO details such as meta description).

    I want to add some details (content and meta values). I want to make some conditionnal tags and I need to know how I can do.

    I checked this forum and Google to know if I can use, with an if, is_bbpress or is_frontpage, but no answers solved my problem.

    How can I force anything to be displayed where I want in the main page of the forum? Thanks for the help.

    Regards,

    Thibaut.

    guillaumemolter
    Participant

    An even better solution is to use WordPress built-in return false shortcut, this way you don’t have to create a empty function each time.

    add_filter( 'bbp_get_single_forum_description', '__return_false' );
    add_filter( 'bbp_get_single_topic_description', '__return_false' );
    #167637
    mica123
    Participant

    I’ve just heard from the webhost – there is no caching on the server.
    They asked if I have any caching plugins in WordPress which I don’t have.
    So I am really stuck.

    Pascal Casier
    Moderator

    First of all, a good database/site backup is always a starting point of course.
    Then I suppose you followed the steps for the data cleanup here: https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/ ?

    Is your WordPress still working fine since the cleanup that ‘failed’ ?

    Pascal.

    barbarabax
    Participant

    Hello Pascal, i didn’t test locally so is live environment. BBpress 2.5.8 and wordpress 4.3.1
    We are talking about 2079 discussion with 17.000 replies
    Thanks

    Pascal Casier
    Moderator

    Hi Barbara,

    Is this a life system ? Did it work correctly in your test environment ?
    What version of bbPress and WordPress are you using ?
    How many lines are you talking about ?

    Pascal.

    #167600

    In reply to: BBPress as Intranet?

    Robkk
    Moderator

    Ideally I’d like to see it appear right on the dashboard so when users log in they can see everything. If bbPress can’t do it if anyone knows of a way to do this I’d be happy to hear. thanks!

    THis sounds like some custom development. You made need to hire a developer to try to create this for you. I am not sure if it is possible without basically tearing up the whole plugin, and it will be extremely hard to do.

    bbPress should work in a private community though. I think there is some plugins that can just disallow access to view any pages unless you are member out there in the WordPress repository though that might be helpful. Doing it this way would be much easier to do too.

    #167596
    Robkk
    Moderator

    I think bbPress just uses the code from WordPress since the topic tag clouds code is close to WordPress’s version for regular posts.

    You can see the tag cloud on hover displays the number of topics.

    https://bbpress.org/forums/

    I tried searching what it was, but couldn’t really pinpoint the exact function.

    #167592
    Robkk
    Moderator

    You can use this php Code function instead if you are not using BuddyPress. Make sure to place it in your child themes functions.php file or in a functionality plugin.

    What it does is redirect non-logged in users from see user profile pages to the default WordPress login page.

    You can change the page by editing

    site_url('wp-login.php');

    to something like this if you have a yoursite.com/login page instead.

    site_url('/login/');

    function rkk_restrict_bbp_user_pages() {
    
        if ( ! is_user_logged_in() ) {
    
           if ( bbp_is_single_user() ) {
    
                        $url = site_url('wp-login.php');
    
                            // Send them to the new URL
                        wp_redirect( $url );
    
                        exit;
    	}
        }
    }
    add_action( 'template_redirect', 'rkk_restrict_bbp_user_pages');
    #167589
    Robkk
    Moderator

    To enqueue files in your child theme use get_stylesheet_directory_uri.

    Put the custom login stylesheets into your child theme named style-login.css or whatever you want to call it, and in the function use get_stylesheet_directory_uri instead of template_directory.

    https://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri

    Will check out the other topic in a minute.

    #167583
    bigvibes
    Participant

    Hi, I’ve been researching some tools for creating an intranet within WordPress and one page directed me to bbPress… but the features list doesn’t explain too much so I’d like to ask if anyone knows whether bbPress can be integrated within the backend of my WordPress site. Ideally I’d like to see it appear right on the dashboard so when users log in they can see everything. If bbPress can’t do it if anyone knows of a way to do this I’d be happy to hear. thanks!

Viewing 25 results - 6,551 through 6,575 (of 26,877 total)
Skip to toolbar