|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#121
|
||||
|
||||
|
oh i can do it (as i've done it on two other laptops), but this one is still under warranty so why should i pay for the screen and do it ...
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#122
|
|||
|
|||
|
Fair play to you mehere, I guess I'm just not that way inclined.
|
|
#123
|
||||
|
||||
|
oh i've been taking things apart and putting them back together since i was a child, used to drive my father nuts ... because there were sometimes i couldn't get it to work properly ... thank god, he was an electrician ... it helped ...
![]() |
|
#124
|
|||
|
|||
|
Quote:
oh of course, take advantage of that whilst you can I'm just saying it would save you the time ![]()
__________________
jmurrayhead Did I help you out? Make me popular by clicking the icon!New Members:Proper way to post a question Powered by ASP.Net |
|
#125
|
|||
|
|||
|
Quote:
Shadow, I know this might sound a bit cheeky, but is their anyway you could modify your code so that I could get my folding sig to look like this: here. |
|
#126
|
||||
|
||||
|
lol I wasn't aware of those options!!
![]() I'll do that soon, remind me within couple of days if I forget.. ![]() |
|
#127
|
||||
|
||||
|
done! http://www.amitbb.co.il/Downloads/t...enerate_Sig.asp
new code: Code:
<% Option Explicit %>
<%
Const BASE_URL="http://folding.extremeoverclocking.com/sigs/sigimage.php?un=%user&c1=%1&c2=%2&c3=%3&c4=%4&c5=%5&t=12912"
Sub CheckUsername
Dim strUsername, objFSO, objFile
Dim strFileName, strFilePath
Dim strColor1, strColor2, strColor3
Dim strColor4, strColor5
strUsername = Request("username")
strColor1 = Request("c1")
strColor2 = Request("c2")
strColor3 = Request("c3")
strColor4 = Request("c4")
strColor5 = Request("c5")
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strFileName = "sig_" & strUsername & ".asp"
strFilePath = Server.MapPath(strFileName)
Set objFile = objFSO.CreateTextFile(strFilePath)
objFile.WriteLine("<" & "%" & " Response.Redirect(""" &_
MultiReplace(BASE_URL, Array("%user", "%1", "%2", "%3", "%4", "%5"), _
Array(strUsername, strColor1, strColor2, strColor3, strColor4, strColor5)) & """) " & "%" & ">")
objFile.Close
Set objFile=Nothing
Response.Write("file created successfully!<br />")
Set objFSO=Nothing
Response.Write("[IMG]" & GetProtocol & "://" & GetServerName & GetCurrentDir & strFileName & "[/IMG]<br />")
End Sub
Function MultiReplace(strOriginal, arr1, arr2)
Dim x, result
result = strOriginal
For x=0 To UBound(arr1)
result = Replace(result, arr1(x), arr2(x))
Next
MultiReplace = result
End Function
Function GetProtocol
Dim strFullProt, arrTemp
strFullProt = Request.ServerVariables("SERVER_PROTOCOL")
arrTemp = Split(strFullProt, "/")
GetProtocol = arrTemp(0)
Erase arrTemp
End Function
Function GetServerName
GetServerName = Request.ServerVariables("SERVER_NAME")
End Function
Function GetCurrentDir
Dim strScriptName, arrTemp, x
Dim result
strScriptName = Request.ServerVariables("SCRIPT_NAME")
arrTemp = Split(strScriptName, "/")
result = "/"
For x=1 To UBound(arrTemp)-1
result = result & arrTemp(x) & "/"
Next
GetCurrentDir = result
End Function
%>
<html>
<head>
<title>DevFolding Signature Generator</title>
</head>
<body>
<% If Request("username")<>"" Then Call CheckUsername %>
<form>
Username: <input type="text" name="username" value="<%=Request("username")%>" /> (note: NOT user id)<br />
color1: <input type="text" name="c1" size="6" value="<%=Request("c1")%>" /> (color of the captions)<br />
color2: <input type="text" name="c2" size="6" value="<%=Request("c2")%>" /> (background color of the bottom part)<br />
color3: <input type="text" name="c3" size="6" value="<%=Request("c3")%>" /> (background color of the top part)<br />
color4: <input type="text" name="c4" size="6" value="<%=Request("c4")%>" /> (color of the borders)<br />
color5: <input type="text" name="c5" size="6" value="<%=Request("c5")%>" /> (color of the texts)<br />
<button type="submit">Submit</button>
</form>
</body>
</html>
|
|
#128
|
||||
|
||||
|
Quote:
![]()
__________________
|
|
#129
|
||||
|
||||
|
Quote:
ruins the image. I will add validation to the generator when I'll have some time, until then be careful to put only colors like FFFFFF, 000000, FF0000 etc, meaning six hex characters. |