vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Staff can Post Hidden Posts (https://vborg.vbsupport.ru/showthread.php?t=112718)

Xenon 04-10-2006 10:00 PM

Staff can Post Hidden Posts
 
Alright, this Modification is a port of my 3.0.0 Version here.

Short description:

This mod allows you and your moderators, to post hidden posts, which will be visible just to your staff, but not to the users, which will allow you to have comfortable conversations about an issue directly within a thread, withoput users noticing.

There is no more to say. The modification is installed here since a long time and no problems appeared, but i still consider it as a beta version, right now, until usertest have approved it as well :)

Enjoy

Deagle Man 04-11-2006 12:52 PM

Sweet.
[high]* Deagle Man installs.[/high]
First post :).

I'd happily help you in any way possible.



Err...it just makes the post moderated and shows a link to it under PM's in the navbar. Is that right?

DementedMindz 04-11-2006 01:13 PM

thank you :)

ryancooper 04-11-2006 01:18 PM

Looks good will install when i upgrade

sensimilla 04-11-2006 01:44 PM

Thanks I will give it a try! :)

Ziki 04-11-2006 01:51 PM

Ziki clicks install

OndaReal 04-11-2006 02:00 PM

what does it mean "(after the textarea part)" ?

Xenon 04-11-2006 02:22 PM

Quote:

Originally Posted by Deagle Man
Err...it just makes the post moderated and shows a link to it under PM's in the navbar. Is that right?

yep, that's the way it works/worked all the time :)


@OnDa real: after </textarea>


I did not do much designing here, i just provided a working version, it's up to you to put the links where you want em ;)

bashy 04-11-2006 04:03 PM

Great addition, should be standard in my eyes ;) Thanks Xenon

Just a quicky though...I take it this can only be hidden using the QR post method?

Developer 04-11-2006 04:07 PM

What can i say?, what can i do?, just a word "Installed' :D :D

akanevsky 04-11-2006 04:56 PM

I highly doubt that ismod() is a standard vb function. ;)

Snake 04-11-2006 05:38 PM

Nice I was looking for this already.

Ziki 04-11-2006 07:00 PM

Doesn't work.....

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT COUNT(postid) AS count
FROM post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE visible = 0 AND dateline > 1144785242
AND deletionlog.primaryid IS NULL;

MySQL Error : Table 'ZIKISET.post' doesn't exist
Error Number : 1146
Date : Tuesday, April 11th 2006 @ 03:55:32 PM
Script : http://www.zikihideout.com/forums/index.php
Referrer : http://www.zikihideout.com/forums/ad...ex.php?do=head
IP Address : 87.197.144.175
Username : ZIKI-SET
Classname : vb_database

amykhar 04-11-2006 07:09 PM

If your post table doesn't exist, you've got bigger problems than this hack not working :D

Paul M 04-11-2006 07:26 PM

Actually - it's a fault in the hack - Table Prefix is missing from the query in global_start hook (for both tables used). :)

mightyb 04-11-2006 07:36 PM

Quote:

Originally Posted by ZIKI-SET
Doesn't work.....

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT COUNT(postid) AS count
FROM post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE visible = 0 AND dateline > 1144785242
AND deletionlog.primaryid IS NULL;

MySQL Error : Table 'ZIKISET.post' doesn't exist
Error Number : 1146
Date : Tuesday, April 11th 2006 @ 03:55:32 PM
Script : http://www.zikihideout.com/forums/index.php
Referrer : http://www.zikihideout.com/forums/ad...ex.php?do=head
IP Address : 87.197.144.175
Username : ZIKI-SET
Classname : vb_database


I get the same error...

Ziki 04-12-2006 10:21 AM

When I uninstalled the hack , everything is all right....damn

Xenon 04-12-2006 09:54 PM

damn... ^^

redownload the file i have uploaded now, then it should work :)

@Psionic: that's why that plugin is disabled :p

Ziki 04-13-2006 05:22 PM

That worked thank you :)

kall 04-13-2006 08:49 PM

On Open threads, I am getting the 'Open' box. It should say Close, right?

(btw... I love you man. I was just wondering if you had ported this.)

Zachariah 04-14-2006 12:54 AM

Thanks Boss
- This will help in support topics.

Nachtfalke 04-14-2006 09:55 PM

Works absolutely well. Just a question: is it possible to exclude those hidden posts from the newposts? A non-staff-member will get X new posts, even when y of them are hidden.
Any help is gladly apreciated!

Scooterpig 04-15-2006 03:32 AM

Excellent thank you indeed Xenon..:)

Xenon 04-18-2006 01:07 PM

@Nachtfalke: hmm, what newposts do you mean?
is it a custom hack? if yes you have to add a visible = 1 into the fetching querie

Nachtfalke 04-18-2006 04:22 PM

Quote:

Originally Posted by Xenon
@Nachtfalke: hmm, what newposts do you mean?
is it a custom hack? if yes you have to add a visible = 1 into the fetching querie

Oh, excuse me for forgetting that: I meant the Newposts in the Welcome-Panel of the vbAdvanced Portal.

