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

Mr. Brian 06-20-2005 08:18 PM

Well, have a look a at the attachment

Mr. Brian 06-20-2005 08:31 PM

Well, have a look a at the attachment

Renada 06-21-2005 06:22 PM

Hi,

I installed this mod and everything works as it should on the posts (split, soft delete etc), but on the forumdisplay side when I check the boxes for stick, unstick, merge etc. the "Go" button doesn't show any change - i.e. no numbers show up. When pressing "Go" I get the error

"Invalid inline moderation items specified. If you followed a valid link, please notify the webmaster"

I've checked all the edits and file changes and everything appears to be correct.

Where have I gone wrong?

Thanks,
Renada

paulyy 06-22-2005 12:26 AM

Using the latest version, the merge thread and post doesn't work, nor does the move thread option, in the forumdisplay page, using 3.0.7

It's installed properly, and all the other options work.

It gets to the inlinemod.php and stays blank, there's no query or anything after it ...

Edit: can't get it working, think I'll just upgrade.

krohnathlonman 06-29-2005 03:57 AM

I'm not finding any additional info on a select all feature.....

MojoNixon 06-29-2005 10:55 AM

An "select all" entry in the dropdownlist would be really nice.

@paulyy:

Thread Moving is working like a charm in 3.07...just doublecheck if you have installed it properly.

Very nice addition to my board. Thanx. :-)

King Kovifor 06-29-2005 09:19 PM

/me installs this beautiful hack.

King Kovifor 06-30-2005 11:56 PM

Mistake/Bug:

When you merge posts the POST count doesn't go down. Which it should.

PN12 07-05-2005 11:39 PM

Great hack! Thanks :D

Riotblade 07-13-2005 06:53 PM

Nice

/me follows everybody else and clicks install

zell_11 07-20-2005 11:03 PM

hey i was wondering if there was any way you could just make this able to be moderated by a certain user-group instead of you having to keep admin mods to forums

rob_daemon 07-21-2005 03:48 AM

Quote:

Originally Posted by zell_11
hey i was wondering if there was any way you could just make this able to be moderated by a certain user-group instead of you having to keep admin mods to forums

Probably not; development of this hack has pretty much stopped due to 3.5 coming out and this feature being included by default. That feature is much more powerful and has superior implementation and control over what users can or cannot do.

aranthorn 09-03-2005 06:33 AM

installs because I can't wait for vb3.5 to get released. Thanks r_d!

EDDIE! 10-11-2005 06:07 AM

having a little problem with this, everytime I try to merge or close threads from the forum display page, I get a No Permission message. How could I fix this?

Lord Brar 10-11-2005 06:52 AM

Quote:

Originally Posted by EDDIE!
having a little problem with this, everytime I try to merge or close threads from the forum display page, I get a No Permission message. How could I fix this?

By upgrading to 3.5 gold :p

EDDIE! 10-11-2005 09:17 AM

yea but 90% of the hacks I have aren't compatible with 3.5, so that's why I'm not upgrading yet.

Nitewalker 12-24-2005 05:28 PM

hi i tried to install this on my vB3.0.10

i cant see that little selection box to select the post/thread.. So basically im unable to select it..Is someone able to help me out here ?

In need 12-28-2005 10:11 PM

Greetings..

The following message appears whenever I try to use any of the in-line moderation tools.

Quote:

Invalid inline moderation items specified. If you followed a valid link, please notify the webmaster
Some help would be appreciated,

Kind regards.

In need 01-01-2006 10:40 AM

Fixed the problem :D

|Jordan| 01-08-2006 01:48 PM

This hack seems to have added 5 queries to every forum page and the queries even show for regular users who are not mods\admins. Do these 5 queries increase load negatively?

rob_daemon 01-08-2006 04:09 PM

Quote:

Originally Posted by MyIS_Jordan
This hack seems to have added 5 queries to every forum page and the queries even show for regular users who are not mods\admins. Do these 5 queries increase load negatively?

Those queries are generated by can_moderate() and it only happens on showthread.php and forumdisplay.php. They're necessary because that's how it determines to see if the checkboxes should be placed on the page.

None of the queries should add too much load because they're all very simple SELECT statements.

mystic10 11-23-2007 04:49 AM

sir,
i have used ur inline mod as mind giving problem but when i replace with the inlinemod.php given by u i get errors and when i replace it back with mine i get invalid path..i have attached inlinemod.php that was orignal from 3.6.8 patch maybe u can help me out on what i do so the inline moderation can work as of now both yours and the original is giving problems...

these are the error:
sticky/unsticky/move/unmove/delete has this error
print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))

close

Fatal error: Call to a member function query() on a non-object in /home/yahoocit/public_html/inlinemod.php on line 391

open
Fatal error: Call to a member function query() on a non-object in /home/yahoocit/public_html/inlinemod.php on line 412

rob_daemon 11-23-2007 07:39 PM

Quote:

Originally Posted by mystic10 (Post 1387868)
sir,
i have used ur inline mod as mind giving problem but when i replace with the inlinemod.php given by u i get errors and when i replace it back with mine i get invalid path..i have attached inlinemod.php that was orignal from 3.6.8 patch maybe u can help me out on what i do so the inline moderation can work as of now both yours and the original is giving problems...

these are the error:
sticky/unsticky/move/unmove/delete has this error
print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))

close

Fatal error: Call to a member function query() on a non-object in /home/yahoocit/public_html/inlinemod.php on line 391

open
Fatal error: Call to a member function query() on a non-object in /home/yahoocit/public_html/inlinemod.php on line 412

You should NOT be using this with any other version than v3.0. That is what this was designed for and using it with future versions is a bad idea because it makes function calls that are incompatible with each other. This will not work at all with any other version than 3.0. Put back the version of the file that came with your version of vBulletin. If it is giving you problems, then contact Jelsoft for support. Furthermore, I no longer support this mod because vBulletin now includes this feature.

mystic10 11-24-2007 01:27 AM

K Thanks For The Reply Have A Great Weekend


All times are GMT. The time now is 09:46 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.01765 seconds
  • Memory Usage 1,820KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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