Logged In Users, Forum Announcement - 03/06/2005 8:30 PM
I was looking into a quick hack to only allow logged in users to view each forum announcement. Guests will see nothing, logged in users will see whats supposed to be there.
I know its in ubb_forum, and this is what I have by default
I need to place this line of code somewhere I think, but Im having a hard to figuring it out?
Any help would be greatly appreciated!
I know its in ubb_forum, and this is what I have by default
Code
# get forum record
@this_forum = &GetForumRecord($in{f});
chomp($this_forum[15]); # <- sort option (new)
chomp($this_forum[16]) if $this_forum[16]; # <- new forum intro/announcement
$this_forum[16] = "" unless $this_forum[16];
Code
# user must be logged in!
unless ($username ne '') {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a> $vars_wordlets{or} <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=agree">$vars_wordlets{register_title}</a>!);
}