Ignore Chat Users
Chat/commentary ignore system allowing players to hide specific users' messages. Access via "Ignore Chat Users" link in commentary header (chatsettings.php). Add players to personal ignore list stored in chatignoredusers database table. Uses client-side CSS hiding (div.uACCTID {display:none}) injected via jQuery to make ignored users' commentary invisible. Does NOT hide staff/superuser commentary (check bypasses superuser flag). Purely visual hiding (messages still sent, just not displayed).Monteloyola. Where you can make that one annoying person's commentary vanish through the magic of CSS without them ever knowing.
Overview
What Is Ignore Chat Users?:
- Commentary filtering system
- Hide specific players' chat messages from your view
- Client-side CSS hiding (not server-side blocking)
- Managed via chatsettings.php interface
- Uses database table: chatignoredusers
- jQuery-based dynamic CSS injection
- Does NOT affect others' views (personal ignore only)
How It Works Technically:
- Hook: viewcommentaryheader (adds navigation link + CSS)
- Database query: Fetch all ignored user IDs for current player
- Generate CSS: `div.u[ACCTID] {display:none}` for each ignored user
- Inject CSS into page HEAD via JavaScript
- Commentary divs with class="u[ACCTID]" become invisible
Accessing the Feature
Navigation:
- Appears in commentary page header
- Link: "Ignore Chat Users"
- Destination: chatsettings.php
- Only visible to logged-in non-staff players
- Staff/superusers (SU_EDIT_COMMENTS) do NOT see this link
Settings Interface:
- chatsettings.php page (implementation not in this module file)
- List of currently ignored users
- Add user to ignore list (by name or ID)
- Remove user from ignore list
- Changes saved to chatignoredusers table
Technical Implementation
Database Table: chatignoredusers:
- id: Auto-increment primary key
- acctid: Your account ID (who is ignoring)
- ignoreduser_id: Ignored user's account ID
- created: DateTime stamp (when added)
- UNIQUE constraint: (acctid, ignoreduser_id) prevents duplicates
CSS Generation Process:
- Query: `SELECT ignoreduser_id FROM chatignoredusers WHERE acctid = [YOUR_ID]`
- Loop through results
- Build CSS string: `div.u[ID]{display:none}` for each ignored user
- Example: `div.u1234{display:none} div.u5678{display:none}`
JavaScript/jQuery Injection:
- Check if jQuery loaded (if not, load jquery.pack.js)
- Create `
Free forever. No download. Just magic.
Sign Up Free →