vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Edit Topics Moderation Option? (https://vborg.vbsupport.ru/showthread.php?t=270954)

Dj Smuggla 09-26-2011 07:49 PM

Edit Topics Moderation Option?
 
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 07:12 PM

Anyone?

Dj Smuggla 10-07-2011 06:55 PM

I really need this, can someone take a look.

BirdOPrey5 10-08-2011 02: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 07: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 08:16 PM

Are you using the AME mod?

Dj Smuggla 10-08-2011 08: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 10: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:
PHP 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:
PHP Code:

//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.


All times are GMT. The time now is 06:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02067 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete