vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hide the forum by time (https://vborg.vbsupport.ru/showthread.php?t=37750)

mem 04-21-2002 10:00 PM

Hide the forum by time
 
Hack description:
1.Allow you to setup whitch forum can be hide by time, ex: 8:00 am ~ 14:00pm ,Something like you had a adult sex-photo forum,you can set it open in the night,and hide during day time.

Install Steps:
1.Upload install_autoswitch.php to your admin folder
2.Backup your Vbulletine database before you install this hack.
3.Complete all the steps as follow.

PS:
you must set forum permissions to become private's forum,then option can view.


for example the following figure

http://home.kimo.com.tw/ansys007/08.PNG

John 04-22-2002 11:33 AM

A fine hack - thanks!

Admin 04-22-2002 12:02 PM

Very very nice.

wooolF[RM] 04-22-2002 12:52 PM

]*Cough* "Time to star to hide the forum" should be "Time to start to hide the forum" ;)

Velocd 04-22-2002 04:09 PM

hmm, interesting.

Floris 04-22-2002 04:10 PM

Quote:

Originally posted by FireFly
Very very nice.
Very nice indeed!

Matt 04-22-2002 08:02 PM

Very very very very very nice :D

Austin Dea 04-22-2002 09:20 PM

Awesome hack!

Twig Deez 04-23-2002 12:15 AM

interesting. :)

does this prevent access from the forum completely,
or does it just hide it during the specified time periods,
still making it accessible via the forum url?

mem 04-23-2002 12:31 AM

this can prevent access from the forum completely during the hide time periods, :p

bigmattyh 04-23-2002 12:33 AM

Interesting idea...

So you could have something like "Finch's Forum... AFTER HOURS!" and only show it between 10pm and 4am. Mature content expected.

Are the times based on the users' times, or the server's?

Erwin 04-23-2002 12:34 AM

Cool hack :)

mem 04-23-2002 12:43 AM

if you want to hide the forum during 10pm~4am,and open the forum during other time.

you would set

1.Time to star to hide the forum ~ [22]
2.Time to end of hide the forum ~ [4]

the forum to become can view during other time.

AND the times based on the usergroups' times :classic:

[b00lean] 04-23-2002 12:46 AM

what everyone has a adult porn section?

MrLister 04-23-2002 01:33 AM

Quote:

Originally posted by [b00lean]
what everyone has a adult porn section?
hehe protect the kids :D

Slynderdale 04-23-2002 08:05 AM

nice hack but when i tried it out i kepted getting all these parse errors on most of the pages so i removed it

Admin 04-23-2002 12:10 PM

Quote:

Originally posted by [b00lean]
what everyone has a adult porn section?
Only we don't. :nervous:

Slynderdale 04-23-2002 12:27 PM

Quote:

Originally posted by FireFly

Only we don't. :nervous:

Hmm, how do we know, it could be hidden from normal members ;)

Blade3 04-23-2002 12:42 PM

It's look nice I try it !

Thanks alot !
Excuse me, but I'm a french guy :( !

:confused:

bigmattyh 04-23-2002 06:14 PM

Quote:

Originally posted by Blade3
Excuse me, but I'm a french guy :( !
:confused:

Ce n'est pas une probleme! Pourquoi est-ce que vous disez "Excuse me"?

(Et pardonnez-moi si ma francais est mal! Je n'avais assiste une classe pendant que sept ou huit ans!)

JackG 04-27-2002 02:28 AM

I installed it - but I dont see the time feild on the screen.
Did the install script change my templeates - or was
I supposed to manually?

UPDATE: I Just realized that we can no longer
post in the forum - get this error:

------------------
Database error in vBulletin 2.2.5:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmili e,showsignature,ipaddress,iconid,visible) VALUES (NULL,'18472','test','JackG','1','1019877909','0', 'test','1','1','216.254.99.86' ,'0','1')
mysql error: Table 'post' is read only

mysql error number: 1036

------------

Please help!

Orlandu 04-27-2002 02:31 AM

I'm curious to see how people will use this hack. I for one don't think that I will need it, but it is a great idea. Could be used for RPG type boards or the sort.

JackG 04-27-2002 02:41 AM

UPDATE: I Re-Booted and now we are able to post again.

mem 04-27-2002 03:24 AM

Quote:

Originally posted by JackG
I installed it - but I dont see the time feild on the screen.
Did the install script change my templeates - or was
I supposed to manually?

UPDATE: I Just realized that we can no longer
post in the forum - get this error:

Please help!

JackG

this hack only use database " forumpermission " , so i think, you should not install this hack and happen this error !!

mem 04-27-2002 03:29 AM

Quote:

