vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Alternate rows ala SitePointForums (https://vborg.vbsupport.ru/showthread.php?t=60092)

Boofo 01-12-2004 03:29 PM

Quote:

Originally Posted by NTLDR
HTML Code:

<if condition="exec_switch_bg()">
No file mods there ;) And I'm sure it still works in vB3 RC1/2.

Ok, how would you set up a template with this and the bgclass?

NTLDR 01-12-2004 03:32 PM

HTML Code:

<if condition="exec_switch_bg()">
    <div class="$bgclass">this will be alt1 or alt2</div>
</if>
<if condition="exec_switch_bg()">
    <div class="$bgclass">this will be the other class</div>
</if>


Boofo 01-12-2004 03:37 PM

Quote:

Originally Posted by NTLDR
HTML Code:

<if condition="exec_switch_bg()">
<div class="$bgclass">this will be alt1 or alt2</div>
</if>
<if condition="exec_switch_bg()">
<div class="$bgclass">this will be the other class</div>
</if>


But how would you set the first one to be alt1? Do you have to add something to the stylesheet?

NTLDR 01-12-2004 03:38 PM

It already knows what, if anything the previous one was, however I'm sure you can override it with a parameter, but I don't have a copy of functions.php with me at the moment.

Mijae 01-14-2004 02:49 AM

Quote:

Originally Posted by NTLDR
It already knows what, if anything the previous one was, however I'm sure you can override it with a parameter, but I don't have a copy of functions.php with me at the moment.

Bah! I have my forumid's all messed up, so this wont work for me. Oh well, I didnt want to copy SPF anyways :P

n00belit3 02-09-2004 07:24 PM

Any idea how i could make this work for posbit only?

Andreas 02-09-2004 07:51 PM

Setting up an initial value should be as easy as

Code:

<if condition="$bgclass='alt2'">
<td class="$bgclass">This will be in alt2</b>
</if>
<if condition="exec_switch_bg()">
<td class="$bgclass">Now alternating the classes</td>
</if>
<if condition="exec_switch_bg()">
<td class="$bgclass">Now alternating the classes</td>
</if>
...


sabret00the 05-16-2004 09:15 PM

is their a way to acheive this without all of the conditionals?

Berethorn 07-02-2004 02:35 PM

Can someone explain carefully where to place all this code? I'm trying to get the post colors to alternate.


All times are GMT. The time now is 09:49 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.01126 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (3)bbcode_html_printable
  • (3)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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete