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
Profile Page not working
Avatar
Brian Siu
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2014 - 4:45 pm

wp_register_script( 'isotope',   get_template_directory_uri().'/js/isotope.js','','',true);
wp_enqueue_script('isotope');
wp_register_script( 'easing',  get_template_directory_uri().'/js/easing.js','','',true);
wp_enqueue_script('easing');
wp_register_script( 'main',  get_template_directory_uri().'/js/main.js','','',true);
wp_enqueue_script('main');
wp_register_script( 'fancybox',  get_template_directory_uri().'/js/jquery.fancybox.js','','',true);
wp_enqueue_script('fancybox');
wp_register_script( 'totop',  get_template_directory_uri().'/js/jquery.ui.totop.js','','',true);
wp_enqueue_script('totop');
wp_register_script( 'custom_js1',  get_template_directory_uri().'/js/jquery.validate.min.js','','',true);
wp_enqueue_script('custom_js1');
wp_register_script( 'custom_js2',  get_template_directory_uri().'/js/jquery-ui-1.10.3.custom.min.js','','',true);
wp_enqueue_script('custom_js2');
wp_register_script( 'custom_js3',  get_template_directory_uri().'/js/jquery.carouFredSel-6.2.1-packed.js','','',true);
wp_enqueue_script('custom_js3');
wp_register_script( 'custom_js6',   get_template_directory_uri().'/js/appear.js','','',true);
wp_enqueue_script('custom_js6');
wp_register_script( 'custom_js4',   get_template_directory_uri().'/js/parallax.js','','',true);
wp_enqueue_script('custom_js4');
wp_register_script( 'custom_js5',   get_template_directory_uri().'/js/global.js','','',true);
wp_enqueue_script('custom_js5');
wp_register_script( 'imagescale',   get_template_directory_uri().'/js/imagescale.js','','',true);
wp_enqueue_script('imagescale');
wp_register_script( 'transit',   get_template_directory_uri().'/js/transit.js','','',true);
wp_enqueue_script('transit');
wp_register_script( 'ajaxcomments',   get_template_directory_uri().'/js/ajaxcomments.js','','',true);
wp_enqueue_script('ajaxcomments');
wp_localize_script('ajaxcomments', 'addict_script_vars', array(
            'success' => __('Thanks for your comment. We appreciate your response.', 'addict'),
            'error' => __('Please wait a while before posting your next comment!', 'addict'),
            'info' => __('Processing...', 'addict'),
            'error2' => __('You might have left one of the fields blank, or be posting too quickly!', 'addict')

Avatar
Brian Siu
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2014 - 4:46 pm

/*admin sctipts*/
add_action('admin_enqueue_scripts', 'addict_scripts_admin');
function addict_scripts_admin(){
wp_register_script( 'custom_js55',  get_template_directory_uri().'/js/simple-slider.js');
wp_enqueue_script('custom_js55');
wp_register_script( 'custom_js66',  get_template_directory_uri().'/js/jquery.elastic.source.js');
wp_enqueue_script('custom_js66');
wp_register_script( 'custom_js77',  get_template_directory_uri().'/ckeditor/ckeditor.js');
wp_enqueue_script('custom_js77');
wp_register_script( 'custom99', get_template_directory_uri().'/js/bootstrap-tooltip.js','','',true);
wp_enqueue_script('custom99');
}

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2014 - 7:05 pm

I dont see bootstrap loaded in there (just the tooltip which is admin only)...  so first thing to try is change these two lines:

wp_register_script( 'custom_js2',  get_template_directory_uri().'/js/jquery-ui-1.10.3.custom.min.js','','',true);
wp_enqueue_script('custom_js2');

to

wp_enqueue_script('jquery-ui-core');

and see what happens...  that will load the wp copy of jquery ui instead of the theme supplied one...  may not be enough since I remember bootstrap, but maybe a plugin is adding that... worth a first try...

be sure to clear your browser cache...

Avatar
Brian Siu
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2014 - 8:49 pm

I made the change and it did not fix the problem.

 

Is this the bootstrap:

 

/*theme scripts*/
add_action('wp_enqueue_scripts', 'addict_my_scripts');
function addict_my_scripts(){
wp_register_script( 'bootstrap1', get_template_directory_uri().'/js/bootstrap-transition.js','','',true);
wp_enqueue_script('bootstrap1');
wp_register_script( 'bootstrap2', get_template_directory_uri().'/js/bootstrap-tooltip.js','','',true);
wp_enqueue_script('bootstrap2');
wp_register_script( 'bootstrap3', get_template_directory_uri().'/js/bootstrap-button.js','','',true);
wp_enqueue_script('bootstrap3');
wp_register_script( 'bootstrap4', get_template_directory_uri().'/js/bootstrap-carousel.js','','',true);
wp_enqueue_script('bootstrap4');
wp_register_script( 'bootstrap5', get_template_directory_uri().'/js/bootstrap-collapse.js','','',true);
wp_enqueue_script('bootstrap5');
wp_register_script( 'bootstrap6', get_template_directory_uri().'/js/bootstrap-modal.js','','',true);
wp_enqueue_script('bootstrap6');
wp_register_script( 'bootstrap7', get_template_directory_uri().'/js/bootstrap-popover.js','','',true);
wp_enqueue_script('bootstrap7');

Avatar
Brian Siu
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2014 - 11:24 pm

I may have found part of the problem (maybe all). I deactivated W3 Total Cache (page caching plugin) and now I am able to see the profile tab. When I click on the subtabs though (for example - edit profile, edit identities, edit avatar, etc) it loads a page without any layout. So, what should I do?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 23, 2014 - 5:47 am

You do not need to deactivate the cache plugin but you DO need to exclude the forum page form ALL of it. There is an exclusion section for each cache type where you should put the forum slug.

This still sounds lie a javascript AJAX issue to me. It is reloading the entire page instead of retrieving the data with an AJAX call. So we still need to see what is showing up in the console  script error. Although if it another WordPress plugin we still might not be able to identify it that easily.

Have you considered the usual process of briefly switching to the WP default theme and then - if that doesn't change anything - deactivating WP plugins one at a time?

andy-signature.png
YELLOW
SWORDFISH
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625