PDA

View Full Version : Length of Thread Preview vB 4.2 PL2


Syxguns
09-08-2012, 01:12 AM
Okay first let me say that I've been searching for a while and coming up empty handed for vB 4.2 PL2.

Here: https://www.vbulletin.com/docs/html/main/options_forumdisplay

And I've read a couple of post about going to AdminCP >> Settings > Options > Forum Listings Display Options and finding "Length of thread preview" and set it to 0.

However I do not have that option in vB 4.2. Using Firebug I've determined that the location of the thread preview is in forumlastpost td, but where from there can I make changes to not show the mouse over effect?

I've attached a pic so you can see what I'm talking about. I wouldn't have a problem with it but it is showing the HTML code that I used for username markup. I want to disable that mouse over effect, I just need to know where to do it.

Thanks for any help you can provide! If this option was removed from vB 4.2, then it needs to be replaced!:erm:

snakes1100
09-08-2012, 01:57 AM
Forum Display Options (forumdisplay) --> Length of thread preview text

Syxguns
09-08-2012, 02:50 AM
Forum Display Options (forumdisplay) --> Length of thread preview text

Thanks snakes1100, however that did not do the trick. I did a search in the templates for forumlastpost, and checked all the files. I could not find anything that said [preview] to change.

I didn't mention that the mod I'm using is Username HTML Markup 4.1 located here: https://vborg.vbsupport.ru/showthread.php?t=229146

In the XML file I could not find a mouse over event or preview event to make changes to, however, if I could add a condition to the XML to not allow mouse over on the hyperlink I could do that as well.

Still looking, do you have any more suggestions?:confused:

Edit: by the way if you would like to check it out with Firebug you can see it in action here: http://www.place4musicians.com You may also log in as Guest Guest1234 is a password. You have no permissions but can view the entire forum if you like.

nerbert
09-08-2012, 03:32 AM
If you're trying to eliminate the mouseover tooltip with the preview in it you need to remove

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

in the threadbit template. See http://www.w3schools.com/tags/att_standard_title.asp

I'm still using vb4.1.12, I assume it's the same as in the version you're using.

Syxguns
09-08-2012, 03:39 AM
If you're trying to eliminate the mouseover tooltip with the preview in it you need to remove

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

in the threadbit template. See http://www.w3schools.com/tags/att_standard_title.asp

I'm still using vb4.1.12, I assume it's the same as in the version you're using.

I'll give that a shot, do you know what file that is located in? I just need it removed from the forumlastpost but if I have to remove it from everything to get rid of the problem I will.

Thanks nerbert

nerbert
09-08-2012, 03:47 AM
It's not in a file, it's in the "threadbit" template in the Style Manager

Syxguns
09-08-2012, 03:51 AM
Found it. After I removed it the mouse over image was still there.:(

nerbert
09-08-2012, 03:59 AM
Same here. I'm mystified.

Syxguns
09-08-2012, 04:01 AM
That seemed like it should have worked! Can you think of another location to remove preview?

nerbert
09-08-2012, 04:07 AM
Perhaps the title attribute is there for people with JavaScript disabled and for those who have JS enabled it's in the JavaScript for that page "search_resultlist".

One look at any of those scripts will make your eyes bleed.

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 1347082602 at 1347082602 ---------------

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/showthread.php/407043-Length-of-Thread-Preview-vB-4-2-PL2?p=2333874#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:


<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.getElementsB yTagName('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.


<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.getElementsB yTagName('a')[0].removeAttribute('title');" /></a>

--------------- Added 1347130780 at 1347130780 ---------------

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


<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 -->"?

Syxguns
09-08-2012, 06:12 PM
Here you go:


<!-- lastpost -->
<dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
<vb:if condition="$show['threadmoved']">
<dt class="lastpostby hidden">&nbsp;</dt>
<vb:else />
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
<dd>{vb:raw memberaction_dropdown}</dd>
<dd>{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw thread.lastposttime}</span></vb:if>
<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.getElementsB yTagName('a')[0].removeAttribute('title');" /></a>
</dd>
</vb:if>
</dl>

<vb:if condition="$show['notificationtype']">
<!-- notification -->
<div class="threadnotification td" >
<label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label>
</div>
<label class="threadimod td">
<input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" tabindex="1" />
</label>
</vb:if>

<vb:if condition="$show['inlinemod']">
<!-- fourth block -->
<label class="threadimod td alt">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" tabindex="1" />
</label>
</vb:if>

</div>
</li>

It looks to me like it should be correct.

nerbert
09-08-2012, 06:27 PM
I went to your forum and there's no mouseover tooltip box. Did you reload the page from a link or just hit the refresh button?

Syxguns
09-08-2012, 06:29 PM
Okay, I don't know if this will help or not, but according to Firebug we may be editing the wrong item. Notice the line in red is what is showing up on mouse over event.

[COLOR]

<a id="yui-gen63" 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>
<span style="font: 13px Comic Sans MS; color: red; font-weight: bold;">Syxguns</span>
</strong>
</a>

--------------- Added 1347132648 at 1347132648 ---------------

I went to your forum and there's no mouseover tooltip box. Did you reload the page from a link or just hit the refresh button?

I just hit the refresh button. Let me try to clear cookies and history real quick... Nope it still shows the mouse over on that link in the last post by area. I tried in Firefox, Chrome, Opera, and IE.

nerbert
09-08-2012, 06:38 PM
Just click on some other forum. Refreshing the page won't reload JavaScript

--------------- Added 1347133547 at 1347133547 ---------------

You still have the same problem with the thread starter.

Try this:

onload="this.parentNode.parentNode.parentNode.getElementsB yTagName('a')[0].removeAttribute('title');
this.parentNode.parentNode.parentNode.parentNode.g etElementsByTagName('a')[1].removeAttribute('title');"

Syxguns
09-08-2012, 06:47 PM
Just click on some other forum. Refreshing the page won't reload JavaScript

I closed down the forum, went to a couple of other sites, then opened the forum again, even after cleaning cookies and history. If you are saying that you do not see the tool tip when you hover over that area, then maybe I need to clear the cache and history from Prefetch folder, and reboot my machine to see if it is gone. I'll update this post in just a short time.

nerbert
09-08-2012, 07:00 PM
You must be on GENERAL FORUMS page. I'm on Introduce yourself!

There must be another bit of some kind you have to modify for the page you're on. I'll look

Syxguns
09-08-2012, 07:19 PM
You must be on GENERAL FORUMS page. I'm on Introduce yourself!

There must be another bit of some kind you have to modify for the page you're on. I'll look

Yeah, I forgot to mention that it is the Forum Home page where the problem seems to be. However, on the introduce yourself page, the left hand side it should say, "Started by:" but I have a "<span=" there as well. The right side of the page seems perfect.

I'll be back shortly, let me know if you find anything.

Syxguns
09-11-2012, 03:10 AM
nerbert,
I found a [FIXED] version of the mod for 4.2 and it works worst than the original mod. I'm going to keep testing different ideas that I can come up with! Maybe I'll get lucky, but who knows. I might have to change the original code back and just remove the XML file and not have user name colors on the thread links like I wanted.

If you happen to think of anything else let me know and I'll give it a shot!

Morpheuss89
10-02-2012, 12:49 PM
any news ??