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.

Random, user submitted messages.

Featured Replies

Hey,

 

Wondering how I can make some messages display randomly, and are posted by users.

 

Basicly they go to the homepage, and a random message is shown, each time they refresh there page, another, random one appears.

 

And below that, a box where users can add messages to the list, things like moderation arnt really needed, all it needs to do is add the message to a text file and then display it...

 

Is that possible? with a php script? If so where can i get one?

I'm not going to go in depth but the princple is this

 

1. Create a table entry in a database to store comments

2. Write a PHP function to pull a random row entry out of the table

3. Output that variable as html and present it how you see fit using css/javascript

 

Everytime the browser is refreshed, the process is re-run giving a random quote eachtime. It is much like what I done for my old site, Original Symmetry.

  • Author

Thanks for the reply :)

 

Didnt really understand it, i'm more of a designer :p ...but I'll ask my boyfriend he might be able to help out :)

 

Edit: Shizzle...wrong forum..sorry if a mod could move it?...jeez I need to get more sleep

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.