vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Inline Moderation Tools (v1.2.1) (https://vborg.vbsupport.ru/showthread.php?t=68791)

Crazy Serb 05-24-2005 04:16 AM

ok, after asking a few questions on vbadvanced.com forum, here's what i came up with... I've added the following code to the adv_portal template since it replaces all the code between the <html>... and <body> tags from the templates:

Code:

<if condition="THIS_SCRIPT == 'forumdisplay'">
<body<if condition="can_moderate($foruminfo['forumid']) AND $show['inlinemod']"> onload="inline_init($foruminfo[forumid], 'thread'); <if condition="$_REQUEST['mod'] == 1">inline_reset();</if>"</if>>
<else />
<if condition="THIS_SCRIPT == 'showthread'"><body onload="<if condition="can_moderate($thread['forumid']) AND $show['inlinemod']">inline_init($thread[threadid], 'post');</if>$onload">
<else /><body></if></if>

Now, I get the permission to delete the posts, I get the checkboxes, I get the number of checked off topics in the bracket, but when I hit GO (to move topics, for example) I still get the no permission error. I've tried adding myself as a moderator to the specific forum in question as well, and nothing.

Btw, is my <body> tag supposed to look like this on the page load:

Code:

<body onload="inline_init(, 'thread'); ">

rob_daemon 05-24-2005 04:21 AM

Quote:

Originally Posted by Crazy Serb
ok, after asking a few questions on vbadvanced.com forum, here's what i came up with... I've added the following code to the adv_portal template since it replaces all the code between the <html>... and <body> tags from the templates:

Code:

<if condition="THIS_SCRIPT == 'forumdisplay'">
<body<if condition="can_moderate($foruminfo['forumid']) AND $show['inlinemod']"> onload="inline_init($foruminfo[forumid], 'thread'); <if condition="$_REQUEST['mod'] == 1">inline_reset();</if>"</if>>
<else />
<if condition="THIS_SCRIPT == 'showthread'"><body onload="<if condition="can_moderate($thread['forumid']) AND $show['inlinemod']">inline_init($thread[threadid], 'post');</if>$onload">
<else /><body></if></if>

Now, I get the permission to delete the posts, I get the checkboxes, I get the number of checked off topics in the bracket, but when I hit GO (to move topics, for example) I still get the no permission error. I've tried adding myself as a moderator to the specific forum in question as well, and nothing.

Btw, is my <body> tag supposed to look like this on the page load:

Code:

<body onload="inline_init(, 'thread'); ">

Glad you found out what the problem was. And no the body tag is not supposed to look like that. The first argument in the inline_init() function is supposed to be the thread or forum ID that you're currently viewing. Missing this would cause that no permissions page to be thrown. I'm not sure how to resolve this, though.

d2sector 05-24-2005 09:37 AM

Is it possible to add the inline mod tools to search results? As i need to move alot of specific threads and being able to mass move searched threads would be nice ^.^

Mickey19781978 05-28-2005 04:24 PM

cheers m8

this an excellent hack
i assume we all have good use with this

d2sector 05-29-2005 02:09 AM

Im pretty sure vb 3.5.0 is going to have inline mod tools when it comes out next month isnt it?

rob_daemon 05-29-2005 06:36 AM

Yes it is; ergo this hack will be made obsolete.

FD929 05-31-2005 02:30 PM

A question was asked about attachments here: https://vborg.vbsupport.ru/showpost....&postcount=206 but never answered. Most of my use of this tool is with merging posts that deal a lot with attachments. I do not want to delete the attachments, merely merge all text and attachments into one post, however the attachments from all except the first post are lost. How can this be remedied? A solution would be very much appreciated.

PS - thank you to all involved in making this wonderful tool. Outstanding work.

rob_daemon 06-01-2005 11:37 PM

Quote:

Originally Posted by FD929
A question was asked about attachments here: https://vborg.vbsupport.ru/showpost....&postcount=206 but never answered. Most of my use of this tool is with merging posts that deal a lot with attachments. I do not want to delete the attachments, merely merge all text and attachments into one post, however the attachments from all except the first post are lost. How can this be remedied? A solution would be very much appreciated.

PS - thank you to all involved in making this wonderful tool. Outstanding work.

Sorry, I must have missed that post. Use this for a solution.

Open inlinemod.php and find:

PHP Code:

// Remove the others 

Add before that:

PHP Code:

// save attachments to new post
$DB_site->query("UPDATE " TABLE_PREFIX "attachment SET postid = {$vars['newpost']['postid']} WHERE postid IN (" implode(', '$vars['posts']) . ")"); 

I have no way of fixing any previous attachments that were left missing. However, they were not removed from the database so you could manually relink them if you need to.

And I'm glad you like the hack.

bryan09 06-11-2005 02:02 AM

Two questions:

1. I added that above coding for Merging and keep attachments, but it does not seem to be working. Anything else I should have done to inlinemod.php or others?

2. Anyway to have the option of Physically Deleting the Posts/Threads instead of Soft delete?

Mr. Brian 06-20-2005 07:24 PM

It seem don't work on some skin..


All times are GMT. The time now is 09:25 AM.

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.01375 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete