Print Page | Close Window

Including hit counter on a post......

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=635
Printed Date: 29 March 2026 at 3:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Including hit counter on a post......
Posted By: fernan82
Subject: Including hit counter on a post......
Date Posted: 01 March 2003 at 4:42pm

Ok.......i modded the Hidden Hit Counter to show only the hits (i removed the code to reset the counter) and i tried to include the hit counter inside a post, what i did is I created a new post and then went into the database and changed the message body text to <!-- #INCLUDE FILE="..\_counter\mod_counter.asp" --> but when i go back to the forum it ignored the include and only shows a blank message body........ i've done added html and javascript on the db to the message body before and it worked fine but this time it ain't working................ is there any way to do what i'm trying to do?

Thanks in advance,

Fernan




Replies:
Posted By: Bunce
Date Posted: 02 March 2003 at 1:59am

Includes are processed before ASP code..

In other words, by the time the ASP code output that string from the database it was to late to actually parse the include file..

(Thats why we can't do conditional includes in classic ASP, despite what Maddog's tutorial on his site would have us believe...)

Cheers,
Andrew



-------------
There have been many, many posts made throughout the world...
This was one of them.


Posted By: fernan82
Date Posted: 02 March 2003 at 2:44pm
Well i managed to do it using <iframe>.....thanks for the help.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net