vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Length of Thread Preview vB 4.2 PL2 (https://vborg.vbsupport.ru/showthread.php?t=287590)

Syxguns 09-08-2012 04:20 AM

:) LOL, so this is a dead issue? Something I can't resolve I guess. Maybe someone else will know of a fix?

nerbert 09-08-2012 04:26 AM

You could try posting this question at vBulletin.com.

I suspect one of the JS files removes the title attribute and then vBulletin substitutes their own version of a tooltip box. That way they can preserve the line breaks and so forth. The event listener and the function that creates the vBulletin tooltip box could be in any of the JS files linked in the template. Only specualting here of course

Syxguns 09-08-2012 04:33 AM

What about search_threadbit? It's got two instances of title="{vb:raw thread.preview}"

Maybe I should try removing them as well as the first one we removed? What's your thought on that?

nerbert 09-08-2012 04:35 AM

What page are you having this problem on? I don't get a thread preview on forumdisplay, only on New Posts search page. (I'm using vb4.1.12)

--------------- Added [DATE]1347082602[/DATE] at [TIME]1347082602[/TIME] ---------------

Quote:

Originally Posted by Syxguns (Post 2363587)
What about search_threadbit? It's got two instances of title="{vb:raw thread.preview}"

Maybe I should try removing them as well as the first one we removed? What's your thought on that?

Yes, try that.

Syxguns 09-08-2012 04:46 AM

Okay, I'll make the changes and report back success or failure! Let's hope that it's success!! :)

nerbert 09-08-2012 04:51 AM

Gotta go but I subscribed to this thread

Syxguns 09-08-2012 07:09 AM

No glory for the wicked!! LOL

Here is the post I created at vb.com https://www.vbulletin.com/forum/show...74#post2333874

nerbert 09-08-2012 01:29 PM

That's not the thread preview, that's the title for the link for the last poster. The link is created way down deep in the PHP,I would think, and modifying it would probably require a direct hack. So to get rid of it you'll have to use JavaScript. I used the onload event for the little go to last post button to strip the title from the last poster link.

Near the bottom of the threadbit template find the link with the button image and modify as follows:

Code:

                        <a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}"
onload="this.parentNode.parentNode.parentNode.getElementsByTagName('a')[0].removeAttribute('title');" /></a>


Syxguns 09-08-2012 05:49 PM

nerbert,
I made the change and added the removeAttribute but it is still showing mouse over effect! Take a quick look at my code, it should match yours.

Edit: I removed cookies and history to double check and it still is showing that mouse over event.

Code:

<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" onload="this.parentNode.parentNode.parentNode.getElementsByTagName('a')[0].removeAttribute('title');" /></a>
--------------- Added [DATE]1347130780[/DATE] at [TIME]1347130780[/TIME] ---------------

This is the basic information that I'm given using Firebug:

Code:

<h4 class="lastpostlabel">Last Post:</h4>
<div>
<p class="lastposttitle">
<div class="lastpostby">
by
<div id="yui-gen34" class="popupmenu memberaction">
<a id="yui-gen36" class="username online popupctrl" bold;"="" font-weight:="" red;="" color:="" ms;="" sans="" comic="" 13px="" font:="" title="<span style=" href="member.php?u=1">
Syxguns is online now">
<strong>
</a>
<ul id="yui-gen35" class="popupbody memberaction_body">
</div>
</div>

I think that lastpostby is what is giving us the headache, but I could be wrong!

nerbert 09-08-2012 06:06 PM

Looks like you did it right. Maybe they changed the HTML for vB4.2.0.

Could you post the bottom of the template starting with "<!-- lastpost -->"?


All times are GMT. The time now is 02:04 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.01108 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_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