Conquer the world
Welcome to the Facebook Capture the Flag Competition. By clicking "Play," you will be entered into the official CTF challenge. Good luck in your conquest.
Open Ttech opened 8 years ago
Hello Ttech,
For anyone who may be running a Hackathon event or something similar would defiantly have the knowledge and know hows to edit the front page instead of requiring a front-end editor not to mention the hours and effort required for something which can be done in a few seconds by editing the code.
To edit the front page the code can be found here: https://github.com/facebook/fbctf/blob/5d75a0a5b71d724ff71ac301e99ad5ed99a7947b/src/controllers/IndexController.php
Lines 44-58: `public function renderMainContent(): :xhp { return
Welcome to the Facebook Capture the Flag Competition. By clicking "Play," you will be entered into the official CTF challenge. Good luck in your conquest.
This is a great guide!
My main goal for this ticket is reference for me to implement it unless someone beats me to it.
Basically my goal is to allow people who are less experienced to participate and develop CTFs (or at the very least maintain them). Currently I have been putting together CTFs based off of CTFd for middle schools and high schools. While CTFd, works this looks a lot cooler for students who are beginning in their training for ctfs. The way it works now is the CTF gets built but the teachers and advisors of each event maintain it, which requires slight modifications from year to year.
Hello @Ttech,
I enjoy seeing developers/organisations trying to help the community by educating others by giving them a fun interactive way on doing so which this platform provides and developers like yourself taking that further step.
I will look into creating the front-end editor, for now i will start off with just the front page as a proven concept and see how far i can take it without compromising the application.
Kind Regards, Byron Fisher
@mehnomy Well you beat me to it! (At least part of it) Glad to see there's interest around to get people interacting with CTFs earlier!
I think having an editable about page is a good idea. Maybe we could just make the current Rules page editable?
@gsingh93
Should be able to do the rules page without any issues its pretty much the same as the index with H1 and P tags, since they might change the rules pages into a information page should i look making the rules in the navigation bar editable so they can rename it?
Kind Regards, Byron Fisher
I've been toying around with this idea for the last few days, its come down to needing a new section in the admin interface, and possibly an additional one for the front page.
Having a page to edit all the page content is the way I'm currently approaching things, and that looks to be a DB modification since I don't know how much I trust file editing on a CTF system. Although I'm partial to flat file of some sort since it can be edited quite easily and locked quite easily by simply changing permissions.
I'd love to get some feedback on the community side what might be a good approach for this.
I'm editing straight onto the page in real time, once clicked save it will become live this also allows the beauty of previewing the page.
Kind Regards, Byron Fisher
Just to give a brief update: I'm now just cleaning up my code and going to package it up when i have a bit of free time available, will do the final testing as well during that free time.
Regards, Byron
once you edit the code what commands must be run to update the cache?
I am not able to change the front page welcome message would please provide me some kind of help so please help me ASAP and also mail me on vrajraval97@gmail.com
It would be nice to have the ability to change the entry text and slogan messages as well as have a page to describe information regarding the CTF. This is helpful for people who run large CTFs where sponsors or similar content would be required to be displayed. An editable about page could accomplish this.