Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - showing dynamic content in header?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

showing dynamic content in header?

 Post Reply Post Reply
Author
mtm81 View Drop Down
Groupie
Groupie


Joined: 03 December 2002
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote mtm81 Quote  Post ReplyReply Direct Link To This Post Topic: showing dynamic content in header?
    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?

 

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
mtm81 View Drop Down
Groupie
Groupie


Joined: 03 December 2002
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote mtm81 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
mtm81 View Drop Down
Groupie
Groupie


Joined: 03 December 2002
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote mtm81 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.