Print Page | Close Window

showing dynamic content in header?

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=2517
Printed Date: 31 March 2026 at 4:52pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: showing dynamic content in header?
Posted By: mtm81
Subject: showing dynamic content in header?
Date Posted: 08 May 2003 at 2:32pm

Hi, I'm trying to have my header include have dynamic content as per the rest of my site...

I've altered all the paths on the page to reflect the fact the header file is within the includes dir within the forum dir... but am getting a:

 

Variable Undefined error with reference to the connection string I'm using to get to my own database to pull in the dynamic content in the header...

 

As the connection string uses a DSN-less connection and therefore has the full path to the database  (i.e not a DSN connection)... I can't see where the error is occurring...

 

any ideas?

 

 




Replies:
Posted By: WebWiz-Bruce
Date Posted: 08 May 2003 at 2:36pm

Option Explicit is used throughout the forum code.

This is good programming and forces you to declare variables before you use them.

You need to use the line:-

Dim variableName

Before you use the variable.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mtm81
Date Posted: 08 May 2003 at 2:41pm

is there any way I can remove it??

 

I don't fancy altering all my code to reflect this..

 

James



Posted By: WebWiz-Bruce
Date Posted: 08 May 2003 at 2:52pm

You would have to remove the line 'Option Explicit' from every file used in the forum.

A simpler solution would be open the forums common.asp file look down the file for all the Dim statements and add your own variable names to this.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mtm81
Date Posted: 08 May 2003 at 2:58pm

aargh this is getting worse by the minute..

 

It's just hit me that my css for the rest of my site references images for bk's by their relative paths... that's now won't work in my forum header cos obviously this has a different path to my images...

my head hurts!!... thanks for the help anyway...

 

James




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