vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I hide the last post, threads and posts columns in a forum? (https://vborg.vbsupport.ru/showthread.php?t=262287)

ryancooper 04-19-2011 10:18 PM

How can I hide the last post, threads and posts columns in a forum?
 
1 Attachment(s)
I want to hide the last post, threads and posts columns in a forum and sub forum. See Attachment. :) Can some one help me with what i would need to do?

I assume I can edit the template and add a if/else statement but I can not figure it out.

Thanks,
Ryan C:eek:

ryancooper 04-20-2011 07:36 PM

Can anyone help on this?

kh99 04-20-2011 07:57 PM

I think you want to edit templates forumhome_forumbit_level1_post and forumhome_forumbit_level2_post and take out the columns you don't want. I believe the headings are in the FORUMHOME template.

ryancooper 04-20-2011 08:10 PM

But can I do it with a conditional so it only removes them in certain forums? Like this?

Code:

<if condition="$forum[forumid] != X">
CODE
</if>


Thanks for the reply!

kh99 04-20-2011 08:33 PM

Yes. You could do something like:

Code:

<if condition="!in_array($forum[forumid], array(1, 2, 3))">
                <td class="alt2">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
</if>


ryancooper 04-27-2011 02:04 PM

Thanks for the reply i am going to play with this today!

Pirates Ale 11-07-2011 12:05 PM

Just to bring this up again, I'm wondering how to take out the headers Threads and Posts?

I have been able to take out the data but left with the headers.

Pirates Ale 11-08-2011 03:28 PM

Quote:

Originally Posted by Pirates Ale (Post 2265310)
Just to bring this up again, I'm wondering how to take out the headers Threads and Posts?

I have been able to take out the data but left with the headers.

Anyone have an idea where the header code is located?

Lynne 11-08-2011 04:35 PM

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.)


All times are GMT. The time now is 05:30 PM.

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.01230 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete