################################################## # HiddenPrivate.txt Version 1.1beta for # Ubb 6.1.0.3 # # Show's the private-forum only the user which # # has permission for the forum. # ################################################## # made by e@sy # # Date : 12-07-01 # ################################################## # Files which are used : # # cgi-bin : ubb_forum_summary.cgi # # cp_forums.cgi # # cp_user.cgi # # ultimatebb.cgi # # ubb_forum.cgi # # ubb_new_reply.cgi # # ubb_new_topic.cgi # # ubb_get_topic.cgi # # ubb_friend.cgi # # ubb_lib.cgi # # ubb_lib_2.cgi # # ubb_search.cgi # # ubb_topic_maint.cgi # # ubb_lib_posting.cgi # # ubb_edit_post.cgi # # templates : cp_edit_forum.pl # # cp_forum_add.pl # # public_move_topic.pl # # # ################################################## ###################### #ultimatebb.cgi open # ###################### ######### #find : # ######### # take viewer back to topic &set_page_elements; &Transition("$in{refer}", "$vars_wordlets{thanks_for_login}", "$in{refer}"); exit(0); } else { $ubb = ''; ################### #BELOW that ADD:: # ################### &Transition("$vars_config{CGIURL}/ultimatebb.cgi", "$vars_wordlets{thanks_for_login}", "$vars_config{CGIURL}/ultimatebb.cgi"); exit; ####################### # ubb_friend.cgi open # ####################### ######### #find : # ######### if ($this_forum[6] eq "private") { ################ # replace with # ################ if (($this_forum[6] eq "private")||($this_forum[6] eq "hidden")) { #################### # ubb_lib.cgi open # #################### ######### #find : # ######### if ($forumfacts[6] eq 'private') { ################ # replace with # ################ if (($forumfacts[6] eq 'private')||($forumfacts[6] eq 'hidden')) { ######## # find # ######## # make sure only open forums are listed foreach $j (@all_forums) { chomp($j); @checkit = split (/\|\^\|/, $j); if ($checkit[3] eq 'On') { ################ # replace with # ################ # make sure only open forums are listed foreach $j (@all_forums) { chomp($j); @checkit = split (/\|\^\|/, $j); if (($checkit[3] eq 'On')&& ($checkit[6] ne 'hidden')) { ######### #find : # ######### } ## end hop_to_list ################## # add this lines # ################## sub hop_to_list_hidden { local(%forum_order_list, %forum_name_list, %cat_list, @all_forums, @sorted_forums, @sortrow, $j, @checkit, $ok, $uno, $key, $cat_type, $ThisCatNam, $ThisCatNumb, @catgroup, $cat_name, $select_list); @all_forums = &OpenForumsFile; undef(%forum_order_list); undef(%forum_name_list); undef(%cat_list); undef(@sortcat); undef(@cats); # make sure only open forums are listed foreach $j(@all_forums) { chomp($j); @checkit = split(/\|\^\|/, $j); if ($checkit[3] eq 'On') { $forum_order_list{$checkit[8]} = "$checkit[14]"; $forum_name_list{$checkit[8]} = "$checkit[1]"; # create cat list: if ($checkit[0] > 0) { $cat_list{$checkit[8]} = "$checkit[0]"; } } } # sort forum list: @sorted_forums = sort { $forum_order_list{$a} <=> $forum_order_list{$b} } keys %forum_order_list; $select_list = qq~