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: General / Classic ASP versions(v3.4.XX)
 Add include file to header.
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

snowbird30ds
Starting Member

United Kingdom
33 Posts

Posted - 15 February 2017 :  10:02:23  Show Profile  Reply with Quote
How hard would it be for me to add some html from another file into the header beside the site logo image?
Which .asp file would I have to edit to add it in? And roughly where?
Thanks for any help.
Dave

HuwR
Forum Admin

United Kingdom
20579 Posts

Posted - 15 February 2017 :  12:05:13  Show Profile  Visit HuwR's Homepage
you need to look in inc_header.asp

The site logo is displayed around line 280 depending how modified your code is.

Look for getCurrentIcon(strTitleImage & "||",strForumTitle,"")

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

snowbird30ds
Starting Member

United Kingdom
33 Posts

Posted - 15 February 2017 :  13:18:03  Show Profile
Thanks Huw
I found the file and grafted some code in direct to add another table data box in and got an extra image and link working but not yet worked out how to do it from a separate file as it would make editing a lot easier.
Only just started dabbling with asp and have to admit I don't really know what I'm doing.
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 17 February 2017 :  15:52:23  Show Profile
quote:
Originally posted by snowbird30ds

Thanks Huw
I found the file and grafted some code in direct to add another table data box in and got an extra image and link working but not yet worked out how to do it from a separate file as it would make editing a lot easier.
Only just started dabbling with asp and have to admit I don't really know what I'm doing.



This is simple to do, where this is (line 280 of inc_header.asp I believe):

		"    <td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a></td>" & vbNewLine & _


If the outside file (as an example name: your_file_name.asp) is in the same folder as your forum is in, change the line to the following which you can change your_file_name.asp to what you want:


		"    <td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a>" & vbNewLine
		<!--#INCLUDE FILE="your_file_name.asp" -->
Response.Write	"</td>" & vbNewLine & _


If the outside file (as an example name: your_file_name.asp) is outside of the folder that your forum is in change the line to the following which you can change your_file_name.asp to what you want:


		"    <td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a>" & vbNewLine
		<!--#INCLUDE VIRTUAL="/your_folder/your_file_name.asp" -->
Response.Write	"</td>" & vbNewLine & _


That way you can have the single file for editing and will change the locations that you use it. I gather that is what you are after and hope it helps.

Cheers,

David Greening
Go to Top of Page

Monica 345
Starting Member

United States
2 Posts

Posted - 02 March 2017 :  03:30:30  Show Profile  Visit Monica 345's Homepage
Hi
Can you apload those files. Will be easier to help you if you show us code. If you have any problems send me a private message and maybe I will be able to help you .
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 March 2017 :  12:02:41  Show Profile
quote:
Originally posted by Monica 345

Hi
Can you apload those files. Will be easier to help you if you show us code. If you have any problems send me a private message and maybe I will be able to help you .




It's not necessary to upload "inc_header.asp"; it's part of the original source code. Classic's instructions covered the requirements for including an external file quite thoroughly.
Go to Top of Page

Cliff
Average Member

United States
501 Posts

Posted - 03 May 2017 :  12:58:04  Show Profile  Visit Cliff's Homepage


Hmm, I just realized this site doesn't have a report spam button.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20579 Posts

Posted - 03 May 2017 :  16:18:46  Show Profile  Visit HuwR's Homepage
we don't need one, Spam gets removed pretty quickly

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07