Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2003, 01:52 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Private forum post title showing in user search

I have a private forum that is locked but viewable on the main board. when a member who has not been given access to it tries to enter it they just get the usual screen with no posts. but if looking at the main board you can see the name of the last poster in that forum, if yo click on their name it brings up their user info, and in the "last post" column it gives the title of the thread they posted to in the private forum. sure, if you try to follow the thread it does not let you, but it does show the title of the thread itself, that is what I want to get rid of.
IO have fully private administrative forums that registered members can't even see, so they can't see recent posts in there either, but this thing about having a locked forum that members can't get inot, but they have a way to see at least the title of the posts in that forum bother me.
Is there some way, short of making the forum compltely unseen, to get rid of the title of the thread last posted to in that forum? I have tried to figure this out a few times over the last few years but still have no real answer for it. i would appreciate any help at all that I can get with this issue. I am running 2.3.0 and have staff members and registered members for the most part so pretty straight forward.
......mauisun
Reply With Quote
  #2  
Old 09-14-2003, 11:25 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you deny access to the forum for certain usergroups, they won't see the last thread info either. I guess you are aware of that?
Reply With Quote
  #3  
Old 09-14-2003, 01:10 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for taking the time to answer Logician. I can easily turn off "view forum" so they can't see posts in members threads in last post by, but unfortunately that also makes the entire forum disappear. i want people to be qable to see the name of the forum in my forums lineup. just not access it until permissions are set to allow them to access it. which is fine, and how it works right now. but, if you look to the right of the forum you will see the "last post by" and who posted in that forum last. if you click on that persons name it shows their posts titles. yes you can't follow the post into a closed forum but you can still see the title of the post itself which is the problem.
you can't see this posts title in the view new posts drop down link, just if you follow the last post by link and check their recent posts.
the problem I have with this is I have a couple of forums that are adult in nature and the title of some of the threads are, basically, adult in nature and language.
I tried a hack on here that is supposed to set last post by to never if a certain group is viewing the forums, but unfortunately it sets it to never for every single forum not just the one I want to stop the last post by listing for.
any thoughts on how to either get rid of the "last post by" name listed for the particular forum, or a set of forums? or how to keep folks from clicking on the last post by name and seeing the title of their posted thread in that forum?
my chief problem here is the groups I want to deny the ability to follow the last post by thread title is the entire registered group. thanks for taking the tiem to look at this. obviously it is a security issue with the board software since the actual post title is not in the view new posts list itself. just the actual members info where it shows their most recent posts.
.......mauisun
Reply With Quote
  #4  
Old 09-14-2003, 07:11 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit index.php, find:

PHP Code:
if ($forum['lastpost']>0) {
          
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
          
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
          eval(
"\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
        } else {
          
$forum['lastpostinfo']='Never';
        } 
After that add:
PHP Code:
if (($bbuserinfo[usergroupid]=='2' OR $bbuserinfo[usergroupid]=='1') AND ($forum['forumid']==X))
{
$forum['lastpostinfo']='No Peaking';

Replace X with your forumid. This hack will make last post disappear if user is from usergroup 2 (registered users) or 1 (guests).
Reply With Quote
  #5  
Old 09-14-2003, 07:44 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will try this aswell perfect mod there sorry 4stealing your thread , thanks

bur how would i make this applicable to 2 usergroups ? ie admin and my other group ?
Reply With Quote
  #6  
Old 09-14-2003, 07:48 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corsacrazy
i will try this aswell perfect mod there sorry 4stealing your thread , thanks


bur how would i make this applicable to 2 usergroups ? ie admin and my other group ?
This already applies to 2 usergroups: Guests and registered members.

Why would you want the thread title be invisible to the admins?
Reply With Quote
  #7  
Old 09-14-2003, 07:55 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
This already applies to 2 usergroups: Guests and registered members.

Why would you want the thread title be invisible to the admins?
i was lookin at it backwards sorry i only wanted it visable to admins and the other group but this does that as you hav said
Reply With Quote
  #8  
Old 09-14-2003, 08:09 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corsacrazy
i was lookin at it backwards sorry i only wanted it visable to admins and the other group but this does that as you hav said
PHP Code:
 if (($bbuserinfo[usergroupid]!='6' AND $bbuserinfo[usergroupid]!='Y') AND ($forum['forumid']==X)) 

$forum['lastpostinfo']='No Peaking'

Replace Y with your other usergroup's id and X with the forum..
Reply With Quote
  #9  
Old 09-14-2003, 08:11 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works like a charm for me too bro. I have 12 forums to add to the list. I also have 7 user groups. can you tell me what numbers are for each user group or where I can find that info in the control panel? is 0 the user group for admins and mods, the 1 for guest and 2 for registered? 3,4,5 etc would be for the next ser groups down the line?. also, one las tthing. to add more then one forum do I add

($forum['forumid']==X) a space over from the current one but withing the ending ) to look like what I made below?
I think would probably be what would cover multiple forums. just need to know what my user groups are I guess.
I, for oone, definitely appreciate your help on this code, thanks bro
.....mauisun

if (($bbuserinfo[usergroupid]=='2' OR $bbuserinfo[usergroupid]=='1') AND ($forum['forumid']==X) AND ($forum['forumid']==X))
{
$forum['lastpostinfo']='No Peaking';
}
Reply With Quote
  #10  
Old 09-14-2003, 08:15 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
PHP Code:
 if (($bbuserinfo[usergroupid]!='6' AND $bbuserinfo[usergroupid]!='Y') AND ($forum['forumid']==X)) 

$forum['lastpostinfo']='No Peaking'

Replace Y with your other usergroup's id and X with the forum..
your the man
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 01:30 AM.


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.04438 seconds
  • Memory Usage 2,275KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete