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)
-   -   Staff can Post hidden Posts (https://vborg.vbsupport.ru/showthread.php?t=64860)

ap0c 05-18-2004 09:45 PM

this hack rocks!!!! thanks Xenon

ap0c 05-19-2004 02:02 AM

Quote:

Originally Posted by Boofo
I need to ask a quesion about the instructions for this hack. When we look for:

PHP Code:

visible 

and replace it with:

PHP Code:

" . fetch_visible_sql() . " 

that should only be done on the post table queries and NOT the thread table queries, right?
in the showthread.php.

I came up with 5 of these that needed changing correct? After I reply I get redirected back to the forum, not the thread. Is that how it's supposed to be?

Boofo 05-19-2004 02:12 AM

Yes, that is how it works here, also. ;)

ap0c 05-19-2004 02:42 AM

cool, just making sure I didnt screw up

Xenon 05-19-2004 02:14 PM

it uses the moderation system, and that brings one to the forum instead the thread.
no idea why they did that, but well, it's that way ;)

i've updated the instructions a bit (thx to my Pal logician for help me finding them).
Everyone who has installed this hack and it works, does not need to do anything, there were just a view simple bugs, for some php versions, and also missing TABLE_PREFIXES (damn things ^^)

Jolten 05-19-2004 03:21 PM

I'm getting an odd message when editing the editpost template...

----------

The following template conditional expression contains function calls:

<if condition="can_see_hidden()">

Function Name
Usage in Expression

can_see_hidden
can_see_hidden()

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()

--------

Where did I go wrong?
I assume it's becuase that function hasn't been added to the phpinclude_start. But where is the phpinclude_start?

Installing the advanced version.

Thanks

assassingod 05-19-2004 03:27 PM

Jolten, are you sure you edited adminfunctions_template.php?

Jolten 05-19-2004 03:32 PM

Uhmm.. the instructions don't refer to adminfunction_template at all. They refer to editpost.php, search.php. Then under "template changes" it refers to editpost and phpinclude_start, that's it.

Jolten 05-19-2004 03:36 PM

I think I know where I went wrong. Istarted with the advanced install and it appears that you also need the regular install. I'll go back install from the regular first then work upwards.

My fault. Thanks.

Xenon 05-19-2004 03:39 PM

Well, the first lines in the advanced install script should be clear i think ;)

Quote:

You must have the hidden post hack already installed on your board.
These instructions are just additional ones, if you want to have some cool special features (like
seeing how much new hidden posts are there, and such)!


All times are GMT. The time now is 11:09 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.01143 seconds
  • Memory Usage 1,740KB
  • 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
  • (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