Support Forum

Cannot add new topic to forum

26 Answers

New Answer

MP Mr Papa
Mr Papa
Member

Pat, what edit bar??? not sure what you are referring to…

MP Mr Papa
Mr Papa
Member

Scott, hard to see still but lets try this…. replace:

<script src="<?php bloginfo('template_url'); ?>/js/jquery.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery-ui.min.js" type="text/javascript"></script>

with

<?php if (!sp_is_forumpage()) { ?>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery-ui.min.js" type="text/javascript"></script>
<?php } else {
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui');
} ?>

obviously, I cannot test that…

might need to similarly protect the noconflict stuff at bottom, but not sure… and may not need the else part, but lets try this first…

SD Scott Donihoo
Scott Donihoo
Member

Mr. Papa, I just sent you my full header.php in a PM.  Please let me know if you’d still like for me to try out this fix.

 

Thank you!

SD Scott Donihoo
Scott Donihoo
Member

Mr Papa said
yes, please give it a try…

Unfortunately, that didn’t seem to work.  Do i need to restart apache or the server for this to take effect?  Here’s what that section of code looks like now:

<!–[if IE]><link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/css/ie.css” type=”text/css” media=”screen, projection”><![endif]–>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/jdgallery/jd.gallery.css” type=”text/css” media=”screen” charset=”utf-8″ />
<link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_url’); ?>/css/jquery.fancyMusicPlayer-white.css”>
<?php if (!sp_is_forumpage()) { ?>
<script src=”<?php bloginfo(‘template_url’); ?>/js/jquery.min.js” type=”text/javascript”></script>
<script src=”<?php bloginfo(‘template_url’); ?>/js/jquery-ui.min.js” type=”text/javascript”></script>
<?php } else {
wp_enqueue_script(‘jquery’);
wp_enqueue_script(‘jquery-ui’);
} ?>
<script src=”<?php bloginfo(‘template_url’); ?>/js/jquery.mousewheel.js” type=”text/javascript”></script>
<script src=”<?php bloginfo(‘template_url’); ?>/js/jquery.jscrollpane.min.js” type=”text/javascript”></script>
<script src=”<?php bloginfo(‘template_url’); ?>/js/soundmanager2-nodebug-jsmin.js” type=”text/javascript”></script>
<script src=”<?php bloginfo(‘template_url’); ?>/js/jquery.fancyMusicPlayer.min.js” type=”text/javascript”></script>

<script type=’text/javascript’ src=’http://www.faygoluvers.net/v5/wp-content/plugins/lightbox-plus/jquery.colorbox.1.3.32.js?ver=1.3.32′></script>
<link rel=’stylesheet’ id=’lightboxStyle-css’ href=’http://www.faygoluvers.net/v5/wp-content/plugins/lightbox-plus/css/green/colorbox.css?ver=2.6′ type=’text/css’ media=’screen’ />

MP Mr Papa
Mr Papa
Member

so what did it do? error? nothing?

link to site with it still on there?

MP Mr Papa
Mr Papa
Member

something with the code I gave your or how it was entered… jQuery not even being loaded now…

can you restore the original header.php file and then provide me temp access to your site as wp admin to play with the header code?  if that works, PM the details to me…

SD Scott Donihoo
Scott Donihoo
Member

The header file has been restored, and login credentials have been sent to you via PM.  Thank you for being hands-on about this! 

MP Mr Papa
Mr Papa
Member

try it now…

your site is throwing a lot of errors…  it was throwing them before I got there and still is…  so make sure everything is working…

SD Scott Donihoo
Scott Donihoo
Member

Hi Mr. Papa, 

   You fixed that issue!  I will check into the errors to see what’s causing them.  Thank you so much for doing so.  There are a couple of other things I’d like to have that I had before, but i’ll search the forums before posting a new topic.  Thank you again! Can you tell us what you did to fix it?

MP Mr Papa
Mr Papa
Member

That theme is a mess… It completely disregards the wp api and standards for loading javascript…  javascript should be enqueued not loaded directly…  and it should use the wp versions of jquery and jquery ui – not load its own…

so I left its haphazard loading of js in place for non forum pages…. but on the forum page, I loaded stuff the proper way so other plugins can count on the wp standards…

Ideally, it would be fixed for loading on non forum pages, but I ddint want to mess with it and it was working for anything you had loaded currently…  this only becomes an issue of you add plugins that make use of jquery and jquery ui, like simle press…