Author |
Topic |
@tomic
Senior Member
USA
1790 Posts |
Posted - 12 October 2002 : 15:47:19
|
@tomic's Advanced Color Picker with Cell BG Images
Intial Release October 12, 2002
ASP Files: admin_config_colors.asp pop_color.asp
Images: icon_color.gif invisible.gif darkbluegradient.gif darkredgradient.gif darkgreengradient.gif darkgraygradient.gif darkorangegradient.gif lightbluegradient.gif lightredgradient.gif lightgreengradient.gif lightgraygradient.gif lightorangegradient.gif
Download: http://www.skepticfriends.org/download/advancedcolorpickerbgimages.zip
MODs with Cell BGImages: These are MODs I have done with the code for Category and Head Cell BG Images included. http://www.skepticfriends.org/download/modswbgimages.zip
This MOD gives you a way to easily select your forum colors using a popup
color selector that shows you what the color is and when you select one the
hexadecimal value is entered into the text box for you.
You may also have background images for your header and category cells. I
have supplied 10 different gradients for you to use. Each one is 2 x 30
pixels so it's not much image for a lot of effect.
I will also release versions of my MODs using these new forum BGImage
variables as well as the regular version.
This MOD is very effective with my other MOD My Forum Themes.
The default for BG images is a transparent gif called invisible.gif
To install: Upload the dbs file and admin_config_colors.asp to your forum directory. Upload the images to your designated image directory.
Log into your admin area and go to MOD setup. Run @tomic's BGImage Cell MOD
This will create the new datase fields and you must do this first. After you
have run this script click on Check Installation on the main admin menu.
CONFIG.ASP Open config.asp and add the following near line 128:
Dim strHeadCellBGImage, strCategoryCellBGImage
Add the following near line 410:
strHeadCellBGImage = Application(strCookieURL & "STRHEADCELLBGIMAGE") strCategoryCellBGImage = Application(strCookieURL & "STRCATEGORYCELLBGIMAGE")
That's it for CONFIG.ASP
ADDING THE IMAGES TO YOUR CELLS
Now you will need to go and add strCategoryBGImage to all cells where you
wish the catergory image to show up. This is a simple search and replace.
Look for:
bgcolor=""" & strCategoryCellColor & """
Make it look like this:
background=""" & strImageURL & strCategoryCellBGImage & """ bgcolor=""" &
strCategoryCellColor & """
You will need to do this on all files you want to have the category BGImage.
Now you will need to do it for the header BG Image
Find: bgcolor=""" & strHeadCellColor & """
Make it look like this:
background=""" & strImageURL & strHeadCellBGImage & """ bgcolor=""" &
strHeadCellColor & """
Do this everywhere you want to use an image in your header cells.
INC_ICONFILES.ASP
Add this icon reference to inc_iconfiles.asp: Const strIconColor = "icon_color.gif|15|15"
@tomic |
SportsBettingAcumen.com |
Edited by - @tomic on 12 October 2002 18:09:16 |
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 12 October 2002 : 15:57:50
|
I forgot to add that to use this in either the My personalization or My Forum Themes MODs you need to add the gradients to my_theme.asp and my_theme2.asp for the desired themes.
@tomic |
SportsBettingAcumen.com |
|
|
red1
Junior Member
355 Posts |
Posted - 12 October 2002 : 16:11:35
|
wouldn't it be easier to just do this:
strHeadCellColor = strHeadCellColor & """ background=""" & strHeadCellBGImage strCategoryCellColor = strCategoryCellColor & """ background=""" & strCategoryCellBGImage
|
My Mods: New Events Calendar New Non-database Active Users |
|
|
@tomic
Senior Member
USA
1790 Posts |
|
red1
Junior Member
355 Posts |
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 12 October 2002 : 16:34:06
|
You could do that but the way it is now makes it easy to use more combinations including just a cell color and no image and once it's done you don't need to edit those files again.
@tomic |
SportsBettingAcumen.com |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 October 2002 : 17:13:16
|
quote: Originally posted by red1
Instead of doing a search-and-replace on all the files, you just change the variables on config.asp
That seems to be a good idea. |
|
|
tduffy
Junior Member
146 Posts |
Posted - 12 October 2002 : 18:13:37
|
demo of this mod? |
|
|
@tomic
Senior Member
USA
1790 Posts |
|
alex042
Average Member
USA
631 Posts |
Posted - 12 October 2002 : 20:33:25
|
quote: strHeadCellColor = strHeadCellColor & """ background=""" & strHeadCellBGImage strCategoryCellColor = strCategoryCellColor & """ background=""" & strCategoryCellBGImage
This is how the Header Cell Image MOD is done.
|
|
|
Tmpj
Junior Member
Denmark
467 Posts |
Posted - 12 October 2002 : 20:36:21
|
Don't tell me that you just copied my MOD!!! |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 12 October 2002 : 23:58:21
|
quote: Don't tell me that you just copied my MOD!!!
This one is similar but is a little different.
|
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 13 October 2002 : 01:38:30
|
quote: Don't tell me that you just copied my MOD!!!
Nope, I haven't so much as downloaded your version. I have had this some version plus/minus a few minor details running on my site for well over a year. I could be asking if you copied mine What I do know from reading your thread is that my version does not place imges in the TR tag. They are both quite different from the sounds of it.
@tomic |
SportsBettingAcumen.com |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 13 October 2002 : 02:00:16
|
quote: They are both quite different from the sounds of it.
Header Cell Image MOD basically substitutes the strHeadCellColor & strCategoryCellColor with that plus the background information, but it does it all in 1 location in config.asp and doesn't require changes throughout the website. It will automatically substitute values throughout the forum. It doesn't look as to where the value is, so even if it's in a TR tag, it will still substitute it and include the background info.
|
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 13 October 2002 : 14:52:36
|
Hmmmm, well don't ask me why and I definately don't insist it's the best way but I feel more comfortable adding the code to every page so I can do it both ways.
@tomc |
SportsBettingAcumen.com |
|
|
Tmpj
Junior Member
Denmark
467 Posts |
Posted - 19 October 2002 : 15:14:53
|
quote: Originally posted by @tomic
quote: Don't tell me that you just copied my MOD!!!
Nope, I haven't so much as downloaded your version. I have had this some version plus/minus a few minor details running on my site for well over a year. I could be asking if you copied mine What I do know from reading your thread is that my version does not place imges in the TR tag. They are both quite different from the sounds of it.
@tomic
I took Nathan's Adcaned Color Control and fixed some bugs, that mades clutter in the forum, it is soon one year ago. |
|
|
Topic |
|