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)

Xenon 05-18-2004 06:22 PM

yep correct.

damn, c&p ^^

*fixing and uploading the correct file*

assassingod 05-18-2004 06:24 PM

Advance version works perfectly, thanks Xenon:)

Xenon 05-18-2004 06:25 PM

i'm glad to hear :)

insanctus 05-18-2004 06:28 PM

Quote:

Originally Posted by Xenon
i'm glad to hear :)

Works great, thanks Xenon. I like the nav bar add in .

Xenon 05-18-2004 06:28 PM

*gg*

we do as well ;)

Boofo 05-18-2004 07:43 PM

Ok, everything seems to work as expected. Great job, Stefan. ;)

The only thing I can suggest it maybe have it so when you click the hidden post option in editpost, that it also works with the message submit buttons instead of only the delete message button. Can that be added very easily?

Xenon 05-18-2004 07:50 PM

hmm, well, not that easy, as the delete button goes to another section of editpost, than the submit button.

well, it wouldn't be hard as well, if you add another checkbox below the signature field maybe ;)

Boofo 05-18-2004 08:01 PM

Wouldn't it actually be better to have it in the signature box area instead of the delete box area? That way it would be in the same place for all of them, right?

Xenon 05-18-2004 09:31 PM

well, depends on your personal opinion.

I put it into the deletion form, as it was actually meant to make a post of another user invisible instead of deleting it ;)

Boofo 05-18-2004 09:42 PM

Quote:

Originally Posted by Xenon
well, depends on your personal opinion.

I put it into the deletion form, as it was actually meant to make a post of another user invisible instead of deleting it ;)

Ahhh, ok, I see now. So when it is made invisible, it looks deleted to the original poster. That does make more sense then. ;)

What do I need to add to get it to work with the submit buttons, too then?

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)!

Jolten 05-19-2004 03:57 PM

My fault, I know. I went too fast. It's installed now Xenon and working great. Thanks for this!

/me clicks install

Xenon 05-19-2004 03:59 PM

glad to hear so ;)

Xenon 05-20-2004 09:35 PM

I've uploaded Version 1.01
Thx to Logician who took the time to look through it, this hack now can be used with moderate posts on as well.

Alsos a few little bugfixes with some php versions, as well as the preview now keeps the checkbox checked (damn thing if you forget a variable in the template ^^)

SnowBot 05-26-2004 03:35 AM

hhmm im getting an error :(

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/synergy4/public_html/forum/showthread.php on line 1435

line 1435 is

PHP Code:

  $number" . fetch_visible_sql() . ";, 


Xenon 05-27-2004 12:39 PM

that's why i said, it's a bit tricky to install this hack.

it's obviously, you have hacked your showthread otherwise before installing the hidden posts, and then just did a search and replace all.

the correct line there would have been:
Code:

$numbervisible = 1;
;)

DamasGate 05-31-2004 02:52 PM

Thanks for this nice hack

I have one problem when editing newreply temblate, i cant save change


http://www.damasgate.com/vb/upload/hide.gif

Any help plz

assassingod 05-31-2004 02:56 PM

Did you edit adminfunctions_template.com correctly?

DamasGate 05-31-2004 03:39 PM

yes i do it already

Xenon 05-31-2004 04:36 PM

hmm, try to do the steps exactly as i wrote in the install file.

from your screenshot it seems, you have just misspelled the condition...

DamasGate 05-31-2004 08:10 PM

i try it 2 time steps by step exactly

may be i do not have chance to install this great hack

Xenon 05-31-2004 08:13 PM

hmm, maybe your template editor is buggy.

at least it is not in my instructions to put the () BEFORE the can_see_hidden like you did in your screenshot.

DamasGate 06-01-2004 05:44 AM

Thanks Xenon for help

maybe next time can do it

Boofo 06-14-2004 10:06 AM

Stefan, I see you fixed the quick reply button for hidden posts here. Can we get the code for that, sir? ;)

ap0c 06-14-2004 12:09 PM

Quote:

Originally Posted by Boofo
Stefan, I see you fixed the quick reply button for hidden posts here. Can we get the code for that, sir? ;)

I dont see that option anywhere:D

Xenon 06-14-2004 05:52 PM

I'll update the instructions.

It's just the prototype here on vb.org, i have to make sure, everything works ^^

Boofo 06-14-2004 10:02 PM

Quote:

Originally Posted by Xenon
I'll update the instructions.

It's just the prototype here on vb.org, i have to make sure, everything works ^^

It seems to work great here. Have you figured out a way to do it with the quote reply button also? ;)

Xenon 06-14-2004 10:39 PM

/me hides because of his lazyness ^^

Boofo 06-14-2004 10:52 PM

Quote:

Originally Posted by Xenon
[high]* Xenon hides because of his lazyness ^^[/high]

That's catching, I think. ;)

teksigns 06-15-2004 01:24 AM

anyway to unhide a post once its hidden ?

Xenon 06-15-2004 11:40 AM

the build in manage post feaqture by vb (you see that when a post is deleted) gives you the possibility to unhide posts as well.


All times are GMT. The time now is 04:21 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.01409 seconds
  • Memory Usage 1,793KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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