I'm not calling exit I'll give that a try, it's a form setup which when they submit adds record into a different database and then header redirects to PayPal with info obtained from form. Worked fine in XF 1 for me and quick test shows it worked ok in php7 wasn't sure if something specific to...
I recently upgraded to Xenforo 2 and am now running PHP 7.2, I'm using xf callback in the html template of a page to call my php function, everything is working as expected except the header('Location: https://....); call. I looks like this should work fine in PHP 7.2 do I need to do something...
Installer is a terrible name on my part, it's just a php program i call that does all of the work/output. no templates being used -- which explains why my value isn't being populated.
I imagine i can pass this value in using <xen:include template="template_name" /> within the Template HTML...
Looking at it in source i just see:
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}">
I would assume it should be translated to the value, i see another xfToken entry at a different point and it contains a value.
Do i maybe need to include some template so $visitor.csrf_token_page value is populated?
If I change the <input type="text" ...> I just see {$visitor.csrf_token_page}
at the top of the program i have this: $visitor = XenForo_Visitor::getInstance()->toArray();
Is this incorrect/causing...
@Jake B.
Is it different from this?
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
Is there a place I can find more information on the input classes?
In an xenforo page using xen:callback under template HTML i'm having some problems submitting a custom form.
Template HTML:
<xen:callback class="Calendar_Installer" method="getHtml"><xen:require css="characterinfo.css"/>
</xen:callback>
Installer contains this:
<form action="" method="post">...
Using a page node, i have a template html which is calling a php file.I'm trying to pass the customfield value through as a param.. It is not working as i would have hoped.. Any ideas?
Template HTML:
<xen:callback class="Stamps_Installer" method="getHtml"...
I have a fairly high number of forums and groups on my phpbb forum. When i import forum permissions i notice they are not exactly like phpbb.. Am i doing something wrong or is this just a phpbb/xenforo limitation that cannot take place automatically?
Thank you!