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)
 CodeBox MOD for SpeedBall 2
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JeremyG
Starting Member

12 Posts

Posted - 11 March 2004 :  11:32:25  Show Profile
Purpose:
This simple MOD will use a table to display sections of source code marked off by Forum Code. The table is customizable via CSS to look however you'd like. I tried to stay true to the CSS naming scheme of SpeedBall II.

To see an example:
http://www.geekstorm.com/forum/topic.asp?topic_id=14
Username: snitzguest
Password: snitz

To implement:

1. In your inc_func_common.asp file, find the following two lines located approx line 1294
	CodeTags(1,1,2) = "<pre id=""code""><span style=""font:courier"" class=""hfs"" id=""code"">"
 	CodeTags(1,2,2) = "</span id=""code""></pre id=""code"">"


2. Replace them with these two lines: (recommended that you comment the original ones out)
	CodeTags(1,1,2) = "<table cellpadding=""0"" cellspacing=""0"" class=""cb""><tr><td class=""cbhc cbht"">Code:</td></tr><tr><td class=""cbcc""><pre id=""code""><span class=""cbct"" id=""code"">"
 	CodeTags(1,2,2) = "</span id=""code""></pre id=""code""></td></tr></table>"


3. Add the following lines to your CSS file:

/*  Code Box Styles */
.cb     { border:#000000 1px; left: 50px; position:relative; }  /* Code Box Table */
.cbhc   { background:#000000} 						 	/* Codebox Header Cell  */
.cbht  	{ color:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 10px; } /* Codebox Header Text */
.cbcc   { background:#777777; padding: 12px; }				/* Codebox Code Cell  */
.cbct   { font-family: Courier, "Courier New", mono; font-size: 12px; color: #FFFF66; }	/* Codebox Code Text  */

.cbct a:link	{ color:#000000; text-decoration:none } /* CodeBox Link Color/Decoration */
.cbct a:visited	{ color:#000000; text-decoration:none } /* CaodeBox Link Color/Decoration */
.cbct a:active	{ color:red; text-decoration:underline } /* CodeBox Link Color/Decoration */
.cbct a:hover	{ color:red; text-decoration:underline } /* CodeBox Link Color/Decoration */


Edited by - JeremyG on 11 March 2004 13:12:34

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 11 March 2004 :  11:40:08  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
To see an example: http://www.geekstorm.com/forum and poke through the "Scripting/Plug-Ins" forum.

It would be a good idea to provide a guest account for those who want to take a look since you require registration.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

JeremyG
Starting Member

12 Posts

Posted - 11 March 2004 :  11:42:30  Show Profile
Oops! Turned registration requirement off for now. Will come up with a better solution.
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 11 March 2004 :  11:58:24  Show Profile  Visit D3mon's Homepage
Looks good. This code can be optimized though:

<td class=""cbhc""><span class=""cbht"">Code:</span></td>
can be converted to:
<td class=""cbhc cbht"">Code:</td>


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

JeremyG
Starting Member

12 Posts

Posted - 11 March 2004 :  12:00:00  Show Profile
oops your right, will change that.
Go to Top of Page

JeremyG
Starting Member

12 Posts

Posted - 15 March 2004 :  10:11:59  Show Profile
A little bit surprised i got no actual responses on the use of this. I thought I'd get at least one person who saying "hey, pretty cool, i like it".

So my question is, what is the general level of people who admin Snitz? Do they do these simple types of things by themselves? Or do most not code at all?
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 15 March 2004 :  14:10:41  Show Profile  Visit D3mon's Homepage
My Speedball forums are quite a new 'evolution' of the Snitz Forums, so interest is quite low at the moment.

I would say that small mods like this would usually be done by the forum owner (if they have the ability of course) and may not get too much of a mention. Most of the Mods released here offer some significant functionality to the existing Snitz forums (no offence intended to your work of course)

I believe all the admins here at Snitz are professional coders - and a good deal of the members too.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07