vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove Forum Last Post Etc (https://vborg.vbsupport.ru/showthread.php?t=197695)

Reece^B 11-30-2008 07:18 PM

Remove Forum Last Post Etc
 
Here's an example:
http://img217.imageshack.us/my.php?image=screenys6.jpg

Basically, I have removed the top bar.
But I would like to add it to the other forums.

What code/template do I need?

Thank you.

Lynne 11-30-2008 08:06 PM

I cannot tell what you want to do. But, if you are wondering what template something is in, this may help - 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.

Reece^B 12-01-2008 09:09 AM

Thanks, but I will try and explain a little clearer.

I have removed the : Forum - Last Post - Threads - Posts that sit above the forums here:
http://img520.imageshack.us/img520/9876/67681350xv2.jpg

So now it looks like this, which is what I want:
http://img224.imageshack.us/img224/563/89008626pp6.jpg

However, how can I add the Forum - Last Post - Threads - Posts to another catergory, ie:
http://img151.imageshack.us/img151/852/34556935ij3.jpg

Lynne 12-01-2008 02:23 PM

Are different templates used to spit out the category header for "PC Info Base" vs. "Main Category"? If so, just add the code that you took out (from the first image) into the template that is used by the Main Category.

Reece^B 12-02-2008 05:42 AM

No, I believe that they both come from forumhome_forumbit_level1_nopost

Lynne 12-02-2008 02:52 PM

Hmmm, then it seems you may have to put in a condition in order to spit out that table header. Something like:
HTML Code:

<if condition="in_array($foruminfo['forumid'], array(1,2,3))">
html for table header if the forum is id 1,2, or 3
</if>


Reece^B 12-02-2008 07:38 PM

Ah brilliant, so it would read like:

<if condition="in_array($foruminfo['forumid'], array(1,2,3))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

</if>

What template will this fit into?

Lynne 12-02-2008 07:43 PM

It would go into the same template that spits out the category strip - I think you said it was 'forumhome_forumbit_level1_nopost'. It may already have the <table>, so you may only have to add the stuff in the <thead> tags.

Reece^B 12-03-2008 07:09 PM

Right, I tried playing around with that but it wasnt working.
I did some more research and found this:
http://www.vbulletin.com/forum/showthread.php?t=121427

This worked for me, so I didn't need that conditional.
However I still want it removed from the 'pbc info' category in that picture I linked to.

So who can I have it in some and not it others?

Lynne 12-03-2008 07:28 PM

Quote:

Originally Posted by Reece^B (Post 1677961)
Right, I tried playing around with that but it wasnt working.
I did some more research and found this:
http://www.vbulletin.com/forum/showthread.php?t=121427

This worked for me, so I didn't need that conditional.
However I still want it removed from the 'pbc info' category in that picture I linked to.

So who can I have it in some and not it others?

If you only want it shown for certain forums and not others, then you will need to use a condition.


All times are GMT. The time now is 03:53 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.01212 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete