Author |
Topic |
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 May 2001 : 23:34:38
|
LoL, ok. You can probably send me the file and I'll take a look at it. Or post a link to a txt version of the file.
No problem. I'm glad to help.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 24 May 2001 : 00:33:50
|
thanks a bunch. here is my
topic.asp http://www.nineinchnailz.com/forum/topic.txt
my active_poll.asp is still available in the links previous to this post. no rush... greatly appreciated...
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
|
Iron Heart
New Member
USA
66 Posts |
|
dayve
Forum Moderator
USA
5820 Posts |
|
Iron Heart
New Member
USA
66 Posts |
Posted - 25 May 2001 : 19:00:33
|
I tried to post the detailed instructions yesterday but Snitz acted up and my post never made it. :-(
My original code was modified heavily, so I can't give exact instructions for standard release, but here's the basic idea (it's rather simple):
1. copy the featured poll code from default.asp 2. create a new blank page (but with all the included files), paste it into there 3. create an SQL statement that creates a recordset with all the threads that are polls 4. Then go like this:
<table>
do while not rs.EOF <tr> <td> code for featured poll </td> </tr> rs.movenext loop </table>
---
So in essence it just runs the featured poll code for every poll there is. I know this isn't detailed, but the best I can do at this point in time.
Edited by - Iron Heart on 26 May 2001 06:50:11 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 25 May 2001 : 19:07:41
|
thanks, never thought of that, I think I got a handle on it...
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 26 May 2001 : 12:50:59
|
quote:
Here's the file with the included code: http://user.7host.com/davio/topic.txt
It is commented with '####### Poll Mod ####### around the code I added.
Davio: I'd like to speak to you about this again, this did not work for me. maybe I am not relaying correctly what I am trying to do..
quote:
I tried to post the detailed instructions yesterday but Snitz acted up and my post never made it. :-(
My original code was modified heavily, so I can't give exact instructions for standard release, but here's the basic idea (it's rather simple):
1. copy the featured poll code from default.asp 2. create a new blank page (but with all the included files), paste it into there 3. create an SQL statement that creates a recordset with all the threads that are polls 4. Then go like this:
<table>
do while not rs.EOF <tr> <td> code for featured poll </td> </tr> rs.movenext loop </table>
---
So in essence it just runs the featured poll code for every poll there is. I know this isn't detailed, but the best I can do at this point in time.
Iron Heart: please stick around on this subject, I have a couple of questions. Even though your source code is heavily modified, may I examine it? I am running into a couple of snags that I could probably figure out by looking at your code instead of bugging you. Thanks...
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 26 May 2001 : 17:09:25
|
quote: Davio: I'd like to speak to you about this again, this did not work for me. maybe I am not relaying correctly what I am trying to do..
What's wrong?
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 26 May 2001 : 17:34:12
|
never mind the colors, I was trying something but here is my testing grounds:
http://djh.dynamic-site.net/forumz/
click on the active polls link and you will see my link levels are not correct.
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 26 May 2001 : 17:48:24
|
The first line of the code I added for you looks like this:if InstrRev(Request.ServerVariables("Path_Info"), "poll.asp") > 0 then Change the poll.asp to active_polls.asp and see if that doesn't work. It is basically checking the reffer url to see if it contains "poll.asp". But the reffer is active_poll.asp not poll.asp.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 26 May 2001 : 17:58:30
|
yeah, I caught that too and had fixed it for the correct file name but that did not do it...
Dayve |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 26 May 2001 : 18:27:49
|
Wha? Ok, this is getting on my nerves, doggone it. lol
I'll take your active_poll.asp file and test it on my forums.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 27 May 2001 : 00:39:30
|
Thanks for all your help Iron Heart, I really appreciate all the help you gave me with the All Polls script. Here is the finished product:
http://www.nineinchnailz.com/forum/allpolls.asp
Davio: I appreciate everything you have been doing for me too, just that last little quirk and I can bother someone else shortly on another idea I have
Dayve |
|
|
Iron Heart
New Member
USA
66 Posts |
Posted - 27 May 2001 : 01:52:46
|
Good to see it works for you. Might be a good idea to release it as a MOD. Your code, the one you showed. Is it based on standard snitz release? i.e., can anyone take it any use - will it work?
|
|
|
Topic |
|