Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Attractive Thread Prefix Details »»
Attractive Thread Prefix
Version: 1.00, by ramesh_umk3 ramesh_umk3 is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 01-11-2014 Last Update: Never Installs: 71
Re-useable Code Translations  
No support by the author.

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




This is how it looks:



Live Demo


Feel free to add your own colors

Kind Regards,

Screenshots

File Type: png Snapshot_2014-01-12_175849.png (12.1 KB, 0 views)
File Type: png Snapshot_2014-01-12_175944.png (50.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
elsa23, john7911, puertoblack2003, scottkoz20, sodasusu, SolidSnakeLive

Comments
  #12  
Old 03-21-2014, 08:59 PM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skyrider View Post
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?
I think the plugin which you mentioned will use hyperlink anyway so try to follow modification in

Thread Prefix Manager

Code:
<p class="mcbadge mcbadge_v">TITLE (PLAIN TEXT) HERE</p>
or
Code:
<b class="mcbadge mcbadge_v">TITLE (PLAIN TEXT) HERE</b>
or
Code:
<i class="mcbadge mcbadge_v">TITLE (PLAIN TEXT) HERE</i>
if you don't like text effects just simply add one line in css which i mentioned in 1st post
Code:
text-decoration: none !important;
Regards,
Reply With Quote
Благодарность от:
Skyrider
  #13  
Old 03-25-2014, 10:48 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely, thank you! Works fine now with clickable prefixes!
Reply With Quote
  #14  
Old 03-28-2014, 07:46 PM
Easelm Easelm is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're having issue changing the color of the dotted border, I had to use the color hex.
Also, if you don't want it to act as a link, you can make this a <div> tag instead the same way.

Thanks for the release! After some tweaks to fit my website it looks nice. Makes the threads stand out more.
Reply With Quote
Благодарность от:
ramesh_umk3
  #15  
Old 01-07-2015, 02:40 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed...any way to have these show up when selecting them from the drop down menu?
Reply With Quote
  #16  
Old 01-27-2015, 02:56 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you setup this on vB4.2.2? as i am looking for this kind of modification for my site.

I tried adding the code here: vBulletin Option --> Style & Language Settings --> External CSS URL ( you can add the code in that css file ) but my whole lost all images and jumbled up text.

also i couldn't find additional.css

so please give me details on how to set this up please on vb 4.2.2

Thank you in advance.

Don't worry it's all fixed and running 100% see here site nice job to the coder.
Reply With Quote
  #17  
Old 01-27-2015, 09:12 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ACP --> Styles & Templates --> Style Manager, once there choose Edit in the dropdown for the style you are using, Then scroll till you see, CSS Templates, double click on that, scroll till you see additional.css then double click on that. Add the code, and then save.
Reply With Quote
  #18  
Old 01-27-2015, 06:39 PM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I apply this to the "Sticky" prefix?

D.
Reply With Quote
  #19  
Old 02-01-2015, 04:06 PM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just add the css class around "sticky" word

example:
<a class="mcbadge mcbadge_v">Sticky</a>
Reply With Quote
  #20  
Old 07-03-2015, 10:54 AM
soaringpine soaringpine is offline
 
Join Date: Mar 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything works great except I cannot figure out one item. When the thread is listed in the forum the text for the prefix is always colored black. I'd like it to be white and no matter what I try it will not change? Am I missing something simple here?

Thanks
Reply With Quote
  #21  
Old 12-14-2015, 09:15 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you add the colors to the text and that's good, but can you tell me how to add an image instead of the text you use in the thread prefix? like they do in digital point showing selling and buying look: https://forums.digitalpoint.com/forums/services.60/
Reply With Quote
Reply


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 07:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09225 seconds
  • Memory Usage 2,353KB
  • Queries Executed 26 (?)
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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete