vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Thumbs thread and colour sticky (https://vborg.vbsupport.ru/showthread.php?t=218702)

spmatrix 07-16-2009 03:15 AM

Thumbs thread and colour sticky
 
I made the two { 1) and 2) } questions following and I took the answers bellow
but when I make it so I do not have thumbs.
Somewhere become trouble. How can I join the two codes from answer 1) and 2) together
with out problems ?

Thanks



Quote:

1) How can I put thumbnails left from threads.
When I put a photo as attachment,
I want to grab it and put it outside left from threads

and

2) How I can make sticky have colour and distinguish from others ?


See attachment for both.

Thanks

1)
Code:

This mod allows you to define a different background color for sticky threadbits on forumdisplay pages

In this template:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Threadbit Templates -> threadbit

Replace all instances of:


       
Code:

       
class="alt1"

...and:


       
Code:

       

class="alt2"


...with:


       
Code:

       

class="<if condition="$show['sticky']">alt1_sticky<else />alt1</if>"


...and:


       
Code:

       

class="<if condition="$show['sticky']">alt2_sticky<else />alt2</if>"


...respectively.

Then define new CSS classes in your:

Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)

Scroll down to the bottom where it says Additional CSS Definitions. In the bottom box add this code. Change the red color codes appropriately (background and text colors):


       
Code:

       

.alt1_sticky
{
        background: #F5F5FF;
        color: #000000;
}
.alt2_sticky
{
        background: #E1E4F2;
        color: #000000;
}



=========


and

2) https://vborg.vbsupport.ru/showthrea...ighlight=thumb


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