vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   modifcation help =( (https://vborg.vbsupport.ru/showthread.php?t=72217)

owner 11-26-2004 07:19 PM

modifcation help =(
 
ok i should no what to do but im kinda lost here im adding this thing where it seperates the stickys from the regular Topics and here it what it says

Styles & Templates -> Style Manager -> ? ? -> Forum Display Templates -> FORUMDISPLAY

Find this code and remove the code in green:


<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
<!-- <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>">&nbsp;</td></tr> -->
</if>
$threadbits
<!-- end show threads -->
<else />


and this is what i have under my style

PHP Code:

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>
               
$announcebits
               
<tr>
                <if 
condition="$show['threadicons']"><td class='thead' colspan='2'>&nbsp;</td><else /><td class='thead'>&nbsp;</td></if>
                <
td class='thead' width='100%'><if condition="$show['threadratings']"><span style='float:$stylevar[right]'><a href="$sorturl&amp;order=desc&amp;sort=voteavg">$vbphrase[rating]</a$sortarrow[voteavg]</span></if><a href="$sorturl&amp;order=asc&amp;sort=title">$vbphrase[thread]</a$sortarrow[title] /<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a$sortarrow[postusername]</td>
                <
td style='white-space : nowrap' class='thead' width='150' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a$sortarrow[lastpost]</span></td>
                <
td style='white-space : nowrap' class='thead' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a$sortarrow[replycount]</span></td>
                <
td style='white-space : nowrap' class='thead' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a$sortarrow[views]</span></td>
               </
tr>
               <if 
condition="$show['threads']"><if condition="$show['stickies']">$threadbits_sticky</if>
               
$threadbits
               
<else /><tr


Morwyn 11-26-2004 07:52 PM

Ok, looks like to me that in the code you have in the frame, right before '$threadbits' (at the end of the code in ur template) you have to add this line of code:

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>">&nbsp;</td></tr

Meaning the code you pasted would look like that:

Code:

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='100%'>
              $announcebits
              <tr>
                <if condition="$show['threadicons']"><td class='thead' colspan='2'>&nbsp;</td><else /><td class='thead'>&nbsp;</td></if>
                <td class='thead' width='100%'><if condition="$show['threadratings']"><span style='float:$stylevar[right]'><a href="$sorturl&amp;order=desc&amp;sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if><a href="$sorturl&amp;order=asc&amp;sort=title">$vbphrase[thread]</a> $sortarrow[title] /<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]</td>
                <td style='white-space : nowrap' class='thead' width='150' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
                <td style='white-space : nowrap' class='thead' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
                <td style='white-space : nowrap' class='thead' align='center'><span style='white-space : nowrap'><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a> $sortarrow[views]</span></td>
              </tr>
              <if condition="$show['threads']"><if condition="$show['stickies']">$threadbits_sticky
<tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>">&nbsp;</td></tr>
</if>
              $threadbits
              <else /><tr>

See the big line ? that's what u gotta add, or u can copy and paste the code I just put.
When they say remove the green code, it's because of <!-- --> tags that are used to comment only.

owner 11-26-2004 08:01 PM

oooo god i should of known that =( but jeese not i feel really stupid lol but anyways thanxs alot ;) :D it worked :D

Morwyn 11-27-2004 07:22 PM

You're welcome ^_^


All times are GMT. The time now is 05:55 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.01110 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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