Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   07-23-2007, 12:47 PM
lisaj is a jewel in the rough Join Date: Apr 2007 Posts: 95 Location: Silverdale WA..
Making people have to be registered to view


Ok, might sound stupid, been looking for this for 45 minutes and I just cannot find in my control panel where to click to make it so people have to register to even see the forum. I do have it set up where they have to register to post, but I want them to have to register to even see it. Where is that?
Quote   |  



#2   07-23-2007, 12:54 PM
Send a message via MSN to AngelicGodz Send a message via Yahoo to AngelicGodz AngelicGodz has a spectacular aura about Join Date: Jul 2007 Posts: 32 Location: Portland, OR
Re: Making people have to be registered to view


This code will replace the forum description of ANY forum you choose with a "You are not logged in, so you cannot view this forum" message of your choice.

It will also make that forum redirect to the Login page.

To make a forum Registered Only, just put "[reg]" (with the brackets, without the quotes) somewhere in it's Forum Description.

Here's the code:


<script language="JavaScript" type="text/JavaScript">

/* Registered Only Forums code created by IceMetalPunk */


errorcode="Error Message Here, All HTML Allowed";

tds=document.getElementsByTagName("td");
for (i=0; i<tds.length; i++) {
if (tds[i].getElementsByTagName("span").length>0 && tds[i].getElementsByTagName("span")[0].className=="desc" && tds[i].getElementsByTagName("span")[0].innerHTML.indexOf("[reg]")!=-1) {

if (document.getElementById("userlinks").innerHTML.in dexOf("Logged in as")==-1) {

tds[i].getElementsByTagName("a")[0].href="Board_URL?act=Login&CODE=00";
tds[i+3].getElementsByTagName("a")[0].href="Board_URL?act=Login&CODE=00";
tds[i+3].getElementsByTagName("a")[1].href="Board_URL?act=Login&CODE=00";
tds[i].getElementsByTagName("span")[0].innerHTML=errorcode;
}
else {
tds[i].getElementsByTagName("span")[0].innerHTML=tds[i].getElementsByTagName("span")[0].innerHTML.split("[reg]").join("");
}
}
}
</script>

Replace the parts in RED appropriately.

Preview: Regdforumstest

Go there as a guest, and look at the "Reg'd Only" forum. Note the description, and try to go into it. Then log in, and note how the description has changed, and note that you can get into the forum.

Also note that wherever the [reg] tag is in the description, it is removed from it when the message (or normal description) is displayed, so no members will actually see the tag. It is only there to let the script know which forums to change.

Code by IcemetalPunk

I dont know if the html code work for Vbulletion

But if they allow html in vbulletion i guess you can try

Last edited by AngelicGodz; 07-23-2007 at 01:00 PM.
Quote   |  



#3   07-23-2007, 01:06 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,608 Location: Topeka, KS
Re: Making people have to be registered to view


um, don't do that ^ ?

At least, I don't think that is what you are after..
You can set the forum permissions in the acp > forms & moderators > forum permissions


You can set the user groups as far as who see's what.
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar

Last edited by Brandon; 07-23-2007 at 01:08 PM.
Quote   |  



#4   07-23-2007, 06:55 PM
lisaj is a jewel in the rough Join Date: Apr 2007 Posts: 95 Location: Silverdale WA..
Re: Making people have to be registered to view


Thanks to both of you for the advice.

I will use brandons as he is a vbulletin owner but thanks for the response AngelicGodz!

Ok did it and I logged out..it is working.

However, the login area is justified to the middle of the table. Because of the right hand colum advertising area..it centers it in the other table. I need this to be at the top. The right hand column pushes the table out.

I also want it to say you must be registered to view AND post on this forum.

Any help greatly appreciated.

bump

Last edited by lisaj; 07-23-2007 at 07:26 PM. Reason: Automerged Doublepost
Quote   |  



#5   07-23-2007, 07:42 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,608 Location: Topeka, KS
Re: Making people have to be registered to view


I've seen a few "spoiler" hacks at vb.org ?
Have you checked them out ?
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#6   07-23-2007, 07:47 PM
lisaj is a jewel in the rough Join Date: Apr 2007 Posts: 95 Location: Silverdale WA..
Re: Making people have to be registered to view


Ok checking it out now..thanks brandon!
Quote   |  



#7   07-24-2007, 08:52 PM
Send a message via AIM to Big Dan Send a message via MSN to Big Dan Send a message via Yahoo to Big Dan Big Dan is a jewel in the rough Join Date: Aug 2006 Posts: 129 Location: Florida
Re: Making people have to be registered to view


Just wanted to chime in here.. Anything that non-registered users cannot see, search engines cannot see either. I only have 3 or 4 forums hidden from guests.

You want to give those spiders plenty of food!
--------------------
- Big Dan proprietor of DJ Talk
Quote   |  



#8   07-24-2007, 09:25 PM
lisaj is a jewel in the rough Join Date: Apr 2007 Posts: 95 Location: Silverdale WA..
Re: Making people have to be registered to view


Ya, I JUST noticed the stop sign on all the spiders..is there a workaround this?

I have joomla on the front page ...but going to be converting to vbad--it probaly won't help the spider problem. :o anyone else have spider suggestions because it is critical for me to have this a registered seeing only forum.
Quote   |  



#9   07-24-2007, 09:50 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,608 Location: Topeka, KS
Re: Making people have to be registered to view


You don't want to show something to the spiders that you are not showing to guest. This is called Cloaking, You will get banned by google for this, I highly suggest Not doing this ;)

Sorry.
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#10   07-24-2007, 09:55 PM
lisaj is a jewel in the rough Join Date: Apr 2007 Posts: 95 Location: Silverdale WA..
Re: Making people have to be registered to view


Welp, so i would just be denpending on the meta tags and keywords to make it ? Or maybe could turn it on and off..IDK? Didn't know about cloaking. Or I should maybe work on SEO of reg pages and my directory because every one of those has a link to the forum?

Last edited by lisaj; 07-25-2007 at 10:16 AM.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
View Forum leaders Paul M Feedback and Suggestions 19 06-27-2007 05:58 PM
Don't show ads for registered users LinkBliss vBulletin Skins, Styles and Templates 6 06-24-2007 11:58 AM
Hello people! steve7 Introduce Yourself 2 01-25-2007 12:55 AM
How do I block a section of my vBulletin forum so bots cannot view? ARealRedneck vBulletin Questions 5 01-20-2007 09:46 PM


All times are GMT -6. The time now is 09:06 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory