grizli12
Forum Replies Created
-
Forum: Plugins
In reply to: [CalPress Calendar] CalPress Widget not drawing correctlyI’m glad re-install helped. Most likely you had different revision, so something didn’t click together, and after update it went to latest revision which was compatible with the files I sent.
Forum: Plugins
In reply to: [CalPress Calendar] CalPress Widget not drawing correctlySure, I emailed them to you.
They revert back to the logic of previous version, where it queried the database for events directly, sorted them and returned the list in old fashioned way. Second file is just a template that displays it – has to be reverted as well, to accept old style list.
I have no introduced anything myself here, just edited files with SVN changes to exactly as it was (at least tried to).
If it does not work for you – return newer files.Make sure to back the files you currently have first! Before applying this – just in case!
Forum: Plugins
In reply to: [CalPress Calendar] CalPress Widget not drawing correctlyIf you don’t want to wait for an update (I couldn’t any longer lol) and need agenda widget to work as before, replace contents of these 2 files with following:
wp-content/plugins/calpress-event-calendar/app/view/class-calp-agenda-widget.php
https://binbox.io/t3i2H#u1F4xGqmwp-content/plugins/calpress-event-calendar/app/helper/class-calp-calendar-helper.php
https://binbox.io/XtKix#k6CC0qHUForum: Plugins
In reply to: [CalPress Calendar] Can I regrett an update of Calpress?If you don’t want to wait for an update (I couldn’t any longer lol) and need agenda widget to work as before, replace contents of these 2 files with following:
wp-content/plugins/calpress-event-calendar/app/view/class-calp-agenda-widget.php
https://binbox.io/t3i2H#u1F4xGqmwp-content/plugins/calpress-event-calendar/app/helper/class-calp-calendar-helper.php
https://binbox.io/XtKix#k6CC0qHUForum: Plugins
In reply to: [NextGEN Public Uploader] Need to be able to upload multiple imagesI’ve extended the change to have multiple lines for each file so I can see what is being uploaded and it will only display single message and send single email for the upload:
Assuming your line 205 looks like this:
if (current_user_can('level_'. $npu_selected_user_role . '') || get_option('npu_user_role_select') == 99) {
Replace everything between it andif (!$strDetailsPage) {
below, including them, to:if (current_user_can('level_'. $npu_selected_user_role . '') || get_option('npu_user_role_select') == 99) { $strOutput .= "<div id=\"uploadimage\">"; $strOutput .= "<script type=\"text/javascript\">"; $strOutput .= 'jQuery(function($){$("document").ready(function(){$("#addBtn").click(function() { var ncnt = parseInt($("#lastcnt").val())+1;var ninp=$("<br/><input type=\"file\" name=\"imagefiles[]\" id=\"imagefiles"+ncnt+"\" />");$("#UploaderDiv").append(ninp); });});});'; $strOutput .= "</script>"; $strOutput .= "\n\t<form name=\"uploadimage\" id=\"uploadimage_form\" method=\"POST\" enctype=\"multipart/form-data\" accept-charset=\"utf-8\" >"; $strOutput .= wp_nonce_field('ngg_addgallery', '_wpnonce', true , false); $strOutput .= "\n\t<div id=\"UploaderDiv\" class=\"uploader\"><input type=\"hidden\" id=\"lastcnt\" value=\"1\" />"; $strOutput .= "\n\t<input type=\"file\" name=\"imagefiles[]\" id=\"imagefiles1\" />"; $strOutput .= "\n</div><br/><input type=\"button\" value=\"Add picture\" id=\"addBtn\">"; $strOutput .= "\n<input type=\"hidden\" name=\"galleryselect\" value=\"{$gal_id}\">"; if (!$strDetailsPage) {
The same thing on line 277:
if (current_user_can('level_'. $npu_selected_user_role . '') || get_option('npu_user_role_select') == 99) { $strOutput .= "<div id=\"uploadimage\">"; $strOutput .= "<script type=\"text/javascript\">"; $strOutput .= 'jQuery(function($){$("document").ready(function(){$("#addBtn").click(function() { var ncnt = parseInt($("#lastcnt").val())+1;var ninp=$("<br/><input type=\"file\" name=\"imagefiles[]\" id=\"imagefiles"+ncnt+"\" />");$("#UploaderDiv").append(ninp); });});});'; $strOutput .= "</script>"; $strOutput .= "\n\t<form name=\"uploadimage_widget\" id=\"uploadimage_form_widget\" method=\"POST\" enctype=\"multipart/form-data\" accept-charset=\"utf-8\" >"; $strOutput .= wp_nonce_field('ngg_addgallery', '_wpnonce', true , false); $strOutput .= "\n\t<div id=\"UploaderDiv\" class=\"uploader\"><input type=\"hidden\" id=\"lastcnt\" value=\"1\" />"; $strOutput .= "\n\t<input type=\"file\" name=\"imagefiles[]\" id=\"imagefiles1\"/>"; $strOutput .= "\n</div><br/><input type=\"button\" value=\"Add picture\" id=\"addBtn\">"; $strOutput .= "\n<input type=\"hidden\" name=\"galleryselect\" value=\"{$gal_id}\">"; if (!$strDetailsPage) {
Then find
if(get_option('npu_upload_success')) {
around line 341 and replace it and everything in between to and includingif (is_array($this->arrImageIds) && count($this->arrImageIds) > 0) {
with:if(get_option('npu_upload_success')) { if ($this->arrImageMsg[0] != get_option('npu_upload_success')){ $this->arrImageMsg[] = get_option('npu_upload_success'); $this->sendEmail();} } else { $this->arrImageMsg[] = "Thank you! Your image has been submitted and is pending review."; $this->sendEmail(); } } if (is_array($this->arrImageIds) && count($this->arrImageIds) > 0) {
If something is not working, here is an entire npu-upload.php you can just replace yours with:
https://binbox.io/q3o54#xHeBQEftForum: Plugins
In reply to: [CalPress Calendar] Can I regrett an update of Calpress?Is there an ETA when an update would be available?
ThanksForum: Plugins
In reply to: [CalPress Calendar] Can I regrett an update of Calpress?Great news Don. Thanks!
Forum: Plugins
In reply to: [CalPress Calendar] Can I regrett an update of Calpress?I also am thinking about downgrading back because of this.
Upcoming Events is useless if nothing going forward beyond today is shown. At least for us ??Is there a change can be made directly somewhere in 1.5.0.1 in SQL query to change this back? It’s a lot of code to dig through to find it. If you could point it out – that would be great!