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/O Code)
 Custom location, Member level, stats?
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

dibley
New Member

United Kingdom
91 Posts

Posted - 14 September 2003 :  07:40:59  Show Profile  Visit dibley's Homepage
Has any done a mod so the location can be modded by the members to anythin up to say 25 characters or so?

Or so they can customise their "member level name" after say 250 posts?

Or they can have a description under their Avatar?

Also is there any stats mods to say who is online browsing the forum now... members and guests?


Any help appreciated....

Dib.

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.

Edited by - dibley on 14 September 2003 08:01:34

cripto9t
Average Member

USA
881 Posts

Posted - 14 September 2003 :  08:25:21  Show Profile
quote:
Originally posted by dibley



Also is there any stats mods to say who is online browsing the forum now... members and guests?



This may help, its an add-on for the active users mod heres the link here

    _-/Cripto9t\-_

Edited by - cripto9t on 14 September 2003 08:26:28
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 14 September 2003 :  08:29:24  Show Profile
The AU Mod that most people use and is compatible with the latest version of Snitz is the Active Users Mod Version 4 written by Nathan. This can be found at the following URL: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=26194 with bugfixes, and a download link.

Altis Design offers all manner of web design services to a variety of commercial and personal clients

Edited by - altisdesign on 14 September 2003 08:29:42
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 14 September 2003 :  08:47:19  Show Profile  Visit dibley's Homepage
Thank you guys, I'm on it!

It was just "mashing" my head going thru' all those archived posts!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 14 September 2003 :  09:42:25  Show Profile  Visit dibley's Homepage
right..haven't been brave enought to do the AU mod yet... just went for a simple Country>Location swap in inc_profile.asp

Seems to work!!! My location now is Outer Space!
Now to try the proper mods!

See below...

