Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ipbfuck Posted December 27, 2015 Posted December 27, 2015 Hi! Atm i've used iframe for long php script in pages, but this isn't ever the best solution (eg: https://laltroweb.it/webmster-tool/thumb-your-pages/ ). My request is: how i can write raw (real) php code directly inside ip.pages? I've try with "insert" and work fine (i can insert a script with php code), but can cause issue if this script has a form. - Write php directly inside pages can be the best solution in some circumstances. Someone can try to explain how i can this? <?php *code ?> not work. Nothing (only simple code) not work... :/ Thanks in advance, S.N.
opentype Posted December 27, 2015 Posted December 27, 2015 23 minutes ago, laltroweb.it said: I've try with "insert" and work fine (i can insert a script with php code), but can cause issue if this script has a form. Can you clarify what problems you have with forms and inserts you wouldn’t have if the code was directly in the page? 23 minutes ago, laltroweb.it said: <?php *code ?> not work. I don’t think you can do that. The template parser can’t deal with that. However, you can put your PHP code in a block (where PHP is an option) and then embed that block in any page.
ipbfuck Posted December 27, 2015 Author Posted December 27, 2015 if form put something in get var this cause problem (var not valid and other issue, no problem from php script). anyway, thank'u very much! now ill try with block
ipbfuck Posted December 27, 2015 Author Posted December 27, 2015 @opentype: sorry, same problem form me. if is present a form with $_get (self script) this cannot found results. but script work fine if i call directly via php (not inside ipb). maybe, in form action get, i need to call ipb index.php, actual page, other? :|
opentype Posted December 27, 2015 Posted December 27, 2015 I only answered how to put full PHP code inside a page. ;-) I can’t say much about form/variable problems, since you would have to show the code and what it is supposed to do.
ipbfuck Posted December 27, 2015 Author Posted December 27, 2015 Script work fine via iframe, self script: https://laltroweb.it/webmster-tool/whois/ Bugged if inserted in ipb (i think cause of $_get query). Anyway, with iframe is possible to obtain a good result. Thanks for support. Regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.