![]() |
I'm actually suprised that you can't stop guests from viewing threads themselves in forum and the only solution is to stop them Viewing others and that includes the thread titles on forumdisplay.
This lets guests see threads made by someone else on the forumdisplay page but not the thread itself, they'll get a nice error telling them to register. Can be enabled on a forum by forum basis within the forum options. I use this for a member forum on my board and I would rather show a guest what the thread title is, instead of showing no title at all :) |
Firefly wrote one up that is a bit simpler. He posted it in the requests forum.
Amy |
good hack :)
|
yeah i noticed but you need to edit the file to add more forums and i don't play to give out the ftp password to every admin :D
|
Does this hack works in 2.0.3?
|
yes should do
|
I love this hack :), thanks for this great neat hack
|
when i go to change a forum to not allow guest view and save it, when i look back in admin its still turned on and all the posts they can still read ?
any advise what i may have done wrong ? |
Quote:
PHP Code:
|
re-installed and its still not working, i just cannot change the option in admin to stop guests viewing the posts
|
Are you sure that you executed the SQL Query?
|
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 ? |
got it working... thanks for the help
|
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?
|
I got it working
Will this drain my server at all? |
Nam i belive you have an INSERT query where it should be an update query make sure you followed the instructions correctly.
|
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. |
make sure on line 1498 of /admin/forum.php looks like
PHP Code:
|
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. |
ok em sorted you had added the insert query into the doupdate part of the file.
Just reload this to the admin directory. Scott |
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, |
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 |
NeverMind
Too used to Perl and all teh #### at top that i don't read lol |
Quote:
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? |
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.
|
Got the No view working, but it is not putting up the resigter page for guest to view ideas ?
|
Great hack!
|
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? |
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. |
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. |
Yet another great -useful- hack! Thanks for sharing it.
Got it installed without a hitch, nice work. Question... I have a couple levels of members. There are private forums for "level 2" members... I'd like to allow guests to see the forum/threads, and get the error template, but a different one. Regular forums: "sorry you'll need to be a member, join here" Level 2 forums:" sorry, you need to be a level 2 member, join here" Would this be difficult? My "level 2 " members pay a subscription for access to additional forums, would entice regular members to subscribe if they see the threads but not be able to read them :) Thanks again for the hack! |
One more Q.
Does this effect only "guests" or everyone that is not registered? Meaning, can users awaiting email conf. read the threads? |
Anyone that is not logged in will be unable to see the threads.
There is nothing within the code which requires you to adjust that line which is giving you the error sammy, did you apply any other hacks while doing this one? |
ok, i changes the two php files, uploaded them, then i ran the query from my server control panel, and guests can still read threads? do i have to turn it off in the cpanel some where?
is there a radio botton i have to click? please help thank you. |
You'll find a new option if you go to modify forums and click edit you will have a new radio button to let you select if guests can view threads.
|
i'm unsure how i ever missed this; but now that i've seen it, installed it,
and noticed it's working perfectly, i would just like to say thanks. thanks! :beard: |
ok, i re installed, it, no errors, but the guests can still see the board...... i have tried to install this 30 times.
i am on ver 2.2.5 what gives? |
this is designed to stop guests viewing a particular forum, not the board.
PM me your board url and i'll have a look at it. |
so in the query do i need to add a board "number"
like my main board is #3 for example, i need to add 3 in the query is this whats going on? u have PM, thanks |
Quote:
Allow guests to view posts? [ ]Yes[*]No no is checked. yet they still see the forum... AHHH lol |
All times are GMT. The time now is 05:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|