Poll Module
Posted by arlo
Re: Poll Module January 26, 2005 09:26AM |
Registered: 20 years ago Posts: 97 |
Re: Poll Module (icon message) February 26, 2005 09:45AM |
Registered: 20 years ago Posts: 97 |
Re: Poll Module (icon message) February 26, 2005 10:04AM |
Registered: 20 years ago Posts: 97 |
For those who want to see icons in subjects where poll is you have to do next:
1. Download (http://phorum.org/phorum5/file.php?16,file=256) or make by yourself icon
2. in settings.tpl add row
{define marker-poll <img src="templates/default/images/poll.gif" border="0" alt="" style="vertical-align: middle;" /> }
3. in list.tpl add row
{IF ROWS->meta->mod_poll}<?php echo $PHORUM['TMP']['marker-poll']; ?>{/IF}
before <a href="{ROWS->url}">{ROWS->subject}</a>
(if you want that icon to be before subject)
Ok, good luck
1. Download (http://phorum.org/phorum5/file.php?16,file=256) or make by yourself icon
2. in settings.tpl add row
{define marker-poll <img src="templates/default/images/poll.gif" border="0" alt="" style="vertical-align: middle;" /> }
3. in list.tpl add row
{IF ROWS->meta->mod_poll}<?php echo $PHORUM['TMP']['marker-poll']; ?>{/IF}
before <a href="{ROWS->url}">{ROWS->subject}</a>
(if you want that icon to be before subject)
Ok, good luck
Re: Poll Module February 28, 2005 12:08AM |
Registered: 20 years ago Posts: 666 |
Re: Poll Module February 28, 2005 12:31AM |
Registered: 20 years ago Posts: 666 |
This isn't a module, just an add-on for the list views in the template. Instead of Poll:, Announcement: and Sticky:, it uses what Avdoshyn posted, and the changing of the language file, to use icons instead of them. Screenshot included.
Oh, and ignore where it says Poll: in the subjects of poll posts in the screenshot. Even after you follow the instructions, you have to manually take Poll: out of the subject line for old polls, but new polls won't include the Poll: in the subject.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Oh, and ignore where it says Poll: in the subjects of poll posts in the screenshot. Even after you follow the instructions, you have to manually take Poll: out of the subject line for old polls, but new polls won't include the Poll: in the subject.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Poll Module (icon message) March 01, 2005 12:46AM |
Registered: 19 years ago Posts: 45 |
Hi, Thanks for these great icons and the POLL module. Portal of curiousity , I'm using your directions and everything is working well.. but, one small issue. When I post a poll It is normaly an open thread. However, when I close this thread as a normal post the POLL icon is not being displayed. It is displayed when posted as an announcement or sticky in combo with the POLL. I was hoping you could tell me what changes to make in this list.tpl code to fix this small issue.
Thank you again.
Thank you again.
Re: Poll Module March 01, 2005 08:23AM |
Registered: 20 years ago Posts: 683 |
Re: Poll Module March 01, 2005 08:27AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Poll Module March 02, 2005 01:43PM |
Registered: 20 years ago Posts: 683 |
Re: Poll Module (icon message) March 03, 2005 07:28PM |
Registered: 20 years ago Posts: 666 |
JohnS Wrote:
-------------------------------------------------------
> module. Portal of curiousity , I'm using your
> directions and everything is working well.. but,
> one small issue. When I post a poll It is normaly
> an open thread. However, when I close this thread
> as a normal post the POLL icon is not being
> displayed. It is displayed when posted as an
> announcement or sticky in combo with the POLL. I
> was hoping you could tell me what changes to make
> in this list.tpl code to fix this small issue.
The reason why a closed thread hides the poll icon is that it was my attempt to dissuade people from voting any further, since I don't think there's a Close Poll feature in the Poll Modules.
You would just alter the part that goes into list.tpl and list_threads.tpl. It's just a bunch of if and else statements.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
-------------------------------------------------------
> module. Portal of curiousity , I'm using your
> directions and everything is working well.. but,
> one small issue. When I post a poll It is normaly
> an open thread. However, when I close this thread
> as a normal post the POLL icon is not being
> displayed. It is displayed when posted as an
> announcement or sticky in combo with the POLL. I
> was hoping you could tell me what changes to make
> in this list.tpl code to fix this small issue.
The reason why a closed thread hides the poll icon is that it was my attempt to dissuade people from voting any further, since I don't think there's a Close Poll feature in the Poll Modules.
You would just alter the part that goes into list.tpl and list_threads.tpl. It's just a bunch of if and else statements.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Sorry, only registered users may post in this forum.