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)
 Mod: Add background images to cell headers
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

mfindlay
Junior Member

USA
144 Posts

Posted - 20 June 2001 :  18:42:48  Show Profile  Visit mfindlay's Homepage
This mod allows you to set the background image for a cell header such as the Category Cell Header and the Forum Cell Headers.

You may have seen examples of this at http://www.eastpasco.com. I have just implemented this at my site as well at http://www.sagecomputerservices.com

Download: http://www.sagecomputerservices.com/downloads/cellbackgrounds_v11.zip

Note: The above is a bugfix release. If you downloaded the original (cellbackgrounds.zip) then see the message below by Intrepidone for a bug fix. Thanks Intrepidone!

The only caveat about this is: be prepared to do a tedious job of altering all of your source files (.asp) since you will need to modify all tags that currently display the cell background color for the forum cell background and category cell background. (at least all the locations you want to incorporate this mod into).

Other than that, there is a slight fringe benefit in that you get to enhance your admin_config_colors.asp form with an additional column to display the current color setting for each row, and the forum variable name for each row:



Please read the included instructions carefully and thoroughly before starting.

Edited by - mfindlay on 26 June 2001 11:57:44

bcooper
Starting Member

34 Posts

Posted - 20 June 2001 :  22:37:41  Show Profile  Send bcooper an AOL message
Thanks man! This one is awesome! This way I dont have to do it manually LOL.

quote:

This mod allows you to set the background image for a cell header such as the Category Cell Header and the Forum Cell Headers.

You may have seen examples of this at http://www.eastpasco.com. I have just implemented this at my site as well at http://www.sagecomputerservices.com

Download: http://www.sagecomputerservices.com/downloads/cellbackgrounds.zip

The only caveat about this is: be prepared to do a tedious job of altering all of your source files (.asp) since you will need to modify all tags that currently display the cell background color for the forum cell background and category cell background. (at least all the locations you want to incorporate this mod into).

