Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Meta Tag Generator 1.0
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

rgrund
Junior Member

Austria
206 Posts

Posted - 02 March 2003 :  11:39:21  Show Profile
Hi,

This is for Snitz 3.4+

As most of you know there is only one meta tag in the snitz forum or in the inc_header.asp. I have now written a back end MOD which will give you more meta tags which will be stored in a table. These meta tags then will be stored in a seperate asp file which is then added into the inc_header.asp with an <!--#include code.

The following meta tags can be set up:


  • Keywords

  • Description

  • Author

  • Expires

  • Rating

  • Language

  • and more



You will need to be able to use FileSystemObject. This script will not work for UNIX!


The new file which stores then the static meta tags looks like this when opened:

<meta name="author" content="Robert Grund">
<meta name="distribution" content="global">
<meta name="keywords" content="meta">
<meta name="revisit-after" content="2 weeks">
<meta name="description" content="Snitz forum or portal">
<meta name="copyright" content="Robert Grund">
<meta http-equiv="expires" content="Sun, 2 Mar 2003 18:04:00 +01:00">
<meta name="robots" content="all">
<meta name="rating" content="general">
<meta http-equiv="Imagetoolbar" content="no">


I found it easy to install and hope that you will enjoy it.

please follow the readme instructions.

File: www.gcsk.com/snitz_mod/metatag.zip

Robert

Internet should be OPENSOURCEd!

Edited by - rgrund on 02 March 2003 12:31:20

Slide
Starting Member

20 Posts

Posted - 02 March 2003 :  13:08:54  Show Profile
Will this work with SH's
Thanks
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 02 March 2003 :  13:12:20  Show Profile
Slide,

as you know I am using SH and my test forum (portal) is SH!

Please note this is a back end mod and the user will not see anything of this mod. this is really intended for search engines!! and to increase traffic!

robert

Internet should be OPENSOURCEd!
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 07 March 2003 :  19:00:59  Show Profile
Can't see the point in this mod, for a start it doesn't work after following the instructions, just got loads of empty recordset errors in the admin pages, and doesn't it have to use FSO on every page!!, why can't the values be stored in a database??

The UK MkIVs Forum
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 08 March 2003 :  05:56:35  Show Profile
Hi DavidRhodes,

1st: the values are stored in a database
2nd: show me what youhave done, as i have installed this now several times and also others as well with no problem
3rd: No, the FSO is only run when you have amended the enties in the db! The reasonwhy one needs the DB is to generate a txt file which takes up less loading time then running a query every time a new page is called up. Optimizing the resources!!

So tell me what you have done and post it here. I will then help you out!

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

DJBBIZ
Junior Member

214 Posts

Posted - 08 March 2003 :  21:12:14  Show Profile  Visit DJBBIZ's Homepage
rgrund, I loaded this mod in about 5 minutes and except for a change in the text field to nvarchar for SQL Server, it ran right away. Be careful if you run over the 200 word description tag as it will throw a truncation error and you will lose the input and have to start over.


"The difference between good ideas and good results is performance"
the management institute | tmiFinance | tmiCreative | ProfileOnDemand
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 09 March 2003 :  00:30:28  Show Profile
thanks djjbiz! Will look into this with the 200 words. I have build in an error catcher or as you put it a truncation error! I will have to see why the entries are gone.

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 20 March 2003 :  00:48:35  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
just curious but should the meta tags be visible through the view>>source>> file? if so I added the code and stuff (www.discussstuff.com) and can't see them there, thought it does say "user will not see anything of this mod" just curious

coaster crazy
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 20 March 2003 :  10:58:51  Show Profile
The meta should be visable when you look into the source! Users will not take so much efford to look into the code!

WHat I ment with "user will not seeanything of this mod": He will be involved generating these like other MODS nor will call any pages up for this MOD! It is just a simple Back End MOD!

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 20 March 2003 :  15:26:29  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
oh, then I did something wrong, I set it to store the info in the database and everything installed fine, no errors reported but when checking view>>source>> only the default meta tag is there, that is the one that snitz has there by default. Any clue as to what i prolly did wrong?
WWS

coaster crazy

Edited by - weeweeslap on 20 March 2003 15:27:38
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 21 March 2003 :  09:23:34  Show Profile
do you have the <!--#INCLUDE FILE="MetaTag.asp" --> in the inc_header? and did you also click on the left command of the button called "Make meta tag file" in the admin section in the Meta Tag menu?

Robert

Internet should be OPENSOURCEd!
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 21 March 2003 :  09:35:12  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
yes and yes

coaster crazy
Go to Top of Page

rgrund
Junior Member

Austria
206 Posts

Posted - 21 March 2003 :  12:41:05  Show Profile
and the metatag.asp file is empty?

Internet should be OPENSOURCEd!
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 21 March 2003 :  16:17:00  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
yes

coaster crazy
Go to Top of Page

gpctexas
Junior Member

320 Posts

Posted - 21 March 2003 :  23:23:51  Show Profile  Visit gpctexas's Homepage
I had the same problem, there is actually 2 places that the inc_metafile file can go

__________________________________________________
one place is in this area of inc_header approx line 95
___________________________________________________
If strDBType = "" then
Response.Write "<html>" & vbNewLine & _
"<head>" & vbNewline & _
"<title>" & strForumTitle & "</title>" & vbNewline


'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-02 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
%>
<!--#INCLUDE FILE="MetaTag.asp" -->
<%


Response.Write "</head>" & vbNewLine & _
"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
"<table border=""0"" cellspacing=""0"" cellpadding=""5"" width=""50%"" height=""40%"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _

______________________________________________________

and the other place is int his area of inc_header approx line 247
______________________________________________________
rs.close
set rs = nothing
end if

Response.Write "<html>" & vbNewline & vbNewline & _
"<head>" & vbNewline & _
"<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline
%>
<!--#INCLUDE FILE="inc_ipgate.asp"-->
<!--#INCLUDE FILE="MetaTag.asp" -->
<%
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-02 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT



Response.Write "<script language=""JavaScript"" type=""text/javascript"">" & vbNewLine & _
"<!-- hide from JavaScript-challenged browsers" & vbNewLine & _
"function admin(url) {" & vbNewLine & _
" popupWin = window.open(url,'new_page','width=750,height=500,scrollbars=yes')" & vbNewLine & _
"}" & vbNewLine & _
"function viewfull(url) {" & vbNewLine & _

ipgate 2.4.4 RC3
http://www.gpctexas.net/ipgate_v244.zip
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 22 March 2003 :  00:25:25  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
yeah, I added it to both places, tried one then the other then both together and same result

coaster crazy
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07