vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Attractive Thread Prefix (https://vborg.vbsupport.ru/showthread.php?t=306940)

ramesh_umk3 01-11-2014 11:00 PM

Attractive Thread Prefix
 
1 Attachment(s)
Hey Friends,
This idea just came up by seeing XenForo threads Prefix style they really look attractive, Any how if you like you can use them aswell just follow below procedure....

Copy below CSS Code to additional.css template

PHP Code:

.mcbadge_v {
    
backgroundnone repeat scroll 00#9400D3;
}
.
mcbadge_i {
    
backgroundnone repeat scroll 00#4B0082;
}
.
mcbadge_b {
    
backgroundnone repeat scroll 00#0000FF;
}
.
mcbadge_g {
    
backgroundnone repeat scroll 00#0B610B;
}
.
mcbadge_y {
    
backgroundnone repeat scroll 00#B18904;
}
.
mcbadge_o {
    
backgroundnone repeat scroll 00#B43104;
}
.
mcbadge_r {
    
backgroundnone repeat scroll 00#FF0000;
}

.
mcbadge {
    
displayinline-block;
    
height15px;
    
line-height15px;
    
font-size9px;
    
font-weightbold;
   
padding0px 2px;
    
margin0px;
   
letter-spacing:0.4px;
    
color#fff;
    
border-radius4px;
border:1px dashed black;
    
vertical-alignmiddle;
cursor:default;


Save it .

Now Goto

Thread Prefixes --> Thread Prefixe Manager

Title (Rich Text)
Code:

<a class="mcbadge mcbadge_v">TITLE (PLAIN TEXT) HERE</a>
Select any prefix , see below example :)

https://vborg.vbsupport.ru/attachmen...1&d=1389529808


This is how it looks:

https://vborg.vbsupport.ru/attachmen...1&d=1389529873

Live Demo


Feel free to add your own colors

Kind Regards,

qpurser 01-12-2014 04:48 PM

Like it and works great.
However adding the code to my additional.css didn't work. I had to add the code to vbulletin.css and then it worked.

ramesh_umk3 01-12-2014 04:55 PM

Yep vbulletin.css should also be okay when additional.css is not loading up :)

Or

vBulletin Option --> Style & Language Settings --> External CSS URL ( you can add the code in that css file )

ku-med 01-14-2014 03:12 PM

Cool! Thanks for sharing :)

Edit: when you put the code at the end of additional.css it won't work unless you put it at the top :D

Skyrider 02-02-2014 03:15 PM

Might want to add the class of the prefix rich text also in the example.. So people don't have to type it over.

ramesh_umk3 02-02-2014 04:36 PM

Done! i have updated 1st post with Title (rich text) code . Now just copy paste and edit your Title (plain text)

Novs67 02-07-2014 06:19 AM

thx for your code !

i look for add 1 prefix automatically in thread ? any idea ?

ramesh_umk3 02-07-2014 01:34 PM

automatic prefix even i never heard that bro, But you can make user to select atleast one prefix for posting

[Application]
[Cheat]
[Application] [Cheat] (you can follow that pattern)

Skyrider 03-21-2014 09:43 AM

It looks great! however, doesn't appear to be working with:

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

Make Prefixes Clickable to Filter Forumdisplay

Anyway it can be made compatible?

ramesh_umk3 03-21-2014 08:52 PM

Mostly it should support with any plugin cause we don't use ordinary class names to get conflicts with any inner vB CSS classes if any they can be adjusted with minor changes :)

Regards,


All times are GMT. The time now is 03:34 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.01480 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_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
  • (10)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