help! how to create a custom page?

Started by billrune, August 07, 2019, 12:30:10 PM

Previous topic - Next topic

billrune

i know how to create a page base index.php?action=xxx
but this page include forum header and footer. 
could you please tell me how to create a custom page not include the header and footer?

this page can be used for api(output json data) or ajax pop window.

thanks

Arantor


vbgamer45

Remove any of the template layers via
$context['template_layers'] = array();
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

billrune

Quote from: vbgamer45 on August 07, 2019, 12:34:06 PM
Remove any of the template layers via
$context['template_layers'] = array();

thank you very much.  i am a new user of smf.  i like smf.

billrune

Quote from: vbgamer45 on August 07, 2019, 12:34:06 PM
Remove any of the template layers via
$context['template_layers'] = array();

i know it. thank you sir!  smf much better than phpbb i think.

Arantor

Quote from: vbgamer45 on August 07, 2019, 12:34:06 PM
Remove any of the template layers via
$context['template_layers'] = array();


You could just use SSI as well to get access to things but depending on the API needs, it might not have the right headers, hence the question about what kind of API because it matters.

billrune

Quote from: Arantor on August 07, 2019, 01:05:30 PM
Quote from: vbgamer45 on August 07, 2019, 12:34:06 PM
Remove any of the template layers via
$context['template_layers'] = array();


You could just use SSI as well to get access to things but depending on the API needs, it might not have the right headers, hence the question about what kind of API because it matters.

great. i will check it. thanks

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: