Author |
Topic  |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 30 May 2002 : 17:59:33
|
It's not that the Read Me files are lacking, it's just that I'm a total moron when it comes to this stuff! Though I've had a site for well over 5 years, this ASP stuff is ALL new for me. When I look at the code ... it's mind boggling.
Yet, we have a semi-bustling on-line community, used to their old CGI digs, but we are now on a new server (Windows NT - Access database) that uses ASP ... thus, Snitz.
I truly would like to add some MODS to my just upgraded 3.3.05 forum. In particular, at this juncture, I'd like to add the Smiley Manager & Snitz Chat ... also the Active User.
But, HOW? My lame attempts at installing both the FAQ add-on (since solved via another route - THANK YOU!) & the Chat ended in dismal failure. And, what's the MOD Updater thing in the Administrative section of the forum? No reference to that is ever made in the Read Me files I've seen to date. What is that for?
Anyway, if anyone out there has both the time & the inclination to break down the process for any one of those MODs I referred to - in a way that even I, a novice, can understand ... well, I'd be eternally grateful!
Rich Mohican Board
|
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 30 May 2002 : 18:27:17
|
basically, what a MOD is, is a few (or a lot) lines of code which get added to the existing code.
these new lines add some sort of functionality to the existing code.
most MODS come with a detailed readme file in which all the changes needed are described clearly. the code that needs to be added or replaced is very often given. if you follow the readme by the letter, you should be able to figure it out, even if you have no experience with ASP at all.
the MOD Updater on the Admin Pages is nothing more than a page of code that accepts additional code from an external file. for example:
i wrote a file which should update the DB with a new column and a new variable. i write the coumn name and the variable down in the external file (of course, i would need to stick to the rules for doing so). i would then upload the file to my server and run it via the MOD Setup on the Admin Pages.
look at it this way:
external file:
[INSERT] TABLE_NAME (COLUMN_NAME1,COLUMN_NAME2)#('VariableName1','VariableName2') [END] the above code will be read by the MOD Updater as this:
INSERT INTO TABLE_NAME (COLUMN_NAME1,COLUMN_NAME2) VALUES ('VariableName1','VariableName2')
hope this explains a bit...
 Crash's Site | Crash is from 
|
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 31 May 2002 : 13:58:19
|
OK ... thanks, Crash ... I am clear on the MOD Updater, and actually was able to use it to add-on the posting hot keys sucessfully!
Snitzy Chat has been another matter ... I tried following the exchange in the forum of the same name, but WOW!
I wa able to place the first portion of code into the inc_top.asp file without any problem.
It's the SECOND part I just can't get ...
quote: <% if strDBNTUserName = "" then %>Chat<% else %><a href="javascript:openChat()">Chat</a><% end if %>
That didn't work, so I tried your script, provided in that thread, and that failed as well. This is with 3.3.05. Could that be the problem?
|
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 31 May 2002 : 19:51:17
|
no, 3.3.05 is not the problem. could you post the last 10 lines of inc_top.asp?
 Crash's Site | Crash is from 
|
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 01 June 2002 : 07:11:36
|
Sure ... but I had already removed all Snitzzy Chat-related code ...
quote: ' DEM --> End of Code added to show subscriptions if they exist Response.Write " |" & vbNewline & _ " <a href=""members.asp""><acronym title=""Active Mohican Board Members"">Members</acronym></a>" & vbNewline & _ " |" & vbNewline & _ " <a href=""search.asp""><acronym title=""Perform a search of the NEW Mohican Board by keyword, date, and/or name..."">Search</acronym></a>" & vbNewline & _ " |" & vbNewline & _ " <a href=""faq.asp""><acronym title=""Answers to Frequently Asked Questions..."">FAQ</acronym></a>" & vbNewline end sub
%>
|
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 01 June 2002 : 15:39:10
|
I got it, by jove! With a tad bit of help! 
Here is the code that worked for me, placed in inc_top.asp, on the line under the FAQ link code:
quote: if strDBNTUserName <> "" then Response.Write " |" & vbNewline & _ " <a href=""javascript:openChat()""><acronym title=""Snitz Mohican Chat ... Chat With On-line Members!"">Mohican Chat</acronym></a>" & vbNewline end if
|
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 01 June 2002 : 18:47:01
|
that's exactly what i have posted in another topic... anyway, glad to hear you got it working! 
 Crash's Site | Crash is from 
|
 |
|
|
Topic  |
|