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: admin_config_colors Plus! v3.4.xx
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 August 2002 :  15:53:51  Show Profile  Visit D3mon's Homepage
An admin_config_colors.asp upgrade.

http://www.buildyourown.org.uk/snitz/admin_config_colors.txt (rename to .asp to use)

Features dynamic color/font display (IE only) in a single file change.



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

Edited by - D3mon on 01 September 2002 06:49:47

Nathan
Help Moderator

USA
7664 Posts

Posted - 22 August 2002 :  15:57:15  Show Profile  Visit Nathan's Homepage
The HiLight Font color doesn't go with the search HiLite color.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 August 2002 :  16:01:07  Show Profile  Visit D3mon's Homepage
Ah nice one. I hadn't noticed that. That's the danger of assumption!
I'll make the necessary changes in a bit... Done.


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

Edited by - D3mon on 22 August 2002 16:39:31
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 22 August 2002 :  17:53:04  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Any chance of combining this with the color picker? I can do it if you want. I already familiarized myself a bit with what you were doing. But adding these all together would make one nifty color config page.

@tomic

SportsBettingAcumen.com
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 August 2002 :  18:00:13  Show Profile  Visit D3mon's Homepage
I had thought that it made a nice little 'one-file change' MOD to the forums (and hope that it might make it into the full version) as it is.
I'm sure I/we can make a seperate 'Turbo' version with the color picker window included...


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

@tomic
Senior Member

USA
1790 Posts

Posted - 22 August 2002 :  18:38:33  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
You know, wouldn't a function make it easier to write out each rown of this page? There would only need to be a couple functions. Then a person could slip in added functionality by making changes to the functions that writes the row.

@tomic

SportsBettingAcumen.com
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 August 2002 :  18:51:10  Show Profile  Visit D3mon's Homepage
Ah yes it might. I hadn't though that far ahead. I gotta hit the sack now but I'll have a look tomorrow morning...


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

Edited by - D3mon on 22 August 2002 18:53:01
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 22 August 2002 :  18:58:17  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Sort of like this:

Function FontSize(strSize,strSizeName,strFormName)


Response.Write "<tr valign=""middle"">" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><strong>" & strSizeName & ":</strong> </font></td>" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """>" & vbNewLine & _
" <select name=""strSize"" onchange=""" & strFormName & ".setAttribute('size', " & strSize & ".value );"">" & vbNewLine & _
" <option value=""1""" & chkSelect(strSize,1) & ">1 (8 pt)</option>" & vbNewLine & _
" <option value=""2""" & chkSelect(strSize,2) & ">2 (10 pt)</option>" & vbNewLine & _
" <option value=""3""" & chkSelect(strSize,3) & ">3 (12 pt)</option>" & vbNewLine & _
" <option value=""4""" & chkSelect(strSize,4) & ">4 (14 pt)</option>" & vbNewLine & _
" <option value=""5""" & chkSelect(strSize,5) & ">5 (18 pt)</option>" & vbNewLine & _
" <option value=""6""" & chkSelect(strSize,6) & ">6 (24 pt)</option>" & vbNewLine & _
" <option value=""7""" & chkSelect(strSize,7) & ">7 (36 pt)</option>" & vbNewLine & _
" </select>" & vbNewLine & _
" <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=colors#fontsize')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></td>" & vbNewLine & _
" <td align=""center"" bgcolor=""" & strPopUpTableColor & """> <font id="" & strFormName & "" size:""" & strSize & """;"">Aa</font> </td>" & vbNewLine & _
"</tr>" & vbNewLine & _
End Function


And call the function thusly:

Call FontSize(strSize,strSizeName,strFormName)


Do that for Color rows, text decoration rows and the font Name and Size and you would have an easier to manage page.

@tomic

SportsBettingAcumen.com

Edited by - @tomic on 22 August 2002 19:02:53
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 August 2002 :  05:36:30  Show Profile  Visit D3mon's Homepage
However I try to do it, I always end up with a problem in that I have a variable that references a variable name, that references a value.
In your example, chkSelect(strSize,1) will check the value of strSize to see if it is "1" and not strSize's referenced value.
Confused? I was.


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

sy
Average Member

United Kingdom
638 Posts

Posted - 23 August 2002 :  05:56:16  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
Looks cool!

The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails


Edited by - sy on 23 August 2002 13:43:05
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 23 August 2002 :  09:28:59  Show Profile  Visit Azaniah's Homepage
D3Mon, did you see the files I posted in the other topic? All dynamic now...

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 August 2002 :  11:58:48  Show Profile  Visit D3mon's Homepage
Azaniah, your code had just the bit of Javascript I needed to solve my Javascript problem. I made the resulting files a new topic.


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

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 23 August 2002 :  12:20:16  Show Profile  Visit Azaniah's Homepage
Great,

So what's it do now? I'm still lost lol

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 August 2002 :  12:29:52  Show Profile  Visit D3mon's Homepage
When the window pops up and you select a colour, it automagically updates the textbox value and the 'sample' cell, then closes the popup.
Sorted.


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

Edited by - D3mon on 23 August 2002 12:30:22
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 23 August 2002 :  12:43:49  Show Profile  Visit Azaniah's Homepage
Isn't that what my files were doing?

I thought you had an additional trick up ya sleeves..

And the First Cell Color was a pain..

Eagles fly!, but weasels don't get sucked into jet engines.

Edited by - Azaniah on 23 August 2002 12:44:12
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 August 2002 :  12:55:22  Show Profile  Visit D3mon's Homepage
Ah, I didn't get round to testing your files, just had a quick shuftee at the Javascript to see where I was going wrong.

Forum Cell color was tricky but I think it's an effect worth having.


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
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07