postback, RE: Adding pages Tutorial

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
davye
Registered User
Posts: 20
Joined: Mon Aug 19, 2019 12:49 pm

postback, RE: Adding pages Tutorial

Post by davye »

I created a new page per this https://wiki.phpbb.com/Tutorial.Adding_pages
The page has a simple <form action back to the page, a textarea and buttons to Save or Cancel editing of textarea.

Questions:
  1. how do I detect that it is a post back?
  2. how do I detect it is a get with query string after the URL?
  3. where do I insert java script in the Head for this page only?
  4. Since per the instructions the template is at /phpBB3/language/<lang>/mods/my_language_file.php is what is best way to code the action URL?
  5. How do I grab the contents of the textarea so I can write to file?
thanks
User avatar
3Di
Former Team Member
Posts: 16164
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: postback, RE: Adding pages Tutorial

Post by 3Di »

The above linked article is for phpBB 3.0, need a rewamp.

You better to post in the "custom coding" forum and see if someone will chime on it.
Also do a search there since I recall somebody else asked about it.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “phpBB Custom Coding”