vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How would I go about doing this? (https://vborg.vbsupport.ru/showthread.php?t=70596)

rene mauricio 10-14-2004 10:07 PM

How would I go about doing this?
 
I was able to do this with IPB but now that I own a vB I am really lost. I have no idea how vB outputs its templates. Could someone here please tell me how I might be able to accomplish this both on the index and the forum display?

https://vborg.vbsupport.ru/

(Notice the alternating cell colors)

Zachery 10-14-2004 10:23 PM

Quote:

Originally Posted by rene mauricio
I was able to do this with IPB but now that I own a vB I am really lost. I have no idea how vB outputs its templates. Could someone here please tell me how I might be able to accomplish this both on the index and the forum display?

http://home.comcast.net/~rene-mauricio/example.jpg

(Notice the alternating cell colors)

I really dont think you can do that to the thread display, because of how it is done

However it is possible on the forumhome, there is a modification at vBulletinTemplates.com to do it

rene mauricio 10-14-2004 10:54 PM

You wouldnt happen to have a link to it would you? I have no idea what I am looking for (what they might call it) other than to look in the VB3 section. :(

Zachery 10-14-2004 11:11 PM

Quote:

Originally Posted by rene mauricio
You wouldnt happen to have a link to it would you? I have no idea what I am looking for (what they might call it) other than to look in the VB3 section. :(

http://www.vbulletintemplates.com/mo...ternating+rows

Its old, but it should still work

rene mauricio 10-15-2004 01:50 AM

Ah thank you. It indeed did work for FORUMHOME but it needed a little adjustment.

<if condition="$forum['displayorder'] % 2 == 0">class="alt2"<else />class="alt1"</if>
should be:
<if condition="$forum[forumid] % 2 == 0">class="alt2"<else />class="alt1"</if>

I also found out (on my own) which file needed to be touched up in order to get it to work with THREADBIT properly. It was only a matter of finding out when and where vB spits out that template and the rest was easy :D


See? :surprised:

Zachery 10-15-2004 01:57 AM

Quote:

Originally Posted by rene mauricio
Ah thank you. It indeed did work for FORUMHOME but it needed a little adjustment.

<if condition="$forum['displayorder'] % 2 == 0">class="alt2"<else />class="alt1"</if>
should be:
<if condition="$forum[forumid] % 2 == 0">class="alt2"<else />class="alt1"</if>

I also found out (on my own) which file needed to be touched up in order to get it to work with THREADBIT properly. It was only a matter of finding out when and where vB spits out that template and the rest was easy :D


See? :surprised:

displayorder works, IF you have them numbered correctly, forumid only works correctly if the forums are in a linear order without gaps. 1,2,3,4 etc


All times are GMT. The time now is 03:03 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.01151 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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