Jackis18 Posted January 17, 2018 Report Posted January 17, 2018 On the Multicraft Docs page, it states that you can make login credentials send out only once although the code on that page does not work. {% if service.multicraft_login_username %} Login with User: {service.multicraft_login_username} Pass: {service.multicraft_login_password} {% else %} Login using your existing Multicraft account credentials. {% endif %} This code returns an error, "Template parse error: if service.multicraft_login_username tag doesn't exist" How can I get this working? Thanks Jack Quote
0 MineHarvest66 Posted January 17, 2018 Report Posted January 17, 2018 16 minutes ago, Jackis18 said: On the Multicraft Docs page, it states that you can make login credentials send out only once although the code on that page does not work. {% if service.multicraft_login_username %} Login with User: {service.multicraft_login_username} Pass: {service.multicraft_login_password} {% else %} Login using your existing Multicraft account credentials. {% endif %} This code returns an error, "Template parse error: if service.multicraft_login_username tag doesn't exist" How can I get this working? Thanks Jack You may be right my fellow. Could you please look into a pre created Multicraft package on Blesta end and posting a screenshot of the "Welcome Email" section? It will be just beneath where you set the pricing of various terms. That may hint us what "variables" exists within the latest module. Quote
0 Jackis18 Posted January 17, 2018 Author Report Posted January 17, 2018 There is the exact error and welcome email I am trying to setup - with all the module variables aswell. Thanks Jack MineHarvest66 1 Quote
0 MineHarvest66 Posted January 17, 2018 Report Posted January 17, 2018 11 minutes ago, Jackis18 said: There is the exact error and welcome email I am trying to setup - with all the module variables aswell. Thanks Jack I think I thought of what possibly be the problem... There obviously two "kinds" of "variables" that looks very similar the one your trying to use ( service.multicraft_login_username) and another of one that looks very similar (service.multicraft_user_name). With that said... Could you please see what happens if you swap service.multicraft_login_username for service.multicraft_user_name ? I am thinking that one may be valid while the other one may been "removed" from Multicraft/Blesta but had not been updated on the docs/module "variables" listing. Please let us know the result and thanks in advance. Quote
0 Jackis18 Posted January 17, 2018 Author Report Posted January 17, 2018 That accepts the variable although upon testing instead of sending the username is sends the service ID :/ Thanks Jack MineHarvest66 1 Quote
0 Jackis18 Posted January 17, 2018 Author Report Posted January 17, 2018 Seems the issue is related to the "font" - upon changing it and then changing it back to the original it has fixed the issue. - Seems I need to learn not to copy and past anything even from the official docs page! Thanks Jack Paul 1 Quote
0 MineHarvest66 Posted January 17, 2018 Report Posted January 17, 2018 18 minutes ago, Jackis18 said: That accepts the variable although upon testing instead of sending the username is sends the service ID :/ Thanks Jack I am sorry but this confuses me more than ever. I am very sorry that I am not sure why this module is causing such problems... Quote
0 Tyson Posted January 22, 2018 Report Posted January 22, 2018 On 1/16/2018 at 8:16 PM, Jackis18 said: {% if service.multicraft_login_username %} Login with User: {service.multicraft_login_username} Pass: {service.multicraft_login_password} {% else %} Login using your existing Multicraft account credentials. {% endif %} This code returns an error, "Template parse error: if service.multicraft_login_username tag doesn't exist" Based on the template parse error you received, I think you pasted that code into the WYSIWYG as HTML, so the WYSIWYG encoded the text as HTML. When pasting code, it is best to do so in "Source" mode--that is, you click the "Source" button in the WYSIWYG so you can see the HTML source, and that's where you paste the code. If you see any HTML-encoded characters like or % in between template tags then some of the characters were inadventently HTML-encoded and will cause a parse error. A valid conditional tag would not have any HTML-encoded characters, e.g.: {% if service.multicraft_login_username %} But while it may look correct in HTML, it may be wrong Source mode (which is what matters). If the spaces were HTML-encoded, Source mode would show: {% if service.multicraft_login_username %} In this case, the spaces were HTML-encoded to , which is invalid syntax for tags and causes a parse error. Quote
0 Michael Posted January 22, 2018 Report Posted January 22, 2018 I always recommend pasting into the text box and then copying it into the html side. Quote
Question
Jackis18
{%
if
service.multicraft_login_username %}
Login with
User: {service.multicraft_login_username}
Pass: {service.multicraft_login_password}
{%
else
%}
Login using your existing Multicraft account credentials.
{%
endif
%}
This code returns an error, "Template parse error: if service.multicraft_login_username tag doesn't exist"
How can I get this working?
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.