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
 Petition MOD
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 6

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 July 2008 :  20:28:15  Show Profile
[quote]Originally posted by leatherlips

I know I'm probably starting to be a pain, but I don't have anything on that page that says 50%.

Also, when I keep the link without the on/off it fits just fine. When I add the code for the on/off it goes to a new line.

I'm losing my mind!

Line 671 - remove the page break "br" immediately before the link. See below:

   Response.Write "| <a href=""petition.asp""" & dWStatus("Sign The Petition!") & " tabindex=""-1""><acronym title=""There are currently " & intPCount & " signatures!""><font face=""" & strDefaultFontFace & """ size=""" & strfooterFontSize & """><br>Sign The Petition! (" & intPCount & ")</acronym></a>     " & vbNewline
<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 July 2008 :  20:29:53  Show Profile
quote:
Originally posted by Massimo

Remove in petition.asp this include not on original snitz:

<!--#INCLUDE FILE="googiespell/inc_googie.asp" -->




I thought I'd caught all of them - there were about 20 other lines to take out as well. Funny that nobody else got an error on it.<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 30 July 2008 :  20:30:43  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by Massimo

Remove in petition.asp this include not on original snitz:

<!--#INCLUDE FILE="googiespell/inc_googie.asp" -->


and...

End if
If strIcons = "1" and strShowSmiliesTable = "1" Then

<!--#INCLUDE FILE="inc_smilies.asp" --> (why this include? this not work?!)

End If
Response.Write " </font></td>" & vbNewLine & _


I did not include the googiespell. I noticed that too in Carefree's recent petition.asp code.

Regarding the smilies. I commented them out because I did not think a petition would need them. However, I left that code in just in case individuals wanted to have them anyway.

If you want to smiles to work, then change that line to:
%>
<!--#INCLUDE FILE="inc_smilies.asp" -->
<%

<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 July 2008 :  20:33:54  Show Profile
quote:
Originally posted by Massimo
<!--#INCLUDE FILE="inc_smilies.asp" --> (why this include? this not work?!)



If you are collecting signatures for an official thing like a petition, you do NOT want it full of smiley faces, cute icons, etc. Also, the format will not be used to ensure html & forum code are sanitized, it's going to be printed like a word document.<
Go to Top of Page

Massimo
Junior Member

Italy
125 Posts

Posted - 30 July 2008 :  20:35:35  Show Profile  Visit Massimo's Homepage
i edit my post:

replace whit:


If strIcons = "1" and strShowSmiliesTable = "1" Then
%>
<!--#INCLUDE FILE="inc_smilies.asp" -->
<%
End If

;)<

Massimo Farieri
Snitz Italian Community
===============
http://www.snitz.it
http://www.superdeejay.net/forum/


Edited by - Massimo on 30 July 2008 20:38:24
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 30 July 2008 :  20:37:54  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by Carefree

Line 671 - remove the page break "br" immediately before the link.

How embarrasing! Thanks! I'm in the process of updating the mod to include the on/off and the printer features added. I'll give you credit for both in the readme. <

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 July 2008 :  23:20:56  Show Profile
I don't care about the credit. I just enjoy helping out where I can.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 31 July 2008 :  05:18:31  Show Profile
quote:
Originally posted by Carefree

I don't care about the credit. I just enjoy helping out where I can.

CF You should accept the acknowledgement and we can clearly see your enthusiasm in helping us all as always and is wideley appreciated.

I am looking at trying to modify the strPDT=DateToStr(rsPrint("P_DATE")) and " <td colspan=""1""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strPDAT & "" & vbNewLine & _ to allow the dates to display the same as the rest of my forum.
The chkdate I have changes the date from 31/07/08 14:14:19 to 31 July 2008 14:14 format
Is there a quick tweak to ensure the date displays the same I tried
ChkDate instead of DateToStr but it does not work. Thanks as always Andy<

Edited by - Andy Humm on 31 July 2008 05:30:33
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 July 2008 :  05:55:36  Show Profile  Visit HuwR's Homepage
ChkDate is what you should use to format dates consistantly, what exactly is wrong with the date display, you only give an example of how chkdate formats it, how are you expecting it to be formatted ?<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 31 July 2008 :  07:47:25  Show Profile
Hi Huwr,
The code I have to create the string is strPDT=DateToStr(rsPrint("P_DATE")) and where it is being displayed I have the following code: "<td colspan=""1""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strPDAT & "" & vbNewLine & _

I have the following date output 31/07/08 12:44:11
I am tring to get it to display 31 July 08 12:44 which works on all the other date formats.

Strangley, I have included an additional date at the top of the page which shows Printed: 31 July 2008 @ 12:44 and I used this code:
"<tr colspan=""8"" align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Printed: " & FormatDateTime(StrToDate(P_Date), 1) & " @ " & FormatDateTime(StrToDate(P_Date), 4) & vbNewLine & _

I tried slotting in the FormatDateTime which, probably through wrong coding does not work. This is my pop up page for petition print and text file

Thanking you Andy

<

Edited by - Andy Humm on 31 July 2008 07:48:23
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 July 2008 :  07:55:18  Show Profile  Visit HuwR's Homepage
chkDate(strPDT,"",true) should display the date as 31 July 08 12:44
chkDate(strPDT,"@", true) should display the date as 31 July 08 @ 12:44

(obviously, the above format depends on your forum date setting)

<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 31 July 2008 :  08:16:59  Show Profile
Huwr, thank you for quick fix, I have used chkDate(strPDT,"",true) which displays the date as 31 July 08 12:44:12
As you say, the date format is controlling the hh:mm:ss
Its probably to much to change to remove the :ss Is there a switch at the end of chkDate(strPDT,"",true) which would control the hh:mm:ss Just a thought. If not, thanking you Andy

Edit: oops spelling<

Edited by - Andy Humm on 31 July 2008 08:22:07
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 July 2008 :  08:28:02  Show Profile  Visit HuwR's Homepage
no, currently there is no method to remove the seconds from being displayed, however you could edit the chkTime function to stop it displaying seconds<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 31 July 2008 :  11:44:44  Show Profile
Thank you, we'll have to live with it..<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2008 :  12:37:05  Show Profile
Andy, if you still want the seconds gone; look for this line in "inc_func_common" (appx line 506):


	chkDateFormat = isdate("" & Mid(strDateTime, 5,2) & "/" & Mid(strDateTime, 7,2) & "/" & Mid(strDateTime, 1,4) & " " & Mid(strDateTime, 9,2) & ":" & Mid(strDateTime, 11,2) & ":" & Mid(strDateTime, 13,2) & "")

Change it to say:

	chkDateFormat = isdate("" & Mid(strDateTime, 5,2) & "/" & Mid(strDateTime, 7,2) & "/" & Mid(strDateTime, 1,4) & " " & Mid(strDateTime, 9,2) & ":" & Mid(strDateTime, 11,2) & "")
<
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page | 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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07