Forum Replies Created

Viewing 15 replies - 46 through 60 (of 83 total)
  • Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Luciallo, I’m glad I inspired you on achieving your goals. Thanks for sharing this.

    miquelpontes

    (@miquelpontesgmailcom)

    @cazsdad97 just to share my experience, in my website OPK (https://opistobranquis.info/en) it always loads the references at the end of species records, but at times it is very slow, but it does not hang. Just let it time and it will load. Next time you reload the same page it will be much faster because of cache, even on smartphones.

    I do manage about 25.000 bibliographic references and over 5.000 Zotero becomes extremely slow, so I guess it’s Zotero servers not optimized for this kind of use I do, but it is not about Zotpress…

    The best thing of Zotpress 6 is no need to sync references with Zotero servers (it was a painful process for me in the past), and my only complain for Zotpress 6.0.3 is the ZotpressLib shortcode which is still broken.

    miquelpontes

    (@miquelpontesgmailcom)

    Hi Katie,

    Following your suggestion, I checked for “maxresults” in “ZotpressLib” Help after upgrading Zotpress to 6.0.3 and it still says a “maxresults” maximum value of 100, while I need about 500.

    Despite the “Zotpress” displays results perfectly to my needs (no paging, perfectly sorted by author and so on), ZotpressLib shortcode now (v6.0.3) only shows up one page of unsorted references. I guess this needs further coding…

    About loading time for references, it is indeed slow if they are not loaded into cache, but after they are loaded once, they are displayed quite fast. Are the references loaded in runtime straight from Zotero servers now?

    Thanks for the hard work !

    miquelpontes

    (@miquelpontesgmailcom)

    Hi Katie,

    Multiple term tags and sort order work just fine now (version 6.0.2) Thank you very much !

    However, there is another difference between [zotpress] and [zotpresslib] shortcodes. When I search for “Doto koenneckeri” tag in both shortcodes, they render a different ammount of records, 56 for [zotpress] (without paging) and 50 for [zotpresslib] (with paging) but the second page with the 6 last results does not show up.

    [zotpressLib userid="1246567" sortby="author" order="asc" type="searchbar" minlength="3" searchby="tags" style="entomological-society-of-america" showtags="no" maxresults="500" maxperpage="50"]

    Could there be a problem on the second page if there are only two pages of results?

    Also, I read in the help that “maxresults” parameter is limited to 100 results, can this parameter be overridden? (for instance with value 0 meaning no limit).

    Thank you in advance !

    miquelpontes

    (@miquelpontesgmailcom)

    Hi Katie,

    Since updating to version 6.0.1 the [ZotpressLib] shortcode does not work as intended: I do list my library with a searchbar by tags, and while one word tags do work, two word tags (most of mine) do not render any results:

    [zotpressLib userid="1246567" sortby="author" order="asc" type="searchbar" minlength="3" searchby="tags" style="entomological-society-of-america" showtags="no" maxresults="100" maxperpage="25"]

    Plus “sortby” and “order” parameters do not work in this shortcode either.

    You can test this functionality in the page https://opistobranquis.info/en/0W2RR
    You type “Tritonia” and you obtain an unsorted list of references.
    You type “Tritonia striata” and you obtain “No items found” message.

    Any ideas?

    For your information I do widely use the same parameters (tags, sortby and order) in the [zotpress] shortcode, and they work just fine.

    I find the new version a bit slower than previous versions, but they no longer delay the page load process, as they load and show after the page is displayed, I supose by using Ajax (fine for me).

    Thank you very much for your work and dedication.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Thank you very much for your suggestion Ben. However, it does not seem to work. I have added this style to the CSS file but shortcode output style seems completely unaffected.

    A sample of code (obtained by Chrome’s Element Inspection) renders these classes that actually do not use the intended styling:

    <li class="page_item page-item-12190 current_page_item">
    <a href="https://opistobranquis.info/es/guia/anaspidea/akera-bullata/">Akera bullata</a>
    </li>

    A sample page where this should be seen is: https://opistobranquis.info/en/DFZi1

    Any idea?

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Thank you very much for checking this.

    Yes, after checking with the author of Zotpress plugin, she told me that the problem in admin panel is not related to functions.php and the problem could be with the filters.

    I have not experienced any other problems with Mobile Detector, in fact installing Mobile Detector solved a long time bad CSS misbehaviour of the Jetpack Mobile Theme with my Google Maps implementation, it tinkered with Google CSS and objects displayed in the wrong positions in the map (but only in places to the West of Greenwich meridian…). Using your Mobile plugin solved it all.

    The problem is still happening: If I keep Mobile Detector activated, I cannot perform a Zotpress library import. However, deactivating Mobile Detector allows Zotpress to work flawlessly.

    I will wait for the new version of Mobile Detector, hoping that, being a full rewrite, this incompatibility does not show. That will make me happy.

    Thanks for your time and dedication. Best,

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi, Zotpress plugin does work, but not with all functionality. There is a import option in the Zotpress backend that does not work when Mobile Detector plugin is active. What I do, to date, is deactivate Mobile Detector, use the import option for Zotpress, and reactivate Mobile Detector.

    My guess is that the problem is not related to theme change, but to the content filtering you mentioned.

    Easier way to pinpoint the problem is to install Zotpress and Mobile Detector plugins in a new WordPress installation -of course it needs a Zotero account and a few bibliographic references loaded in Zotero servers to synchronize- then go to Zotpress “Selective import” option, and an error appears instead of the normal functionality of the plugin.

    By debugging the error, there’s some issue about “nonces”, that become unexpectedly “changed” when Mobile Detector is active, otherwise everything works just fine.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi Gunu,

    I manually updated the plugin with the version you provided and IT WORKS (!!) the way you explained.

    It’s not even necessary to “publish” the page/post; by just saving the draft it puts every language content in the proper place, so I can begin to fill contents with no further problems.

    Thank you very much indeed !! qTranslate-X is a great plugin with a great service !!

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi Gunu,

    Thanks for your reply. Yes I’m still insterested on a solution to this problem.

    The installation procedure you state is correct, and we have the same versions of WP (4.1.1) and plugins (qTranslate-X 3.2.9 -not 3.2.9.8- and Easy Content Templates 1.4.3.1). However, I’ve tried to replicate your steps and when I save the post (or page) all populated contents simply disappears. I end up with a blank post (or page).

    I must say I use three languages, and the template is made with them three. I even tried to create a new template (because the one I was using was migrated from previous mqTranslate) but the result is the same.

    I only update the post content, not the title nor excerpt.

    What am I doing wrong ?

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi Maeve,

    Certainly I found a way to do this, it took me a certain ammount of work but it runs quite fine.

    I installed the Short URL plugin by SedLex because it allows me to keep my domain in the short URL (not using anyone else’s domain).

    Then I had to modify the Cite plugin code in file “cite.php”, changing the following functions to add another option called “shortlink”:

    function wpcp_admin() {
        ?>
        <?php wpcp_setting_update_check(); ?>
        <form method="post" action="options.php">
            <?php settings_fields('wpcp_setting'); ?>
            <?php global $wpcp_setting; ?>
            <div class="wpcp-admin">
                <h2><?php _e('Cite Settings', 'cite') ?></h2>
                <p><?php _e('Help readers know how to cite your article correctly. Enter the reference text you wish to appear in the cite box using the editor below. Add the cite box to any page/post using shortcode', 'cite') ?> <code>[cite]</code></p>
                <p><textarea cols="80" rows="5" name="wpcp_setting[setting]" id="wpcp_setting[setting]" class="wpcp-textarea"><?php echo $wpcp_setting[setting]; ?></textarea></p>
                <p class="wpcp-templates-info"><span><?php _e('Available templates tags:', 'cite') ?></span><br>
                  {author} - <?php _e('the post/page author','cite') ?><br>
                  {title} - <?php _e('the title of your post/page', 'cite') ?><br>
                  {sitename} - <?php _e('your site name taken from Settings > General', 'cite') ?><br>
                  {publication_date} - <?php _e('date the page/post was published', 'cite') ?><br>
                  {permalink} - <?php _e('the permalink of the page/post being accessed', 'cite') ?><br>
                  {shortlink} - <?php _e('the shortlink of the page/post being accessed', 'cite') ?><br>
                  {date} - <?php _e('the current date, if "date accessed" is desired', 'cite') ?><br>
                  <?php _e('Also, you may insert words, HTML tags, and punctuation.', 'cite') ?><br><br>
                  <b><?php _e('Samples', 'cite') ?></b> (<?php _e('similar to', 'cite') ?> <a href="https://www.chicagomanualofstyle.org/tools_citationguide.html" target="_blank"><?php _e('Chicago-style notes', 'cite') ?></a>):<br>
                  <?php _e('Blog post:', 'cite') ?> {author}, "{title}," {sitename}, {publication_date}, {permalink}.<br>
                  <?php _e('Book chapter:', 'cite') ?> {author}, "{title}," in {sitename}, ed. Jack Dougherty (Ann Arbor: Michigan Publishing, 2014), {permalink}.</p>
                <input type="hidden" name="wpcp_setting[update]" value="<?php _e('UPDATED', 'cite') ?>" />
                <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'cite') ?>" />
        </form>
        </div>
        <?php
    }

    and

    function cite_shortcode() {
        global $wpcp_setting;
    
        // Getting admin preferred date format for current date
    	if(!function_exists('displayTodaysDate')){
        function displayTodaysDate() {
            return date_i18n(get_option('date_format'));
    	}
    	}
    
        $find_string = array('{author}','{sitename}', '{title}', '{date}', '{publication_date}', '{permalink}', '{shortlink}');
        $replace_string = array(get_the_author(), get_bloginfo('name'), get_the_title(), displayTodaysDate(), get_the_date(), '<a href="' . get_permalink() . '">' . get_permalink() . '</a>', '<a href="' . wp_get_shortlink(get_the_ID()) . '">' . wp_get_shortlink(get_the_ID()) . '</a>');
        $edited_setting = str_replace($find_string, $replace_string, $wpcp_setting[setting]);
        return '<div class="wpcp">' . $edited_setting . '</div>';
    }

    I have not tried this with other shortlink plugins, but I think my changes could work with any shortlink plugin.because I use a standard WP function “wp_get_shortlink()”.

    I hope this is useful for you all.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Hi John. Thank you for your quick answer.

    Since you posted your answer and I tried to put it into practice, a new version of qTranslate-X was released. To my understanding, the version you asked me to try in your answer (downloaded from GitHub) is the general release now available (version 3.1 that consolidates many changes and fixes).

    Well, I installed this version 3.1 and the Template plugin malfunctions the very same way: it does not copy the content template properly. Instead of copying every language portion of the template in the corresponding language portion of the new post, it copies everything (the full template content) on the active language portion of the post only.

    It is as if the template plugin pastes the correct template contents to the post, but qTranslate fails to process the pasted template content BEFORE actually pasting it into the editor. I don’t think the issue happens only with qTranslate-X, but the Template plugin may need adjustments too for compatibility.

    Well, if I click another language button everything is lost, but if instead I switch the editor from visual to text mode, where I see the inserted code is more or less what it has to be, every language portion is separated by the correct markers, before they were of the type <!–:en–> and since the last qTranslateX update they are of the type [:en], finishing with a [:].

    Okay, if I delete the language markers [:en] and so on, then cut and paste every language portion of the template onto the proper language portion of the new post, and everything runs as expected from then on, but I need this manual action or I can’t use the templates.

    To reproduce the problem:

    * install WordPress version 4.1.1 (last one)
    * install qTranslateX version 3.1 (last one)
    * install Easy Content Templates version 1.4.3.1 (last one)
    * Create a template with at least two languages.
    * Create a new post, then use a template to “populate” the post (no need to type anything, the problem becomes obvious).

    I have not found another Content Template plugin that does what I want and is compatible with qTranslateX, but I’m open to options. Any ideas?

    Thank you for your time !

    miquelpontes

    (@miquelpontesgmailcom)

    I have just migrated my website (https://opistobranquis.info/en) from mqTranslate to qTranslateX and I also had to change “qtrans” calls with “qtranxf” call in every custom PHP code I had, I also had to put the new widget to choose languages on the frontend, but once this was done, everything worked just fine.

    Thank you very much !

    miquelpontes

    (@miquelpontesgmailcom)

    Hi Katie. Since updating to version 5.4 of Zotpress, in my website (https://opistobranquis.info/en) running WordPress 4.1, I cannot perform a full import: the process stalls always when it reaches the 950-1000 mark and displays an error similar to a timeout. Selective import works, but not the full import.

    By installing an older version of the plugin (5.2.10 or 5.3.3) I can sync again the whole citation library (about 24000 items) without any problems.

    Any ideas?

    Thank you very much in advance.

    Thread Starter miquelpontes

    (@miquelpontesgmailcom)

    Thank you for considering my proposal. That would render your plugin as near to perfection as possible. I found no other plugin with the same ammount of features and customization parameters. Best. Miquel

Viewing 15 replies - 46 through 60 (of 83 total)