A little bit of help please :)

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/68194?pagenum=1
05 November 2025, 12:58

Topic


Webbo
A little bit of help please :)
06 February 2009, 18:52


 

Replies ...


cripto9t
07 February 2009, 16:40


Not sure I understand. Is your sql query coming back empty (0 rows or rsUGMem.eof)?<
Webbo
07 February 2009, 16:55


It just displays black cells in the columns<
Carefree
07 February 2009, 17:03


Webbo, look for an entry with
Code:
colspan=""3""
a few lines before the
Code:
Case "ViewUsers"
line. Change the 3 to a 5.<
Webbo
07 February 2009, 17:18


Nope, that doesn't work. There's two colspans and both relate to displays where there are no members<
Carefree
07 February 2009, 17:40


Change the instances of CColor to strForumCellColor. That'll fix your black background issue.<
Webbo
07 February 2009, 17:54


Cheers, that's fixed the cell colour which makes life easier smile
The cells aren't displaying the information I need though -


<
Carefree
07 February 2009, 18:36


Webbo
07 February 2009, 18:50


Nice one Carefree - works a treat [^]
...on with the next one now, got to add sorting to the 'Renewal Date' column to show dates from earliest to latest and sorting on the 'member name' column to put it back in alphabetical order

If you get bored and want to give it a go, feel free bigsmile<
Carefree
08 February 2009, 15:40


Here you go: SnitzBitz. Install the database modification first.<
Webbo
08 February 2009, 17:22


Hi Carefree

I got an error when installign the db mod ....
Code:
Adding Column SORTED...
ALTER TABLE FORUM_USERGROUPS ADD SORTED varchar(25) NOT NULL DEFAULT M.M_NAME ASC
ALTER TABLE FORUM_USERGROUPS ADD SORTED varchar(25) NOT NULL DEFAULT M.M_NAME ASC
-2147217900 | [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt] You have an error in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near 'M.M_NAME ASC' at line 1
<
Carefree
08 February 2009, 18:06


Put apostrophes around the 'M.M_NAME ASC' for MySql.<
Webbo
09 February 2009, 04:02


It works a treat Carefree - thanks very much [^]<
Webbo
09 February 2009, 04:27


Hi Carefree,

If you modifiy your usergroups.asp file, lines 221:222 inclusive with the following code, it will add the ability to private message a member from that page (ideal for notifying when supporters subscription is up for renewal )

Code:

        "             <td nowrap valign=""top"" align=""center"" bgcolor=""" & strForumCellColor & """>" & vbNewline
Response.Write " <a href=""privatesend.asp?method=Topic&mname=" & ChkString(arUGMem1(1,UCnt),"display") & """>" & getCurrentIcon(strIconPmprivatemessage,"Send " & ChkString(arUGMem1(1,UCnt),"display") & " a Private Message","align=""absmiddle"" hspace=""0""") & "</a>" & vbNewLine
Response.Write " <a href=""pop_profile.asp?mode=display&id=" & arUGMem1(0,UCnt) & """ alt=""View Member's Profile"">" & getCurrentIcon(strIconProfile,"View Member's Profile","hspace=""0""") & "</a>" & vbNewline

It just makes life a bit easier wink<
© 2000-2021 Snitz™ Communications