Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2008, 08:59 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Smile Easy solution to killspam any user from the front end

Here's a nice addition to the KillSpam module. If you are logged in as administrator this will add a link to each story that will take you to the admin user management page for the user who submitted that article. From there you can simply click the KillSpam button to delete the naughty user and all his stories and comments. It's a quick and easy way to manage spam from the front end instead of fumbling around in the backend.

First open the link_summary.tpl file in your site's template folder. Search for "linksummaryBury" near the bottom of the file. After that if statement, add this code:

Code:
{if $isadmin eq "yes"}
    <span id="manageuser-{$link_shakebox_index}"><span id="linksummaryManageuser"><a href="http://www.entirelyopensource.com/admin_users.php?mode=view&user={$link_submitter}" title="Admin User Management">Manage {$link_submitter}</a></span></span>
{/if}

Now open up your template's CSS file and add this code:

Code:
#linksummaryManageuser {
 padding: 2px 0px 0px 20px;
 margin-left:2px;
 background: url("../images/user_delete.png") 0 0 no-repeat;
}
I'm using it on Open source software news, but you wouldn't see it unless you were logged in as god.
Enjoy!

Last edited by swese44; 07-24-2008 at 05:09 AM..
Reply With Quote
The Following User Says Thank You to swese44 For This Useful Post:
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Killspam this user still buggy after upgrade to 9.8.2 sefs Bug Report 5 01-16-2008 01:57 PM
Disable User and SpamkillUser and bugs. sefs General Help 0 10-08-2007 08:43 AM
Killspam User DIES before it completes the task AxelLottel Bug Report 5 02-18-2007 11:06 PM
Killspam User - Fatal Error prasan21 Bug Report 3 01-24-2007 10:54 AM
killspam user ? gabs General Help 1 01-10-2007 11:54 AM


Search Engine Friendly URLs by vBSEO 3.2.0