Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No real PHP knowledge is needed, if you can follow instructions and do some copy and paste with text files.

OK - backup these files first so you can go back if something goes wrong. You'll also need to put original files back if you need "official" Infopop support.

Modify at your own peril is the saying.... but this is fairly safe.
code:

In your showflat.php file.....

Find this:

// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Display, U_Groups,... [:"red"]edited for length[/]
$Username = $user['U_Username'];

$html = new html;



BELOW it, add this:

// ------------------
// Block anon users from viewing posts - by JoshPet
if (!$Username) {
$html -> not_right($ubbt_lang['NO_AUTH'],$Cat);
}


In you showthreaded.php file......


Find this:

// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Display, U_Groups,... [:"red"]edited for length[/]
$Username = $user['U_Username'];


BELOW it, add this:


// ------------------
// Block anon users from viewing posts - by JoshPet
if (!$Username) {
$html -> not_right($ubbt_lang['NO_AUTH'],$Cat);
}




That should do it.

Then allow those forums to be read by the "Guest" group. It will let them view the list of posts.... but when they click to view a thread, if they are not logged in, they will receive the error page telling them that they must be logged in.. etc.


I haven't tested... but this should work fine.... let me know how it works out for ya.

Sponsored Links
Entire Thread
Subject Posted By Posted
How to make one thread apears only if NOT loged? ehm 12/05/2002 8:43 AM
Re: How to make one thread apears only if NOT loged? JoshPet 12/05/2002 8:57 AM
Re: How to make one thread apears only if NOT loged? JoshPet 12/05/2002 9:01 AM
Re: How to make one thread apears only if NOT loged? ehm 12/05/2002 9:24 AM
Re: How to make one thread apears only if NOT loged? JoshPet 12/05/2002 9:40 AM
Re: How to make one thread apears only if NOT loged? Dave_L_dup1 12/05/2002 9:48 AM
Re: How to make one thread apears only if NOT loged? ehm 12/05/2002 8:28 PM
Re: How to make one thread apears only if NOT loged? Dave_L_dup1 12/05/2002 9:33 PM
Re: How to make one thread apears only if NOT loged? ehm 12/05/2002 9:49 PM
Re: How to make one thread apears only if NOT loged? Dave_L_dup1 12/05/2002 9:51 PM
Re: How to make one thread apears only if NOT loged? JoshPet 12/06/2002 3:24 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)