how to "modify/break" avatar addon? - نوشته شده در (689 Views)
Starting Member
GeekTragedy
مطلب: 6
6
I am using snitz v. 3.4.05, and I have the avatar MOD installed.
I've also installed the DoraMoon avatar addon and everything is working rather well.
However, I know I haven't magaged to "modify/break" the code they way I was supposed to in the admin_add_avatar.asp, admin_edit_avatar.asp, and admin_review_avatar.asp files. I figure this is largely due to the fact that I know nothing about coding terms, and so I have no idea what "modify/break" is telling me to do.
Below I have copied the three segments of code that I am supposed to "modify/break" (DoraMoon's instructions are still imbedded in the code). If someone could show me what these sections are supposed to look like after you "modify/break" them, it would help me out a lot.
Thanks for your time.

From the admin_add_avatar.asp file:
Trim(ChkString(avatarName,"display")) & """ size=""40""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><b> Reserve for Member: </b></font></td>" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID"">" & vbNewLine
'##### My Avatar addon 1-1 : modify/break above line and add below 1 section ' " <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID""><option value=""0"">none</option>" & vbNewLine
response.write "<option value=""-9"" style=""background-color:#FFEBEC""> Admin Only</option>" & vbNewLine & _
"<option value=""-8"" style=""background-color:#FFEBEC""> Admin/Moder</option>" & vbNewLine & _
"<option value=""-7"" style=""background-



From the admin_edit_avatar.asp file:
Trim(ChkString(avatarName,"display")) & """ size=""40""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """><b> Reserve for Member: </b></font></td>" & vbNewLine & _
" <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID"">" & vbNewLine
'##### My Avatar addon 1-5 : modify/break above line and add below 1 section ' " <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID""><option value=""0"">none</option>" & vbNewLine
response.write "<option value=""-9"" style=""background-color:#FFEBEC""" & chkSelect(avatarMemID,-9) & "> Admin Only</option>" & vbNewLine & _
"<option value=""-8"" style=""background-color:#FFEBEC""" & chkSelect(avatarMemID,-8) & "> Admin/Moder</option>" & vbNewLine & _
"<option value=""-7"" style=""background-color:#FEF1FF""" &


From the admin_review_avatar.asp file:
AvatarURL & " </td>" & vbNewLine & _
"<td bgcolor=""" & strForumFirstCellColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """> " & AvatarName & " </td>" & vbNewLine & _
"<td bgcolor=""" & strForumFirstCellColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """> "
'##### My Avatar addon 1-1 : modify/break above line and add below 1 section ' "<td bgcolor=""" & strForumFirstCellColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """> " & AvatarMemberNAME & " </td>" & vbNewLine & _
if AvatarMEMBERID > 0 then
response.write AvatarMemberNAME
else
<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Senior Member
MarkJH
مطلب: 1722
1722
I think that's trying to say that you need to incorporate the line below the '##### My Avatar addon... into the line above.
So for instance, change the bit from the admin_add_avatar.asp from:

" <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID"">" & vbNewLine
'##### My Avatar addon 1-1 : modify/break above line and add below 1 section ' " <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID""><option value=""0"">none</option>" & vbNewLine

to:

" <td bgcolor=""" & strPopUpTableColor & """><select name=""AvatarMemberID""><option value=""0"">none</option>" & vbNewLine

then, add the rest of DoraMoon's code beneath that line.<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
نوشته شده در
Starting Member
GeekTragedy
مطلب: 6
6
Thanks man!
That fixed the trouble I was having with the addon for two of the files. Still couldn't seem to get the admin_review_avatar.asp right though. For some reason I still kept getting errors with it.
However, it seems that if I just leave that file unmodified from where it was at after the avatar MOD, everything works just fine. So I'm not exactly sure what DoraMoon's code was supposed to do for that file.
Whatever it was supposed to do, from the tests I've done, it seems I can live without it.
Thanks again.<
نوشته شده در
Senior Member
MarkJH
مطلب: 1722
1722
You're welcome. smile<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
 
شما باید یک متن وارد کنید