Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2009, 09:16 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can you point me in the right direction -?

Quote:





1. The name of the thread-starter.

2. The name of the person who posted last, (or even the whole "Last Post" column).

I need help hiding these two things from view of everyone in a specific sub-forum.
If someone could help me out, or even just point me in a direction- it would be greatly appreciated.

|
|
|

--------------- Added [DATE]1241909444[/DATE] at [TIME]1241909444[/TIME] ---------------

Not even the slightest idea?
Reply With Quote
  #2  
Old 05-10-2009, 12:57 AM
benny92000 benny92000 is offline
 
Join Date: Dec 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a conditional statement that disables this for certain forums? I don't know what code you would have to add inside the condition.
Reply With Quote
  #3  
Old 05-10-2009, 02:16 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by benny92000 View Post
Maybe a conditional statement that disables this for certain forums? I don't know what code you would have to add inside the condition.
Thanks for leaving an idea- I'm still stuck if there's anyone out there willing to help me out here.
Reply With Quote
  #4  
Old 05-10-2009, 02:29 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the template and put a condition around the stuff:
HTML Code:
<if condition="$forumid != 'x'">
stuff to show if not forum x
</if>
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

If you have further problems, post the exact code in the templates you are using, along with the template name.
Reply With Quote
  #5  
Old 05-13-2009, 07:41 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Find the template and put a condition around the stuff:
HTML Code:
<if condition="$forumid != 'x'">
stuff to show if not forum x
</if>
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes .......

Thank you for the help Lynne, unfortunately I failed to read this before figuring it out- thanks for the tip, according to source- it was forumdisplay being loaded and after tinkering around in there with no luck I moved on,,,, I eventually found what I was looking though and have removed the threadstarter name as well as last post name.... Thanks for the help, it's always appreciated.


One last quick question; if you could help me,.- say I wanted to edit a .php file and wanted to use something like one of the following:

Code:
<if condition="$bbuserinfo['usergroupid'] == 10">The whole contents of the .php file</if>

or

<if condition="is_member_of($post, 10)">The whole contents of the .php file</if>

or

<if condition="$post['usergroupid'] == 10">The whole contents of the .php file</if>

or

<if condition="in_array($forum[forumid], array(1,2,3))">The whole contents of the .php file</if>


Any idea how I would write the conditions around the contents of the .php file to make it not produce an error--- or could you point me in a direction, (I never mind learning something new).
Reply With Quote
  #6  
Old 05-13-2009, 07:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are probably looking for these (use in the php page). Take a look in the articles forums - lots of good stuff in there.
PHP Code:
if (is_member_of($vbulletin->userinfo10)) 
{
stuff

PHP Code:
if (is_member_of($post10)) 
{
stuff

PHP Code:
if ($post['usergroupid'] == 10
{
stuff

PHP Code:
if(in_array($forum['forumid'],array(1,2,3)))
{
stuff

Reply With Quote
  #7  
Old 05-13-2009, 08:58 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You are probably looking for these (use in the php page). Take a look in the articles forums - lots of good stuff in there.
PHP Code:
if (is_member_of($vbulletin->userinfo10)) 
{
stuff

PHP Code:
if (is_member_of($post10)) 
{
stuff

PHP Code:
if ($post['usergroupid'] == 10
{
stuff

PHP Code:
if(in_array($forum['forumid'],array(1,2,3)))
{
stuff



You're the best... thanks for helping out once again.
Reply With Quote
Reply


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 05:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03967 seconds
  • Memory Usage 2,249KB
  • 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
  • (2)bbcode_html
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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