Where history is being made... by you.
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Might & Fealty Community
»
Questions, Conduct, & Feedback
»
Conduct & Design Discussion
»
Notes for knight welcome message overhaul
« previous
next »
Print
Pages: [
1
]
Author
Topic: Notes for knight welcome message overhaul (Read 222 times)
Andrew
Game Master / Lead Developer
Administrator
Sr. Member
Posts: 1819
Karma: +75/-7
Mildly Amused
Notes for knight welcome message overhaul
«
on:
May 15, 2017, 12:15:36 AM »
If we wanted to add the proposed seneschal to the conversations we'd just need to include them in an array on this line here:
https://github.com/Zanaras/MaFCDR/tree/master/src/BM2/SiteBundle/Controller/CharacterController.php#L361
newConversation is already setup to handle an array for the conversation participants as seen here:
https://github.com/Zanaras/msgbundle/blob/master/Service/MessageManager.php#L253
; if anything, it actually expects an array.
As for making these welcome messages customizable, that's going to be editing
https://github.com/Zanaras/MaFCDR/tree/master/src/BM2/SiteBundle/Controller/CharacterController.php#L359
and the line below it to reference a new table--storing these as part of the existing conversation system would require reworking the conversation handler to avoid specific topics. A new table would mean a new entity file and a new doctrine config file located here:
https://github.com/Zanaras/MaFCDR/tree/master/src/BM2/SiteBundle/Resources/config/doctrine
Ideally, this is going to involve a many-to-one relationship from template ID to Character ID, a column for topic, and a column for message. I don't think anything else is actually needed here.
It should be feasible to use the existing wikilinks logic as a template for how to setup a special rule to allow users to encode into the message the new arrivals name. The wikilink code is here:
https://github.com/Zanaras/MaFCDR/blob/welcome-msg/src/BM2/SiteBundle/Twig/LinksExtension.php
Logged
Standing for the creation of interesting things since Year 1, Week 5, Day 4.
Favorite cold beverage: Strawberry Shake
My hobbies: Fixing computers, video games, anime, manga, some other stuff, sleep (in no particular order)
Print
Pages: [
1
]
« previous
next »
Might & Fealty Community
»
Questions, Conduct, & Feedback
»
Conduct & Design Discussion
»
Notes for knight welcome message overhaul