Xenon 04-20-2006 07:08 PM

well, then it's that hack, which is coded incorrectly.

i'd report it to the author, tell him, that a visible = 1 is needed in the query, or hidden/deleted/moderated posts will count as well

Boofo 04-20-2006 07:59 PM

How in the bee-bee-jammers did I miss this? ;)

Good work, sir. ;)

Boofo 04-20-2006 09:37 PM

Does this work with the ajax feature in the Quick reply?

Boofo 04-20-2006 09:48 PM

Stefan, can you include the code in the xml file for opening and closing the thread, too? I would rather use your code for that if you can add it. ;)

salil 04-20-2006 10:25 PM

I well try this hack! thanx

Xenon 04-20-2006 10:48 PM

Bob, which code do you mean?

you mean the checkbox below the qr?
that's just copy and pasted from newreply, nothing serious i did myself :)

Boofo 04-20-2006 11:01 PM

Quote:

Originally Posted by Xenon
Bob, which code do you mean?

you mean the checkbox below the qr?
that's just copy and pasted from newreply, nothing serious i did myself :)

So we don't need to have any plug-in code for the close thread to work that you have with the hide post template code?

Also, will that code work in the showthread template, too? If I do it in the qr template, it goes above the quote and sig boxes, unless I did something really worng. ;)

Xenon 04-20-2006 11:46 PM

as long as it's within the <form> tags it will work.

it's nothing special i have added here :)

Boofo 04-21-2006 02:49 AM

Quote:

Originally Posted by Xenon
as long as it's within the <form> tags it will work.

it's nothing special i have added here :)

Will this also work with the editpost template?

Zachery 04-21-2006 04:21 AM

I'd suggest moving the bit of code to below the regular options, as $threadinfo[open] is not avaible in the showthread_quickreply template

find in the showthread template.
Code:

<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                                                </div>

Add after
Code:

<if condition="is_member_of($bbuserinfo, 5,6,7)"><fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px"><legend>Moderatory Options</legend>        <div>
        <label for="cb_hidepost" style="float:$stylevar[left]"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost" />Hide Post?</label>
        <div style="float:$stylevar[right]">
                <label for="cb_openclose"><input type="checkbox" name="openclose" value="1" id="cb_openclose" /><if condition="$threadinfo['open']">Close<else />Open</if> Thread</label>$threadinfo[open]
        </div>
</div></fieldset></if>


Zachery 04-21-2006 04:23 AM

Quote:

Originally Posted by Xenon
as long as it's within the <form> tags it will work.

it's nothing special i have added here :)

Seems to just flag posts as moderated.. which isn't really a desired result :p

Boofo 04-21-2006 06:14 AM

Quote:

Originally Posted by Zachery
I'd suggest moving the bit of code to below the regular options, as $threadinfo[open] is not avaible in the showthread_quickreply template

find in the showthread template.
Code:

<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                        </div>

Add after
Code:

<if condition="is_member_of($bbuserinfo, 5,6,7)"><fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px"><legend>Moderatory Options</legend>    <div>
    <label for="cb_hidepost" style="float:$stylevar[left]"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost" />Hide Post?</label>
    <div style="float:$stylevar[right]">
        <label for="cb_openclose"><input type="checkbox" name="openclose" value="1" id="cb_openclose" /><if condition="$threadinfo['open']">Close<else />Open</if> Thread</label>$threadinfo[open]
    </div>
</div></fieldset></if>


Thank you, sir. ;)

Can we use:

HTML Code:

<if condition="can_moderate()">
instead of:

HTML Code:

<if condition="is_member_of($bbuserinfo, 5,6,7)">
Which is better?

And can we get this to work in the editpost like it is?

Logikos 04-21-2006 09:33 AM

The can_moderate() function will only allow moderators that have mod provlideges for the forum there set to.

If usera is modding foruma and is view forumb, then usera will not beable to use the hack because he is modding forumb.

can_moderate() grants the following: All Admins, All SuperMods, and All Mods in said forum. At least this is how i belive it works as I've been using that for alot of my hacks on my forums and had no complants yet lol

Boofo 04-21-2006 10:02 AM

Quote:

Originally Posted by LiveWire
The can_moderate() function will only allow moderators that have mod provlideges for the forum there set to.

If usera is modding foruma and is view forumb, then usera will not beable to use the hack because he is modding forumb.

can_moderate() grants the following: All Admins, All SuperMods, and All Mods in said forum. At least this is how i belive it works as I've been using that for alot of my hacks on my forums and had no complants yet lol

Thanks for the explanation, sir. Now it makes a little more sense. As far as the template edit for the navbar for this hack, since it is on the forum home, can it use the can_moderate() function or do I need to change it from what Stefan has in the instructions?

kelangtri 04-21-2006 10:17 AM

Sweet.
* Deagle Man installs.
First post .

I'd happily help you in any way possible.


All times are GMT. The time now is 02:37 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.01306 seconds
  • Memory Usage 1,817KB
  • 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_html_printable
  • (8)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
  • (40)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