Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 04-05-2002, 01:21 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default A hack that disables posts made in private forums from showing up in "newest threads"

I have an area on my home forum page, in the welcome box, that shows the newest thread/reply made. I also have an area for the staff members, a private forum. When a staff member posts in this private forum, the thread appears in the "newest thread/reply" area. But then when a regular member clicks on it, they get an error ofcourse.

Is there any way to make it so when somebody posts in a private forums it wont show up in the newest thread/repy area?
Reply With Quote
  #2  
Old 04-05-2002, 01:33 AM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it should only show these private threads too u and other people who are able too view them anyway...
Reply With Quote
  #3  
Old 04-07-2002, 05:49 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah i know, but say you have a staff member area, where only staff of the forum can post. Well, If I posted a topic about a member, titled "I think we should ban Bob", it will appear on the main forum page under the "newest post area" that I have in my welcome panel. Even though if a user clicks on this, it will give them that error message, but the fact that they can read the title of the thread is alittle annoying, especially if others read it, like bob
Reply With Quote
  #4  
Old 04-07-2002, 06:44 AM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think what e is saying is that if you dont have access to those threads it wont show up in most recent 5 messages.... but im not sure can anyh one clear this up?
Reply With Quote
  #5  
Old 04-07-2002, 06:59 AM
cditty's Avatar
cditty cditty is offline
 
Join Date: Oct 2001
Location: Memphis TN
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the code that I use on my homepage.

Code:
          <table width="100" cellspacing="0" cellpadding="0" border="0">
          <? 
          require("/path/to/vb/config.php3");
          $db = mysql_connect("localhost", "userid", "password");
          mysql_select_db("forum_db", $db);
          $num_active = 10;
          
          $twentyfourhours= 24*60*60;
          $date1 = time() - $twentyfourhours * 1;
          $myselect = "select threadid, title from thread where lastpost > $date1 and forumid <> 34 order by lastpost desc limit $num_active";
          $result = mysql_query($myselect);
          if ($row = mysql_fetch_array($result)) {
            do {
              printf("<tr valign=\"top\">\n<td valign=\"top\" align=\"center\"><img src=\"/images/square.gif\" alt=\"\">&nbsp;&nbsp;</td>\n<td><font class=\"forum\"><a href=\"http://www.redhotsweeps.com/forum/showthread.php3?threadid=%d\" target=\"_blank\">$row[title]</a></font></td>\n</tr>\n", $row[threadid], $row[title]);
            }while ($row = mysql_fetch_array($result));
          } 
          ?>
          </table>
Chris
Reply With Quote
  #6  
Old 06-18-2002, 06:36 PM
jeo jeo is offline
 
Join Date: Mar 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd
I have an area on my home forum page, in the welcome box, that shows the newest thread/reply made. I also have an area for the staff members, a private forum. When a staff member posts in this private forum, the thread appears in the "newest thread/reply" area. But then when a regular member clicks on it, they get an error ofcourse.

Is there any way to make it so when somebody posts in a private forums it wont show up in the newest thread/repy area?
I need this also! Velocd, did you find any solution for this????
Reply With Quote
  #7  
Old 06-18-2002, 06:56 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not speak to the inventor of the original hack?

Satan
Reply With Quote
  #8  
Old 06-18-2002, 07:02 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Access Masks. Just deselect "Can view forum" for those who aren't allowed to see anything of that forum

works fine at my board (heavely tested it )
Reply With Quote
  #9  
Old 06-18-2002, 07:03 PM
jeo jeo is offline
 
Join Date: Mar 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hellsatan - Is there a hack for this already?
Reply With Quote
  #10  
Old 06-18-2002, 07:04 PM
jeo jeo is offline
 
Join Date: Mar 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Broekie - Ill try that right now thanks!
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 11:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04430 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete