Commit Graph

102 Commits

Author SHA1 Message Date
Sarjuuk
741ebf38f9 Users/Markup
* implemented pending-status for newly created accounts
 * Markup should now properly recognize external links
 * Markup will remove links by pending accounts
2016-02-17 00:23:00 +01:00
Sarjuuk
08717c36d0 Templates/Listviews
* removed most templates by sensibly restructuring lvTab-data. Util::toJSON() does the rest.
 * taught Util::toJSON() to recognize values prefixed with $ as js-code
 * use Util::toJSON whenever possible
 * misc
   - mail attachments are displyed again
   - always show all currency rewards on Quest-LVs
   - suppress an error, when encountering unused ItemMods
2016-02-11 22:14:42 +01:00
Sarjuuk
f076a30180 AoWoW is now compatible with php7
(php7 is recommended but not required)
2016-01-31 16:32:31 +01:00
Sarjuuk
e69811c4de NPCs/Bosses
* link boss loot chests to boss
Home/Locales
 * properly set selected locale if featuredbox is not displayed

(also include fresh db dump)
2015-10-31 13:55:22 +01:00
Sarjuuk
022ceba20d fixup to 998763b
so .. basicly everything was wrong with this one
2015-07-20 12:03:36 +02:00
Sarjuuk
5b8a862df9 DB/Structure (thx @Carbenium for the heads up & suggestions)
* adapted structure to TDB 335.59
  * dropped questItem[1-6] fields from ?_creature and ?_object (why were they even there)

 - removed a function-stub from Util (already forgot, what it was supposed to achieve)
2015-07-19 22:25:21 +02:00
Sarjuuk
998763be7b Errors/Logging
* log addNotes to DB as php user-errors
  * always skip the native php error handler
2015-07-18 16:48:00 +02:00
Sarjuuk
051334da22 Events
drop usage of holidayIds (as far as possible)
  the obvious change is, that all events are now refenreced by a positive eventId.
  (?event=375 will probably become ?event=5)
Comments
  fixed malformed db-table. It can now hold negative typeIds.
  applying this commit will drop any comments related to events without holiday
  added gain of SiteReputation for comment-replies

resyncing dependencies of 'game_event' is required
2015-07-12 00:06:21 +02:00
Sarjuuk
54695a9490 Currency
* expanded tooltips
  * moved cap from hardcoded to DB
  * can now set description (manually)
Itemset
  * expanded tooltips
Lang
  * number formating is now locale-aware
2015-07-11 19:27:28 +02:00
Sarjuuk
ed67493bb8 Items/Filter
fixed error, when appending empty upg= to query
NPC/Text
  handled rare case of uppercase string-placeholders
2015-07-05 19:15:36 +02:00
Sarjuuk
b3441b6e84 NPC:
- more specific wording for extreFlags
2015-06-02 21:15:01 +02:00
Sarjuuk
398bb3fd40 properly localize "not found"-pages 2015-05-31 21:05:56 +02:00
Sarjuuk
3eecc3ec7c Items:
* display parentNpcs instead of difficultyDummys as sources in listview
 * implemented filter cooldown, disenchantsinto and objectivequest
 * added lvTab 'shared cooldown', prepared tabs 'taught by xxx'
 * moved some items from misc to more sensible categories
2015-05-31 18:28:23 +02:00
Sarjuuk
03b90c438f some minor error suppresants 2015-05-27 23:29:17 +02:00
Sarjuuk
51f2828f6f - moved shared setup functions from FileGen to new CLISetup
- removed web-setup
- new CLI parameters
  --account    : create initial account(s)
  --siteconfig : edit php/aowow config values
  --dbconfig   : set up db connection
  --sql        : create db content from world/dbc-tables
  --firstrun   : [NYI] step by step initial setup

- some fixes by the wayside
  * display required arena bracket for extendedCost
  * achievement chains are searchable again
  * category trees for factions should now be correct
  * trainer tab on spell detail page reapeared
  * userMenu item 'Settings' no longer breaks the page
  * display abilities of shapeshift in tab on spell detail page
  * corrected reading ?_sourcestrings for titles
  * fixed error on race detail page
  * added simple descriptions to skill detail page
  * fixed tab "reward from" (achievement) on title detail page
  * fixed alphabetical order of some filter-dropdowns
  * fixed skill colors for spells
  * fixed power display for rune-based spells, that also cost mana
  * added more information to zones
  * also check mail_loot_template for achivements
  * fixed bug, where loot_template-ids would be reused for multiple templates
  * display sourcemore for pvp-sources
