vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [Customization] Adding a "super sticky" thread. (https://vborg.vbsupport.ru/showthread.php?t=289910)

KohPhiPhi 10-30-2012 06:36 PM

[Customization] Adding a "super sticky" thread.
 
Hello guys,

In my forum, I have a few sticky threads. They're colored in yellow background and they stick at the top, yet the sticky threads themselves rotate up and down as members post within them.

However, one of those sticky threads is VERY important so I'd like to make it "super sticky". That'd mean red background and to stay always at the top of all stickies.

Is there any to implement that quick customization? something like "if thread number is XXX, then background-color = #FF0000 and position = always top".

Anyway, I will be waiting for your reply. Thanks in advance!

KohPhiPhi 11-01-2012 07:42 AM

No one? :(

Lynne 11-01-2012 03:27 PM

The background part is easy. Just get the threadid from the page source and add some CSS like this:
HTML Code:

#thread_2094.threadbit .sticky {background-color: pink;}
change 2094 to your threadid.

KohPhiPhi 11-01-2012 05:14 PM

Thank you so much Lynne.

Could you please tell me where to insert that CSS line? I'm not very nimble at the Admin CP section.

Thanks!

kh99 11-01-2012 05:19 PM

It should work if you edit the additional.css template and insert it there.

KohPhiPhi 11-01-2012 06:09 PM

I tried, but believe or not there's no "SAVE" button in the additional.css page, so upon inserting that CSS line I have no means to save it.

kh99 11-01-2012 06:55 PM

Make sure you're going to Style Manager > Edit Templates, and editing the additional.css template (expand the CSS Templates group). If you're going to "Main CSS" that's a leftover page from vb3 that isn't used anymore.

KohPhiPhi 11-01-2012 08:37 PM

EXCELLENT, that worked. Thank you SO much!!!

Last question if I may: Do you know how to pin my threads ID 85 and 87 to the very top of the forum?

Thank you very much in advance, I really appreciate your help!

kh99 11-01-2012 09:02 PM

By coincidence someone else just asked about the same thing. There's a mod that lets you set the display order of sticky threads here: https://vborg.vbsupport.ru/showthread.php?t=119746 . It's for vb3 but isn't hard to modify for vb4 - I'll send you a PM about it.

Gamelobby 12-31-2012 12:41 AM

Quote:

Originally Posted by kh99 (Post 2377663)
By coincidence someone else just asked about the same thing. There's a mod that lets you set the display order of sticky threads here: https://vborg.vbsupport.ru/showthread.php?t=119746 . It's for vb3 but isn't hard to modify for vb4 - I'll send you a PM about it.

I'd like to get this going on 4.2 also if you have the info.! :)


All times are GMT. The time now is 01:56 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.01528 seconds
  • Memory Usage 1,726KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete