Forum Replies Created

Viewing 15 replies - 16 through 30 (of 58 total)
  • Thread Starter alby54

    (@alby54)

    I did…..but page is still empty. How about if I get in touch with you privately and give you access to my testing site….

    Thread Starter alby54

    (@alby54)

    I checked everything over many times … all is correct as instructed; I guess there might be some server related problem since I noticed, when I was originally creating the custom groups, that I could not erase the default ones.

    Thread Starter alby54

    (@alby54)

    I read the thread you mentioned but none of the solutions (except those about modifying the core files) worked. So I tried using a plugin (Swiss Knife) which partially solved the problem. Also, it’s kind of weird but putting .mo and .po file in my child folder following the WC structure didn’t do anything at all on the other hand I could edit few other parts (not in the checkout billing & shipping order) by putting those files in a woocommerce folder inside the main languages folder of WP.

    Sounds like a CSS issue… have you tried switching back to a default theme to see if it works? In that case, make a safe-copy of your actual child css and comment off all the style strings related to the single product page. Then enable them one at a time till you find the one that’s causing the problem.

    Thread Starter alby54

    (@alby54)

    Pietrom, I would definetely like to help you out as you wish … but, this is a support forum for a plugin “out of the box” and this issue is a bit over the line. Although, please find what you need right here

    script

    and place it in the post container page

    Alberto

    Thread Starter alby54

    (@alby54)

    OK, let’s say that you have 2 wp-users one called blue and the other red. Create a field in the Participants DB called wp-user (just an example…use the name you like) and fill it in each record with the value blue or red as needed. Then create 2 posts. Each one will be called with the username, will hold the pdb-list shortcode filtered by the field wp-user.
    Example – for blue you will create a post named blue, and the shortcode will be [pdb_list filter=’wp-user=blue’].

    Then you will have a common container page to hold all the posts (you can use a plugin to list posts of a certain category If you like).
    When blue views the list he will access only the records that will have the wp-user field value=blue and same thing will be for red.

    One more thing… this is how it works, but to make it secure you will have to sign-in your wp-users at least as authors (not subscribers) and assign each post to the proper user as author as well. Then use a script in the container page that compares the currentuser_ID with the author_ID, if they match the list will be viewed otherwise the user will be redirected elsewhere.

    Alberto

    alby54

    (@alby54)

    Actually it happened to me as well, but I solved the problem adding excerpt_overwrite=yes to the shortcode…. don’t know if it might help in your case though.

    I guess it would be .pdb-single dl {} where you can set padding, margin and line-height accordingly.

    Thread Starter alby54

    (@alby54)

    Thank you Xnau for your answer… I think I will stick to php since my goal is not to hide the date or the checkbox state which both must be visible to everyone but to avoid the checkbox to be re-edited after being checked. I more or less already figured out how to achieve this by dropping some code in the record-default template using an if/else conditional statement using readonly=true…. what I don’t know how to though, is create the correct php code to trigger the date insertion.

    Thread Starter alby54

    (@alby54)

    Yes, that’s the first thing I did……with no change. I found a workaround though by checking off the role ‘Author’ in ‘Other Roles’.

    You could create wp-users as customers, a DB field for the user_name and a post for each of them. In the posts put the necessary infos about the customer and place the pdb_list shortcode filterd by the user_name. When you recall the posts in one page (no excerpts) you will have the name of the customer as title, the info you need and the list of his servers. Then if one page is not enough to hold all the data, you can assign different categories to the posts and have them organised on different pages as you wish.

    Alberto

    Thread Starter alby54

    (@alby54)

    OK…..I’ve found a code that works.

    global $current_user;
    get_currentuserinfo();
       if ( $current_user->user_gender == 'Male' ) {
          echo "Do this";
       }
       elseif ( $current_user->user_gender == 'Female' ) {
          echo "Do that";
       }

    Thanks anyway

    Thread Starter alby54

    (@alby54)

    Thank you xnau, it works like a charm!!

    Thread Starter alby54

    (@alby54)

    You can modify the code and create a class for the title
    $lcp_display_output .= '<h2 class="entry-title">' . $this->get_post_title($single) . '</h2>';
    In this example you will need to style h2.entry-title with the attributes you want and that’s something you can add into your theme css sheet. Same thing can be done with paragraph, thumbnail and “more…”

    Thread Starter alby54

    (@alby54)

    Yes the title links to the relative post. When I wrote the previous msg I didn’t check the script with more than one post and I didn’t realize that it wouldn’t have worked that way. I, anyway, managed to get what I was after.. by adding a template file in my child folder/ list-category-posts/customlist.php
    In the customlist.php I added as follows:

    <?php
    $lcp_display_output = '';
    $lcp_display_output .= '<ul class="lcp_catlist">';
    foreach ($this->catlist->get_categories_posts() as $single):
    $lcp_display_output .= '<li>';
    $lcp_display_output .= $this->get_post_title($single);
    $lcp_display_output .= $this->get_thumbnail($single);
    $lcp_display_output .= $this->get_excerpt($single, 'p', 'your p style');
    $lcp_display_output .= '<a class="continua" href="'.get_permalink($single->ID).'"><em>Continua a leggere...</em></a>';
    $lcp_display_output .= '</li>';
    endforeach;
    $lcp_display_output .= '</ul>';
    $this->lcp_output = $lcp_display_output;

    without the closing php code. So I was able to get a link to every single post and got some extra styling also.
    I added the template=customlist” into the shortcode and that did it.
    I still think that if you will provide an option like this directly from the shortcode.. it would be very nice.
    Thx a lot for your kind answer and for the great plugin.

Viewing 15 replies - 16 through 30 (of 58 total)