Forum Replies Created

Viewing 15 replies - 661 through 675 (of 681 total)
  • I’m sorry, i posted in wrong thread by mistake. In here I wanted to post a link to this solution.
    The message above was for another thread. ??

    Tried this and it doesn’t work for me. are you sure you didn’t omit anything? Could you show me a working example? For further reference, I tested this in Chrome 28.0.1500.95 m. I’m updating it as I write to the latest version, and I’ll let you know if it made a difference.

    Thread Starter acub

    (@acub)

    @nikeo: Is there some documentation regarding the use of template files/theme’s functions/params in order to display a custom list of posts making use of the awesome theme layout (alternating image bubbles, display if icons in front of post titles, number of comments bubble, etc.) ?

    Do I need to change/declare some globals before the loop is run or during it?

    Thank you.

    In case I haven’t made my scope clear, I want to display the latest posts on first page exactly as they are shown in the posts page. Eventually, I will probably keep only a featured list of posts on first page, but getting a custom list of posts from wordpress is simple. All I would like to know now is how to make use of the theme template/layout.

    Thread Starter acub

    (@acub)

    It does, but it doesn’t show them exactly as the theme does. The circle images are not displayed at all and comment links are not styled as in the theme. I guess I have to build a custom template file for it. Was hoping this won’t be necessary.

    Thank you for your time.

    I had your problem too.

    The solution I found was to modify theme’s files as follows, thus losing the possibility of upgrading the theme, but I was planning to freeze updates anyway on that website:
    – limitations for slider text, description and button are found in wp-content/themes/customizr/inc/admin/class-admin-meta_boxes.php

    Having three languages for my site I tripled the numbers. Use Ctrl+F in that file and replace all 250’s with 750 (or 500 if you have 2 langs) and the 80’s with 240 (or 160). Or just comment out the check on limitations altogether, using /* and */, like this:

    /*        if (strlen( $text_value) > 250) {
              $text_value = substr( $text_value,0,strpos( $text_value, ' ' ,250));
              $text_value = $text_value . ' ...';
            }
            else {
              $text_value = $text_value;
            }
    */

    Of course, I don’t recommend modifying theme files to anyone, but it’s a solution, since the theme developers have put a limitation without the possibility to disable it. Disabling length limitations on slider elements would be a great addition to theme options panel.

    As to translating the slider content, using language shortcodes (e.g.: [:en]) I have managed to make them work by wrapping $title, $text and $button_link variables content into __() function (which gets parsed by qtranslate) in wp-content/themes/customizr/parts/class-header-slider.php (lines 188, 189 and 191 in current version) like this:

    $title              = esc_attr(__(get_post_meta( $id, $key = 'slide_title_key' , $single = true )));
    $text               = esc_html(__(get_post_meta( $id, $key = 'slide_text_key' , $single = true )));
    $button_text        = esc_attr(__(get_post_meta( $id, $key = 'slide_button_key' , $single = true )));

    Cheers!

    Thread Starter acub

    (@acub)

    Thank you for explaining that to me. There’s only one more thing I’d like to know. If more than one plugin uses the same class, are there going to be problems? Or each will have their own instance?

    Thread Starter acub

    (@acub)

    Yes, that’s exactly what I needed. Thank you.
    I’ll also add a condition before it to only change the links for users that cannot edit other users.

    Thank you very much.

    As for added functionality, well… it’s always welcome ??
    I’d put a link=”” parameter to the shortcode with possible values of all cases in amr_format_user_cell function, eventually adding another param of editlinks=”” with values of 0 or 1 making links immune (or not) to change for users with edit user capabilities.

    And filters would be nice, indeed.

    Thank you for sharing your work.

    I’ve done something similar but without animation using DD’s ET plugin.

    However, you will have two limitations:
    1. It’s not animated. It’s plain toggle between “display: none” and “display: block”;
    2. You can’t have nested collapsing paragraphs. There is, however, a workaround this: if you really need nested level of collapsing content you can copy another instance of the plugin and replace in the second instance every ddet with ddset and you will need to organize your content like:
    [DDET Parent 1]
    Parent 1 content
    [DDSET Child 1.1] Child 1.1 content[/DDSET]
    [DDSET Child 1.2] Child 1.2 content[/DDSET]

    [/DDET]
    [DDET Parent 2] Parent 2 content… [/DDET]

    Not very clean or elegant, but it does the job.
    You still have to figure out how to expand all and colapse all though.
    Your best bet would be writing to DD for that.

    I hope this helped.

    It only works with “excerpt=yes” if the posts have saved excerpts. It does not automatically generate excerpts from the first X words of the post if the excerpt field is empty.
    I agree that it would be very nice to see the auto-excerpt function in future versions of this plugin.

    I found the source of the problem (in my case) and I thought I’d share it with others as well as report it here.

    Through trial and error I found out that the error that was killing the server was not when installing qTranslate, but when enabling Romanian translation.

    It turned out the error was somewhere in the ro_RO.mo file included with WordPress 2.8.6.

    I replaced the translation file with my own (I would have done that anyway as the default Romanian translation does not stand up to the quality standards of WP, to say the least) and everything worked out just fine.

    For the ones having the same problem I did, feel free to download my ro_RO.mo file. If you find this translation too informal, I’ve also made a more formal one for a governmental website I’ve built.

    For the ones who have similar trouble with other .mo files, I recommend searching for other versions of their language file or finding out how to generate the .po file from the existing .mo and than recompile the .mo, as this might do the trick.

    I’m having the same trouble with a 2.8.6 install.
    The site was built on a sub-domain and now I’m trying to port it to the client’s domain.
    I was able to activate all plug-ins, load the db content but i can’t activate the language.
    I even tried different .htaccess files from different domains where WP works perfectly, one of which is hosted by the same company as my client’s website.

    Any thoughts on this?

    Thanks.

    actually i found a solution for this. it adds a filter on the query only for your edit.php page in the admin area.

    here it is:
    manage your posts only

    if you have editors on your website you probably want them to see others’ posts. so you will need to edit the function in manage_your_posts_only.php to look like this:

    function mypo_parse_query_useronly( $wp_query ) {
        if ( esc_url( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) {
    		global $current_user;
    		get_currentuserinfo();
    		if (($current_user->user_level) < 7) {
                $wp_query->set( 'author', $current_user->id );
            }
        }
    }

    I also changed strpos () from the original plugin file to esc_url as suggested here

    There are a number of alternatives to do this through CSS, but only to some extent. You can just edit admin.css or you could use the adMinimize plugin (like I do) which allows the option of setting various classes and ids throughout the admin panels the “display: none” CSS property.

    However, a user who wants to bypass this will be able to access the hidden options by using any “web developer” tool and viewing the admin page with CSS disabled. Some modern browsers don’t even need an add-on for that.

    Also, there is another annoying issue with setting the .author-other class to display:none. It will only make those articles not show in the list, but it will still count them and the number of posts will still be visible.

    You’re probably thinking: “Big deal. So what’t the problem? It’s way better than seeing them!”

    Well…, not necessarily. Because WP still shows only 20 articles per page visible or not visible. So one might find two or more blank pages after coming back from holidays if the other authors posted 40-50 articles while they were gone. Now blank pages in the edit posts pane is annoying and certainly has a hacky feeling about it.

    I think we need a better solution.

    Anyone?

    Thread Starter acub

    (@acub)

    No problem. Thanks for the support.

    if you’re still interested, I made something similar today. but i’ve done it by modifying theme files, as my theme was overriding WordPress original comments.
    you need to find in your theme the place where your link gets placed in the comment and wrap it between 2 lines of code:
    this one goes before:
    <?php if (current_user_can('moderate_comments')) : ?>

    and this one goes after:
    <?php endif;?>

    however, this is only a hack. it prevents the display of the link to comment editing page.
    if a user is smart enough to duplicate the exact address of that page (with action name and comment number) he might be able to modify the comment. not very likely, but possible.

Viewing 15 replies - 661 through 675 (of 681 total)