Help: Updating Site Content
Updating Images
Movie poster images are stored in the project root folder (the same folder as index.php). To update an image:
- Find a copyright-free image (e.g., from Unsplash or Pexels).
- Save the image file into the project root folder. Accepted formats: .jpg, .jpeg, .png, .webp.
- Open
index.phpandmovies.phpin a text editor. - Find the
$posterMaparray. Each line maps a movie ID number to a filename, for example:
1 => '/my-poster.jpg', - Change the filename to match your new image file.
- Save the file and refresh the page in your browser.
Tip: Keep images around 300×450 pixels for movie posters, or 300×200 for package thumbnails.
Updating Audio Files
Audio files live in the media/ folder. The About page currently features three audio clips. To replace or add audio:
- Prepare your audio file in .wav or .mp3 format. Keep files under 1 MB for fast loading.
- Copy the file into the
media/folder. - Open
s.htmlin a text editor. - Search for
<!-- PAGE: about -->and scroll to the Movie Night Sound Effects section. - To replace an existing clip: change the filename in the
<source src="...">tag. For example, changecinema-countdown.wavtomy-new-clip.mp3. - To add a new clip: copy one of the existing
<div>blocks and update the filename, title, and description. - Save and refresh the page.
Current audio files:
media/cinema-countdown.wav– Dramatic countdown tonesmedia/suspense-sting.wav– Rising tension hitmedia/intermission-jingle.wav– Upbeat break jingle
Adding or Changing Video
Movie trailers are currently embedded from YouTube using iframe tags. To change a trailer:
- Log in as an admin.
- Go to Admin > Movies and click Edit on the movie.
- Update the Trailer URL field with a new YouTube embed link (format:
https://www.youtube.com/embed/VIDEO_ID). - Click Save.
To use a local video file instead of YouTube:
- Save the video as .mp4 or .webm in the
media/folder. - In
s.htmlor the relevant template, replace the<iframe>with:<video controls width="100%"><source src="media/your-video.mp4" type="video/mp4"></video>
Adding or Removing Products
The admin panel makes it easy to manage the catalog without touching any code:
Movies
- Log in as admin and go to Admin > Movies.
- To edit a movie: click Edit, change the title, description, genre, or price, and click Save.
- To add a new movie: insert a row in the database via phpMyAdmin (open
http://localhost/phpmyadmin, select themovie_night_plannerdatabase, click themoviestable, and use the Insert tab). - To remove a movie: delete its row from the
moviestable in phpMyAdmin.
Packages
- Go to Admin > Packages.
- Click Edit to update name, description, price, or included items.
- Add or remove packages using phpMyAdmin on the
packagestable.
Changes are visible to users immediately after saving — no restart required.
File Structure Reference
| Path | What it contains |
|---|---|
/*.jpg, *.png, *.webp | Movie poster images |
/media/ | Audio and video files |
/css/ | Stylesheets (main.css + 3 theme files) |
/js/main.js | JavaScript (nav toggle) |
/templates/ | HTML template fragments |
/s.html | Master HTML shell (page blocks live here) |
/admin/ | Admin panel pages |