cyclonecode
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom PHP Settings] Locked Out!closing ticket due to lack of response
Forum: Plugins
In reply to: [Custom PHP Settings] how can I increase my uploadclosing ticket due to lack of response
Forum: Plugins
In reply to: [Custom PHP Settings] I’m locked out of my siteclosing ticket due to lack of response
Forum: Plugins
In reply to: [Cision Block] Limit words/characters in feed?You should be able to change the word count used for excerpt by copying the template located under
cision-block/src/Frontend/templates/cision-block.phpinto the root of your active theme and then change the following line, setting your desired word count:<?php echo wp_trim_words(esc_html($item->Intro ? $item->Intro : $item->Body), 25); ?>The above changes the word count for the excerpt to 25 instead of the default of 55.
I also have an upcoming update for the plugin which makes it possible to change this from the configuration page.
Forum: Plugins
In reply to: [Cision Block] Can’t set max count higher than 100Hello. Right now it is only possible to fetch the latest 100 releases using the plugin. I have a couple of branches which I am currently working on to support fetching the entire feed, but since this is a large and relative complex update it will take some time before it is being implemented.
I am also thinking about perhaps creating a premium version which has this functionality, which then would make it possible for me to spend more time working on this.Forum: Plugins
In reply to: [Cision Block] Intro not displaying in postOh this is a single post page. Looking on the code it only displays the Title and Body by default.
<header class="entry-header has-text-align-center header-footer-group"> <div class="entry-header-inner section-inner medium"> <?php echo '<h1 class="entry-title">' . $CisionItem->Title . '</h1>'; ?> </div> </header> <div class="post-inner thin"> <div class="entry-content"> <p><?php echo $CisionItem->HtmlBody; ?></p> </div><!-- .entry-content --> </div>The easiest fix for this would be to just copy the template into your current themes folder and modify it to something like this:
<header class="entry-header has-text-align-center header-footer-group"> <div class="entry-header-inner section-inner medium"> <?php echo '<h1 class="entry-title">' . $CisionItem->Title . '</h1>'; ?> </div> </header> <div class="post-inner thin"> <div class="entry-content"> <p><?php echo $CisionItem->Intro; ?></p> <p><?php echo $CisionItem->HtmlBody; ?></p> </div><!-- .entry-content --> </div>The template can be found under:
wp-content/plugins/cision-block/src/Frontend/templates/cision-block-post.php.Forum: Plugins
In reply to: [Cision Block] Intro not displaying in postHm, best would be if you could email me you current plugin configuration and I will try to see what is going on, you can use cyclonecode@gmail.com
My best guess is that the defaults somehow is set incorrectly.Regards,
KristerForum: Plugins
In reply to: [Custom PHP Settings] how can I increase my uploadWhen it is displayed in red it means that it is changed from the default value, which would be the case if you have changed it in the editor.
Which values are displayed for the memory_limit settings in the table and what value are you trying to add using the editor?Forum: Plugins
In reply to: [Cision Block] Slider?I am adding a solution to use a bxslider for the latest three releases for a block with an id equal to ‘frontpage’.
1. Load needed script and style in your function.php:
add_action('wp_enqueue_scripts', function() { wp_enqueue_script('bxscript', 'https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.15/jquery.bxslider.min.js', array ('jquery'), 1.1, true); wp_enqueue_style('bxslider', 'https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.15/jquery.bxslider.min.css'); });2. Override the template/cision-block.php template to render a block differently then others:
<?php if (count($cision_feed)) : ?> <?php if ($id === 'frontpage'): ?> <ul class="bxslider"> <?php foreach ($cision_feed as $item): ?> <li> <h2><?php echo esc_html($item->Title); ?></h2> <time><?php echo date($options['date_format'], $item->PublishDate); ?></time> <p> <?php if (isset($item->Images[0])) : ?> <span class="cision-feed-item-media"> <img src="<?php echo esc_url($item->Images[0]->DownloadUrl); ?>" alt="<?php echo esc_html($item->Images[0]->Description); ?>" title="<?php echo esc_html($item->Images[0]->Title); ?>" /> </span> <?php endif; ?> <?php echo wp_trim_words(esc_html($item->Intro ? $item->Intro : $item->Body)); ?> </p> <?php if (isset($item->CisionWireUrl, $readmore)) : ?> <a href="<?php echo esc_url($item->CisionWireUrl); ?>" target="<?php echo $item->LinkTarget; ?>" ><?php _e($readmore, CISION_BLOCK_TEXTDOMAIN); ?></a> <?php endif; ?> </li> <?php endforeach; ?> </ul> <script> jQuery(document).ready(function() { jQuery('.bxslider').bxSlider({}); }); </script> <?php else: ?> <section<?php echo $wrapper_attributes; ?>> <?php echo $prefix; ?> <?php foreach ($cision_feed as $item) : ?> <article<?php echo $attributes; ?>> <h2><?php echo esc_html($item->Title); ?></h2> <time><?php echo date($options['date_format'], $item->PublishDate); ?></time> <p> <?php if (isset($item->Images[0])) : ?> <span class="cision-feed-item-media"> <img src="<?php echo esc_url($item->Images[0]->DownloadUrl); ?>" alt="<?php echo esc_html($item->Images[0]->Description); ?>" title="<?php echo esc_html($item->Images[0]->Title); ?>" /> </span> <?php endif; ?> <?php echo wp_trim_words(esc_html($item->Intro ? $item->Intro : $item->Body)); ?> </p> <?php if (isset($item->CisionWireUrl, $readmore)) : ?> <a href="<?php echo esc_url($item->CisionWireUrl); ?>" target="<?php echo $item->LinkTarget; ?>" ><?php _e($readmore, CISION_BLOCK_TEXTDOMAIN); ?></a> <?php endif; ?> </article> <?php endforeach; ?> <?php echo $pager; ?> <?php echo $suffix; ?> </section> <?php endif; ?> <?php endif; ?>3. Add shortcode in the start page of your theme:
echo do_shortcode('[cision-block id=frontpage items_per_page=0 count=3]');Notice that you need to set items_per_page=0 to avoid using a pager.
Forum: Plugins
In reply to: [Custom PHP Settings] I’m locked out of my siteHello
When you are saying “locked out” what does that mean? Is the site not accessible at all or can you not log in to the administration.
Can you check if the following solution works for you:
https://wordpress.org/support/topic/locked-out-138/
I am thinking that this probably has something do to with the permissions on your htaccess file.
Forum: Plugins
In reply to: [Custom PHP Settings] how can I increase my uploadIf you remove your custom setting from the editor for
upload_max_filesizeand save and then if it still is displayed as red in the table, then it is modified somewhere else and this setting might take precedence over the one you are setting. Check if the value is set in perhaps a customphp.inifile or.htaccessor somewhere else in your installation.Forum: Plugins
In reply to: [Custom PHP Settings] Locked Out!Hello
This seems very strange. If nothing was changed inside the
.htaccessfile? Could be some issue with permission on the actual file I guess.Do you have (S)FTP access to the server and are you able to access the
.htaccessfile? In this case try removing everything between the:# BEGIN CUSTOM PHP SETTINGS php_value variables_order EPCS <-- Remove # END CUSTOM PHP SETTINGSif the section exists and then re-save your
.htaccessfile and try again accessing the site again.If you would like help with this you could also send me a private email on cyclonecode@gmail.com
Regards,
Krister@srajkrish Glad you solved it, but I would really appreciate if you could answer my questions above since it perhaps could help me improve the plugin and stop this from happen to other users in the future. It would be so awesome if I could setup an environment were I could actually reproduce this error so I can fix it in the next release.
Forum: Plugins
In reply to: [Cision Block] InstallationshjälpJag stänger detta ärende då jag antar att detta nu är löst.
What permission did you set and what hosting provider are you using? You should be able to just set the upload_max_filesize from the configuration page, but it seems like something in your environment forces the permission to be 0755 while in most cases 644 should be enough. I need to know more about your environment to be able to make a small patch for the plugin to support this.
Please give me as much information as possible, for instance:1. What file permission did you set to make the site accessible again?
2. What hosting provider are you using.
3. Do you know what web server you are running?
4. What WordPress version are you running?
5. What version of custom-php-settings are you using?
6. Can you give me the URL to your site?Since the plugin does not seem to work for you right now, you could try to add the
php_value upload_max_filesize 256M(or what limit you would like to set) directly into you .htaccess file and see if this works.Regards, Krister