Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Guestbook script - Admin/Mod comment

Featured Replies

Morning to all of you guys up at this time.

 

I have been working on a guestbook script and it's going well but I thought of a cool feature I'd like to implement and I'm wondering what's the best way of doing this.

 

What I need to happen is:

 

When a admin/moderator comments on the guestbook their text will echo out differently (Red bold text etc) compared to a normal user.

 

The admin/moderator form is passworded in another directory. I don't really want to make a login script at this stage.

 

 

I thought about having a separate table to hold these special comments but when I echo it the same way all of the admin comments will be at the top.

 

I really need the admin comments to go under the normal users comments.

 

 

What's the best way of implementing this feature? :)

 

Thanks for reading! Sorry if I haven't made it clear enough.

Just whack in another field in the table for admin posts. Set this to 1, true, whatever when you add something as an admin and then check for that when printing output.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.