Author |
Topic |
|
Fitz
Starting Member
26 Posts |
Posted - 23 April 2005 : 22:21:09
|
I'm copying/pasting the code from the Poll Mod's default.asp into mine and the lines above and below do not correspond. I have confirmed I am running 3.4.05 of the Snitz Forum and trying to install 2.0.7 of the Poll Mod.
PollMod Default.asp:
" <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""4"">" & vbNewline
' ################# Poll Mod #####################
' Remember to remove the &_ code from the end of
' the line above.
%><!--#INCLUDE FILE="inc_poll.asp" --><%
' Remember to start the 2nd line below with a
' Response.Write.
' ##############################################
Response.Write " <tr>" & vbNewline & _
" <td align=""center"" bgcolor=""" & strHeadCellColor & """ nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>"
if Cat_ID <> "" then
Response.Write "<a href=""default.asp"">" & getCurrentIcon(strIconFolder,"Show All Categories","hspace=""0""") &
My Default.asp:
" <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""4"">" & vbNewline & _
" <tr>" & vbNewline & _
" <td align=""center"" bgcolor=""" & strHeadCellColor & """ nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>"
if Cat_ID <> "" then
Response.Write "<a href=""default.asp"">" & getCurrentIcon(strIconFolder,"Show All Categories","hspace=""0""") &
I know that I have to get it exact. Any ideas what's going on and what I should do?
Thanks,
Fitz
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 23 April 2005 : 22:42:23
|
Make sure that yours looks like this: " <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""4"">" & vbNewline
' ################# Poll Mod #####################
' Remember to remove the &_ code from the end of
' the line above.
%><!--#INCLUDE FILE="inc_poll.asp" --><%
' Remember to start the 2nd line below with a
' Response.Write.
' ##############################################
Response.Write " <tr>" & vbNewline & _
" <td align=""center"" bgcolor=""" & strHeadCellColor & """ nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>"
if Cat_ID <> "" then
Response.Write "<a href=""default.asp"">" & getCurrentIcon(strIconFolder,"Show All Categories","hspace=""0""") & I hope that helps. (Next beer) |
Cheers, David Greening |
|
|
Fitz
Starting Member
26 Posts |
Posted - 23 April 2005 : 23:04:04
|
Oh man! My head really hurts from doing this. That's why I'm a front-end designer (Really, that's what I do).
Thanks so much for the help.
Fitz |
|
|
Fitz
Starting Member
26 Posts |
Posted - 24 April 2005 : 17:48:53
|
I got the Poll Mod up and running, but I'm posting this in case someone in the future finds the search string.
After hours of trying to replace the code, I had a brilliant (newbie) idea: I hadn't modified any of the files that need to have the code added, so I simply uploaded them and crossed my fingers. When I ran the setup.asp, I got an error referring to the config.asp file, so I simply added the code to that 1 file, and voila! It worked. What a time saver.
Fitz |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 24 April 2005 : 19:46:03
|
Not good Fitz. Not good at all. The poll mod I think is using older snitz forums files. Not the latest version. I think the poll mod files are from the 3.4.04 version, if I'm not mistaken. |
Support Snitz Forums
|
|
|
Fitz
Starting Member
26 Posts |
Posted - 27 April 2005 : 15:53:44
|
Thanks. I'll have to keep on eye on it. The only problem I have been having (that I am aware of), I posted in another string: apostrophes are becoming quotations in polls. Other than that, everything seems to be working fine.
Note: Just caught your note on another thread. So you ARE the author. Very cool... very cool, man. I guess I should take seriously your warnings about having my "newbie" brainstorm and just overwriting the files as I did. Thanks again for the replies. Excellent work on the poll mod.
Fitz |
Edited by - Fitz on 27 April 2005 18:11:41 |
|
|
Fitz
Starting Member
26 Posts |
Posted - 24 May 2005 : 20:03:41
|
Oh Man! I was wondering why no one was going to my forum! After a couple of weeks, someone pointed out that you can't even register. It has got to be that stoopid idea I did (above). Is there an easier way to implement the Poll Mod and perhaps repair what I did? I spent a whole day changing the code and made loads of mistakes, so I copied/pasted. Each time I go in and try again, I miss something, or my files do not correspond exactly so I have to guess. Now I have no idea what's wrong. This website is really important to me but I've effectively been advertising how much of an idiot I am. (I was NOT cut out to handle back-end stuff!) Please anyone, any ideas? Should I just kill my forums until I can afford to buy one with the poll feature that doesn't require hours and hours of code editing? I think it's a great mod for people who have a clue.
Thanks much. http://www.patriotmusic.com/forums/default.asp |
Edited by - Fitz on 24 May 2005 20:12:57 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 25 May 2005 : 12:24:40
|
Do you modify the policy.asp code? Or did you implement some "Referer Mod" recently? The reason no one can register is because the policy.asp page is missing the Referer value, which is needed to continue registration. So when you click agree, it just reloads the page. |
Support Snitz Forums
|
|
|
Fitz
Starting Member
26 Posts |
Posted - 25 May 2005 : 23:12:26
|
Hi Davio,
Thanks for the reply. No, I didn't add any code to modify the policy.asp file (as far as I know). Sorry if that sounds stupid. I did add a line about turning on cookies, and added your Poll Mod. Just to check though, I had kept the original policy.asp and just overwrote the one I had. Still can't register. Any ideas?
P.S. I feel bad that you wrote a great mod and people like me go and F it up by pretending to be programmers. You've already done a great service. I'm sorry for taking your time. If I were to PM you, I'd like to know if I can pay you for your time. (Not that I have money, but right is right. I screwed up, and it's not your problem)
Again, thank you.
Fitz |
Edited by - Fitz on 25 May 2005 23:20:32 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 26 May 2005 : 01:57:48
|
Money? Someone said money? *drool* lol
It's a minor problem. But strange. Post a link to a txt version of your inc_header.asp and policy.asp files. |
Support Snitz Forums
|
|
|
Fitz
Starting Member
26 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 27 May 2005 : 10:52:11
|
What version of the forum are you using? You're missing this code from your inc_header.asp file.strReferer = chkString(request.servervariables("HTTP_REFERER"),"refer") Put it after line 68. It should look like this:strArchiveTablePrefix = strTablePrefix & "A_"
strScriptName = request.servervariables("script_name")
strReferer = chkString(request.servervariables("HTTP_REFERER"),"refer") |
Support Snitz Forums
|
Edited by - Davio on 27 May 2005 10:52:28 |
|
|
Fitz
Starting Member
26 Posts |
Posted - 28 May 2005 : 01:41:11
|
Hi,
I made that change and it does seem as if I can now create a new user account. Of course I wonder what else I messed up with my "bright idea". As far as the version number goes, I didn't see anything obviously listing the version in the Admin options (Under Server info, for example), but the Zip file I DLed and used is sf2k_v34_05.zip.
As far as those files I overwrote (rather than copying/pasting all of the changes to implement your Poll Mod), couldn't I overwrite all of those files if I find someone who has successfully implemented the Poll Mod using the same version? The only two changes I made on my forms other than colors was to add a line about turning cookies on on the registration page (Under "Allow users to send you email), and I removed my email address from the Help page. I created a form that emails me and made a link to my form there instead. So, other than the lazy overwriting of all the files, I really haven't modified it much. What say you?
Again, thank you very much for all of your help.
Fitz |
|
|
|
Topic |
|