2015-05-11 22:44:54 +02:00
Sarjuuk
27bc09f136 bulk replacement: accesing locale strings by function 2015-03-29 14:49:15 +02:00
Sarjuuk
d47fa93806 - enabled minimap in listviews for premium users & staff
- NPCs: display information about mechImmune and extraFlags to staff
2015-03-28 23:15:00 +01:00
Sarjuuk
c7fe84b7e0 - Error handling:
* replaced error-suppressions with proper checks
  * log php errors to db
  * use __callStatic() to access localization and thus handle erronous keys
- Setup:
  * fixed some erronous filenames when generating icons
  * increased alpha threshold for spawn maps (should improve spawn points)
- disentangled DB::Aowow and DB::World. Aowow should now be able to run
  with DB::World being on a different server
- added missing faction transfer pendants (title/quest/faction/..)
- fixed extended costs for specific vendors
2015-03-28 23:10:20 +01:00
Sarjuuk
9b0c4c69f8 - wrap json_encode in Util::toJson to always encode with the same flags
- implemented secondary tooltips with spawnPoints
- merged Mapper.js back into global.js
 * fixed wrong id for Nexus Instance
 * the ToC Dungeon no longer has a second layer
- fixed displaying waypoints as spawns
- images in pageText are now PNG instead of JPG to accomodate for transparency
2015-01-18 18:10:01 +01:00
Sarjuuk
edfb0be602 NPCs:
* added spawns for vehicle accessories
 * display if npc is an accessory or has acceories
Home:
 * searching from home no longer adds index.php to the url

thought of the day: what do i do with spawns on transport-maps?
2014-11-09 16:18:03 +01:00
Sarjuuk
336f28b34f - correcting fuckups
* menu-icons using hardcoded path
  * german translation for conditions
  * redundant check for conditions on quest and spell detail pages
- show eventId for staff on event detail page
2014-10-18 18:39:59 +02:00
Sarjuuk
43fe5e4b4d - implemented display of spawns and waypoints for gameobjects and creatures
!IMPORTANT!
  Due to the inability to determine what layer covers what height-level
  in multilayer-zones, spawns and waypoints WILL have duplicates and must
  be removed manually from ?_spawns and ?_waypoints respectively, if
  nessecary. Besides, the other points may also need manual love.
- NPC:
  * removed a redundant cuFlags for Bosses
  * set NPC_CU_INSTANCE_BOSS with data from world.instance_encounters
  * removed misc. factions from tooltip
  * fixed malformed condition for creature-loot
  * location is displayed in Listviews (also for GOs)
  * enabled filters foundIn and relatedEvent (also for GOs)
  * do not display empty quotes
- Zone:
  * initial implementation of detail page
- Misc:
  * fixed notices being displayed without restrictions
  * added RewriteBase hint to .htaccess (lost several hours to this one)
  * removed lost isles from dataset 'zones'
  * updated sql-archives and removed old sql updates, db_setup_2.zip
    will need to be reapplied
2014-10-10 21:12:30 +02:00
Sarjuuk
0806e616ae - updated Loot-class to work with TrinityCore:master/55b43c67519359f0e5a96004c393898b3c62add3
- fixed some awkward names for skinning-tabs on npc.php
- only send calendar if we have events to display on event.php
- do not display conditions column if there are no conditions on item.php
2014-09-28 13:38:03 +02:00
Sarjuuk
ad3f826906 - check for url-param 'locale' and handle as temporary choice
- spell: added effect: killCredit2 to parsed list
- fixed some mixups, when eventId was used instead of holidayId and vice versa
- avoid zero values for page Types so there are no longer empty tooltips on the language-menu
- rewrote conditions system:
  * table: conditions is now in use (needs some more cases to check for)
  * adapted existing 'conditions', may need some wording fixes
  * can now calso reate a single listview tab for more detailed information
  * this is not localized for frFR, esES or ruRU
- enabled support for non-tamplate tabs (leave 'file' empty and 'data' is used as HTML)
2014-09-23 19:32:57 +02:00
Sarjuuk
813b3600ce - sessions should now be persistent across restarts for some browsers (namely IE)
- show tab: unknown source last in items list page
- fixed displaying related event on creature detail page
- parse aura:190 on spell detail page
2014-09-20 14:36:57 +02:00
Sarjuuk
0620a0081d - Caching: also prevent caching in AjaxHandler
- Util: initialize enchantments even if it has no usable stats
- NPCs:
 * added tamability to infobox
 * added pet-spells to controlled spells tab
 * fixed displaying texts for zero-length strings, also
   adapted TrinityCore:master/e567ab95972508adc85a36f867723114a04fe227
 * hide listview column 'type', when displaying one specific type
