Author |
Topic |
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 May 2001 : 23:24:02
|
OK, Davio asked me to post my question here so I am copying the original request...
OK, I think I asked it correctly this time, so can someone help with the above request? My members are complaining that they cannot easily monitor all the polls going on and they are interested in the results...
I would like something like the above but with the admin fetures stripped so members can view all active polls. Thanks.
Let me know if you need any additional information... Thanks..
Dayve
Edited by - dayve on 25 May 2001 15:58:43 |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 18 May 2001 : 18:03:36
|
Hmmm, do you mean something like a "Past Poll Results" page of some sort? That would be a good addition to the mod. Not something that I can whip up overtime though.
As an idea, why don't you create a new forum just for Polls only? Like a "Poll Forum". They can go in there and see the past results of any of the polls. You can lock the forum if you don't want anyone replying to the polls.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 18 May 2001 : 21:02:13
|
I wasn't really speaking about Archived Polls but that is a good idea.
Your second suggestion is EXACTLY what I want but every time I try to create it I screw it up so could you point me in the right direction?? It would be greatly appreciated...
As always I feel as if I should say THANKS for such a great product. You open-source guys rule!
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 20 May 2001 : 14:16:57
|
you were on track with my request... don't want to be a nag but got a solution??
Thanks...
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 20 May 2001 : 14:28:32
|
I just found an example of what I want:
http://www.iamviet.com/forum/polls.asp?id=2
not necessarily the same cosmetics, I'd be fine with a Snitz looking category with all polls to be accessible by all members.
The area of interest is identified as:
Click on poll question below to see results for that poll.
Edited by - dayve on 20 May 2001 14:29:36 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 21 May 2001 : 23:37:16
|
This code is OLD and has been totally revamped... scroll down for the most up to date code...
well, the code is ugly but this is what I wanted...
Demo (OLD STYLE) http://www.nineinchnailz.com/forum/poll.asp
it allows members to view a collection of all the forum polls within a 30 day period. I hacked the hell out of the admin_poll.asp
now, my problem... when I view a poll it works fine but my parent link is the regular forum categories. I would like it to be able to go back to the forum polls view.
I probably confused everyone.. anyone want to look at the code and give me some cleanup tips and/or ideas? It would be greatly appreciated. Thanks...
Download and View Source http://www.nineinchnailz.com/forum/poll.zip
Dayve
Edited by - dayve on 21 May 2001 23:38:25
Edited by - dayve on 22 May 2001 22:02:21 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 21 May 2001 : 23:50:57
|
Hey, that looks good. Nice work.
For your problem you could try using this code:<% if InstrRev(Request.ServerVariables("Path_Info"), "poll.asp") > 0 then %> <img src="icon_folder_open.gif" height=15 width=15 border="0"> <a href="poll.asp">Forum Polls</a><br> <% else %> <img src="icon_folder_open.gif" height=15 width=15 border="0"> <a href="default.asp">All Forums</a><br> <% end if %>
Forgot to add the else part to it.
Edited by - Davio on 21 May 2001 23:59:49 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 22 May 2001 : 11:15:12
|
Thanks Davio, I can't take the credit for this because I hacked up Sliemux's admin_poll.asp to get where I am at. I understand SQL quite well but the snitz syntax will take me a bit to master.
Anyway, I added the lines you suggested and when I click on a poll it works fine but my parent folders do not show the link to bring me back up one level to the poll.asp. Am I confusing you here? Anyway, I will play with it more but I am ready to use this as is until I figure out how to get this last bit fixed.
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 22 May 2001 : 12:41:57
|
GROUPING FIXED! scroll down for the latest code...
aggggghhhh. my grouping of polls is not right, I have some duplication of topic categories going on...
Dayve
Edited by - dayve on 22 May 2001 22:03:44 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 22 May 2001 : 14:27:25
|
Ok. Let me see if I understand what you want to do. You want the tree to look like this right?
Forum Polls - Forum Name - - Topic Name
right? Lets say we came to here from your polls page you want it look like this:
Forum Polls - Help: MOD Implementation - - Mod Tweak: Poll Viewing by all Members
that's the code i gave you. If you came from the polls page, it will show the Forum Polls link back to the polls page. If you didn't come from the polls page it shows the link back to the forums.
For that duplication thing, I also hate that too. That's one of the things that i cam working on with the admin files. So that it will loop and find all the polls in that category before moving on to the next. I'm not too good (on the intermediate level) with sql syntax, so hopefully I can figure it out.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 22 May 2001 : 16:38:52
|
I think I can get the grouping thing fixed, I have a resident SQL guru with me in my office.
As for the lines of code you gave me, you are on track with what I am trying to do and I inserted your code but I am being thrown into the regular forum with different parent links. Check out the link above which has the new changes. I will update the zip file too for viewing what I did and where I placed the code...
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 22 May 2001 : 21:59:30
|
Davio: OK, started from scratch with another approach. Got the grouping fixed, a lot nicer now. BUT I cannot figure out the parent link thing, not major though because my purpose of this mod has been met and I am extremely happy. Check it out:
DEMO http://www.nineinchnailz.com/forum/active_polls.asp
I would like to make this available to other members and will post a link in the MOD section under Sliemuex's Polls topic but can you have one last look at it and maybe direct me how to fix the parent link issue? Thanks...
DOWNLOAD http://www.nineinchnailz.com/active_polls.txt
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 22 May 2001 : 23:46:15
|
Nice work dayve. I'll take a look at your sql code and implement it into the mod. Thanks again.
As for the Parent folder thing, I'm still not understanding the problem you are having with it. I look at your site and it seems the tree links are back at the default. They seem ok. Like how they should be.
The link back to the Forum Polls page will only show up if they went to the poll from the Forum Poll page. If they went to the poll from the topic.asp page, it will show the default. Isn't that what you wanted?
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 22 May 2001 : 23:57:01
|
Thanks Davio...
Let me see if I can explain the way I thought the links should work.
I click on Active Polls which brings me to the collection of Polls.
All Forums - Active Polls
Say there was a poll with a topic name Best Album. When a forum member clicks on that link to view the poll the links should now look like:
All Forums - Active Polls - - Best Album
hopefull that explains everything. thanks again for reviewing the code.
Dayve.
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 May 2001 : 00:11:04
|
Ohhh, is that the way you wanted it? I thought you wanted the "All Forums" link change to the "Active Polls" link.
Ok so you would put the following code after the "All Forums" link in your topic.asp file. Replacing it with the link back to the Forum. Replace this:<img src="icon_bar.gif" height=15 width=15 border="0"><img src="icon_folder_open.gif" height=15 width=15 border="0"> <a href="FORUM.asp?FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(Request.QueryString("FORUM_Title"),"display") %></a><br> with this<% if InstrRev(Request.ServerVariables("Path_Info"), "poll.asp") > 0 then %> <img src="icon_bar.gif" height=15 width=15 border="0"><img src="icon_folder_open.gif" height=15 width=15 border="0"> <a href="active_polls.asp">Active Polls</a> <% else %> <img src="icon_bar.gif" height=15 width=15 border="0"><img src="icon_folder_open.gif" height=15 width=15 border="0"> <a href="FORUM.asp?FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(Request.QueryString("FORUM_Title"),"display") %></a><br> <% end if %>
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 23 May 2001 : 00:49:32
|
ugggh... well, I replaced that code and I must be suffering from sleep deprevation because I am not getting the desired effect....
I quit for tonight, off to bed, if there is anyway you can make the edit for me I would gladly send you any file....
alright then, thanks again for everything, I am really happy with the entire Snitz Community, the product, the mods, the support and the fact that I don't have to pay the kind of money InfoPop wants !
Dayve |
|
|
Topic |
|