Support Forum

Admin Tools not working, cannot moderate

MD Melissa Van Dam
Melissa Van Dam
Member

Hi,

 

My community launch is in a week and I am testing the forums. I have had a couple of people post topics and am requiring moderation for first posts. I have installed the admin bar, but even before that the “mouse over” tools button was showing, but not bringing anything up when I click on it. I have checked that the header and footer .php flies contain this http://wiki.simple-press.com/installation/troubleshooting/forum-page-is-empty/ however the page and index pages don’t seem to. I have tried adding them but it does not seem to make a difference.

 

This is the site www.belliestobambinos.ca/forum the forum content is still back door so there is no direct link to it. Any help would be apprieciated. I thought that getting the admin tool bar would fix it but the tool bar isn’t even showing that there are any posts to be moderated.

 

Thank you

23 Answers

New Answer

MP Mr Papa
Mr Papa
Member

first, the wiki deals with SP 4.x… you want the codex (http://codex.simple-press.com) for 5.0.  and the one that likely comes in to play here is: http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

and its because your theme (I believe) is misbehaving…  it is loading a very old version of jquery ui directly instead of using the version of jquery ui that comes with wp:

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js”></script>

so when wp loads its current version of jquery ui, it conflicts with the out of date version your theme is loading…

see if you can find in your theme where that old version is improperly (see http://codex.wordpress.org/Function_Reference/wp_enqueue_script for right way to load js/jquery) loaded, we can see if we can help correct it… 

at least that is my hunch not being able to see the issue myself…

MD Melissa Van Dam
Melissa Van Dam
Member

I sent a message to the developer to ask him to look into it for me. I searched through the source and it looks like it uses google in one place

 

The bottom of the screen says javascript:void(null) whenever I try to click on the tools button. 

 

I did find this:  

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js”></script>

in the header file, do you know what I should change it to?

MP Mr Papa
Mr Papa
Member

try changing it to:

wp_enqueue_script(‘jquery-ui-core’);   

wp_enqueue_script(‘jquery-ui-widget’);

MD Melissa Van Dam
Melissa Van Dam
Member

Sorry, I pretty novice and learning as I go with coding, which part should I replace with that?

Thank you 🙂

MP Mr Papa
Mr Papa
Member

this line:

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js”></script>

MD Melissa Van Dam
Melissa Van Dam
Member

Sorry, I guess what I mean is, do I replace that whole line with what you posted? Or just part of it? and if just part of it, what part ? 🙂

MP Mr Papa
Mr Papa
Member

replace the whole line in post #6 with the two lines in post #4

MD Melissa Van Dam
Melissa Van Dam
Member

Ok, I tried that, but it just came up as text on the top of the page. Here is the context it was found in:

<!– JAVASCRIPT –>
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js”></script>
<?php if(get_option(‘dtbaker_font_type’,’cufon’)==’cufon’){ ?>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/cufon-yui.js”></script>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/Sunshine_Poppy_400.font.js”></script>
<?php } ?>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/jquery.DOMWindow.js”></script>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/jquery.lightbox-0.5.pack.js”></script>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/jquery.nivo.slider.js”></script>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri();?>/js/jquery.cycle.min.js”></script>

MP Mr Papa
Mr Papa
Member

sorry, should have been more specific on the html vs php…  replace

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js"></script>

with

<?php
wp_enqueue_script('jquery-ui-core');   
wp_enqueue_script('jquery-ui-widget');
?>
MD Melissa Van Dam
Melissa Van Dam
Member

Thank you for your patients and quick replies! That fixed it! 🙂

MP Mr Papa
Mr Papa
Member

good news indeed! thanks for the update…

MD Melissa Van Dam
Melissa Van Dam
Member

Hi, so I have had the forums up for a couple weeks and was wondering why no one was posting, so I thought I would post something to get the conversation started, and the post a new topic button does not work. It was working when last we talked, but some time between now and then, it stopped. I know there was an update to simple press somewhere in there. Any suggestions on where to start? I already searched for any jquery conflicts

MD Melissa Van Dam
Melissa Van Dam
Member

Also, just looking around some more and some places I can add a topic, but not a reply.

MD Melissa Van Dam
Melissa Van Dam
Member

Looks like the tool set is not working either