Support Forum

File Uploader 'Start Upload' button not working

AC Adam Crase
Adam Crase
Member

Hello

I have searched the forum and can not find anything except Christine’s topic: https://simple-press.com/support-forum/sp5-general-topics/how-to-enable-attachments/#p154256. 

This confirmed that I have done what I am supposed to do.

The File Upload plugin installed without a problem. I set permissions for members to upload files. When I hover over ‘Add Files’ a type of button appears and I am able to browse to a file without a problem – I can also drag and drop. The file shows in the ‘Select Files’ queue. When I hover over ‘Start Upload’ I get the hand icon but no button appears and nothing happens… at all.

I see on your Attachments that, once a file is queued, it starts to count the queued files. This does not happen for my site.

I am using Simple:Press on WordPress with WeeklyNews Theme. The SP plugins I am using so far are TinyMCE, Admin Bar, and File Uploader with Plupload.

Can you please advise.

Kind regards

…. Edit: I have attached a screenshot of what I get.Screenshot-uploadFile.jpg

14 Answers

New Answer

KV kvr28
kvr28
Member

Hey Adam, I was using weekly news at one point and found a lot of jquery issues with the theme. I had contacted Daniel about the exact same issue and gave me this bit of code to add to to custom JS code footer under advanced settings theme options

(function($) {
var btn = $.fn.button.noConflict() // reverts $.fn.button to jqueryui btn
$.fn.btn = btn // assigns bootstrap button functionality to $.fn.btn
})(jQuery);

also here are some snippets that I added to the custom css to work better with simple-press

these codes help the quote look better

#spMainContainer blockquote:before,
#spMainContainer blockquote:after,
.article-post #spMainContainer blockquote:before,
.article-post #spMainContainer blockquote:after {
content: “”;
}
#spMainContainer #spMarkRead:target,
#spMainContainer #spLoginForm:target,
#spMainContainer #spSearchForm:target {
top: 0px;
width: 99.5%;
height: auto;
margin: 0 3px 5px 0;
z-index: 9999;
position: absolute!important;
display: block;
}

this will help video display better 

.spPostContent iframe {
max-width: 640px !important;
max-height: 360px !important;
}

but I was still getting a ton of jquery conflict with the theme so I had to use a different one, it really is a beautiful theme.

Here is the thread I made here on the subject, good luck

https://simple-press.com/support-forum/sp5-general-topics/question-on-a-new-theme-im-testing/

KV kvr28
kvr28
Member

here is a list of all the errors I am getting with the theme

TypeError: Cannot read property ‘createDocumentFragment’ of null
#11 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:15664
#10 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:15664 db()
#9 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:19083 Function.m.extend.buildFragment()
#8 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:22706 m.fn.extend.domManip()
#7 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:21072 m.fn.extend.after()
#6 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:23434 m.fn.(anonymous function) [as insertAfter]()
#5 wp-content/themes/weeklynews/assets/js/bootstrap.min.js?ver=2.4.2:6:17641 b.show()
#4wp-content/themes/weeklynews/assets/js/bootstrap.min.js?ver=2.4.2:6:16749 b.enter()
#3 wp-includes/js/jquery/jquery.js?ver=1.11.2:2:3959 HTMLDocument.m.isFunction.e()
#2 wp-includes/js/jquery/jquery.js?ver=1.11.2:3:12574 HTMLDocument.m.event.special.(anonymous function).handle()
#1wp-includes/js/jquery/jquery.js?ver=1.11.2:3:8549 HTMLDocument.m.event.dispatch()

YS Yellow Swordfish
Yellow Swordfish
Member

We did actually put that piece of correcting code into the core SP so you should have it unless you are using an older version of SP prior to its inclusion.

But yes – eradicating those errors would be worthwhile if you can trace where they are coming from and the main cause of this particular problem, Bootstrap – IS being loaded I see.

AC Adam Crase
Adam Crase
Member

Thank you both for your replies.

I have forwarded the information to Daniel to see if he has addressed this since then. A point in the right direction is always helpful. I will post the progress.

AC Adam Crase
Adam Crase
Member

Daniel advised me to:

1. Add this code to “Theme Options > Advanced Settings > Custom JS”:

(function($) {
    var btn = $.fn.button.noConflict() // reverts $.fn.button to jqueryui btn
    $.fn.btn = btn // assigns bootstrap button functionality to $.fn.btn
})(jQuery);

2. Insert this code in “Theme Options > Advanced Settings > Custom CSS”:

#spMainContainer blockquote:before,
#spMainContainer blockquote:after,
.article-post #spMainContainer blockquote:before,
.article-post #spMainContainer blockquote:after {
    content: "";
}

The fix works perfectly. I have buttons, I have upload!!!!

Thank you kvr28 for letting me know it is a theme conflict with the plugin.

Cheers

MP Mr Papa
Mr Papa
Member

interesting… glad kvr28’s code was able to work for you… thanks for the update!

AC Adam Crase
Adam Crase
Member

I’m not sure if I have a roll-on effect from this fix.

In the admin area, I am trying to change the Post Ratings setting from the default Thumbs to Stars. I am required to select the ‘Confirm’ button. I get the hand mouse pointer but no response to the Click.

It is a new install of the Post Rating plugin and no stats have been collected. Is it possible for me to simply change this setting directly in the database? 

Thanks in advance.

MP Mr Papa
Mr Papa
Member

sorry, roll-on effect?  not sure what that means…

i would have to research if a db change is possible, might be multiple steps…  sorry, late and must get to bed, so one of us will check in the AM…

but what happens when you click the confirm button? anything in the browser console?  does the them add stuff in the admin too? so maybe affecting jquery ui there?

AC Adam Crase
Adam Crase
Member

Ok, sleep tight. It’s early afternoon here.

Absolutely nothing happens when I click the confirm button… no call no nothing… nothing in the console.

Is the Confirm button is suposed to look different to this?

ConfirmButton.png
YS Yellow Swordfish
Yellow Swordfish
Member

This might actually be a horrible coincidence as I am seeing the same behaviour. If you can hold on a while I will take a look at the code behind that in the morning here to try and work out what might have effected it

YS Yellow Swordfish
Yellow Swordfish
Member

Oh dear – apologies. A real silly mistake and very simple to put right.  I will describe the change below but we will, of course, put out an official update ASAP on this one.

By default the file that needs to be changed can be found at …/wp-content/sp-resources/forum-plugins/post-rating/admin/sp-rating-admin-options.php

Lines 58 and 59 are the wrong way around. That is the line of code starting:

echo “<label for=’sfconfirm-box-$name’>”….

should be AFTER the line of code starting:

echo “<input type=’checkbox’ name=’confirm-box-$name’….

This got missed when we changed our checkbox routines. Again – apologies.

AC Adam Crase
Adam Crase
Member

Thank you smile

I swaped the lines and it solved the problem. Much appreciated.