- Utility - missing-screenshots: reduced list-size to 200
- fixed copypasta-typo in locale_eses.js
- Skill: fixed error in detail page title
2014-09-19 19:28:28 +02:00
Sarjuuk
feaee59cd0 - converted articles for MorePages to use STATIC_URL (also neutralized some self-references)
- added config-option to restrict available locales
- fixed opensearch suggestions by generating strict json
- include TalentCalc.css as lowerCase (fixes display under *nix)
- some minor formating
- Setup:
 * added some additional files to be generated (they required STATIC_URL or HOST_URL to be set)
 * moved class Locale from global.js to own template and generate it with CFG_LOCALES
 * changed urlParam (?build=script): may be empty (builds everything) or specific scriptNames chained together with ; (?build=script1;script2)

you are required to run the following command to regenerate files affected by these cahnges
?build=demo;power;realmMenu;searchboxBody;searchboxScript;searchplugin;locales
2014-09-13 23:26:01 +02:00
Sarjuuk
70f703b4b2 Cache:
- implemented Memcached (untested though (tough luck trying to get it to run using win))
 - added config value to select caching method (default: filecache; setting debug to 1 will still disable caching)
 - implemented url-param 'refresh' to clear cache for this page
2014-09-11 00:06:08 +02:00
Sarjuuk
2e18bf0d3e - fixed rewriteRule if aowow is not in your root dir
- use https if available, added a config value to enforce it if nessecary
- NPC:
  * fixed currency icons when displaying extendedCost for vendor
  * display conditions column only if we actually have conditions set
2014-09-09 20:52:23 +02:00
Sarjuuk
78422b9130 fixed problems with case-sensitivety on different systems
- table-names are now lowercase
- includes from spl_autolaod_regsiter() are now lowercase
2014-08-01 22:43:56 +02:00
Sarjuuk
1dfc469d43 - implemented comments (in general and as preview on account page & latest comments)
- partially implemented site reputation (required to grant privileges to comments)
- reworked 'home'-page (the news-box is now as configurable as you want)
- removed some ancient compatibility-code for IE67 (srsly, its 2014!)
- dropped associated stylesheets, reviewed the rest
- split some user-restrictions to trigger on insufficient siteRep
- added text-page: Markup-Guide
- implemented new class to handle Markup

- bugfixes [TM]

- also you will need to reapply the db-dumps (you may want do save account*, news,
reports, ..)
2014-07-30 22:10:34 +02:00
Sarjuuk
6acee41e3d Javascript:
- reviewed and used objects PageTemplate and Locale
- removed associated workarounds
- replaced ~12k tabs with ~48k spaces
- fixed some localization errors
- whoops, forgot to update some Util::$pageTemplate calls to $this
2014-07-24 17:52:46 +02:00
Sarjuuk
0e98270827 removing smarty - part XV (aaaand done!)
- unified lv handling
 * data should always be in the same structure now
 * use of tabs is determined by the template, unless forced)
- Currency: fixed path on detail page
- Profiler: fixed use of dataKey
- Util::alphaMapCheck() 'images/' was removed long ago..; alphaMaps are now in 'cache/'
- Item: REALLY fixed markdown in tooltips
2014-07-19 12:30:47 +02:00
Sarjuuk
e0f4e9403a removing smarty - part XI
- readded npc/npcs, itemset/itemsets, skill/skills
- reduced size of conditions-column
2014-07-03 21:20:46 +02:00
Sarjuuk
934c72e446 NPCs: get quotes from broadcast_text if possible 2014-04-29 22:13:12 +02:00
Sarjuuk
48cec63e1d - BaseType: skip empty arrays in condition
- BaseFilter: defined selectAll / selectNone magic numbers
- Item:
   * fixed formating error for required arena rating
   * filters for purchasablewith -item; -currency; -honor; -arena; reqarenarating
- Zone:
   * removed extra escape for globals
   * token changes to ZoneList... still not really usable
- Events: prevent selecting arbitrary related events on empty list
- Factions:
   * added filter-links to relTabs
   * added relTab for factionspecific GameObjects
- Spell:
   * parse information for aura:forceReaction
   * added relTab Zones to display info from spell_area
- JS:
   * added display of subzones to listview-template: zone
   * reworked condition to display multiple conditions
   * added race and gender conditions

typos.. they are never entirely gone
2014-04-20 11:59:47 +02:00
Sarjuuk
d34838ea2c static/ -> STATIC_URL
Spells: rephrased condition for relTab: Quests
Announcements: ..can now have a userGroup set to show to
2014-04-15 23:58:36 +02:00
Sarjuuk
23e831be25 - removed fixed fields in lv-bricks; title sources and achievement rewards thus are working again
- moved search to /pages
- moved g_dataKey to header.tpl and apply it on nessecary pages (restores TalentCalc)
- Events: fixed relTabs with arbitrary data, when holidayId was 0
- CharClass: get heroClass-status through flags; dropped related DB-field
- Achievements: fixed some criteria not being displayed in tooltips
- Community: applied long forgotten changes to tplVars and use of uppercase ids
- Titles:
 * exclude unused titles from listview
 * restored 'links'-button on detail-page