Originally posted by Orlandu
I'm curious to see how people will use this hack. I for one don't think that I will need it, but it is a great idea. Could be used for RPG type boards or the sort.
this hack can hide forum by time and hide by usergroup

you can see image

http://home.pchome.com.tw/world/ansys57/09.PNG

http://home.pchome.com.tw/world/ansys57/10.PNG

Orlandu 04-27-2002 03:45 AM

I know exactly what it does. I just want to see how people come up with ideas of what it's good for. I don't really need it, since I don't hide but one forum and that's for the staff. If the need ever arises though, I'll use it.

Thomas P 04-27-2002 02:51 PM

Hi,
sounds really great, I couldn't use it at the moment,
am thinking about integrating it for a new subforum though
Thanks,
-Tom

Matt 04-27-2002 07:09 PM

I did have a similar hack when I had my Harry Potter Board as I wanted it the board to act differently at different times. For this one it had the styles changing so that during the day the boards were light and at night they were darker :)

JackG 04-27-2002 07:44 PM

MEM? My error is gone
hack still installed but I dont see the time option
in my control panel. Any ideas?

Thanks!

mem 04-28-2002 10:31 AM

Quote:

Originally posted by JackG
MEM? My error is gone
hack still installed but I dont see the time option
in my control panel. Any ideas?

Thanks!

you must set forum permissions to become private's forum,then option can view.

can view this image

Scott MacVicar 04-28-2002 10:37 AM

Chen why don't you tell them about our adult forum, it has some real good stuff ;)

Slynderdale 04-30-2002 06:12 AM

Quote:

Originally posted by PPN
Chen why don't you tell them about our adult forum, it has some real good stuff ;)
ah ha! i knew it exsisted!

Admin 04-30-2002 06:36 AM

Quote:

Originally posted by PPN
Chen why don't you tell them about our adult forum, it has some real good stuff ;)
Shh, we don't everyone to come! ;)

mem 04-30-2002 07:06 AM

Quote:

Originally posted by FireFly

Shh, we don't everyone to come! ;)


:eek: oh, i know ;)

but,can i go to it ?? :p

aidler 05-21-2002 11:01 PM

After installing the hack, when I try to chance forumpermissions of any non private forum which doesn't have the hide by time attributes in forumpermissions, I get the following error:

Quote:

Invalid SQL: INSERT INTO forumpermission
(forumpermissionid,usergroupid,forumid,canview,can search,canemail,canpostnew,canmove,canopenclose,ca ndeletethread,canreplyown,canreplyothers,canviewot hers,caneditpost,candeletepost,autoclose,autoopen, canpostpoll,canvote,canpostattachment,cangetattach ment)
VALUES
(NULL,4,7,1,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0)
mysql error: You have an error in your SQL syntax near ',0,0,0,0)' at line 4

mysql error number: 1064
Obviously non private forums do also carry the autoclose and autoopen attributes but as I'm unable to put any numbers into the corresponding fields (they are not there if the forum is non private) they are empty. This leads to the above error. Does anyone have any solution??

hypedave 06-27-2002 04:05 PM

okay mem i have got this gack installed on vb 2.2.6
now how do I get this wot work, I have try everything you suggested, either you are leaving instructions or it just isnt working right now, please can you give us more detail as to how to get this to work, thanks

hypedave 09-04-2002 03:41 PM

*sigh* 3months down the road, has anybody got this to work at all????

Prankster 01-13-2003 01:52 PM

I have the same error how aidler. it is possible that we interpreted the instruction from the installation guidance "place this to the top". Please legend nevertheless times which exact you mean since. I only set the lines over it

the error arose, when I entered the clock times

TheComputerGuy 03-10-2003 12:31 AM

Well I never seemed to get this to work properly...does anyone have it figured out?

Bison 11-07-2003 01:04 AM

Quote:

Originally Posted by aidler
After installing the hack, when I try to chance forumpermissions of any non private forum which doesn't have the hide by time attributes in forumpermissions, I get the following error:



Obviously non private forums do also carry the autoclose and autoopen attributes but as I'm unable to put any numbers into the corresponding fields (they are not there if the forum is non private) they are empty. This leads to the above error. Does anyone have any solution??

I figured out a temp fix for this ... open up the formpermission.php, make a backup and remove these lines:

autoclose,autoopen

$autoclose,$autoopen

autoclose=$autoclose,autoopen=$autoopen

Save/upload "formpermission.php" and make any changes to your permissions. Add the lines back in the same place they were (or upload the backup you made) and everything works fine.

I hope that someone try to fix this so that it will work without having to remove these variables!


All times are GMT. The time now is 02:41 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.01184 seconds
  • Memory Usage 1,811KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete