Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Sticky background color change Details »»
Sticky background color change
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 02-22-2008 Last Update: Never Installs: 124
Template Edits
Re-useable Code Translations  
No support by the author.

Simple template mod, updated from my 3.5.x mod.

ACP -> Styles & Templates -> Style Manager -> Edit Templates -> Threadbit

Find:

Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
Replace with:

Code:
<!-- Sticky Color -->
<if condition="$thread['sticky'] == 1">
<td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Color -->
Then create the CSS class:

ACP -> Styles & Templates -> Style Manager -> Style Name -> Main CSS -> Additional CSS Definitions

Add the following:

Code:
.stickybg
{
	background-color: #333333;
}
Change the red code to your new color.

Screenshot:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-23-2008, 05:38 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #3  
Old 02-23-2008, 05:42 PM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working. Thanks
Reply With Quote
  #4  
Old 02-23-2008, 08:55 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deal Done!
Reply With Quote
  #5  
Old 02-24-2008, 09:43 PM
Derek Chai Derek Chai is offline
 
Join Date: Aug 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make it so that I can do any color?
Reply With Quote
  #6  
Old 02-25-2008, 07:27 PM
iyihost iyihost is offline
 
Join Date: Feb 2008
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

change #333333

www.iskeletor.com/renkkodlari.html
Reply With Quote
  #7  
Old 02-28-2008, 05:37 PM
Netaudio Netaudio is offline
 
Join Date: Oct 2006
Location: Braunschweig Germany
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*thx*
Reply With Quote
  #8  
Old 03-01-2008, 06:33 AM
Tene Tene is offline
 
Join Date: Nov 2007
Location: UK
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you do this so it changes colour of navbar buttons instead...been looking even left a post but no replies...
any help with this i would be very grateful

eg:home,arcade,vbplaza,calendar & chat buttons
Reply With Quote
  #9  
Old 04-11-2008, 03:50 PM
synisterk synisterk is offline
 
Join Date: Feb 2008
Location: South Carolina
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was wondering how to do this....Thanks a lot.
Reply With Quote
  #10  
Old 04-23-2008, 06:54 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already had this done (perhaps another mod - not this one) and had my stickies, subscribed threads, moderated threads, announcements, etc all custom colored. My additional css had this originally...

Code:
/* ***** make announcements, stickies, moderated, polls and soft deleted posts  pretty ***** */
.announcement {
background-color: #f9e0fb;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.sticky {
background-color: #fefdf0;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.poll {
background-color: #bcdcf2;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.moderated {
background-color: #f9e0fb;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.subscribed {
background-color: #dcf2d4;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.deleted {
background-color: #ffc1de;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
The problem is now, it is not working, ineffective basically. The only thing that does work after upgrading vbulletin today is announcements retained its pink background color. I used this mod and modified it to work for sticky, but the rest are ineffective. How can I go about reversing so what I originally had will work?

My threadbit template is:

Code:
<tr>
    <td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
        $thread[openclose_editable]
        <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
    </td>
    <if condition="$show['threadicons']">
        <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
    </if>

<!-- Sticky Color -->
<if condition="$thread['sticky'] == 1">
<td class="sticky" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Color -->

        $thread[title_editable]
        <div>
            <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
                <span style="float:$stylevar[right]">
                    <if condition="$show['rexpires']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/expires.gif" alt="<phrase 1="$thread[expiredate]" 2="$thread[expiretime]">$vbphrase[expires_on_x_y]</phrase>" /> </if>
                    <if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
                    <if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
                    <if condition="$show['paperclip']"> <a href="#" onclick="attachments($thread[threadid]); return false"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a> </if>
                    <if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
                    <if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
                </span>
            </if>
            <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
            $thread[movedprefix]
            $thread[typeprefix]
            $thread[moderatedprefix]
            <a href="<if condition="$thread['url']">$thread[url]<else />showthread.php?$session[sessionurl]t=$thread[threadid]</if>$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
            <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
        </div>
    
        <if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
            
        <div class="smallfont">
            <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
            <if condition="$show['guestuser']">
                $thread[postusername]
            <else />
                <span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
            </if>
        </div>
        
        <if condition="$show['unsubscribe']">
            <div class="smallfont">
                <a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
                <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
            </div>
        </if>
        
    </td>
    
    <if condition="$show['threadmoved']">
    <td class="alt2" align="center">-</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?$session[sessionurl]find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
        </div>
    </td>
    </if>
    
    <if condition="$show['notificationtype']">
        <td class="alt1"><div class="smallfont">
            <label for="sub$subscribethread[$threadid]">$thread[notification]</label>
        </div></td>
        <td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
    <else />
        <td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&amp;t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
        <td class="alt2" align="center">$thread[views]</td>
            
        <if condition="$show['forumlink']">
            <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
        </if>
    </if>
    
    <if condition="$show['inlinemod']">
        <td class="<if condition="$show['forumlink']">alt2<else />alt1</if>">
            <input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
        </td>
    </if>
</tr>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06: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.04832 seconds
  • Memory Usage 2,317KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete