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)

Boofo 04-21-2006 10:17 PM

I had a really freaky thing just happen. I added the following code in the newreply template right after $threadmanagement (near the bottom)

HTML Code:

    <if condition="is_member_of($bbuserinfo, 5,6,7)">
    <fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
      <legend>Moderating Options&nbsp;</legend>
      <div style="padding:$stylevar[formspacer]px">
      <label for="cb_hidepost" style="float:$stylevar[left]"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost" />Hide Post?</label>
      </div>
    </fieldset>
    </if>

It seemed to want to make every post hidden after a hidden post no matter if the hide post box was checked or not. I removed the code and it still did the same thing. I tried deleting the hidden posts with the inline moderation and still every post was hidden (even after deleting the code from the template). I had to delete the test thread and make a new one and now it seems to be working right. What would cause something like that to happen even without the code in the template?

theArchitect 04-22-2006 12:37 AM

For those who are seeking the postbit tweak which gives "This post is hidden" text here it is.

HTML Code:

<if condition="$show['moderated']">
      <div>
          <span class="highlight">
              <strong>This post is hidden - really not visible to normal users!!!</strong>
          </span>
      </div>
      </if>

The colour of the text is controlled by the Highlight Font css attribute in your style manager.

I have put it just above:

HTML Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Same spot for either postbit or postbit_legacy.

If you don't know which template your forum is using, the answer is simple. If your member info is on the left (like here on vB.org) then you are running postbit_legacy. If your user data is above your posts then you are running the postbit template. ;)

Hope this helps. :)

Boofo 04-22-2006 12:53 AM

Quote:

Originally Posted by theArchitect
For those who are seeking the postbit tweak which gives "This post is hidden" text here it is.

HTML Code:

<if condition="$show['moderated']">
<div>
<span class="highlight">
<strong>This post is hidden - really not visible to normal users!!!</strong>
</span>
</div>
</if>

The colour of the text is controlled by the Highlight Font css attribute in your style manager.

I have put it just above:

HTML Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Same spot for either postbit or postbit_legacy.

If you don't know which template your forum is using, the answer is simple. If your member info is on the left (like here on vB.org) then you are running postbit_legacy. If your user data is above your posts then you are running the postbit template. ;)

Hope this helps. :)

How about a pic so they can see what it looks like where you have it? ;)

theArchitect 04-22-2006 12:59 AM

Quote:

Originally Posted by Boofo
How about a pic so they can see what it looks like where you have it? ;)

Sorry, I knew I forgot something. ;)

COBRAws 04-22-2006 07:56 AM

Any way of not showing up as a not-moderated post? It freaks me out when I go to the admincp or my portal page and see the number of unmoderated posts.

Btw, this hack is great

lordi 04-22-2006 11:30 AM

thanks for this effective hack..it's really amazin'

My question is:::: Does it work with the AJAX ??????????? bcoz when the user replies on the post using the Ajax reply option...It may not work coz the page is not going to be refreshed......!!!

Can u tell us if it does work with it??????????
'

Xenon 04-22-2006 12:07 PM

@Cobra: i am working on this, as it annoys me myself :)

@lordi: there is no problem with ajax, the mod takes affect on the new posting function itself, not the newreply.php

lordi 04-22-2006 12:59 PM

i mean when i post a hiddent one..and the user replies with the direct reply =ajax...the page then will not be refreshed though the subject to be shown...

I tried it yesterday in the Can't see attachments Hack....and i got this result

What do u say about this one?
----------------

Xenon 04-22-2006 01:57 PM

hmm, that did never appear here on vb.org, and as the hiddenposts are using the moderation posts system, that error would occur on normal boards with moderation enabled as well, so i gues, it's another mod on your board which makes problems...

@all: i have uploaded a new version, only thing changed is the moderation que plugin is now changed and active, and should work

I hate ajax with not showing error messages....

Zachery 04-22-2006 09:49 PM

Stefan would it not be better to store the post in another state?

0 is active 1 is moderated why not use 2? active but hidden or something? Unless I'm not understanding how this works.


All times are GMT. The time now is 02:20 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.01172 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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