Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Mod Tweak: Poll Viewing by all Members
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 May 2001 :  23:24:02  Show Profile  Visit dayve's Homepage
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  Show Profile
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.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 May 2001 :  21:02:13  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 May 2001 :  14:16:57  Show Profile  Visit dayve's Homepage
you were on track with my request... don't want to be a nag but got a solution??

Thanks...

Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 May 2001 :  14:28:32  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 May 2001 :  23:37:16  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 May 2001 :  23:50:57  Show Profile
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 May 2001 :  11:15:12  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 May 2001 :  12:41:57  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 May 2001 :  14:27:25  Show Profile
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.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 May 2001 :  16:38:52  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 May 2001 :  21:59:30  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 May 2001 :  23:46:15  Show Profile
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?

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 22 May 2001 :  23:57:01  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 23 May 2001 :  00:11:04  Show Profile
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 %>


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 23 May 2001 :  00:49:32  Show Profile  Visit dayve's Homepage
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
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07