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)
 @tomics BG Cell Images & Advanced Color Picker
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

@tomic
Senior Member

USA
1790 Posts

Posted - 12 October 2002 :  15:47:19  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message

@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  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 12 October 2002 :  16:11:35  Show Profile
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
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 12 October 2002 :  16:17:17  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I don't see how that would do anything positive.

@tomic

SportsBettingAcumen.com
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 12 October 2002 :  16:23:13  Show Profile
Instead of doing a search-and-replace on all the files, you just change the variables on config.asp

My Mods:
New Events Calendar
New Non-database Active Users
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 12 October 2002 :  16:34:06  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 October 2002 :  17:13:16  Show Profile
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.
Go to Top of Page

tduffy
Junior Member

146 Posts

Posted - 12 October 2002 :  18:13:37  Show Profile
demo of this mod?
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 12 October 2002 :  18:16:22  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I can't demo the admin but you can see it in action with different colored gradients in each forum by way of My Forum Themes at:

http://www.skepticfriends.org/forum2/

@tomic

SportsBettingAcumen.com
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 12 October 2002 :  20:33:25  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
strHeadCellColor = strHeadCellColor & """ background=""" & strHeadCellBGImage
strCategoryCellColor = strCategoryCellColor & """ background=""" & strCategoryCellBGImage


This is how the Header Cell Image MOD is done.
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 12 October 2002 :  20:36:21  Show Profile
Don't tell me that you just copied my MOD!!!
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 12 October 2002 :  23:58:21  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
Don't tell me that you just copied my MOD!!!


This one is similar but is a little different.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 13 October 2002 :  01:38:30  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 13 October 2002 :  02:00:16  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
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.

Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 13 October 2002 :  14:52:36  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 19 October 2002 :  15:14:53  Show Profile
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.
Go to Top of Page
Page: of 2 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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07