vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forum preview text (https://vborg.vbsupport.ru/showthread.php?t=292936)

jakubsnm21 12-12-2012 08:26 PM

Forum preview text
 
In my forum I've noticed when I hover over one of the threads the element displays a preview of the first thread in that forum. How could I possibly make this preview text actually show up on the page (example below) while removing the mouse over element at the same time?

This is the forum thread title
Started by Me, 12-11-2012 05:05 PM
I want the preview text in the mouse over element to show up here...

Thanks guys and gals in advance.

WorldCraft 12-15-2012 01:09 AM

Go to your threadbit template

Find
HTML Code:

<div class="threadinfo" title="{vb:raw thread.preview}">

Remove
HTML Code:

title="{vb:raw thread.preview}"

Find
HTML Code:

<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
                                                                </vb:if>
                                                        </div>
                                                </div>
                                        </div>
                                       
                                </div>

                        </div>
                </div>


After the fourth </div> from the right add
HTML Code:

<div id="thread_description"><i>{vb:raw thread.preview}</i></div>

So it will look like this:
HTML Code:

<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
                                                                </vb:if>
                                                        </div>
                                                </div>
                                        </div>
                                       
                                </div>
<div id="thread_description"><i>{vb:raw thread.preview}</i></div>

                        </div>
                </div>



Your gradient here will probably not reach the bottom
https://vborg.vbsupport.ru/external/2012/12/18.png

To fix, go to your additional.css template and add the following
HTML Code:

.threadbit .threadstats{
padding: 14px 0
}



All times are GMT. The time now is 07:10 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.01126 seconds
  • Memory Usage 1,720KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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