There is very little difference between what an admin and a user sees in this context.

To find the posts, I use the regular search. The returned list is the same for an admin as well as a regular user. While displaying a thread, there is an admin link that allows me to remove the thread and there is a link to remove each post in the thread. There is also a link on the bottom of each thread to navigate to a special admin page that provides some extra functions such as delete a user (but deleting the user does not remove their posts).



On 09/01/2014 11:00 PM, Alexandro Colorado wrote:
Unfortunately I dont admin any forum to see what you are seen, so I only have access to the forum search engine but I know that the Admin (the one able to delete the forum) is a different view.

I know the individual post url is on a (very small) icon next to the Posted date. If you search for 'Posted:' on the source you will find something like this. <td width="100%">*<a href="viewtopic.phtml?p=725853#725853 <http://www.oooforum.org/forum/viewtopic.phtml?p=725853#725853>">*<img src="templates/subSilver/images/icon_minipost_new.gif <http://www.oooforum.org/forum/templates/subSilver/images/icon_minipost_new.gif>" width="12" height="9" alt="New post" title="New post" border="0" /></a><span class="postdetails">Posted: Mon Sep 01, 2014 4:36 pm<span class="gen">&nbsp;</span>&nbsp; &nbsp;Post subject: reinserting spaces in text where spaces removed</span></td>

On the blob of HTML that you gave me, I could read a similar URL after 'RobinColvin': <view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a> <a href="viewtopic.phtml?p=725805#725805 *<view-source:**http://www.oooforum.org/forum/viewtopic.phtml?p=725805#725805**>">*<img src="templates/subSilver/images/icon_latest_reply.gif <view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View latest post"title="View latest post"border="0"/></a></span></td>

​I also looked at iMacros, and found a couple of tutorials about Data extraction for URLs:
http://wiki.imacros.net/Data_Extraction#The_Extract_command
and images urls:
http://forum.imacros.net/viewtopic.php?f=7&t=5703​


On Mon, Sep 1, 2014 at 9:11 PM, Andrew Douglas Pitonyak <and...@pitonyak.org <mailto:and...@pitonyak.org>> wrote:

    On 09/01/2014 03:15 PM, Alexandro Colorado wrote:

        Yup my idea is that you have an array with the spam users,
        perform a search
        on them, and then fill out the page with the posts related to
        the spam
        users, and just have the macros select all checkboxes and
        press the delete,
        and go to the next page. That would allow you to get all the
        spam from that
        user at least in a smaller process.


    I was able to use iMacros to search for all posts by a specific
    user. I was able to export the text from the found rows. I have
    not figured out how to export the links to each individual message.

    Sadly, I must navigate to each spam thread and delete each thread
    individually. If I am able to figure out how to export each spam
    link, I can always use some other scripting language that I know
    well to create huge scripts that itemize each "bad thread". I am
    able to post a sample HTML output if anyone knows how to use
    iMacros. To make things even worse, it probably only shows about
    40 messages per page. The biggest hurdle is simply learning
    iMacros; it is a bit cryptic.



        Well is not really coding in Javascript since greasemonkey
        takes care of
        that. Remember that you only need to change the url for the
        page of the
        query result. Greasemonkey has a script called AutoFill where
        you only need
        to select the name value of the HTML control and modify it to
        be checked.
        The next task is to press the Button control to delete, and
        the final step
        is to go to the next query in time. Probably the URL will have
        a page like
        ?p=23 so is a matter of increments.

    Hmmm. Not sure that would help much in this case.

    The search part is easy. It then returns a page containing a table
    with entries such as this:

table width="100%"cellpadding="4"cellspacing="1"border="0"class="forumline"align="center">
      <tr>
<th width="4%"height="25"class="thCornerL"nowrap="nowrap">&nbsp;</th>
            <th  class="thTop"nowrap="nowrap">&nbsp;Forum&nbsp;</th>
            <th  class="thTop"nowrap="nowrap">&nbsp;Topics&nbsp;</th>
            <th  class="thTop"nowrap="nowrap">&nbsp;Author&nbsp;</th>
            <th  class="thTop"nowrap="nowrap">&nbsp;Replies&nbsp;</th>
            <th  class="thTop"nowrap="nowrap">&nbsp;Views&nbsp;</th>
            <th  class="thCornerR"nowrap="nowrap">&nbsp;Last
    Post&nbsp;</th>
      </tr>
      <tr>
            <td  class="row1"align="center"valign="middle"><img
    src="templates/subSilver/images/folder.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No
    new posts"title="No new posts"/></td>
