Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Javascript conflict breaking Wordpress admin
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 11:10 am

near as we could tell (we didnt have the code, but did have access to one user's site), something was defacto reordering the sortable before the js itself had been loaded and initialized...

Avatar
Peter SchöNmann
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 7:03 am

Hi,

Ok, we probably found the fix. In enfold/config-templatebuilder/avia-template-builder/assets/js/avia-builder.js we had to replaced 

if(meta_boxes.index(this.canvasParent) !== 0)

with

if(this.canvasParent.length && meta_boxes.index(this.canvasParent) !== 0)

and by checking the .length value we avoid that the sortable function gets called even if the canvasParent doesn't exist.

Regards,

Peter

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 10:47 am

Peter, thanks for the update!  nice job...  tell Kreisi thanks too!  a couple of years ago, we actually ran his Avisio theme here...

Avatar
Peter SchöNmann
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 8:44 am

Thank you. Avisio was a very popular theme and one of the reasons why I started to work for Kriesi :)

I'll look into simple press - I'd like to recommend it to users who don't like bbpress. Our user base is quite large right now (more than 27200 registered users in the support forum, more than 120 support request per day, etc.) and we can probably send some interested users to your website. There're two hurdles right now: 

a) I need to find a nice responsive minimalist skin which fits to our theme designs (especially Enfold). Something like http://www.deliciousdays.com/c.....rms-forum/

b) We need access to the resources (plugins/themes/documentation) and to the support forum - otherwise we'll have a hard time to debug or reproduce the errors on our own test servers. 

Regards,

Peter

Avatar
Peter SchöNmann
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 9:13 am

Btw - your plugin seems to be incompatible with Tribe's "The Events Calendar" plugin. When I try to activate your plugin I get following error

Cannot redeclare sp_get_option() (previously declared in C:\xampp\htdocs\wp-content\plugins\the-events-calendar\public\template-tags\deprecated.php:432) in C:\xampp\htdocs\wp-content\plugins\simple-press\sp-api\sp-api-primitives.php on line 98

Maybe change the function name in your files or contact the tribe devs here: http://tri.be/about/contact/ and ask them to rename the function. I also work with them to resolve known incompatibility issues and they're always very polite and cooperative...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 12, 2013 - 12:30 pm

I don't see we would have any issue keeping your account active. Interestingly, Oliver at Delicious days/cForms has given us a copy of his theme so that we can offer it. We have just not yet found the right mechanism to do so!

Not really sure what to say about the events calendar function name clash. We have heard of it before and it is something that is going to happen at some point of course. We did use the recommended logic and use the initials of the plugin as a prefix to all functions which clearly the events calendar people did not. And there are currently 732 instances of that function call in 327 files! Wow - that's far too many. But mainly down to a lot of code separation. So - we could change it but would really then need to change the name of the whole family of the options based functions. At least we can talk it over here!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Peter SchöNmann
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 1:05 pm

Ok, then I fully understand it's not feasible to rename the function on your end but maybe try to talk to the tri.be devs. It seems like the function is only called in wp-content\plugins\the-events-calendar\public\template-tags\deprecated.php and the plugin performs a function_exists() check

if ( !function_exists( 'sp_get_option' ) ) {
 /**
 * @deprecated
 * @param $optionName
 * @param string $default
 * @return mixed
 */
 function sp_get_option( $optionName, $default = '' ) {
 _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );
 return tribe_get_option( $optionName, $default );
 }
 }

2) Re theme/skin. I tested the plugin a bit and the standard skin with the "minimalist" overlay is very promising. Probably additional css code is required and I need to take care of the colored icons - maybe I'll use webkit-filter: grayscale(100%); or I just add some new icons with the "custom icon set" option (not sure yet) - but overall it works pretty well. We use the "entypo" icon set from fontello: http://fontello.com/ atm and they're similar to the icons which are used here: http://www.deliciousdays.com/c.....rms-forum/ - that's why I like the skin.

Right now the forum page looks like

c?13888123=bcY1xwxH1efsAc46PuwDOUCoiUY&f=.pngImage Enlarger

I don't see we would have any issue keeping your account active.

Ok thanks. I was a bit irritated because the "silver membership" expires after two months ( https://simple-press.com/membership/ ) and I thought the account won't work afterwards.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 9:07 pm

we just made it silver because as far as we knew, it was just a 'drive by' to help troubleshoot a user's issue... As Andy says, no issue extending it...

and btw... if the membership were to expire, the core plugin and any themes or plugins you have for simple press would continue to function and get updates too...

good luck with the forum!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625