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)
-   -   Restrict Guest Viewing Threads in a Forum (https://vborg.vbsupport.ru/showthread.php?t=32132)

Nam 11-14-2001 07:35 PM

You're great PPN, thank you so so much.

I compared 2 files and saw that you've changed much of it, without you changing it, no way I could modify it myself.

Thanks again,

kanima 11-30-2001 08:15 PM

here is what i get when trying ot make a new forum after adding hack, so what is wrong ???


Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,allowguestpostview)
VALUES
(NULL,'1','Request to join-|TKP|-','All your joining request go here.','1','1','-1',
'','1','1','30','dstinson@troycable.net','',
'1','0','1','0','1','1',
'0','1','1','0','1')
mysql error: Unknown column 'allowguestpostview' in 'field list'

mysql error number: 1054

Date: Friday 30th of November 2001 04:31:00 PM
Script: http://www.ip-subspace.com/forum/forum/admin/forum.php
Referer: http://www.ip-subspace.com/forum/adm...php?action=add

kanima 11-30-2001 09:32 PM

NeverMind

Too used to Perl and all teh #### at top
that i don't read lol

Marc T Smith 12-01-2001 06:54 PM

Quote:

Originally posted by PPN

ok em sorted you had added the insert query into the doupdate part of the file.

Just reload this to the admin directory.

Scott
So - if I run the SQL query via phpmyadmin as prep:

ALTER TABLE `forum` ADD `allowguestpostview` SMALLINT(6) DEFAULT '1' NOT NULL

And then upload the file you posted for Nam (which is essentially forum.php already hacked), it will work.

Is this correct?

Scott MacVicar 12-02-2001 08:59 AM

won't advise it, i'm sure that was for version 2.2.0 and the latest is 2.2.1, the hack isn't hard to install so it would be simplier for you just to copy and paste.

kanima 12-03-2001 08:01 PM

Got the No view working, but it is not putting up the resigter page for guest to view ideas ?

frozt 03-25-2002 06:54 PM

Great hack!

xug 03-27-2002 06:33 PM

I have this hack installed and had no problems with it, see no errors etc.

But if I go to my Who's Online page I still see people browsing threads!

How is this possible?

Scott MacVicar 03-27-2002 10:50 PM

This has been addressed on vBulletin.com, I can't remember specific details but if they try to view the thread, it puts the page their at still into the session table which will give you the opinion that their viewing the thread.
Though all their viewing is the no permission page.

xug 03-27-2002 11:09 PM

Ok, than it must be all ok, because when I logged off and entered my site as guest I didn't see anything and thought maybe they have still some tricks to get in!

Wow, i'm happy now!

Thanks PPN for the fast reply.

Keep up the great work.


All times are GMT. The time now is 10:14 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.01092 seconds
  • Memory Usage 1,734KB
  • 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_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