vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Different Cell Color for Stickies (https://vborg.vbsupport.ru/showthread.php?t=94328)

Andrew111888 08-14-2006 04:07 PM

This has now been released for 3.6.0:

https://vborg.vbsupport.ru/showthread.php?t=123939

DigitalDesktops 08-14-2006 06:16 PM

Any way of changing the cells next to it for a sticky too? gave it my own shot but screamed as i saw 6 or so error messages and no posts in forums =S

Note: haven't skimmed a lot as am very busy so if it's in another thread just link me =)

Andrew111888 08-14-2006 07:33 PM

In the threadbit template, simply find the desired <td>'s you're looking for and use the conditional:

Code:

<if conditional="$thread['sticky'] == 1">
// sticky td
<else />
// normal td
</if>


DigitalDesktops 08-14-2006 07:46 PM

hmm ok, gave it a go, problem is some of it is already within an if tag and as a result returns:
Code:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/outrider/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 67

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

EDIT:

Got it working, had to however use this instead (kinda different to what you said, as i can't seem to embed ifs together very well.

Here's a sample

Code:

<!-- NEW LATEST POST COLUMN FOR STICKY -->

<if condition="$show['threadmoved']">
        <td class="alt2" align="center">-</td>

<else />




<if condition="$thread['sticky'] == 1">
<td class="stickybg" title="<phrase 1="$thread[replycount]" 2="$thread[views]"> $vbphrase[replies_x_views_y]</phrase>">
                <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
                        $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
                        <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
                </div>
        </td>


<else />


<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">
      $vbphrase[replies_x_views_y]</phrase>">
                <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
                        $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
                        <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
                </div>
        </td>
        </if></if>


Note: this doesn't make it look perfect once moved, so don't use it if you can think of something better =)

Andrew111888 08-15-2006 05:43 PM

I'll look into it tonight, though really, it shouldn't be difficult...

danward 03-07-2007 01:54 PM

Installed on my board and works a treat! Had to alter it slightly to work on 3.6.4 but thanks for the mod its great! :)


All times are GMT. The time now is 10:28 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.01114 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete