Title: Topic Activity Poll Folder Icons v1.1

Author: John Briggs

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

Copyright:  2009 John Briggs. All rights reserved.

Compatability: XMB 1.9.8 SP3

Installation Note: Before adding this modification to your forum you should back up all files related to this modification.

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

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

=======================================================================================================================================
=======
Step 1:
=======
====================
Edit File: English.lang.php
====================
==============================
Add Code To Bottom Of File Above ?>
==============================

// 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';
    // Topic Activity Poll Folder Icons Mod Begin
    } elseif ($thread['pollopts'] != '') {
        $folder = 'folder_poll.gif';
    // Topic Activity Poll Folder Icons Mod End
    } 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';
    // Topic Activity Poll Folder Icons Mod Begin
    } elseif ($lastvisit < $dalast && $oT === false && $thread['pollopts'] != '') {
        $folder = 'folder_new_poll.gif';
    // Topic Activity Poll Folder Icons Mod End
    } elseif ($lastvisit < $dalast && $oT === false) {
        $folder = 'red_folder.gif';
    } else {
        $folder = $folder;
    }

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

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

=======================================================================================================================================
=======
Step 3:
=======
==============================
Go to administration panel -> Templates
==============================
======================
Edit Template: topic_activity
======================
==========
Find Code:
==========

$dotlegend

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

<tr>
<td class="ctrtablerow"><img src="$THEME[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="$THEME[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
==============================
==============================
Edit Template: topic_activity_dotfolders
==============================
=====================
Add Code At Very Bottom:
=====================

<tr>
<td class="ctrtablerow"><img src="$THEME[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="$THEME[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:
=======
=========================================================================
If the following images are not already in your theme folders then you will need to upload them at this time.
If these images are already in your theme folders then you can disregard this step.
=========================================================================

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

===================================================
I have provided folder images for "XMBX Pro Blue" as a bonus.
If they don't match your theme you will need to create your own images.
Just be sure to keep the same file names.
===================================================
=======================================================================================================================================
Enjoy!