custom profile card themes
colours are all stored in the member table so they can be personal. maybe the form can be expanded so hex codes can be copy pasted between member profiles. idc about that rn though. also the style tag inside the index.html and full.html will flag a gazillion errors in vscode or any competent editor because it isnt technically valid css but ignore all of that. god bless
This commit is contained in:
@@ -85,6 +85,25 @@ def edit(mid):
|
||||
|
||||
# the above cleanup operations should be a button in the manage sidebar but for now they are here.
|
||||
|
||||
if "c9" in request.form:
|
||||
c9 = request.form["c9"]
|
||||
c10 = request.form["c10"]
|
||||
c11 = request.form["c11"]
|
||||
c12 = request.form["c12"]
|
||||
c13 = request.form["c13"]
|
||||
c14 = request.form["c14"]
|
||||
c15 = request.form["c15"]
|
||||
c16 = request.form["c16"]
|
||||
#c17 = request.form["c17"]
|
||||
#c18 = request.form["c18"]
|
||||
#c19 = request.form["c19"]
|
||||
#c20 = request.form["c20"]
|
||||
c21 = request.form["c21"]
|
||||
c22 = request.form["c22"]
|
||||
|
||||
db.execute("UPDATE member SET card_border=(?), card_bg=(?), heading_bg=(?), heading_border=(?), heading_name=(?), heading_subtitle=(?), card_text=(?), icon_border=(?), a1=(?), a2=(?) WHERE id=(?)",(c9, c10, c11, c12, c13, c14, c15, c16, c21, c22, mid))
|
||||
db.commit()
|
||||
|
||||
|
||||
member = db.execute("SELECT * FROM member WHERE id=(?)",(mid,)).fetchone()
|
||||
icons = db.execute("SELECT * FROM icons WHERE member_id=(?)",(mid,)).fetchall()
|
||||
|
||||
Reference in New Issue
Block a user