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