vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I make a hidden section, BUT... (https://vborg.vbsupport.ru/showthread.php?t=273955)

DISLEX 11-13-2011 10:15 PM

How do I make a hidden section, BUT...
 
I have had my forum up and going for years. I know how to make a private and/or passworded section that only certain groups can see and/or access.

What I am wanting to do is create a new section under my current "Off Topic" section. NO user group should be able to see it, but if they click a hidden link or just happen to know the full URL, they can access it.

I plan on placing an "X" somewhere on this site. I wont mention it to anyone, but once it's found and clicked on, it will take the user to this new hidden section.

Here is where it gets even more crazy.

Under this section (ONLY), I want EVERY user to be a Mod. They should be able to delete posts and threads. Edit them, as well.

I want this section as an experiment and for fun.

How do I go about this?

Please speak newb to me!

Thanks in advanced!

--------------- Added [DATE]1321226502[/DATE] at [TIME]1321226502[/TIME] ---------------

I forgot to add...

The search should not bring up anything within this forum!

DISLEX 11-14-2011 10:28 PM

Anyone?

nerbert 11-15-2011 04:14 AM

Set the Display Order to 0.

Set moderator permissions in Forum Permissions

Index New Post in Search Engine = No

DISLEX 11-15-2011 05:36 AM

Thank you. :o)

Is there anyway possible to make it so that when someone is viewing the "online.php" page, the people on this secret page can not be seen there? Perhaps they do not show up at all or perhaps it just shows them in the Off Topic section?

--------------- Added [DATE]1321340001[/DATE] at [TIME]1321340001[/TIME] ---------------

DISLEX 11-23-2011 01:35 AM

Bump for help.

nerbert 11-23-2011 03:25 AM

Maybe this will do it. In includes/functions_online.php find line 128

PHP Code:

    if (($wol_thread["$threadid"]['isdeleted'] OR !$wol_thread["$threadid"]['visible']) AND !can_moderate($forumid)) 

and change it to

PHP Code:

    if (($wol_thread["$threadid"]['isdeleted'] OR !$wol_thread["$threadid"]['visible'] OR $forumid == '50') AND !can_moderate($forumid)) 

Where you see '50' put in your actual forumid. I'm not sure there should be quotes around it so try without quotes if it doesn't work.

I'll be away until early next week, I'll check back then.

EDIT: If this is a category I'm not sure the category forumid will work (I'm not sure this will work at all actually). If you have several forums put in

PHP Code:

OR in_array($forumidexplode(',''51,52,53')) 

instead of

PHP Code:

OR $forumid == '50' 


DISLEX 11-24-2011 06:53 AM

I don't know where to find "includes/functions_online.php". :(

nerbert 12-03-2011 12:20 AM

It's on your server. Open cPanel, expand the "forum" folder then the "includes" folder. If you ever edit the php files be sure you have preserved the original code so you can restore it if it doesn't work.


All times are GMT. The time now is 01:15 PM.

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.01070 seconds
  • Memory Usage 1,731KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete