Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
I knew how to do this in 6.7.3, but I cannot find how to make the forums only visible to logged in users and to go to the login page if the user is not logged in and tries to view the forums.

THanks for any help.


SAPA Admin
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
If users don't have access to forums they won't ever see the forums in UBB.T7


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
Maybe I'm not asking this correctly.

In my new UBB.T7 installation, if I log out, I still see the forums and can read them, but can't post. I'd like it so that user who aren't logged in won't even see the forums list, but the login page. Maybe I missed something in the setup but...


SAPA Admin
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Edit every forum and set the "guest" attribute to "none" vs "can read"


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Of course, by doing that, you're also excluding search engines. But perhaps that's what you want if it's a sensitive topic or something...



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by jgeoff
Of course, by doing that, you're also excluding search engines. But perhaps that's what you want if it's a sensitive topic or something...
yeh true,it's good to note that search engines are guests as well, and by limiting the guest user you're nerfing search engines from crawling your forum data.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
not a good idea IMHO - personally I tend not to sign up to sites that I cannot see the content of beforehand. But that is my own personal thoughts - and if it works for a site then good luck smile

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Agreed

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
ditto; if i can't read your content, i don't sign up; fel tthat way forever; but in the end it is the owners decision :


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
Thanks everyone. That's exactly what I needed. This is a private BBS so search engines aren't a problem.


SAPA Admin
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
You know... I'm still having an issue. In v6 if you weren't logged in, it automatically redirected you to the login page. Now, I did the permissions thing above and it just shows the forums list and says "You have no forums to view". Is there any way to have it automatically redirect to the login screen if the user isn't logged in?

Thanks again for your replies!


SAPA Admin
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
What you may want to do in the mean time is edit your language file to ADD underneath something like "Click Here to Log In" so it's more prominent...


Last edited by jgeoff; 02/05/2007 4:24 PM. Reason: Removed an unnecessary question for Rick ;)

GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
The exact verbiage is: "We cannot proceed.
There are no forums for you to view." Sorry for the vagueness in the previous post.


SAPA Admin
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
Also, I am a VB programmer, and know nothing about PHP, but if there's a way to edit the file that shows that particular message to redirect to the login page, that would be the best answer. Is there a way to do that with PHP?


SAPA Admin
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
I changed the default page to the "ubbthreads.php?ubb=login" string and it seems to do what I need initially. If the user is logged in it goes to the forums, and if not it shows the login page. The final thing would be to somehow still make it go the the login page after the user logs out or whenever the "We cannot proceed. There are no forums for you to view." message appears.


SAPA Admin
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

You were too quick for me. Going straight to the login page is a good solution for you I suppose. wink

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

Originally Posted by SAPA Admin
The exact verbiage is: "We cannot proceed.
There are no forums for you to view." Sorry for the vagueness in the previous post.


Okay, then. smile

You should be able to edit the NO_FORUMS key in cfrm.php via the language editor a link to the login page.

Something like this:

Quote
There are no forums for you to view.<BR /><BR />
Please <a href="/ubbthreads.php?ubb=newuser">register</a> or <a href="/ubbthreads.php?ubb=login">login</a>...

Hopefully those links will work okay - give it a shot...

In order to automatically go to the login page would be tricky, because you'd have to check, first, to be sure that no forums are viewable to guests.... unless there's another way I can't think of...


Last edited by jgeoff; 02/05/2007 4:22 PM.

GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You could edit the language file, particularly the cfrm.php language file. The NO_FORUMS one is what contains this message, you can change it to add a link or reword it.

Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
That is the coolest thing that language editor!

Thanks folks. That gets me almost there. If anyone can think of how to redirect automatically, that would be the ultimate, but until then, this is great! Thanks!

What a cool BBS! The customize features are unsurpassed!


SAPA Admin
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

We kinda like it, too... laugh


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Just a note for anyone wanting to edit a string. The language editor in the Control Panel allows you to edit any text string; if you know what you're looking for you can even search for specific strings in the language editor.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
One more item... it looks as if the cookies aren't persisting when I redirect to the login page as the inde page. Any ideas there?

Example, I log in, and say "remember me" then close the browser... opent he browser and open our BBS and in takes me to the login page again. If I am logged in, it goes through the login page then to the main forums page without user input.


SAPA Admin
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
are you logging in from a differant domain than what's set as your forum default?

for example,

Login as:
http://yoursite.tld

Where the forum url set in the config is:
http://www.yoursite.tld


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
Nope, same domain.

Actually, I just noticed that while it's not redirecting to the main page from the login page, it's actually still logged in. The Welcome shows logged in and I still have access to everything, it's just the redirect that isn't making it.

Does it always check the users status on the login page?


SAPA Admin
Joined: Mar 2005
Posts: 21
S
stranger
stranger
S Offline
Joined: Mar 2005
Posts: 21
Does it always check the users status on the login page?


SAPA Admin

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)