The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
How to aquire Post Number during Inline moderation
#1
Is there any way to aquire Post Numbers (along with Post ID's) of selected posts for Inline moderation???

If I'm not wrong it has something to do with "inline_moderation.js" but my javascript skills are 0 any help please.... Huh
Reply
#2
I am confused on what you want to do.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#3
Ok let me explain it using image

[Image: 2wq4gw8.jpg]

In my plugin I want to generate a report which will tell the "moderator" which post numbers of a thread were affected with his action, Default Javascript is designed to collect "pid" (i.e post ID's) but I need "post numbers"
as Mybb docs states
[The post number is in relation to the thread and is not identical to the "Post ID"]

Reply
#4
In the postbit hook you can use the variable which counts that IIRC.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#5
(07-15-2014, 01:49 AM)Pirata Nervo Wrote: In the postbit hook you can use the variable which counts that IIRC.

I didn't actually get that can you please explain it little bit more

in "postbit_posturl" there is variable "postcounter"

in my plugin I'm using this statement to to get all POST ID's selected for inline moderation
$postlist = explode("|", $mybb->input['posts']);

Now how can I get that variable "postcounter" here ?
Reply
#6
In the 'postbit' hook, inside function build_postbit (file functions_post.php) you can get that variable.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#7
(07-15-2014, 03:02 AM)Pirata Nervo Wrote: In the 'postbit' hook, inside function build_postbit (file functions_post.php) you can get that variable.

but what if I want to get that variable in inc/plugin/MyPlugin.php?
Reply
#8
You will need to use hooks, that's what I'm saying. I recommend you to read my PDF tutorials.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply





Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here