Support Forum

Unable to delete posts

MA mann
mann
Member

I imported the data from my bbpress forum to simple press today and I feel great! Everything went on smoothly. There are a couple of spam posts which I am trying to get rid off, but unable to do that.

I am trying to delete posts but somehow when I click on “Edit” a post ,the “Delete” option doesn’t appear.

I deleted the user from the backend but now if you see, the user(which was a spambot) appears as a guest . How do I completely delete a post ?

Here’s the link to the post

http://www.aristotleprep.com/forum/gmat-strategy/price-minocin-minocycline-no-prescription-needed-sixpenny-contraindication-online-pharmacy-united-st/

 

Also I wish to know what is this concept of “guest” user ? I mean a member only would be able to post in a forum right ?

18 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If you hover over a post or a topic (in forum view) then a small toolbox icon should appear over on the left hand side with a set of tools that includes delete.

However it probably wont work as your WP theme is incorrectly loading and calling jQuery which is causing errors on your site and stopping jQuery functions from running including, probably, the forum.

This article explains that problem:

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

MA mann
mann
Member

Thanks Yellow Swordifsh. I have asked my theme developer to look into the issue. In the meantime, is there any quick way of deleting all that spam from the backend so that I can fire up my forums ?

Would searching for those posts in the database and deleting them from there be of any help ?

MA mann
mann
Member

Figured out how to delete posts. Logged on to phpmyadmin and deleted all the posts. It was a very tedious process though as there were more than 50 spam posts on the forum and had to delete them one by one.Took me around 1 hour to do this but good riddance though!

YS Yellow Swordfish
Yellow Swordfish
Member

I would recommend after doing a manual delete that you visit the toolbox > housekeeping and update all the indexing just to keep things right.

And if you use the admin bar SP plugin you can also delete posts from there when they first arrive as well as optionally use Akismet for spam checks.

MA mann
mann
Member

Update:My developer said that he’s unable to fix the jquery conflict issue.

Yellow swordfish, can you please help me out fix the issue because none of the plugins-like post ratings,file upload and delete post are working-and I am assuming that they are not working because of the jquery conflict.

YS Yellow Swordfish
Yellow Swordfish
Member

Sure. Let’s start with the theme. If you would like to zip up the theme folder and email it to me I can install it and try and help resolve it.

Email it to support at simple-press dot com

MA mann
mann
Member

Will mail you the zip file of theme in sometime. Thank you very much! You rock!

YS Yellow Swordfish
Yellow Swordfish
Member

Step 1:

Go to the forum admin > Integration > Page and Permalinks panel. Turn OFF the option to load Javascript in the footer and save.

Step 2:

Open the WP theme file header.php for editing. Locate this line of code on line 13:

<script type="text/javascript" src="<?php echo $template_url; ?>/assets/js/jquery.min.js"></script>

and remove it. Save the file.

Step 3:

Open the WP theme file functions.php for editing. After the credits at the top add these lines of code:

add_action('init', 'do_global_javascript');
function do_global_javascript(){
    wp_enqueue_script("jquery");
}

and save it.

Step 4:

Open the WP theme file /assets/js/theme.js for editing.

Replace every occurrence of the dollar symbol ($) with the word ‘jQuery‘. Not in quotes of course – and note the capital ‘Q’. There should be, I believe, 12 of them. Save the file.

Step 5:

Test the site. There are other anomalies in the script handling but if they do not effect anything then they are probably best left alone. See what works and what doesn’t and if any of the latter let me know what they are.

MA mann
mann
Member

You’re a genius Yellow swordfish. All the problems are resolved and the plugins and other options(especially to delete a post which was a real pain) are working properly. I just don’t have words for going the extra mile and resolving the problems! 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

You’re welcome. But what about the rest of the site?

MA mann
mann
Member

Yeah, there seems to be some issue with the other half of the multisite.Have mailed you regarding that.

YS Yellow Swordfish
Yellow Swordfish
Member

Well at least this time they have switched to doing it half properly!

This time you need the themes functions.php file.

Right at the bottom find the function:

function roll_your_own_js() {
if(!is_admin()){
        wp_deregister_script('jquery');
        // now we've taken out the default version - we'll load our own
        wp_register_script('jquery', get_template_directory_uri() . '/assets/js/jquery.min.js', 'jquery');
        //  now add it to the queue
        wp_enqueue_script('jquery');
    }
}
add_action('init', 'roll_your_own_js');

He even says it right there in the code – ‘now we’ve taken out the default version – we’ll load our own’! As if it ios something to be proud of!!

Remove the wp_deregister_script() line and the wp_register_script() and just leave the wp_enqueue_script() call in place.

MA mann
mann
Member

Thank you . That resolved the conflict and I am able to use the Simple press plugins. But did I have to make only the change mentioned in the post above? I also made the other changes which you mentioned in the steps in your earlier post  because now on the forums page, above the forums, the “select forum” button doesn’t appear in the form of a dropdown rather the names of all the recent topics in all the forums appear. Have a look

http://www.aristotleprep.com/forums/