- Quests:
 * added 'slain' fro proxy-npcs
 * use more wflags (&1 needs more research)
- Factions:
 * fixed order of categories
 * fixed params to QuestList for relTabs
- Profiler:
 * enabled 'profiles that have this char as source' in Profiler
 * removed the exampelChar from project
 * further documented more expected variables; includes/excludes-handling still not entirely clear
 * created datasets for reference data (create with ?build=profiler)
- Localzation:
 * localized profiler for loc3
 * corrected some single words
 * localized custom reward rate - table in factions
- AjaxHandler:
 * new handler for ajax-requests *duh*
 * dropped data.php (index.php now calls to AjaxHandler for these cases)
- moved reading of static files to own function Util::loadStaticFile()
2014-04-13 23:39:34 +02:00
Sarjuuk
7af4931b58 implemented details, lists and filters on quests
- some filter are still missing
 - didn't bother with the mapper yet
 - zoneOrSort is still inconsistent for instances

 - merged all queststarter/-ender into one single table
 - removed $template-parameter from addGlobalsToJscript and access it through Util
 - dropped error.tpl and 404.tpl and moved the error-text to aowow_articles
 - misc improvements here and there
2014-04-05 22:04:27 +02:00
Sarjuuk
93cc42407c menu more and tools
- items: allow 'upg' to be an array
- filter: fixed logic error in checks
- Markup: prevent handling of [menu], as PageTemplate is nyi
- Power: advanced features (hide reagents or sellprice; recoloring,
  renaming, iconizing of links)
- search: side-icon for titles
- smarty: added template-vars to cache (has to be fixed sooner or later)

- identify as HTML5 (fixed a strange bug with displaced list-pegs)
- removed several typos
2014-03-22 20:39:16 +01:00
Sarjuuk
3718ca6b86 moved config to databse (except databse credentials of course)
added overlooked changes to template or typos
2014-03-19 00:15:58 +01:00
Sarjuuk
ffd4c8e034 fixups for npc 2014-02-19 22:36:01 +01:00
Sarjuuk
0c4c7ea9ae * Factions: set titles for ListPage
* GameObjects: initial implementation (some filter missing; positions not
yet availabe; some custom data to be set; required table will be added
later)
* MiscTools: fixed random page; 'implemented' missing Screenshots; fixed
access to template file
* Search: implemented check for CUSTOM_EXCLUDE_FOR_LISTVIEW if user is not
 in U_GROUP_STAFF; searches should now be cachable
* NPCs: three more tabs on detailPage

* some work against Quests
* fighting the template-system :<
2014-02-19 16:39:15 +01:00
Sarjuuk
819a46ae15 detail page for events (with not much in it)
detail and listview for NPCs (without spawns, spells and some filters)
forcing the template to be more generic

- noticed, that the loot display is off. It happens with different modes
  on a creature, that has the same loot but different chances or quantities
  ... analyzing
2014-02-08 12:22:08 +01:00
Sarjuuk
2830fe97fc error-announces
rough draft for gameobjects (searchable, tooltips)
more tabs for item.php
2013-11-29 10:52:19 +01:00
Sarjuuk
2d736fc785 item another one >.< 2013-10-09 21:30:28 +02:00
Sarjuuk
d45b972d14 * moved tabs-block in template to separate brick-file
*yay* generification!
2013-08-25 10:02:09 +02:00
Sarjuuk
5436ead926 - implemented item-lookup per weightscale (used in profiler, comparison tool and item upgrade search)
- some minor nonfunctional changes to support 'known' spells
- enabled dynamic update of Spelltooltips changing with pointsPerLevel
2013-08-06 16:50:31 +02:00
Sarjuuk
e834f1aee3 * moved duplicate utility/dom-functions from global.js to basic.js
- consequentially prepended $WH to those functions (since i do have issues with regEx, some errors may occur)
* simplified including required JS and CSS files per page
* replaced old Menu-class with (almost) current version. Since it relies heavily on jQuery it is also loaded.
2013-08-03 21:09:23 +02:00
Sarjuuk
49800da2c8 Moved most code related to jsGlobals to template. (Except for Globals, that belong to the object already created, it makes zero sense to look them up again from the template.)
I'm not overly happy with passing the templateObject to each typeObject, but it works .. for now.
Effectively this should reduce db-lookups as each type should be looked up only twice at max (once for relevant data on the page and maybe again to get related jsGlobals for the template)
also removed BaseType::addRewardsToJscript() get it with BaseType::addGlobalsToJscript() and the appropriate addMask

* added ListviewHelper::getSetFields() wich is more appropriate in some cases (like reagents for spells should be shown even if they are all the same)
* load bricks as needed, removed the if-blocks (maybe add the filename to every TypeClass..?)
2013-07-11 21:47:00 +02:00