Other than that, there is a slight fringe benefit in that you get to enhance your admin_config_colors.asp form with an additional column to display the current color setting for each row, and the forum variable name for each row. (see http://www.sagecomputerservices.com/forum/docs/SampleAdminColors.gif to see an example of the new admin colors screen).

Please read the included instructions carefully and thoroughly before starting.





Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 June 2001 :  22:41:42  Show Profile  Visit dayve's Homepage
funny thing, I just did it manually today!!! oh well...

Dayve
Go to Top of Page

bcooper
Starting Member

34 Posts

Posted - 20 June 2001 :  22:55:08  Show Profile  Send bcooper an AOL message
LOL, now see, I was about to do the same thing. Then i decided to check one last time before i did...i feel special

quote:

funny thing, I just did it manually today!!! oh well...

Dayve



Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 21 June 2001 :  01:54:20  Show Profile
I have been wanting a MOD like this

I just finished manually doing all the asp files today to but it should make things easy because all I have to do is a search in Araneae for my file name and replace it with your string

Thanks mfindlay

Intrepidone
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 21 June 2001 :  11:19:38  Show Profile  Visit rick7165's Homepage
Super Awesome Mod!, Thanks goes to "The Man" Richard Kinser for adding the colorstripe.
Eastpasco is setup using the colorstirpe he did and the cell block color changes. If you noticed they change from cell to cell instead of one color all the way across.
This MOD is one that will really makes it easier to setup the colorstripe.
THANKS

Now here is a challenge.... Make the colorstripe change with the Themes! If a blue them
is used it uses the blue colorstripe... If a green theme is used it uses a Green Colorstripe... and so on.....
This would be a great mod to work with the My Theme mod... if the uses change the theme
the colorstripe will change with it. Right now they change the theme and the blue colorstripe stays on mine for a example.


Test Site
www.eastpasco.com
HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.



Edited by - rick7165 on 21 June 2001 11:28:40

Edited by - rick7165 on 21 June 2001 11:31:56
Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 21 June 2001 :  11:50:19  Show Profile  Visit mfindlay's Homepage
quote:

Now here is a challenge.... Make the colorstripe change with the Themes! If a blue them
is used it uses the blue colorstripe... If a green theme is used it uses a Green Colorstripe... and so on.....
This would be a great mod to work with the My Theme mod... if the uses change the theme
the colorstripe will change with it. Right now they change the theme and the blue colorstripe stays on mine for a example.



I debated whether to add the background image to the Import/Export Color Template Mod (see http://forum.snitz.com/forum/topic.asp?TOPIC_ID=11474&FORUM_ID=25&CAT_ID=17) but did not want to initially require everyone to have the background image mod installed as well. I can see that this mod is pretty popular so I will make the enhancement and let you know when posted.

Edited by - mfindlay on 21 June 2001 11:51:02
Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 22 June 2001 :  00:08:16  Show Profile  Visit mfindlay's Homepage
There is a bug in the download in the MODEL_admin_config_colors.asp in the form definition:

<form action="admin_config_colors.asp" method="post" id="Form1" name="Form1" enctype="multipart/form-data">


should read:
<form action="admin_config_colors.asp" method="post" id="Form1" name="Form1">


(remove the
enctype="multipart/form-data">
)

The bug caused the form submission not to be recognized. Sorry folks!

p.s. - the download has been updated.



Edited by - mfindlay on 22 June 2001 00:08:57
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 23 June 2001 :  00:20:59  Show Profile
You lost me on the bug in this file? Were we suppose to use that file or just copy the code marked "BEGIN BGIMAGE MOD" into our admin_config_colors.asp and config.asp files.

BUT I did find something. In the MODEL_admin_config_colors.asp file on line 71 you forgot to add this in
strSql = strSql & "     C_STRCATEGORYCELLBGIMAGE         = '" & Request.Form("strCategoryCellBGImage") & "', "


I was wondering why I could not get rid of the pic file I used in admin_config_colors.asp for the CategoryCellBGImage and noticed this line missing. Once I added it in everything works fine now.

Excellent MOD btw. Like you say it's easy to install but takes awhile to edit the files. Good thing is that it will make your forum more scalable.

Intrepidone

Edited by - Intrepidone on 23 June 2001 00:25:25
Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 23 June 2001 :  01:10:00  Show Profile  Visit mfindlay's Homepage
quote:

You lost me on the bug in this file? Were we suppose to use that file or just copy the code marked "BEGIN BGIMAGE MOD" into our admin_config_colors.asp and config.asp files.

BUT I did find something. In the MODEL_admin_config_colors.asp file on line 71 you forgot to add this in
strSql = strSql & "     C_STRCATEGORYCELLBGIMAGE         = '" & Request.Form("strCategoryCellBGImage") & "', "


I was wondering why I could not get rid of the pic file I used in admin_config_colors.asp for the CategoryCellBGImage and noticed this line missing. Once I added it in everything works fine now.

Excellent MOD btw. Like you say it's easy to install but takes awhile to edit the files. Good thing is that it will make your forum more scalable.

Intrepidone

Edited by - Intrepidone on 23 June 2001 00:25:25



Thanks for catching that! I have updated the zipfile with your fix and renamed the zipfile to http://www.sagecomputerservices.com/downloads/cellbackgrounds_v11.zip

The issue of the form is only if you chose to use my form since I include a couple other things in my form that is not in the base Snitz form such as an additional column to display the color in use and also the forum variable name used for each color setting.

If anyone just did a straight copy of my form it would have had that additional form attribute that would have caused it not to POST properly.

Thanks again for your fix!

Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 23 June 2001 :  08:56:25  Show Profile
No, Thank You for these MODS you guys keep whipping out

for you. I have been up all night trying to figure out how to have the bgimages in admin_config_colors.asp kind of work the same way as Richard Kinsers Avatar MOD, where you can click on a bgimage in admin_config_colors.asp so you could actually see the pic and save the settings. I know didly squat about asp but tried it and screwed up my db and files (good thing for backups)

Here is a screenshot of what I got done (but nothing works cause I am totally lost....LOL)



Thanks
Intrepidone
Go to Top of Page

bonkers
Junior Member

United Kingdom
122 Posts

Posted - 23 June 2001 :  10:45:41  Show Profile  Visit bonkers's Homepage
bonkers test site
forum code = tshives Portal MOD.
server = PWS

before I start the tedious job of altering all of my source files will this MOD work with the current version of the My snitz MOD and
big9erfans_themes MOD
anybody got this combination of mods working
thx bonkers

Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 23 June 2001 :  12:57:23  Show Profile  Visit mfindlay's Homepage
quote:

No, Thank You for these MODS you guys keep whipping out

for you. I have been up all night trying to figure out how to have the bgimages in admin_config_colors.asp kind of work the same way as Richard Kinsers Avatar MOD, where you can click on a bgimage in admin_config_colors.asp so you could actually see the pic and save the settings. I know didly squat about asp but tried it and screwed up my db and files (good thing for backups)

Here is a screenshot of what I got done (but nothing works cause I am totally lost....LOL)



Thanks
Intrepidone



I haven't got your source to review, but in looking at how the avatar admin screen works, the cell containing the image is named URL and the onChange handler for the select statement changes the src= of the URL with each click.

Here is the image preview cell definition:
<td width="65%" valign="top" align="left"><img name="URL" src=noavatar.gif height=50></td>


and here is the line that defines the select box and its onChange handler:
<select name="AvatarImage" size="4" onChange="if (CheckNav(3.0,4.0)) {URL.src=form.AvatarImage.options[form.AvatarImage.options.selectedIndex].value;form.AvatarURL.value=form.AvatarImage.options[form.AvatarImage.options.selectedIndex].value;}">


Hope this helps.

Go to Top of Page

bonkers
Junior Member

United Kingdom
122 Posts

Posted - 26 June 2001 :  10:58:02  Show Profile  Visit bonkers's Homepage
Does this MOD work with HuwR newcolourtemplates MOD if so do i just add the extra code to HuwRs version of admin_config_colours
cheers
bonkers

Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 26 June 2001 :  11:56:09  Show Profile  Visit mfindlay's Homepage
quote:

Does this MOD work with HuwR newcolourtemplates MOD if so do i just add the extra code to HuwRs version of admin_config_colours
cheers
bonkers





It should work independently from the new color templates mod since it deals with new fields (for the images). Just follow the instructions in the zipfile and of course be SURE to backup any files you intend to change PRIOR to beginning in case you need to back things out.

Go to Top of Page

bonkers
Junior Member

United Kingdom
122 Posts

Posted - 26 June 2001 :  18:30:17  Show Profile  Visit bonkers's Homepage
mfindlay

I have installed your MOD and it looks great so far but i have a few problems
1. The area that shows the colours in admin is not as wide as shown in the gif at the top of this thread

2. I cannot change the colours in admin but i can change colorstripe.gifs

3. Templates not updating correctly

I have tried the same on tshives Portal MOD. this has HuwRs template,
big9erfans_themes and My snitz v1 added with similar results.

best result so far has been renaming your MODEL_admin_config_colors and adding that. all the mods kinda work together (still cant change the colours though)

I dont fully understand code so i do accept the problems maybe in other areas of my combined code..

I found Your Instructions quite easy to follow and i think i followed them carefully. I like your MOD and would like to have it working the best i can
any further help would be much appreciated
bonkers

Go to Top of Page
Page: of 3 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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07