Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Guest Users, Table
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Guest Users, Table

 Post Reply Post Reply
Author
randomcow View Drop Down
Newbie
Newbie


Joined: 25 October 2004
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote randomcow Quote  Post ReplyReply Direct Link To This Post Topic: Guest Users, Table
    Posted: 25 October 2004 at 11:50pm

Hi -

I'm currently customising my forum (v7.8) to get it looking the way I want, so I'll probably be posting a bit more from now on.

Most of the queries I have had so far I have been able to find with the search, but here are two questions that I'm still having.

Firstly, my forum (health discussion) is going to have a lot of Guest users. People who a) can't be bothered logging in, or more importantly b) don't want to log in for privacy reasons. That's fine with me. However, when someone posts as a Guest, even though they enter a name, it appears as "Guest" on the forum_topics screen. Is there a way to modify this so that it actually shows their "username" that they entered previously?

Secondly, I want to put the entire forum into a table that is 750 pixels wide. Is there a way to do this through the config, because I can't find it. Otherwise, could someone please give me a pointer to where the code is? Thanks!

RC

Back to Top
randomcow View Drop Down
Newbie
Newbie


Joined: 25 October 2004
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote randomcow Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 6:20am

Actually, I managed to hack something together for the first part of my question above. It's a painful UNION ALL statement. The SELECT statement on 407 (??) of forum_topics needs to be changed toL

   strSQL = "SELECT " & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Author_ID, " & strDbTable & "Thread.Message, " & strDbTable & "Thread.Message_date, " & strDbTable & "Author.Username, " & strDbTable & "GuestName.Name "
   strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Thread, " & strDbTable & "GuestName "
   strSQL = strSQL & "WHERE " & strDbTable & "Author.Author_ID = " & strDbTable & "Thread.Author_ID AND "& strDbTable & "GuestName.Thread_ID = " & strDbTable & "Thread.Thread_ID AND " & strDbTable & "Thread.Topic_ID = " & lngTopicID & " "
   strSQL = strSQL & "UNION ALL "
   strSQL = strSQL & "SELECT " & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Author_ID, " & strDbTable & "Thread.Message, " & strDbTable & "Thread.Message_date, " & strDbTable & "Author.Username, NULL "
   strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Thread "
   strSQL = strSQL & "WHERE " & strDbTable & "Author.Author_ID = " & strDbTable & "Thread.Author_ID AND "& strDbTable & "Thread.Topic_ID = " & lngTopicID & " AND " & strDbTable & "Thread.Thread_ID NOT IN (SELECT thread_id from " & strDbTable & "GuestName) "
   strSQL = strSQL & "ORDER BY " & strDbTable & "Thread.Message_date ASC;"

then this line:

strTopicStartUsername = rsTopic("Username")

 

needs to be changed to

 

   If rsTopic("Username") = "Guests" Then
    strTopicStartUsername = rsTopic("Name")
   Else
    strTopicStartUsername = rsTopic("Username")
   End If

 

Same for     

 

strLastEntryUsername= rsTopic("Username")

 

which becomes

 

   If rsTopic("Username") = "Guests" Then
    strLastEntryUsername= rsTopic("Name")
   Else
    strLastEntryUsername= rsTopic("Username")
   End If

 

There are still a few more places that I'd like to fix it, such as on the 'Last Post' section on the main screen, and down the bottom (ie "The Newest Forum Member is Guests ")

Of course, if there is already a mod, it could save me a couple of hours... :)

   RC

Back to Top
randomcow View Drop Down
Newbie
Newbie


Joined: 25 October 2004
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote randomcow Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 6:22am

erp - one more question: what's the best way to get rid of the "stars" ranking system? Just replace the images with 1x1 clear pixels?

RC

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 8:45am

You can just replace the stars with something else in the admin area.

Back to Top
 Post Reply Post Reply

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.