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)

Lesane 11-06-2001 04:15 PM

Are you sure that you executed the SQL Query?

supernut 11-06-2001 04:32 PM

yes, that is all done, i have had it checked and its 100%

i found that problem

moderateattach='$moderateattach'

i did not put the correct part after and added the same thing 2 time, so now its saving ok, but guests can still read the posts ?

supernut 11-06-2001 04:49 PM

got it working... thanks for the help

Nam 11-11-2001 10:25 PM

am I doing this right? I got this hack worked, but everytime I change the forum description, it creates a duplicate forum, force me to mass move topic from the old one to the new one just for description change. Is that suppose to happen if you use this hack?

SgtSling 11-12-2001 05:30 AM

I got it working

Will this drain my server at all?

Scott MacVicar 11-12-2001 06:18 AM

Nam i belive you have an INSERT query where it should be an update query make sure you followed the instructions correctly.

Nam 11-13-2001 09:39 PM

I did what the instruction says:

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

May be I did something wrong, I'm very dumb in PHP stuff, only know "copy and paste" command when install hacks. So please tell me how to change (remove) that query out using PHPMyAdmin?

Everytime when I change the forum description, it automatically create a duplicated one, I had to do mass topic moving alot, it's really tired. Please help, thanks a lot.

And btw, I love this hack, it's a great hack for a new forum, the traffic and member joining are increasing fast. Thanks.

Scott MacVicar 11-14-2001 06:31 AM

make sure on line 1498 of /admin/forum.php looks like

PHP Code:

  $DB_site->query("UPDATE forum SET replycount='$numberposts',threadcount='$numberthreads',lastpost='$lastpost',lastposter='".addslashes(htmlspecialchars($lastposter))."',lasttitle='".addslashes(htmlspecialchars($lasttitle))."' WHERE forumid='$forumid'"); 

I'm sure at this point you have an INSERT query where it should be the update one above.

Nam 11-14-2001 07:12 AM

Sorry, my file has only 550 lines, were you talking about double lines? I did try to search it carefully but couldn't find the line you told me.

Here is my admin/forum.php file, please check it for me too see if anything wrong, there was nothing like what you've told me. Thanks a lot.

Scott MacVicar 11-14-2001 03:04 PM

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

Just reload this to the admin directory.

Scott


All times are GMT. The time now is 12:23 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.01150 seconds
  • Memory Usage 1,732KB
  • 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_php_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
  • (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