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
Editing posts and Editor TinyMCE Rich Text
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 6, 2013 - 4:17 am

You can make an alternative editor the default but all the time you have tinyMCE active it will be made available to your users via their profile posting options to thay can override the default.

You know - our experience shows that paid-for themes are often the worse at riding rough-shod over all of the rules and the WordPress API. I also don't think that sorting out the problems you have should be that problematic as long as we know just what the theme authors have done to the UI file.. i.e., have they added custom code or included other components? And you know - they may well tell you this if you ask them - there is no reason why they shouldn't.

I feel you will encounter other issues - not just with SP but with other plugins if they need to use the script libraries.

andy-signature.png
YELLOW
SWORDFISH
Avatar
T M Shaw
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2013 - 4:30 am

Okie doke thanks for the advise, would you be able to tell me what i need to ask of the theme developers then, this jQuery stuff  is a bit beyond my reach really :-)   and I shall go away and put it to them, and see what they have to say and report back. 

Thanks for your assist with this, mighty impressed with the support you are providing to Simple Press users ! and it is in no small part the quality of the Forum that I have been able to bring users across from gtplanet.net to my site. :tup: 

Mark

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 6, 2013 - 4:59 am

I think the first question is - what exactly is in the 'jquery-ui-personalized' file? Have they added custom code or included any other components or can we safely swap it for the proper thing?

andy-signature.png
YELLOW
SWORDFISH
Avatar
T M Shaw
Member
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2013 - 2:56 am

Hello again Swordfish ... Please see below for answer from Web2Feel

"jQuery ui file is used for the tabs section in the theme. It is probably out dated now. You could swap it with a new version from here - http://jqueryui.com"

any good to you ?

Cheers

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2013 - 11:17 pm

no, just need to make it use the jquery ui that comes with wp...

so if you can find where its loaded in the theme, we can give you the code to correct the theme...

Avatar
T M Shaw
Member
Free Members
sp_UserOfflineSmall Offline
Feb 18, 2013 - 7:40 am

Hi Fellas, so after having made repeated request for th info you requested from the theme developers and not receiving any response, are you able to advise how I find where the file is loaded in the theme ?

cheers

Mark

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 18, 2013 - 8:14 am

It really depends on how it is loaded. If it is done properly (from the wrong location but loaded properly) then the first place to look would be your theme's functions.php file. Look for a line of code that starts with wp_enqueue_script and if you find it copy and paste a small handful of lines either side.

Other than that you will need to see if that apepars anywhere else. often there are some php files in a theme outside of the main templates folder so eorth looking.

The last place it should be is as a direct 'script' statement on the theme's header.php file and that would be the last p;lace to look. usually a small amount of detective work will find it easily enough...

andy-signature.png
YELLOW
SWORDFISH
Avatar
T M Shaw
Member
Free Members
sp_UserOfflineSmall Offline
Feb 25, 2013 - 7:34 am

Ok found this ...

}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>

<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php
if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
wp_head(); ?>

in header.php, wasn't in the functions.php and could not findsee it anywhere else ? ... Does this help ? 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 25, 2013 - 7:20 pm

No, thats not it...  look for wp_deregister_script and/or wp_register_script...

typically its in header.php or functions.php...  but could be in just about any file...  you should be able to search from the windows or mac directory in all the files...

Avatar
T M Shaw
Member
Free Members
sp_UserOfflineSmall Offline
Feb 28, 2013 - 9:51 am

Thanks Mr Papa ..

/**
* Remove a registered script.
*
* @since r16
* @see WP_Scripts::remove() For parameter information.
*/
function wp_deregister_script( $handle ) {
global $wp_scripts;
if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) {
if ( ! did_action( 'init' ) )
_doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
'

wp_enqueue_scripts

', '

admin_enqueue_scripts

', '

init

' ), '3.3' );
$wp_scripts = new WP_Scripts();
}

$wp_scripts->remove( $handle );

In my wp-includes dir, functions.wp-scrips.php

Thanks Mark

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625