<td class="row1"><span class="forumlink"><a href="viewforum.phtml?f=2
    
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org
    Writer</a></span></td>
<td class="row2"><span class="topictitle"><a href="viewtopic.phtml?t=368059&amp;highlight=
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368059&highlight=>"class="topictitle">buying
Maxaman, Maxaman order code, Maxaman without dr</a></span><br /><span class="gensmall"></span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="name"><a  href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
            <td  class="row2"align="center"valign="middle"><span
    class="postdetails">0</span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="postdetails">30</span></td>
<td class="row2"align="center"valign="middle"nowrap="nowrap"><span class="postdetails">Fri Aug 29, 2014 9:19 am<br /><a href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>
    <a  href="viewtopic.phtml?p=725820#725820
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725820#725820>"><img
    src="templates/subSilver/images/icon_latest_reply.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View
    latest post"title="View latest post"border="0"/></a></span></td>
      </tr>
      <tr>
            <td  class="row1"align="center"valign="middle"><img
    src="templates/subSilver/images/folder.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No
    new posts"title="No new posts"/></td>
<td class="row1"><span class="forumlink"><a href="viewforum.phtml?f=2
    
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org
    Writer</a></span></td>
<td class="row2"><span class="topictitle"><a href="viewtopic.phtml?t=368050&amp;highlight=
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368050&highlight=>"class="topictitle">buying
Maxaman, Maxaman order code, Maxaman without dr</a></span><br /><span class="gensmall"></span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="name"><a  href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
            <td  class="row2"align="center"valign="middle"><span
    class="postdetails">0</span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="postdetails">18</span></td>
<td class="row2"align="center"valign="middle"nowrap="nowrap"><span class="postdetails">Fri Aug 29, 2014 9:15 am<br /><a href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>
    <a  href="viewtopic.phtml?p=725805#725805
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725805#725805>"><img
    src="templates/subSilver/images/icon_latest_reply.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View
    latest post"title="View latest post"border="0"/></a></span></td>
      </tr>
      <tr>
            <td  class="row1"align="center"valign="middle"><img
    src="templates/subSilver/images/folder.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/folder.gif>"width="19"height="18"alt="No
    new posts"title="No new posts"/></td>
<td class="row1"><span class="forumlink"><a href="viewforum.phtml?f=2
    
<view-source:http://www.oooforum.org/forum/viewforum.phtml?f=2>"class="forumlink">OpenOffice.org
    Writer</a></span></td>
<td class="row2"><span class="topictitle"><a href="viewtopic.phtml?t=368024&amp;highlight=
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?t=368024&highlight=>"class="topictitle">buying
Maxaman, Maxaman order code, Maxaman without dr</a></span><br /><span class="gensmall"></span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="name"><a  href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a></span></td>
            <td  class="row2"align="center"valign="middle"><span
    class="postdetails">0</span></td>
            <td  class="row1"align="center"valign="middle"><span
    class="postdetails">18</span></td>
<td class="row2"align="center"valign="middle"nowrap="nowrap"><span class="postdetails">Fri Aug 29, 2014 9:04 am<br /><a href="profile.phtml?mode=viewprofile&amp;u=294602
    
<view-source:http://www.oooforum.org/forum/profile.phtml?mode=viewprofile&u=294602>">RobinColvin</a>
    <a  href="viewtopic.phtml?p=725785#725785
    
<view-source:http://www.oooforum.org/forum/viewtopic.phtml?p=725785#725785>"><img
    src="templates/subSilver/images/icon_latest_reply.gif
    
<view-source:http://www.oooforum.org/forum/templates/subSilver/images/icon_latest_reply.gif>"alt="View
    latest post"title="View latest post"border="0"/></a></span></td>
      </tr>

    ...... many more....

    In iMacro, I have not figured out how to grab all of the
    references such as: "viewtopic.phtml?t=368050&amp;highlight="

    The problem is that the numbers are not sequential for finding the
    threads. It is even more difficult if I want to find all of the
    posts in one shot, which would mean that I would need to then grab
    10 or 11 more pages of lists such as:
    "search.phtml?search_id=198406476&amp;start=50"  for page 2, so, I
    suppose that it shows around 50 at a time.

    It is just a question of how much time I have to figure out how to
    do this (meaning learn iMacros or similar). I spent a few hours
    worrying about this today and then I went with my family to an
    apple orchard for some family time.






-- Andrew Pitonyak
    My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
    Info: http://www.pitonyak.org/oo.php




--
Alexandro Colorado
Apache OpenOffice Contributor
882C 4389 3C27 E8DF 41B9  5C4C 1DB7 9D1C 7F4C 2614

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php

Reply via email to