Title: Topic Activity Poll Folder Icons v1.1

Author: John Briggs

Description:
This mod will add folder icons to represent polls on the topic activity page.
You must have the "Topic Activity" modification installed.

Copyright:  2006 John Briggs. All rights reserved.

Compatability: XMB 1.9.5 Final

Install Note: Before adding this mod to your forum, you should back up all files related to this mod.

License Note: This mod is released under the GPL License. A copy is provided with this software.

Author Note:
You downloaded this hack from XMBMods.com, the #1 source for XMB related downloads.
Please visit http://www.xmbmods.com/ for support.

=======================================================================================================================================
=======
Step 1:
=======

========================
Add Code To Bottom Of File:
========================

// Topic Activity Poll Folder Icons Mod Begin
$lang['topicopenpollnonewposts'] = "Open Poll [no new posts]";
$lang['topicopenpollnewposts'] = "Open Poll [new posts]";
$lang['topicopendotpollnonewposts'] = "Open Poll You Posted In [no new posts]";
$lang['topicopendotpollnewposts'] = "Open Poll You Posted In [new posts]";
// Topic Activity Poll Folder Icons Mod End

=======================================================================================================================================
=======
Step 2:
=======

==================
Edit File: activity.php
==================

==========
Find Code:
==========

    if ($thread['replies'] >= $SETTINGS['hottopic']) {
        $folder = 'hot_folder.gif';
    } else {
        $folder = 'folder.gif';
    }

==================
Replace Code With:
==================

    if ($thread['replies'] >= $SETTINGS['hottopic']) {
        $folder = 'hot_folder.gif';
    } elseif ($thread['pollopts'] != '') {
        $folder = 'folder_poll.gif';
    } else {
        $folder = 'folder.gif';
    }

==========
Find Code:
==========

    if (($oT = strpos($oldtopics, '|'.$lastPid.'|')) === false && $thread['replies'] >= $SETTINGS['hottopic'] && $lastvisit < $dalast) {
        $folder = 'hot_red_folder.gif';
    } elseif ($lastvisit < $dalast && $oT === false) {
        $folder = 'red_folder.gif';
    } else {
        $folder = $folder;
    }

==================
Replace Code With:
==================

    if (($oT = strpos($oldtopics, '|'.$lastPid.'|')) === false && $thread['replies'] >= $SETTINGS['hottopic'] && $lastvisit < $dalast) {
        $folder = 'hot_red_folder.gif';
    } elseif ($lastvisit < $dalast && $oT === false && $thread['pollopts'] != '') {
        $folder = 'folder_new_poll.gif';
    } elseif ($lastvisit < $dalast && $oT === false) {
        $folder = 'red_folder.gif';
    } else {
        $folder = $folder;
    }

=====================
Find Code And Delete:
=====================

    if ($thread['pollopts'] != '') {
        $prefix = $lang['pollprefix'].' ';
    }

=======================================================================================================================================
=======
Step 3:
=======

=========================================================
Go to administration panel -> templates -> topic_activity
=========================================================

==========
Find Code:
==========

$dotlegend

===============
Add Code Above:
===============

<tr>
<td class="ctrtablerow"><img src="$imgdir/folder_new_poll.gif" border="0" alt="$lang[topicopenpollnewposts]" title="$lang[topicopenpollnewposts]" align="middle"></td>
<td class="tablerow">$lang[topicopenpollnewposts]</td>
<td class="ctrtablerow"><img src="$imgdir/folder_poll.gif" border="0" alt="$lang[topicopenpollnonewposts]" title="$lang[topicopenpollnonewposts]" align="middle"></td>
<td class="tablerow">$lang[topicopenpollnonewposts]</td>
</tr>

=======================================================================================================================================
=======
Step 4:
=======

====================================================================
Go to administration panel -> templates -> topic_activity_dotfolders
====================================================================

========================
Add Code At Very Bottom:
========================

<tr>
<td class="ctrtablerow"><img src="$imgdir/dot_folder_new_poll.gif" border="0" alt="$lang[topicopendotpollnewposts]" title="$lang[topicopendotpollnewposts]" align="middle"></td>
<td class="tablerow">$lang[topicopendotpollnewposts]</td>
<td class="ctrtablerow"><img src="$imgdir/dot_folder_poll.gif" border="0" alt="$lang[topicopendotpollnonewposts]" title="$lang[topicopendotpollnonewposts]" align="middle"></td>
<td class="tablerow">$lang[topicopendotpollnonewposts]</td>
</tr>

=======================================================================================================================================
=======
Step 5:
=======

Now you must upload folder image for the mod named as the following for this mod to work.

dot_folder_new_poll.gif
dot_folder_poll.gif
folder_new_poll.gif
folder_poll.gif

I have provided folders for "XMBX Pro Blue" as a bonus.

=======================================================================================================================================