Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - A have a question (please help)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

A have a question (please help)

 Post Reply Post Reply Page  12>
Author
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Topic: A have a question (please help)
    Posted: 21 February 2003 at 6:56pm

On my boards I have it so a mod or admin can have there username different colors. But on the display_forum_topics page only WorldWide1504 and pumpkincarver are supposed to have colored names, but the colors show up on someone elses name. Any tips?

Link:
http://www24.brinkster.com/aldrich/forum/display_forum_topics.asp?ForumID=8



Edited by worldwide1504
Back to Top
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2003 at 7:39pm
Bump...please give some suggestions. I dont understand why it wont work.
Back to Top
Mikael View Drop Down
Groupie
Groupie
Avatar

Joined: 16 November 2002
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2003 at 7:50pm
Post your "username color code" here and I will have a look.
Back to Top
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2003 at 9:17pm

First off: It works right on the display_topic_threads.asp but not on display_forum_tropics.asp .

Ok:

Dim strUsernameColor
Dim strUsernameBackColor

---------------------------------------------

        'Initalise the strSQL variable with an SQL statement to query the database to get the Author and subject from the database for the topic
        If strDatabaseType = "SQLServer" Then
            strSQL = "EXECUTE wwfSpLastAndFirstThreadAuthor @lngTopicID = " & lngTopicID
        Else
            strSQL = "SELECT tblThread.Thread_ID, tblThread.Author_ID, tblThread.Message_date, tblAuthor.Username, tblAuthor.Username_back_color, tblAuthor.Username_color "
            strSQL = strSQL & "FROM tblAuthor INNER JOIN tblThread ON tblAuthor.Author_ID = tblThread.Author_ID "
            strSQL = strSQL & "WHERE tblThread.Topic_ID = " & lngTopicID & " "
            strSQL = strSQL & "ORDER BY tblThread.Message_date ASC;"
        End If

-----------------------------------------

strUsernameColor = rsTopic("Username_color")
strUsernameBackColor = rsTopic("Username_back_color")
--------------------------------------------

<a href="JavaScript:openWin('pop_up_profile.asp?profile=<% = lngTopicStartUserID %>&ForumID=<% = intForumID %>','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=440,height=370')">
<span style="color: <% = strUsernameColor %>; font-weight: bold; font-style: normal; background-color: <% = strUsernameBackColor %>; text-decoration: none;">
<b><font size=2>
<% = strTopicStartUsername %>
</b></span>

</a>



Edited by worldwide1504
Back to Top
Mikael View Drop Down
Groupie
Groupie
Avatar

Joined: 16 November 2002
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2003 at 3:34am
seems to be ok, how do the database feilds "Username_back_color" and "Username_color" looks for diffrent users?
Back to Top
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2003 at 5:54pm
For the admin/mods it shows the colors (ie. black, white, red) and normal users are just blank.
Back to Top
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 7:52am

Bump, it was a few pages back and I wanted to make sure it gets read.

Back to Top
worldwide1504 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 July 2002
Location: United States
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldwide1504 Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2003 at 5:21pm

Sorry if me bumping this up is a little obnoxious, but I really want to get this problem solved.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.