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
 Poll MOD Site Poll Script 1.0
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

brduran
New Member

Canada
98 Posts

Posted - 01 June 2003 :  00:10:14  Show Profile  Visit brduran's Homepage
I installed the "Site Poll Script 1.0" add_on for "Poll MOD 2.0.5". I finished all the steps in the instruction file that comes with it. I had problems in line 17 of the "site_poll.asp" file. I went there and found out that I had to change the name "forum" for the actual name of the folder where my files recide. See below,

<!--#include virtual="forum actualname/config.asp"-->
<!--#include virtual="forum actualname/inc_func_common.asp"-->
<!--#include virtual="forum actualname/inc_func_secure.asp"-->

Now I can see "site_poll.asp" in my browser, but the images are missing. In the same window I click on the link "View users comments about this poll", and this is what I read on my webbrowser address bar

http://24.85.24.93/forums/site_poll/forums/topic.asp?TOPIC_ID=7&results=1

...as you can see the folder "forums" appears twice, and I doubt any topic will be found under the folder "site_poll" since the only file in it is "site_poll.asp"

...the above address should read like this, but where do I go to change it,
http://24.85.24.93/forums/topic.asp?TOPIC_ID=7&results=1

...and the images? well no idea, do you



Bernardo Duran
www.teknician.com

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2003 :  00:46:39  Show Profile
What have you set the strPollURL in your config.asp file to?

Are you going to keep the site_poll.asp page there or are you going to include it on your front page on your site?

The reason I ask is, the changes you make to the script to work in the /site_poll/ folder, you will need to undo them when you are ready to include it on your front page. At the moment the script is ready to run from your front page. But it takes some slight modification to make it work in a folder. Because you have to tell the script to go up one folder, then search for the forum folder to get the necessary files (like the image files).

Support Snitz Forums

Edited by - Davio on 01 June 2003 00:54:44
Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 01 June 2003 :  10:49:35  Show Profile  Visit brduran's Homepage
Hi Davio,

Ohh, I see what you're saying.

Ok, I'm going to keep the file "site_poll.asp" where it is at the moment, under the "site_poll" folder, which in turn is under the main folder "forums" and at the same level as the "images" folder.

The reason I'm keeping it there (or in a folder near where it is for that matter) is because my website is in an Unix Server (can run .php but not .asp pages as you know).

So I was thinking of redirecting voters to a newly designed page in my windows server at say,
http://24.85.24.93/forums/site_poll/newpage.htm or .asp with "site_poll.asp" in it.

...and if in the future I move my website to a Windows Server, I would know where to go to undo the changes.

Thank you for your help!



Bernardo Duran
www.teknician.com


Edited by - brduran on 01 June 2003 10:56:52
Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 01 June 2003 :  11:55:49  Show Profile  Visit brduran's Homepage
Hi Davio,

Ok, based on what you said I went back and maid "site_poll.asp" the default page in my server at http://24.85.24.93/site_poll.asp and now everything works. So I guess that for as long as I keep it in the default folder, no problems.

Still if is not much trouble I would like to know what changes should take place to run it properly from the forums child folder "site_poll"

http://24.85.24.93/forums/site_poll/site_poll.asp

...or from the forums parent folder "site_poll"

http://24.85.24.93/site_poll/site_poll.asp

Thank you!



Bernardo Duran
www.teknician.com

Go to Top of Page

sump
New Member

USA
78 Posts

Posted - 01 June 2003 :  13:38:35  Show Profile  Visit sump's Homepage  Send sump an AOL message
i have added the Mod to feature the poll on the frant page of the "website" it does not show.

in debug mode it shows that the poll is not turned on, which is not true, the poll show on the "forum" page. ??

any suggestions ?

Jim
www.cluba.net
jimv@cluba.net

One Day at a Time
sump



Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2003 :  15:32:28  Show Profile
Brduran, I will check it and get back to you on that one.

Sump start a new topic please.

Support Snitz Forums
Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 01 June 2003 :  17:17:56  Show Profile  Visit brduran's Homepage
Right on! Appreciated Davio...



Bernardo Duran
www.teknician.com

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 01 June 2003 :  17:42:39  Show Profile
Well, I tried it and it's not really much to it.

Just make sure your strPollURL has the ../ before it. I mean, if your strPollURL is "forum/" then you would change it to "../forum/".

And to get the images working, change the strImageURL in your config.asp file from this:
strImageUrl = Application(strCookieURL & "STRIMAGEURL")
to this:
strImageUrl = Application(strPollAppURL & "STRIMAGEURL")
Realized in the sub-folder, that the site_poll.asp page wasn't getting the right application variable.

That's it.

Support Snitz Forums
Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 01 June 2003 :  19:03:48  Show Profile  Visit brduran's Homepage
Hi Davio,

Really good, thank you. Check it out...
http://24.85.24.93/forums/site_poll/site_poll.asp
http://24.85.24.93/site_poll/site_poll.asp

Now I got the basis to do any changes, if any, in the future.

Do me a favor, will'ya. Next time you're in Montego Bay, stand high and say hello to my fellow cubans for me. Thanks



Bernardo Duran
www.teknician.com


Edited by - brduran on 02 June 2003 10:49:09
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 June 2003 :  11:24:51  Show Profile
quote:
Do me a favor, will'ya. Next time you're in Montego Bay, stand high and say hello to my fellow cubans for me. Thanks
Will do.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 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 1.51 seconds. Powered By: Snitz Forums 2000 Version 3.4.07