PDA

View Full Version : Edit Topics Moderation Option?


Dj Smuggla
09-26-2011, 08:49 PM
Anychance someone could make a mod to edit topics quickly?

Maybe a option in 'moderation options' to edit selected topics & then all the topics are displayed on one page, like when you view the moderation que in the admincp. But with a 'Edit' button at the bottom.

Is this even possible?

Dj Smuggla
09-28-2011, 08:12 PM
Anyone?

Dj Smuggla
10-07-2011, 07:55 PM
I really need this, can someone take a look.

BirdOPrey5
10-08-2011, 03:34 PM
Maybe you can explain it better- I for one don't know what you're talking about... Screeenshots of what you want might help.

Dj Smuggla
10-08-2011, 08:51 PM
Ok basically:
Im using RSS feeds from wshh to display their videos on my site.
I've added a embedding mod so i just put the full url to the video in the post without any tags around it & the video shows up in the post.

But when the RSS poster posts a thread it shows the link instead of the video. I just have to edit the post & click save then the video shows up.
I've made the RSS poster put all the threads in the moderation que before they can be seen on the site.

So im looking for a easyer way than to manually 'click edit & click save' about 50 - 80 threads a day.

So i was thinking about this:
Maybe a option in 'moderation options' to edit selected topics:
http://i27.lulzimg.com/8da295df92.png

Then all the topics are displayed on one page like when you view the moderation que in the admincp. But with a 'Edit' button at the bottom next to 'Save'.

http://i27.lulzimg.com/b45dc62b31.png

BirdOPrey5
10-08-2011, 09:16 PM
Are you using the AME mod?

Dj Smuggla
10-08-2011, 09:25 PM
Yes to embed the videos, but like i said when the rss poster posts the videos there not embeded. I have to manually 'click edit & click save' about 50 - 80 threads a day.

Do you think what i suggested could work m8

BirdOPrey5
10-09-2011, 11:23 AM
I also have been working on this issue, and I'm close but not solved yet...

I have edited the file rssposter.php in the includes/cron/ directory... Since there are no hooks.

Find this code:

$rsslog_insert_sql[] = "($item[rssfeedid], $itemid, '$itemtype', '" . $vbulletin->db->escape_string($uniquehash) . "', '" . $vbulletin->db->escape_string($item['contenthash']) . "', " . TIMENOW . ", $threadactiontime)";
$cronlog_items["$item[rssfeedid]"][] = "\t<li>$vbphrase[$itemtype] <a href=\"$itemlink\" target=\"logview\"><em>$itemtitle</em></a></li>";
}

And right after it add:

//Set AME Flag Start
require_once(DIR . '/includes/functions.php');
$amethread = fetch_threadinfo($itemid);
$postid = $amethread['firstpostid'];

$post = fetch_postinfo($postid);

$post['message'] = $post['pagetext'];

require_once(DIR . '/includes/ame_bbcode.php');
$value = ame_prep_text($post['message']);
echo $post['message'];
if ($value == 1)
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "post SET pagetext ='" . $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
}
else if ($value == 2)
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "post SET pagetext ='" . $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
}
//Set AME Flag End

This code will set the ame_flag to "1" in the database for the post but for some reason does NOT change the [url] bbcode to [ame]...

I play with this on and off, if/when I get a solution I will post it here... Maybe someone else can look at this and have an idea where I am going wrong. From what can see the function ame_prep_text should do it... I will post this in the AME thread- maybe someone has some ideas.