if strFullName = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Firstname: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""FirstName"" size=""25"" maxLength=""50"" value="""
if strMode <> "Register" then Response.Write(rs("M_FIRSTNAME"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Surname: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""LastName"" size=""25"" maxLength=""50"" value="""
if strMode <> "Register" then Response.Write(rs("M_LASTNAME"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
if strCity = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>City: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""City"" size=""25"" maxLength=""50"" value="""
if strMode <> "Register" then Response.Write(rs("M_CITY"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
if strState = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>State: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""State"" size=""25"" maxLength=""50"" value="""
if strMode <> "Register" then Response.Write(rs("M_STATE"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
' if strCountry = "1" then
' Response.Write " <tr>" & vbNewLine & _
' " <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Country: </font></b></td>" & vbNewLine & _
' " <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
' " <select name=""Country"" size=""1"">" & vbNewLine
' if strMode <> "Register" then
' Response.Write(" <option selected value=""" & rs("M_COUNTRY") & """>" & ChkString(rs("M_COUNTRY"), "display") & "</option>" & vbNewLine)
' else
' Response.Write " <option value=""""></option>" & vbNewLine
' end if
' Response.Write " <option value="""">None</option>" & vbNewLine
' % >
' <!--#INCLUDE FILE="inc_countrylist.asp"-->
' < %
' Response.Write " </select></font></td>" & vbNewLine & _
' " </tr>" & vbNewLine
' end if
'### start dib's location mod ###
if strCountry = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Location: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Country"" size=""25"" maxLength=""50"" value="""
if strMode <> "Register" then Response.Write(rs("M_COUNTRY"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
'### end dib's location mod ###
if strAge = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Age: </font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Age"" size=""5"" maxLength=""3"" value="""
if strMode <> "Register" then Response.Write(ChkString(rs("M_AGE"), "display"))
Response.Write """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if




.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 September 2003 :  08:02:19  Show Profile
The following change will allow admins, moderators and members with 5 stars to change their title by while editing their profile. In inc_profile.asp find the following chunk of code (beginning at line 260) and add the code in green:
	if strMode = "goModify" or (strMode = "goEdit" and (rs("M_POSTS") >= intRankLevel5 or rs("M_LEVEL") > 1 )) then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Title: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Title"" size=""25"" maxLength=""50"" value=""" & CleanCode(rs("M_TITLE")) & """></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 17 September 2003 :  04:52:50  Show Profile  Visit dibley's Homepage
Super MeTV! I will be adding that too!!!

Thank you!!!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 17 September 2003 :  06:11:29  Show Profile  Visit dibley's Homepage
Please excuse my asp ignorance, but am I right to assume that if I change intRankLevel5to intRankLevel3 permission will be set for members with only 3 stars? Or is that not how it works?

I would like to give permission with to members with less posts until I get a decent number of members & posts!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 September 2003 :  06:26:12  Show Profile
Yeah, you can change intRankLevel5 to intRankLevelX to allow users with X stars to change their title.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 17 September 2003 :  12:35:37  Show Profile  Visit dibley's Homepage
Thanks, MeTV!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 September 2003 :  12:43:11  Show Profile
You're welcome, dibley.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Cailean
New Member

Canada
75 Posts

Posted - 17 September 2003 :  17:09:28  Show Profile
quote:
Originally posted by MeTV

(beginning at line 260) and add the code in green:
	if strMode = "goModify" or (strMode = "goEdit" and (rs("M_POSTS") >= intRankLevel5 or rs("M_LEVEL") > 1 )) then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Title: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Title"" size=""25"" maxLength=""50"" value=""" & CleanCode(rs("M_TITLE")) & """></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if



I wanted to make everyone able to change their title to reflect their position in our organization (very private forum)...
I added the following code (in green) at line 260 in place of MeTV's green code above...

if strMode = "goModify" or (strMode = "goEdit" and (rs("M_LEVEL") >= 1 )) then


The title is now changeable in the profile page but doesn't 'stick'...The title is not actually changed after submitting.
What am I missing?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 September 2003 :  05:21:10  Show Profile
Sorry posted the code above in a rush, forgot to provide the changes for pop_profile.asp to update the title in the database.

in pop_profile.asp beginning at line 1158 find the following:
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
if trim(Request.Form("Password")) <> "" then
	strPassword = sha256("" & Request.Form("Password"))
	strSql = strSql & " SET M_PASSWORD = '" & ChkString(strPassword,"SQLString") & "', "
else
	strSql = strSql & " SET"
end if
strSql = strSql & "     M_COUNTRY  = '" & ChkString(Request.Form("Country"),"SQLString")  & "', "
And add the following code immediately after it:
set rs = my_conn.Execute("SELECT M_POSTS FROM " & strMemberTablePrefix & "MEMBERS WHERE M_NAME = '" & ChkString(Request.Form("Name"), "SQLString") & "'")
if rs("M_POSTS") >= intRankLevel5 or mlev > 2 then
	strSql = strSql & " M_TITLE = '" & ChkString(Request.Form("Title"),"SQLString") & "', "
end if
rs.Close
set rs = nothing
Incidentally, if you want all users to be able to modify their titles, there's no need for the M_LEVEL check in your if statement above:

if strMode = "goModify" or strMode = "goEdit" then


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 18 September 2003 :  06:22:20  Show Profile  Visit dibley's Homepage
errr... my forum got hung up after adding that extra bit!! ???

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 September 2003 :  06:43:03  Show Profile
Dibley, what do you mean "hung up"? What error did you get?

Cailean, you will not need the if statement surrounding the sql to update the title as you want all users to be able to change their titles.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 18 September 2003 :  06:48:24  Show Profile  Visit dibley's Homepage
The server wouldnt't load the next page after hitting update.
(I tried it multiple times, in case it was just the server being an arse.)
I took that little extra bit out and it was fine again...
except obviously the title changes back after you log out!
I didn't even notice it stopped working.

ps. what is up with the lond screen size on this topic???!!!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.

Edited by - dibley on 18 September 2003 06:50:25
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07