Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2007, 06:11 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 34
Thanks: 9
Thanked 0 Times in 0 Posts
As a "god" user, can I delete a post?

I would like to know if I can delete a post as a "god" user. If so, how can I do that.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 04-04-2007, 09:26 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
There should be a link next to each post that says "admin links." It will drop down more links and you want to click on the one that says change status. Once you do that you can discard the story.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #3 (permalink)  
Old 04-05-2007, 02:39 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 35
Thanks: 12
Thanked 4 Times in 1 Post
About deleting stories and privileges

Quote:
Originally Posted by kbeeveer46 View Post
There should be a link next to each post that says "admin links." It will drop down more links and you want to click on the one that says change status. Once you do that you can discard the story.
It's not a good way. When the story is discarded we have it in database all the same. After one month I have about 5000 stories in database (!!!).
And how to delete the story completely from a database? Also I think that stories should delete automatically after the certain term established in days.

And I have the second question/offer. I have faced that it is necessary to enter different privileges for users that one, for example, could look through only stories and make comments, but not add new stories.
It is possible?
Reply With Quote
  #4 (permalink)  
Old 04-05-2007, 03:52 PM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
Thanks: 39
Thanked 32 Times in 16 Posts
Haev you looked into this delete page in this Wiki?

http://www.pligg.com/wiki/index.php?...stories_script

PHP Code:
<?php

mysql_connect
("dbhost""dbname""dbpass") or die("error1");
mysql_select_db("dbname") or die("error2");

$fourteen_days   1209600;
$now date("U") - $fourteen_days
$ninety_days   7776000;
$now2 date("U") - $ninety_days

$now date("Y-m-d H:i:s",$now);
$now2 date("Y-m-d H:i:s",$now2);

mysql_query("delete from links where link_date < '$now' AND link_status = 'queued'");
mysql_query("delete from links where link_date < '$now2' AND link_status = 'published'");
mysql_query("delete from links where link_status = 'discard'");

?>
Reply With Quote
The Following User Says Thank You to onelessthang For This Useful Post:
  #5 (permalink)  
Old 04-06-2007, 01:09 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 35
Thanks: 12
Thanked 4 Times in 1 Post
Thanks. But we have old votes for this stories in vote table.
Reply With Quote
  #6 (permalink)  
Old 06-01-2007, 12:24 AM
New Pligger
 
Join Date: May 2007
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
This seems like something that should definitely be on the front burner for the next release. Not being able to properly remove an entry (including it's votes and other pointers in the database) is a pretty big management issue.
Reply With Quote
  #7 (permalink)  
Old 06-04-2007, 11:57 AM
Casual Pligger
 
Join Date: May 2007
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jpfieber View Post
This seems like something that should definitely be on the front burner for the next release. Not being able to properly remove an entry (including it's votes and other pointers in the database) is a pretty big management issue.
Yes, I also have been confused on the lack of a "delete" option. Why does "disacard" not really delete the entry? Also, with the Random Story feature if an item is discarded the random feature sometimes till links to a "discarded" entry. How is the random number of the random story feature generated? Is it a random query from available entries in the database? Or is it just a plain old random number - hence the link sometimes goes to the "Ooops, page not found" page???
Reply With Quote
  #8 (permalink)  
Old 06-25-2007, 10:50 PM
Constant Pligger
Pligg Version: 9.7 - updating is a MAJOR task
Pligg Template: Custom - complete redesign needed to update
 
Join Date: Apr 2007
Posts: 155
Thanks: 19
Thanked 2 Times in 2 Posts
A couple of questions on that script in the wiki.

1. To what do 1209600 and 7776000 refer? Obviously they are fourteen days and ninety days respectively, but is it those time lines in seconds, minutes, what? I'm hoping to know so I can edit it to make it longer/shorter.

2. What file does this script go into?
Reply With Quote
  #9 (permalink)  
Old 06-25-2007, 11:47 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 227
Thanks: 56
Thanked 22 Times in 18 Posts
I think this is going to become a bigger and bigger issue since Pligg is evolving past being a Digg clone and becoming it's own CMS. For many CMS driven sites, users - not just admins - will need to be able to delete their own posts (Imagine a blog without being able to delete a post).
Reply With Quote
  #10 (permalink)  
Old 09-27-2007, 06:38 PM
New Pligger
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
moauh
TRUNCATE TABLE `pligg_links`

UPDATE `art`.`pligg_totals` SET `total` = '0' WHERE CONVERT( `pligg_totals`.`name` USING utf8 ) = 'queued' LIMIT 1 ;

UPDATE `art`.`pligg_totals` SET `total` = '0' WHERE CONVERT( `pligg_totals`.`name` USING utf8 ) = 'discard' LIMIT 1 ;

TRUNCATE TABLE `pligg_votes`
Reply With Quote
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 Off
[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
To Delete a User argh2xxx Customization Assistance 3 07-24-2008 02:49 AM
Delete users from database and admin user management bbrian017 General Help 2 12-04-2007 11:54 AM
Disable User and SpamkillUser and bugs. sefs General Help 0 10-08-2007 08:43 AM
block user and delete jdleung Suggestions 1 09-04-2007 02:45 AM


Search Engine Friendly URLs by vBSEO 3.2.0