Author |
Topic |
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 30 April 2001 : 01:28:00
|
This is an older MOD, but the topic containing the info about it has been archived and is currently not available so I am posting it again.
quote:
If you are using v3.1 SR4 (actually it should work with just about any version), download this file:
http://www11.ewebcity.com/dssdbs/files/colortemplates.zip
Now unzip the file and upload the colortemplates.asp and admin_config_colors.asp to your forum directory.
There will already be an admin_config_colors.asp file so just overwrite it.
Now when you goto Admin Options --> Font/Table Color Code Configuration
you will have a new option at the top for color templates. the one labeled Default is the Default colors that the forum started with. Just click on Use Template and your colors will be back to the default colors.
|
|
George_Zhu
Starting Member
China
46 Posts |
Posted - 30 April 2001 : 03:47:11
|
Nice mod, I can use it correctly. BTY, if I wanna add some templates of my own, what should I do?
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 30 April 2001 : 03:52:24
|
Yes, anyone can use it.
To add other templates, just take a look at colortemplates.asp, you'll see how the existing templates are done, just use them as an example. |
|
|
kalak
Starting Member
13 Posts |
Posted - 30 April 2001 : 14:04:29
|
very nice mod indeed! Thanks you very much to save us some min.
|
|
|
simonduz
Junior Member
161 Posts |
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 06 May 2001 : 17:27:05
|
wow podge color templates mod is awesome! just tried it out and it's super neat.
compbining it with popup color picker was a nice touch simonduz. You forgot to include podge's colortemplates.asp page in your zip though
- Alan www.iamviet.com www.calvsa.net Snitz Resource |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 May 2001 : 22:07:53
|
What would be the easiest (or best) way to let the individual user select the color template of his or her choice? I know Alan implemented this on his site, but I believe that was just the table cell background and overall background color of the main page.
I'd like to let the users customize the site colors, if possible.
<-- Eric -->
http://insidewaco.com |
|
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 06 May 2001 : 22:36:08
|
I couldn't think of a gracefully way to do what you're saying otherwise i woulda attempted something like that. It'll be neat if there's this feature to let the users set their own templates for the forums.
- Alan www.iamviet.com www.calvsa.net Snitz Resource |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 May 2001 : 22:45:42
|
Couldn't we just add all the color configuration fields to the members table then on the first page have a query pull those values and set the values in a cookie which is requested on all the pages? or would that slow the forum down too much?
<-- Eric -->
http://insidewaco.com |
|
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 06 May 2001 : 23:42:08
|
Keyword here is "graceful", although that idea would probably work but you wouldn't want to bloat the forum_members table any more than it already is with all the extra forum layout variables and duch.
- Alan www.iamviet.com www.calvsa.net Snitz Resource |
|
|
simonduz
Junior Member
161 Posts |
Posted - 07 May 2001 : 07:37:57
|
quote: You forgot to include podge's colortemplates.asp page in your zip though
oops.. Thanks Aznknight. Overlooked that one. It's been added. simonduz
http://easyromantic.121host.net -[test site]- yada, yada. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 08 May 2001 : 13:47:42
|
OK, this is a kind of comment plus a question all in one.
Firstly if you are using the standard 3.1sr4 package then you will recieve errors with the pop-up color config. Due to the following entry in the admin_config_colors.asp
strSql = strSql & " C_STRPAGEBGIMAGE = '" & Request.Form("strPageBGImage") & "', "
on line 63.
I have added this field to the CONIG table - and hurrah!! I don't get anymore error messages.
Now the question bit
I included the following in the <BODY> section of inc_top.asp
background="<%= strPageBGImage %>"
and I get nothing - Now I'm confused as to what if anything I am missing - If I hardcode an image it's fine.
Any suggestions?
Thanks
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 08 May 2001 : 14:06:31
|
I checked that.
There is only one instance of BGcolor in the inc_top.asp, in addition it does work with the hardcoded image (ie background="test.jpg").
I'm still none the wiser
Thanks for the reply tho' ...
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 08 May 2001 : 15:10:35
|
Being on the slow side ...
Could someone draft up a _setup.asp for this so I can see how you would script the addition of the DB Fieldname?
Thanks a bundle.
Azaniah
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 May 2001 : 16:23:19
|
it sounds like you do not have a standard version of the forums, the STRPAGEBGIMAGE field is not a standard forum field.
|
|
|
Ribkick
Junior Member
USA
296 Posts |
Posted - 08 May 2001 : 18:44:42
|
This is great Richard, thank you. Also the easiest MOD so far LOL.
Too bad it doesn't have a way to edit the templates or create new ones....unless I'm missing something (probably)
|
|
|
Topic |
|