PDA

View Full Version : Trying to figure out the "double-click to mark all forums read" thing



Crippius
Wed 14th Jan '09, 12:26pm
Hi all,

I've got a technical question.

We have an important board with different communities. On the forum index each community has a subforum to discuss in his own language.

I have made some changes to our forumhome_forumbit_level2_nopost template in order to display on the index page some country flags instead of the normal statusicon in the left column.

So basically I changed:

<td ><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>In

<if condition="$forum[forumid] == 98">
<td ><img src="./images/aoc/flags/en.gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<else />
<if condition="$forum[forumid] == 42">
<td ><img src="./images/aoc/flags/de.gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<else />
<if condition="$forum[forumid] == 43">
<td ><img src="./images/aoc/flags/fr.gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<else />
<if condition="$forum[forumid] == 44">
<td ><img src="./images/aoc/flags/es.gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<else />
<td ><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>So as you can see I let the element ID unchanged for each image.

Evrything works fine except that we can't doubleclick anymore on the icons to mark all forums read.

here's the normal source code generated by vbulletin when not modified:

<td><img style="cursor: pointer;" title="Double-click this icon to mark this forum and its contents as read" src="images/aoc/buttons/forum_new.gif" alt="" id="forum_statusicon_56" border="0"></td>I am wondering where and how the style and title part of the image code is generated.

I checked in the PHP, I dont see anything. COuld it be a javascript changing the HTML code :confused:

Thanks for your help

Wayne Luke
Wed 14th Jan '09, 3:16pm
Modifications of this type are beyond the scope of support. You would need to post over at www.vbulletin.org to see if someone can help our revert your changes and insert your country flags independently of the new post indicator.

Crippius
Wed 14th Jan '09, 3:27pm
Well I am not really asking anyone to provide me the code needed or how to do it, but rather where I should search to do it myself. And I swear you that I searched before asking and that I usually find and modify any VB stuff by myself :)

Basically what is the PHP file or javascript controlling this code? That's all what I want from you guys