Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (24 loc) · 2.66 KB

README.md

File metadata and controls

42 lines (24 loc) · 2.66 KB

bbcode_guide_template

BBCode Guide Template for playstationtrophies.org and xboxachievements.com.

The live version of this script can be found here: http://www.vyrastas.com/guide_template.htm

I wrote this script to enable easy creation of trophy / achievement guides in the forums of playstationtrophies.org and xboxachievements.com. You select the site and game, copy the resulting BBCode, and fill it in with trophy / achievement explanations. Simples.

Site threads where I originally posted it:

Here is an example of a guide created with this template: Sonic Adventure Trophy Guide

How it works

Based on the site you choose (PST vs XBA), it first scrapes the HTML of a game letter page. For example, https://www.playstationtrophies.org/browsegames/ps4/h/. It presents that list of games to the user.

When a user selects a game from that list, it scrapes the HTML of the game's trophy / achievement page. For example, https://www.playstationtrophies.org/game/happy-dungeons/trophies/.

In other words, the script is completely reliant on the content of PST and XBA. If content (like a trophy name or description) is wrong in the script output, it's wrong on the site, and needs to be fixed on the site.

The final output URL that displays in the lower frame can be determined by hacking it: http://www.vyrastas.com/ps3t_guide_template.php?site=ps3t&game=happy-dungeons. Change the site and game parameters as needed.

  • site can only be ps3t or x360a
  • game is the site page name for the game

Platforms (PS4, Vita, etc) are hard-coded and must be added manually to the script if a new category is added to one of the sites.

Contributing / Requests

If you want me to make an update to the script, and push it to http://www.vyrastas.com/guide_template.htm, create an Issue detailing what you would like done and I'll take care of it if you're forum staff (ideally Guide Team) on either PST or XBA.

Otherwise feel free to submit your own pull requests, or even make a copy to host on your own site.

  • guide_template.htm is the start page
  • Put all files in the same directory
  • Requires server-side PHP

Acknowledgements

This project utilizes Simple HTML DOM, courtesy of Jose Solorzano: https://sourceforge.net/projects/php-html/. For more information, visit http://sourceforge.net/projects/simplehtmldom.